Mirror Networking
|
Classes | |
struct | Enumerator |
Public Member Functions | |
delegate void | SyncListChanged (Operation op, int itemIndex, T oldItem, T newItem) |
SyncList (IEqualityComparer< T > comparer) | |
SyncList (IList< T > objects, IEqualityComparer< T > comparer=null) | |
override void | ClearChanges () |
Discard all the queued changes More... | |
override void | Reset () |
Resets the SyncObject so that it can be re-used 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... | |
void | Add (T item) |
void | AddRange (IEnumerable< T > range) |
void | Clear () |
bool | Contains (T item) |
void | CopyTo (T[] array, int index) |
int | IndexOf (T item) |
int | FindIndex (Predicate< T > match) |
T | Find (Predicate< T > match) |
List< T > | FindAll (Predicate< T > match) |
void | Insert (int index, T item) |
void | InsertRange (int index, IEnumerable< T > range) |
bool | Remove (T item) |
void | RemoveAt (int index) |
int | RemoveAll (Predicate< T > match) |
Enumerator | GetEnumerator () |
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... | |
Properties | |
int | Count [get] |
bool | IsReadOnly [get] |
T | this[int i] [get, set] |
Events | |
SyncListChanged | Callback |
Additional Inherited Members | |
![]() | |
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 SyncList.cs.
Mirror.SyncList< T >.SyncList | ( | ) |
Definition at line 46 of file SyncList.cs.
Mirror.SyncList< T >.SyncList | ( | IEqualityComparer< T > | comparer | ) |
Definition at line 48 of file SyncList.cs.
Mirror.SyncList< T >.SyncList | ( | IList< T > | objects, |
IEqualityComparer< T > | comparer = null |
||
) |
Definition at line 54 of file SyncList.cs.
void Mirror.SyncList< T >.Add | ( | T | item | ) |
Definition at line 245 of file SyncList.cs.
void Mirror.SyncList< T >.AddRange | ( | IEnumerable< T > | range | ) |
Definition at line 251 of file SyncList.cs.
void Mirror.SyncList< T >.Clear | ( | ) |
Definition at line 259 of file SyncList.cs.
|
virtual |
Discard all the queued changes
Implements Mirror.SyncObject.
T Mirror.SyncList< T >.Find | ( | Predicate< T > | match | ) |
Definition at line 285 of file SyncList.cs.
List< T > Mirror.SyncList< T >.FindAll | ( | Predicate< T > | match | ) |
Definition at line 291 of file SyncList.cs.
int Mirror.SyncList< T >.FindIndex | ( | Predicate< T > | match | ) |
Definition at line 277 of file SyncList.cs.
int Mirror.SyncList< T >.IndexOf | ( | T | item | ) |
Definition at line 269 of file SyncList.cs.
void Mirror.SyncList< T >.Insert | ( | int | index, |
T | item | ||
) |
Definition at line 300 of file SyncList.cs.
void Mirror.SyncList< T >.InsertRange | ( | int | index, |
IEnumerable< T > | range | ||
) |
Definition at line 306 of file SyncList.cs.
|
virtual |
Reads a full copy of the object
Implements Mirror.SyncObject.
Definition at line 145 of file SyncList.cs.
|
virtual |
Reads the changes made to the object since last sync
Implements Mirror.SyncObject.
Definition at line 168 of file SyncList.cs.
|
virtual |
Write a full copy of the object
Implements Mirror.SyncObject.
Definition at line 95 of file SyncList.cs.
|
virtual |
Write the changes made to the object since last sync
Implements Mirror.SyncObject.
Definition at line 113 of file SyncList.cs.
bool Mirror.SyncList< T >.Remove | ( | T | item | ) |
Definition at line 315 of file SyncList.cs.
int Mirror.SyncList< T >.RemoveAll | ( | Predicate< T > | match | ) |
Definition at line 333 of file SyncList.cs.
void Mirror.SyncList< T >.RemoveAt | ( | int | index | ) |
Definition at line 326 of file SyncList.cs.
|
virtual |
Resets the SyncObject so that it can be re-used
Implements Mirror.SyncObject.
Definition at line 64 of file SyncList.cs.
|
get |
Definition at line 14 of file SyncList.cs.
|
get |
Definition at line 15 of file SyncList.cs.
|
getset |
Definition at line 348 of file SyncList.cs.
SyncListChanged Mirror.SyncList< T >.Callback |
Definition at line 16 of file SyncList.cs.