示例#1
0
 private void bq_Result(object sender, BuyPropertyEventArgs e)
 {
     if (e.Bought)
     {
         string msg = e.PropertyIndex + Message.DELIMETER + localPlayer.PlayerGUID;
         comm.Send(new Message(Message.Type.Buy, Encoding.UTF8.GetBytes(msg)).ToBytes());
         PropertyBought(e.PropertyIndex, localPlayer.PlayerGUID);
     }
     myBoard.Dice.ToggleEndTurnEnabled(true);
 }
示例#2
0
 private void OnResult(BuyPropertyEventArgs e)
 {
     Result(this, e);
 }
 private void OnResult(BuyPropertyEventArgs e)
 {
     Result(this, e);
 }
 private void bq_Result(object sender, BuyPropertyEventArgs e)
 {
     if (e.Bought)
     {
         string msg = e.PropertyIndex + Message.DELIMETER + localPlayer.PlayerGUID;
         comm.Send(new Message(Message.Type.Buy, Encoding.UTF8.GetBytes(msg)).ToBytes());
         PropertyBought(e.PropertyIndex, localPlayer.PlayerGUID);
     }
     myBoard.Dice.ToggleEndTurnEnabled(true);
 }