Example #1
0
 public MapCreator(Settings settings,
                   MapParser mapParser,
                   MapObjectsManager mapObjectsManager,
                   TankSpawner tankSpawner,
                   BonusSpawner bonusSpawner,
                   MapSettingsManager mapSettingsManager)
 {
     _settings           = settings;
     _mapParser          = mapParser;
     _mapObjectsManager  = mapObjectsManager;
     _tankSpawner        = tankSpawner;
     _bonusSpawner       = bonusSpawner;
     _mapSettingsManager = mapSettingsManager;
 }
Example #2
0
 public static void Add(this MapObjectsManager mapObjects, float x, float y, MapObjectKind objectKind)
 {
     mapObjects.Add(new Vector2(x, y), objectKind);
 }