예제 #1
0
 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();
     }
 }
예제 #2
0
 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();
 }