Ejemplo n.º 1
0
 public void UseCell(Cell cell)
 {
     if (Program.lobby.mainPlayer.shoot && shipChance == 0)
     {
         byte[] shot = CommandConverter.ShotToBytes(2, new int[] { cell.Position.X, cell.Position.Y });
         Program.lobby.Send(shot);
         Program.lobby.mainPlayer.shoot = false;
     }
 }
Ejemplo n.º 2
0
 public void UseChat(InputField field)
 {
     Program.lobby.Send(CommandConverter.StringToBytes($"{Program.lobby.mainPlayer.nikName}: {field.Text}"));
 }