Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changes between Version 3 and Version 4 of code/doc/Network


Ignore:
Timestamp:
Sep 13, 2008, 1:29:45 PM (16 years ago)
Author:
scheusso
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • code/doc/Network

    v3 v4  
    2727The most important part of the Network API is the Synchronisable Class (see also [wiki:network/Synchronisable Synchronisable]):
    2828 * This class provides the functionality for objects to get synchronised over the network:
    29    * registerVar(): this function registers a variable (in the Network Engine) that needs synchronisation
    30    * create
     29   * 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)
    3131 * Every class that needs synchronisation must fullfill some dependencies:
    3232   * It must (public) inherit from Synchronisable
     
    3434   * All steps in object creation that need data (from the levelfile or the network) must be in the create() function
    3535   * 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
    3737     * create: (as described above)
    3838=== Host ===