Ways To Syncronize

Syncronization can be done in multiple ways in the MLAPI. Each method has a different optimal usecase and support different features.

Messaging System

For starters, the messaing system can be used. This provides sending any data. The parameters supported include most primitives and any classes and structures that implement the IBitWritable interface. This allows for custom types to be serialized easily. This way, custom types can be sent in RPC’s without extra work. For more information, see the Messaging System wiki.


The second way is to use the NetworkedVar system. This allows data to be synced by the library rather than by the developer. The NetworkedVar system supports syncing of data to new users in the spawn call automatically and delta compression. For more information, see the NetworkedVar wiki.