Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changes between Version 9 and Version 10 of code/howto/Synchronisable


Ignore:
Timestamp:
Apr 12, 2017, 11:49:09 PM (8 years ago)
Author:
landauf
Comment:

fixed links

Legend:

Unmodified
Added
Removed
Modified
  • code/howto/Synchronisable

    v9 v10  
    11= Howt to make an object class Synchronisable =
    2 [[TracNav(TracNav/TOC_Development)]]
     2
    33This is a step-by-step guide to make a class XYZ synchronisable.
    44 * Synchronisable classes are registered to the network engine to be transfered/synched between client and server.
    55 * If you want your class to get transfered, you have to ''register'' every important variable to the network (e.g. position, speed, health, ...). But only register variables that are absolutely neccessary (e.g. no local variables and '''no temporary copies/variables''').
    66 * The default transfer ''direction'' of variables (and objects) is from server to the clients only. If you want to change this for a certain variable (and object), call REGISTERDATA_WITHDIR(varname, direction) or REGISTERSTRING_WITHDIR(stringname, direction) instead of REGISTERDATA or REGISTERSTRING.[[br]]
    7 See also [wiki:network/Synchronisable Synchronisable reference] for more information.
     7See also [wiki:doc/network/Synchronisable Synchronisable reference] for more information.
    88== Basic steps ==
    99'''This only applies to classes that don't inherit from a class that (indirectly) inherits from Synchronisable! '''