Esempio n. 1
0
 protected virtual void Gate_OnClientEnterGateInQueueNotify(ClientEnterGateInQueueNotify notify)
 {
     event_OnGateQueueUpdated?.Invoke(notify);
     if (notify.IsEnetered)
     {
         this.last_EnterGateResponse.s2c_code           = ClientEnterGateResponse.CODE_OK;
         this.last_EnterGateResponse.s2c_connectHost    = notify.s2c_connectHost;
         this.last_EnterGateResponse.s2c_connectPort    = notify.s2c_connectPort;
         this.last_EnterGateResponse.s2c_connectToken   = notify.s2c_connectToken;
         this.last_EnterGateResponse.s2c_lastLoginToken = notify.s2c_lastLoginToken;
         this.event_OnGateEntered?.Invoke(last_EnterGateResponse);
         if (this.gate_client.IsConnected)
         {
             gate_client.Disconnect();
         }
     }
 }
Esempio n. 2
0
 protected virtual void on_gate_in_queue(ClientEnterGateInQueueNotify ntf)
 {
     this.net_status.Value = $"排队中: 人数:{ntf.QueueIndex} 预计时间:{ntf.ExpectTime}";
 }