private void LazyCreateWeGameMsgServer() { if (_msgServer == null) { _msgServer = new MessageDispatcherServer(); _msgServer.Init("WeGame.Terraria.Message.Server"); _msgServer.OnMessage += OnWegameMessage; _msgServer.OnIPCClientAccess += OnIPCClientAccess; CoreSocialModule.OnTick += _msgServer.Tick; _msgServer.Start(); } }
private void LazyCreateWeGameMsgServer() { if (this._msgServer != null) { return; } this._msgServer = new MessageDispatcherServer(); this._msgServer.Init("WeGame.Terraria.Message.Server"); this._msgServer.OnMessage += new Action <IPCMessage>(this.OnWegameMessage); this._msgServer.OnIPCClientAccess += new Action(this.OnIPCClientAccess); CoreSocialModule.OnTick += new Action(this._msgServer.Tick); this._msgServer.Start(); }