void Start() { gmgr = this; Data.Init(); PrefabService.Init(); GalaxyCreator.CreateGalaxy(); LoadScene(); Turner.TimeTrigger += TurnUpdate; Turner.GoStream(); }
/// <summary> /// Initializes a new instance of the <see cref="LevelBuilder" /> class. /// </summary> /// <param name="prefabService">The prefab service.</param> /// <param name="encounterService">The encounter service.</param> /// <param name="randomization">The randomization</param> public LevelBuilder( PrefabService prefabService, EncountersService encounterService, IRandomization randomization) { PlayerStart = new Pos2D(0, 0); _prefabService = prefabService; _encountersService = encounterService; _randomization = randomization; _cells = new Dictionary <Pos2D, GameCell>(); _cellRoomId = new Dictionary <Pos2D, Guid>(); _roomPrefabs = new Dictionary <Guid, PrefabData>(); _roomInstructions = new Dictionary <Guid, LevelAssemblyInstruction>(); _terrainObjects = new Dictionary <char, GameObjectType>(); PopulateObjectDictionary(); }
/// <summary> /// Initializes a new instance of the <see cref="LevelGenerationService" /> class. /// </summary> /// <param name="prefabService">The prefab service.</param> /// <param name="encounterService">The encounter service.</param> public LevelGenerationService(PrefabService prefabService, EncountersService encounterService, IRandomization randomization) { _prefabService = prefabService; _encounterService = encounterService; _randomization = randomization; }