Exemplo n.º 1
0
        public static void Main()
        {
            worldGeneratorController = CreateWorldGeneratorController();
            worldGeneratorRepository = CreateWorldGeneratorRepository();
            Dictionary <KeyValuePair <int, int>, Terrain> terrainDictionary = worldGeneratorRepository.GenerateWorld();

            worldGeneratorController.ShowWorldMap(terrainDictionary);
        }
Exemplo n.º 2
0
        private static WorldGeneratorController CreateWorldGeneratorController()
        {
            if (worldGeneratorController == null)
            {
                worldGeneratorController = new WorldGeneratorController();
            }

            return(worldGeneratorController);
        }