diff --git a/Assets/Mirror/Core/SyncSet.cs b/Assets/Mirror/Core/SyncSet.cs index 6ab1f3b88..7e9fee79d 100644 --- a/Assets/Mirror/Core/SyncSet.cs +++ b/Assets/Mirror/Core/SyncSet.cs @@ -15,6 +15,13 @@ public class SyncSet : SyncObject, ISet /// This is called BEFORE the data is cleared public Action OnClear; + public enum Operation : byte + { + OP_ADD, + OP_REMOVE, + OP_CLEAR + } + /// /// This is called for all changes to the Set. /// For OP_ADD, T is the NEW value of the entry. @@ -28,13 +35,6 @@ public class SyncSet : SyncObject, ISet public int Count => objects.Count; public bool IsReadOnly => !IsWritable(); - public enum Operation : byte - { - OP_ADD, - OP_REMOVE, - OP_CLEAR - } - struct Change { internal Operation operation;