mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-17 18:40:33 +00:00
Code Cleanup: SyncSet
Consistent order of things
This commit is contained in:
parent
c23914ca2b
commit
86302503da
@ -15,6 +15,13 @@ public class SyncSet<T> : SyncObject, ISet<T>
|
||||
/// <summary>This is called BEFORE the data is cleared</summary>
|
||||
public Action OnClear;
|
||||
|
||||
public enum Operation : byte
|
||||
{
|
||||
OP_ADD,
|
||||
OP_REMOVE,
|
||||
OP_CLEAR
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// This is called for all changes to the Set.
|
||||
/// <para>For OP_ADD, T is the NEW value of the entry.</para>
|
||||
@ -28,13 +35,6 @@ public class SyncSet<T> : SyncObject, ISet<T>
|
||||
public int Count => objects.Count;
|
||||
public bool IsReadOnly => !IsWritable();
|
||||
|
||||
public enum Operation : byte
|
||||
{
|
||||
OP_ADD,
|
||||
OP_REMOVE,
|
||||
OP_CLEAR
|
||||
}
|
||||
|
||||
struct Change
|
||||
{
|
||||
internal Operation operation;
|
||||
|
Loading…
Reference in New Issue
Block a user