public void newFloor(StaticGod god) { KarceroDunGen.clearEnemies(god); getPlayer(god).get <FovComp>().fovFow.clearAll(); this.genDungeon(god); this.genEnemies(god); this.genStair(god); this.placePlayer(god); // FIXME: do not be dependent on RotEntityList or provide a safe way (god.gameCx.entities as RotEntityList).setIndex(0); }
public static void afterInit(StaticGod god) { var gen = new KarceroDunGen(); god.rules.add(new Rules.StairRule(gen, god)); // This should be called after actors are set up so that components work gen.newFloor(god); var e = god.scene.CreateEntity(EntityNames.debugDungeon); e.add(new DebugDungeonComp() { gen = gen, god = god }); // EpUiTestScene.testEpUi(god.scene); }