コード例 #1
0
        private void OnMessage(Message _message)
        {
            switch (_message.type)
            {
                #region [Section] [Case] Message.Type.GiveUserInformation
            case Message.Type.GiveUserInformation:
                this.OnGiveUserInformation(_message);
                break;

                #endregion
                #region [Section] [Case] Message.Type.Ready
            case Message.Type.Ready:
                this.OnClientReady(_message);
                break;

                #endregion
                #region [Section] [Case] Message.Type.RPCMessage
            case Message.Type.RPCMessage:
                this.OnRPCMessage(_message);
                break;

                #endregion
                #region [Section] [Case] Message.Type.Tick
            case Message.Type.Tick:
                this.OnPlayerTick(_message);
                break;

                #endregion
                #region [Section] [Case] Message.Type.ConsoleCommand
            case Message.Type.ConsoleCommand:
                ConsoleNetwork.OnClientCommand(_message);
                break;
                #endregion
            }
        }
コード例 #2
0
 private void Database_Initialization()
 {
     DefaultMessages.Load();
     RPCNetwork.Load();
     ConsoleNetwork.Load();
 }