mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
UNetInvokeType moved to UNetwork.cs so that NetworkBehaviour is less cluttered and so that it can be used from other classes more easily.
This commit is contained in:
parent
5bf7244533
commit
4c2fdc51bf
@ -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;
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user