Changes between Version 3 and Version 4 of code/doc/Network
- Timestamp:
- Sep 13, 2008, 1:29:45 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
code/doc/Network
v3 v4 27 27 The most important part of the Network API is the Synchronisable Class (see also [wiki:network/Synchronisable Synchronisable]): 28 28 * This class provides the functionality for objects to get synchronised over the network: 29 * registerVar(): this function registers a variable (inthe Network Engine) that needs synchronisation30 * create29 * REGISTERDATA/REGISTERSTRING: these functions register a variable (to the Network Engine) that needs synchronisation 30 * setObjectMode: this function sets the direction of synchronisation (server->client / server<->client / server<-client) 31 31 * Every class that needs synchronisation must fullfill some dependencies: 32 32 * It must (public) inherit from Synchronisable … … 34 34 * All steps in object creation that need data (from the levelfile or the network) must be in the create() function 35 35 * It must implement the following functions: 36 * registerAllVariables: register all variables (currently only basic types and strings) to the network engine by calling either [wiki:network/registerdata REGISTERDATA] or [wiki:network/registerstring REGISTERSTRING]36 * registerAllVariables: register all variables (currently only basic types and strings), that need synchronisation, to the network engine by calling REGISTERDATA and/or REGISTERSTRING 37 37 * create: (as described above) 38 38 === Host ===