Mirror Networking
|
Public Member Functions | |
delegate void | SyncSetChanged (Operation op, T item) |
SyncSet (ISet< T > objects) | |
override void | Reset () |
Resets the SyncObject so that it can be re-used More... | |
override void | ClearChanges () |
Discard all the queued changes More... | |
override void | OnSerializeAll (NetworkWriter writer) |
Write a full copy of the object More... | |
override void | OnSerializeDelta (NetworkWriter writer) |
Write the changes made to the object since last sync More... | |
override void | OnDeserializeAll (NetworkReader reader) |
Reads a full copy of the object More... | |
override void | OnDeserializeDelta (NetworkReader reader) |
Reads the changes made to the object since last sync More... | |
bool | Add (T item) |
void | Clear () |
bool | Contains (T item) |
void | CopyTo (T[] array, int index) |
bool | Remove (T item) |
IEnumerator< T > | GetEnumerator () |
void | ExceptWith (IEnumerable< T > other) |
void | IntersectWith (IEnumerable< T > other) |
bool | IsProperSubsetOf (IEnumerable< T > other) |
bool | IsProperSupersetOf (IEnumerable< T > other) |
bool | IsSubsetOf (IEnumerable< T > other) |
bool | IsSupersetOf (IEnumerable< T > other) |
bool | Overlaps (IEnumerable< T > other) |
bool | SetEquals (IEnumerable< T > other) |
void | SymmetricExceptWith (IEnumerable< T > other) |
void | UnionWith (IEnumerable< T > other) |
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... | |
Protected Attributes | |
readonly ISet< T > | objects |
Properties | |
int | Count [get] |
bool | IsReadOnly [get] |
Events | |
SyncSetChanged | Callback |
Additional Inherited Members | |
Public Attributes inherited from Mirror.SyncObject | |
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... | |
Definition at line 7 of file SyncSet.cs.
Mirror.SyncSet< T >.SyncSet | ( | ISet< T > | objects | ) |
Definition at line 43 of file SyncSet.cs.
bool Mirror.SyncSet< T >.Add | ( | T | item | ) |
Definition at line 204 of file SyncSet.cs.
void Mirror.SyncSet< T >.Clear | ( | ) |
Definition at line 222 of file SyncSet.cs.
|
virtual |
Discard all the queued changes
Implements Mirror.SyncObject.
void Mirror.SyncSet< T >.ExceptWith | ( | IEnumerable< T > | other | ) |
Definition at line 246 of file SyncSet.cs.
void Mirror.SyncSet< T >.IntersectWith | ( | IEnumerable< T > | other | ) |
Definition at line 261 of file SyncSet.cs.
|
virtual |
Reads a full copy of the object
Implements Mirror.SyncObject.
Definition at line 127 of file SyncSet.cs.
|
virtual |
Reads the changes made to the object since last sync
Implements Mirror.SyncObject.
Definition at line 150 of file SyncSet.cs.
|
virtual |
Write a full copy of the object
Implements Mirror.SyncObject.
Definition at line 84 of file SyncSet.cs.
|
virtual |
Write the changes made to the object since last sync
Implements Mirror.SyncObject.
Definition at line 101 of file SyncSet.cs.
bool Mirror.SyncSet< T >.Remove | ( | T | item | ) |
Definition at line 232 of file SyncSet.cs.
|
virtual |
Resets the SyncObject so that it can be re-used
Implements Mirror.SyncObject.
Definition at line 48 of file SyncSet.cs.
void Mirror.SyncSet< T >.SymmetricExceptWith | ( | IEnumerable< T > | other | ) |
Definition at line 300 of file SyncSet.cs.
void Mirror.SyncSet< T >.UnionWith | ( | IEnumerable< T > | other | ) |
Definition at line 319 of file SyncSet.cs.
|
protected |
Definition at line 11 of file SyncSet.cs.
|
get |
Definition at line 13 of file SyncSet.cs.
|
get |
Definition at line 14 of file SyncSet.cs.
SyncSetChanged Mirror.SyncSet< T >.Callback |
Definition at line 15 of file SyncSet.cs.