internal bool InvokeSyncListDelegate(int cmdHash, NetworkReader reader)
        {
            bool result;

            if (!NetworkBehaviour.s_CmdHandlerDelegates.ContainsKey(cmdHash))
            {
                result = false;
            }
            else
            {
                NetworkBehaviour.Invoker invoker = NetworkBehaviour.s_CmdHandlerDelegates[cmdHash];
                if (invoker.invokeType != NetworkBehaviour.UNetInvokeType.SyncList)
                {
                    result = false;
                }
                else if (base.GetType() != invoker.invokeClass)
                {
                    result = false;
                }
                else
                {
                    invoker.invokeFunction(this, reader);
                    result = true;
                }
            }
            return(result);
        }
        internal bool InvokeRpcDelegate(int cmdHash, NetworkReader reader)
        {
            bool result;

            if (!NetworkBehaviour.s_CmdHandlerDelegates.ContainsKey(cmdHash))
            {
                result = false;
            }
            else
            {
                NetworkBehaviour.Invoker invoker = NetworkBehaviour.s_CmdHandlerDelegates[cmdHash];
                if (invoker.invokeType != NetworkBehaviour.UNetInvokeType.ClientRpc)
                {
                    result = false;
                }
                else
                {
                    if (base.GetType() != invoker.invokeClass)
                    {
                        if (!base.GetType().IsSubclassOf(invoker.invokeClass))
                        {
                            return(false);
                        }
                    }
                    invoker.invokeFunction(this, reader);
                    result = true;
                }
            }
            return(result);
        }
 internal bool InvokeSyncListDelegate(int cmdHash, NetworkReader reader)
 {
     if (!NetworkBehaviour.s_CmdHandlerDelegates.ContainsKey(cmdHash))
     {
         return(false);
     }
     NetworkBehaviour.Invoker cmdHandlerDelegate = NetworkBehaviour.s_CmdHandlerDelegates[cmdHash];
     if (cmdHandlerDelegate.invokeType != NetworkBehaviour.UNetInvokeType.SyncList || this.GetType() != cmdHandlerDelegate.invokeClass)
     {
         return(false);
     }
     cmdHandlerDelegate.invokeFunction(this, reader);
     return(true);
 }
 internal bool InvokeSyncEventDelegate(int cmdHash, NetworkReader reader)
 {
     if (!NetworkBehaviour.s_CmdHandlerDelegates.ContainsKey(cmdHash))
     {
         return(false);
     }
     NetworkBehaviour.Invoker invoker = NetworkBehaviour.s_CmdHandlerDelegates[cmdHash];
     if (invoker.invokeType != NetworkBehaviour.UNetInvokeType.SyncEvent)
     {
         return(false);
     }
     invoker.invokeFunction(this, reader);
     return(true);
 }
 internal bool InvokeCommandDelegate(int cmdHash, NetworkReader reader)
 {
     if (!NetworkBehaviour.s_CmdHandlerDelegates.ContainsKey(cmdHash))
     {
         return(false);
     }
     NetworkBehaviour.Invoker invoker = NetworkBehaviour.s_CmdHandlerDelegates[cmdHash];
     if (invoker.invokeType != NetworkBehaviour.UNetInvokeType.Command)
     {
         return(false);
     }
     if (base.GetType() != invoker.invokeClass)
     {
         if (!base.GetType().IsSubclassOf(invoker.invokeClass))
         {
             return(false);
         }
     }
     invoker.invokeFunction(this, reader);
     return(true);
 }