Beispiel #1
0
        protected virtual void PopulateDungeonLevel(Roguelike.TileContainers.GameLevel level)
        {
            var lg         = new LootGenerator(Container);
            var levelIndex = level.Index;
            var loot       = lg.GetRandomEquipment(EquipmentKind.Weapon, levelIndex, null);

            loot.DungeonNodeIndex = levelIndex;
            level.SetTile(loot, level.GetFirstEmptyPoint().Value);
        }
Beispiel #2
0
 protected virtual void OnLevelGenerated(Roguelike.TileContainers.GameLevel level)
 {
     level.OnGenerationDone();
     //level.GeneratorNodes[0].Reveal(true, true);
 }