コード例 #1
0
 public void Initialize(ILayoutGenerator layoutGenerator, IZoneGenerator zoneGenerator, int seed, int numberOfLevels, ControlMode mode)
 {
     currentSeed          = seed;
     this.numberOfLevels  = numberOfLevels;
     mapGenerationManager = Locator.Get <MapGenerationManager>();
     mapGenerationManager.SetLayoutGenerator(layoutGenerator);
     mapGenerationManager.SetZoneGenerator(zoneGenerator);
     Initialize(mode);
 }
コード例 #2
0
        public void Initialize(ControlMode mode)
        {
            floorNumber          = 0;
            gameState            = GameState.Loading;
            mapManager           = Locator.Get <MapManager>();
            turnManager          = Locator.Get <TurnManager>();
            mapGenerationManager = Locator.Get <MapGenerationManager>();
            entityManager        = Locator.Get <EntityManager>();
            cameraManager        = Locator.Get <CameraManager>();
            Locator.Get <VisibilityManager>();
            InitializeMapRenderer();
            InitializePlayerCharacter(mode);

            LoadNewMap();
            StartUpTurnSystem();

            events.TriggerEvent(new NewGameStartsEvent());
        }