From 86302503da01ec0f8db16eab173d168d7af39874 Mon Sep 17 00:00:00 2001 From: MrGadget <9826063+MrGadget1024@users.noreply.github.com> Date: Tue, 15 Oct 2024 06:02:50 -0400 Subject: [PATCH] Code Cleanup: SyncSet Consistent order of things --- Assets/Mirror/Core/SyncSet.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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;