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 } }
private void Database_Initialization() { DefaultMessages.Load(); RPCNetwork.Load(); ConsoleNetwork.Load(); }