Ejemplo n.º 1
0
 public void AddComputer()
 {
     var playerId = ShortGuid.NewShortGuid();
     Players[playerId] = new Player
     {
         PlayerPublicId = Players.Count,
         Connected = true,
         Humain = false,
         Name = _computers.Pick()
     };
     AddSnapshotInfo();
 }
Ejemplo n.º 2
0
 public void AddPlayer(string email)
 {
     var playerId = ShortGuid.NewShortGuid();
     Players[playerId] = new Player
     {
         PlayerPublicId = Players.Count,
         Connected = false,
         Humain = true,
         Email = email
     };
     Infos[playerId] = new List<GameInfoForPlayer>();
     AddSnapshotInfo();
 }