Changes between Version 3 and Version 4 of code/howto/Synchronisable
- Timestamp:
- Sep 25, 2008, 9:27:38 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
code/howto/Synchronisable
v3 v4 4 4 * 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). 5 5 * 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]] 6 See also [wiki:network/Synchronisable ] for more information.6 See also [wiki:network/Synchronisable Synchronisable] for more information. 7 7 == Basic steps == 8 8 1. Include the appropriate header file: