Mirror Networking
Mirror.SyncHashSet< T > Class Template Reference
Inheritance diagram for Mirror.SyncHashSet< T >:
Mirror.SyncSet< T > Mirror.SyncObject

Public Member Functions

 SyncHashSet (IEqualityComparer< T > comparer)
 
new HashSet< T >.Enumerator GetEnumerator ()
 
- Public Member Functions inherited from Mirror.SyncSet< T >
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...
 

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...
 
- Protected Attributes inherited from Mirror.SyncSet< T >
readonly ISet< T > objects
 
- Properties inherited from Mirror.SyncSet< T >
int Count [get]
 
bool IsReadOnly [get]
 
- Events inherited from Mirror.SyncSet< T >
SyncSetChanged Callback
 

Detailed Description

Definition at line 331 of file SyncSet.cs.

Constructor & Destructor Documentation

◆ SyncHashSet() [1/2]

Definition at line 333 of file SyncSet.cs.

333: this(EqualityComparer<T>.Default) {}

◆ SyncHashSet() [2/2]

Mirror.SyncHashSet< T >.SyncHashSet ( IEqualityComparer< T >  comparer)

Definition at line 334 of file SyncSet.cs.

334: base(new HashSet<T>(comparer ?? EqualityComparer<T>.Default)) {}