NetworkBehaviour.InvokeHandlerDelegateOfType renamed to InvokeHandlerDelegate for simplicity

This commit is contained in:
vis2k 2018-12-30 18:36:21 +01:00
parent e573acd33e
commit ba6e34ab9b

View File

@ -104,7 +104,7 @@ protected void SendCommandInternal(string cmdName, NetworkWriter writer, int cha
[EditorBrowsable(EditorBrowsableState.Never)]
public virtual bool InvokeCommand(int cmdHash, NetworkReader reader)
{
return InvokeHandlerDelegateOfType(cmdHash, UNetInvokeType.Command, reader);
return InvokeHandlerDelegate(cmdHash, UNetInvokeType.Command, reader);
}
// ----------------------------- Client RPCs --------------------------------
@ -152,7 +152,7 @@ protected void SendTargetRPCInternal(NetworkConnection conn, string rpcName, Net
[EditorBrowsable(EditorBrowsableState.Never)]
public virtual bool InvokeRPC(int rpcHash, NetworkReader reader)
{
return InvokeHandlerDelegateOfType(rpcHash, UNetInvokeType.ClientRpc, reader);
return InvokeHandlerDelegate(rpcHash, UNetInvokeType.ClientRpc, reader);
}
// ----------------------------- Sync Events --------------------------------
@ -179,7 +179,7 @@ protected void SendEventInternal(string eventName, NetworkWriter writer, int cha
[EditorBrowsable(EditorBrowsableState.Never)]
public virtual bool InvokeSyncEvent(int eventHash, NetworkReader reader)
{
return InvokeHandlerDelegateOfType(eventHash, UNetInvokeType.SyncEvent, reader);
return InvokeHandlerDelegate(eventHash, UNetInvokeType.SyncEvent, reader);
}
// ----------------------------- 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
internal bool InvokeHandlerDelegateOfType(int cmdHash, UNetInvokeType invokeType, NetworkReader reader)
internal bool InvokeHandlerDelegate(int cmdHash, UNetInvokeType invokeType, NetworkReader reader)
{
Invoker invoker;
if (GetInvokerForHash(cmdHash, invokeType, out invoker) &&