Beispiel #1
0
        public static T Create <T>(IMapGenerator <T> mapCreationStrategy) where T : IMap
        {
            if (mapCreationStrategy == null)
            {
                Debug.LogError(nameof(mapCreationStrategy) + "Map creation strategy cannot be null");
            }

            return(mapCreationStrategy.CreateMap());
        }
Beispiel #2
0
 public IMap GetMap(int width, int heigth, int countPanzer)
 {
     return(mapGenerator.CreateMap(width, heigth, countPanzer));
 }