mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
NetworkBehaviour.InvokeHandlerDelegateOfType renamed to InvokeHandlerDelegate for simplicity
This commit is contained in:
parent
e573acd33e
commit
ba6e34ab9b
@ -104,7 +104,7 @@ protected void SendCommandInternal(string cmdName, NetworkWriter writer, int cha
|
|||||||
[EditorBrowsable(EditorBrowsableState.Never)]
|
[EditorBrowsable(EditorBrowsableState.Never)]
|
||||||
public virtual bool InvokeCommand(int cmdHash, NetworkReader reader)
|
public virtual bool InvokeCommand(int cmdHash, NetworkReader reader)
|
||||||
{
|
{
|
||||||
return InvokeHandlerDelegateOfType(cmdHash, UNetInvokeType.Command, reader);
|
return InvokeHandlerDelegate(cmdHash, UNetInvokeType.Command, reader);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ----------------------------- Client RPCs --------------------------------
|
// ----------------------------- Client RPCs --------------------------------
|
||||||
@ -152,7 +152,7 @@ protected void SendTargetRPCInternal(NetworkConnection conn, string rpcName, Net
|
|||||||
[EditorBrowsable(EditorBrowsableState.Never)]
|
[EditorBrowsable(EditorBrowsableState.Never)]
|
||||||
public virtual bool InvokeRPC(int rpcHash, NetworkReader reader)
|
public virtual bool InvokeRPC(int rpcHash, NetworkReader reader)
|
||||||
{
|
{
|
||||||
return InvokeHandlerDelegateOfType(rpcHash, UNetInvokeType.ClientRpc, reader);
|
return InvokeHandlerDelegate(rpcHash, UNetInvokeType.ClientRpc, reader);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ----------------------------- Sync Events --------------------------------
|
// ----------------------------- Sync Events --------------------------------
|
||||||
@ -179,7 +179,7 @@ protected void SendEventInternal(string eventName, NetworkWriter writer, int cha
|
|||||||
[EditorBrowsable(EditorBrowsableState.Never)]
|
[EditorBrowsable(EditorBrowsableState.Never)]
|
||||||
public virtual bool InvokeSyncEvent(int eventHash, NetworkReader reader)
|
public virtual bool InvokeSyncEvent(int eventHash, NetworkReader reader)
|
||||||
{
|
{
|
||||||
return InvokeHandlerDelegateOfType(eventHash, UNetInvokeType.SyncEvent, reader);
|
return InvokeHandlerDelegate(eventHash, UNetInvokeType.SyncEvent, reader);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ----------------------------- Code Gen Path Helpers --------------------------------
|
// ----------------------------- Code Gen Path Helpers --------------------------------
|
||||||
@ -259,7 +259,7 @@ internal static bool GetInvokerFunctionForHash(int cmdHash, UNetInvokeType invok
|
|||||||
}
|
}
|
||||||
|
|
||||||
// InvokeCmd/Rpc/SyncEventDelegate can all use the same function here
|
// InvokeCmd/Rpc/SyncEventDelegate can all use the same function here
|
||||||
internal bool InvokeHandlerDelegateOfType(int cmdHash, UNetInvokeType invokeType, NetworkReader reader)
|
internal bool InvokeHandlerDelegate(int cmdHash, UNetInvokeType invokeType, NetworkReader reader)
|
||||||
{
|
{
|
||||||
Invoker invoker;
|
Invoker invoker;
|
||||||
if (GetInvokerForHash(cmdHash, invokeType, out invoker) &&
|
if (GetInvokerForHash(cmdHash, invokeType, out invoker) &&
|
||||||
|
Loading…
Reference in New Issue
Block a user