diff --git a/Mirror/Runtime/NetworkBehaviour.cs b/Mirror/Runtime/NetworkBehaviour.cs index cabb71f5d..a1508e840 100644 --- a/Mirror/Runtime/NetworkBehaviour.cs +++ b/Mirror/Runtime/NetworkBehaviour.cs @@ -186,13 +186,6 @@ public virtual bool InvokeSyncEvent(int cmdHash, NetworkReader reader) public delegate void CmdDelegate(NetworkBehaviour obj, NetworkReader reader); - public enum UNetInvokeType - { - Command, - ClientRpc, - SyncEvent - } - protected class Invoker { public UNetInvokeType invokeType; diff --git a/Mirror/Runtime/UNetwork.cs b/Mirror/Runtime/UNetwork.cs index af3d607d6..e39dab25f 100644 --- a/Mirror/Runtime/UNetwork.cs +++ b/Mirror/Runtime/UNetwork.cs @@ -12,6 +12,14 @@ namespace Mirror // Handles requests to unspawn objects on the client public delegate void UnSpawnDelegate(GameObject spawned); + // invoke type for Cmd/Rpc/SyncEvents + public enum UNetInvokeType + { + Command, + ClientRpc, + SyncEvent + } + // built-in system network messages // original HLAPI uses short, so let's keep short to not break packet header etc. // => use .ToString() to get the field name from the field value