Ejemplo n.º 1
0
        public static GameInstance NewGameInstance(GameDefinition definition, string name, string password)
        {
            GameInstance gameInstance = new GameInstance(definition);

            GameInstanceDAO dao = new GameInstanceDAO();

            dao.AddGameInstance(gameInstance, name, password);

            Games.Add(gameInstance.Id, gameInstance);
            return(gameInstance);
        }