Esempio n. 1
0
 public void OnSetPosition(int sessionID, byte position, string player)
 {
     lock (this._locker)
     {
         if (this._positions[position] == "")
         {
             FourPlayerSession client = base.GetClient(sessionID) as FourPlayerSession;
             if (client.Position != 0)
             {
                 this.SetPosition(client.Position, "");
             }
             this.SetPosition(position, player);
             client.Position = position;
             base.Send(sessionID, FourPlayerServerHelper.SetPositionSuccess(position));
         }
     }
 }
 internal void SetPositionSuccess(int sessionID, byte position)
 {
     base.Send(sessionID, FourPlayerServerHelper.SetPositionSuccess(position));
 }