Exemplo n.º 1
0
 public GameController()
 {
     gameRepository             = Context.gameRepository;
     userRepository             = Context.userRepository;
     islandRepository           = Context.islandRepository;
     userGamePropertyRepository = Context.userGamePropertyRepository;
 }
Exemplo n.º 2
0
        public bool ChangeName(string newName)
        {
            IslandRepository islandRepository = Context.islandRepository;

            if (islandRepository.GetAllIslands(Game).Select(b => b.Name).Contains(newName))
            {
                return(true);
            }
            Name = newName;
            return(false);
        }