Beispiel #1
0
 public void AddShip(Ship ship)
 {
     _ships.Add(ship);
 }
 /// <summary>
 /// Happens when an actual ship is spawned
 /// </summary>
 public void NewPlayerConnected(string playerName)
 {
     var ship = new Ship {Name = playerName, X = 50, Y = 50};
     ship.Id = Context.ConnectionId;
     Game.Instance.AddShip(ship);
 }