public PlayerGameModel()
 {
     Game   = new GameModel();
     Player = new PlayerModel();
     Map    = String.Empty;
 }
 public PlayerGameModel(GameModel game, PlayerModel player)
 {
     Game   = game ?? throw new ArgumentNullException(nameof(game));
     Player = player ?? throw new ArgumentNullException(nameof(player));
     Map    = DisplayStringFactory.MapName(Game.Game.Map.Name);
 }
Ejemplo n.º 3
0
 public PlayerModel(GameModel parent, Player obj)
 {
     Parent = parent ?? throw new ArgumentNullException(nameof(parent));
     Player = obj ?? throw new ArgumentNullException(nameof(obj));
     UpdateCollectionsSafe();
 }