Exemplo n.º 1
0
 public void UpdateShipLocation(ushort id, float x, float y, float rot)
 {
     Ship ship;
     if (!VisibleShips.TryGetValue(id, out ship))
     {
         ship = new Ship { Id = id };
         VisibleShips.Add(id, ship);
     }
     ship.X = x;
     ship.Y = y;
     ship.Rot = rot;
 }
Exemplo n.º 2
0
 public void AddShip(Ship ship)
 {
     VisibleShips.Add(ship.Id, ship);
 }