|
Mirror Networking
|
SyncObjects sync state between server and client. E.g. SyncLists. More...
Public Member Functions | |
| abstract void | ClearChanges () |
| Discard all the queued changes More... | |
| abstract void | OnSerializeAll (NetworkWriter writer) |
| Write a full copy of the object More... | |
| abstract void | OnSerializeDelta (NetworkWriter writer) |
| Write the changes made to the object since last sync More... | |
| abstract void | OnDeserializeAll (NetworkReader reader) |
| Reads a full copy of the object More... | |
| abstract void | OnDeserializeDelta (NetworkReader reader) |
| Reads the changes made to the object since last sync More... | |
| abstract void | Reset () |
| Resets the SyncObject so that it can be re-used More... | |
Public Attributes | |
| Action | OnDirty |
| Used internally to set owner NetworkBehaviour's dirty mask bit when changed. More... | |
| Func< bool > | IsRecording = () => true |
| Used internally to check if we are currently tracking changes. More... | |
SyncObjects sync state between server and client. E.g. SyncLists.
Definition at line 13 of file SyncObject.cs.
|
pure virtual |
Discard all the queued changes
Implemented in Mirror.SyncIDictionary< TKey, TValue >, Mirror.SyncList< T >, Mirror.SyncSet< T >, and Mirror.SyncVar< T >.
|
pure virtual |
Reads a full copy of the object
Implemented in Mirror.SyncIDictionary< TKey, TValue >, Mirror.SyncList< T >, Mirror.SyncSet< T >, and Mirror.SyncVar< T >.
|
pure virtual |
Reads the changes made to the object since last sync
Implemented in Mirror.SyncIDictionary< TKey, TValue >, Mirror.SyncList< T >, Mirror.SyncSet< T >, and Mirror.SyncVar< T >.
|
pure virtual |
Write a full copy of the object
Implemented in Mirror.SyncIDictionary< TKey, TValue >, Mirror.SyncList< T >, Mirror.SyncSet< T >, and Mirror.SyncVar< T >.
|
pure virtual |
Write the changes made to the object since last sync
Implemented in Mirror.SyncIDictionary< TKey, TValue >, Mirror.SyncList< T >, Mirror.SyncSet< T >, and Mirror.SyncVar< T >.
|
pure virtual |
Resets the SyncObject so that it can be re-used
Implemented in Mirror.SyncIDictionary< TKey, TValue >, Mirror.SyncList< T >, Mirror.SyncSet< T >, and Mirror.SyncVar< T >.
| Func<bool> Mirror.SyncObject.IsRecording = () => true |
Used internally to check if we are currently tracking changes.
Definition at line 26 of file SyncObject.cs.
| Action Mirror.SyncObject.OnDirty |
Used internally to set owner NetworkBehaviour's dirty mask bit when changed.
Definition at line 16 of file SyncObject.cs.