idlerpg.sh 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +171 -0
- package/dist/affix/AffixRegistry.d.ts +68 -0
- package/dist/affix/AffixRegistry.d.ts.map +1 -0
- package/dist/affix/AffixRegistry.js +245 -0
- package/dist/affix/AffixRegistry.js.map +1 -0
- package/dist/affix/PluginLoader.d.ts +66 -0
- package/dist/affix/PluginLoader.d.ts.map +1 -0
- package/dist/affix/PluginLoader.js +321 -0
- package/dist/affix/PluginLoader.js.map +1 -0
- package/dist/affix/builtin.d.ts +6 -0
- package/dist/affix/builtin.d.ts.map +1 -0
- package/dist/affix/builtin.js +311 -0
- package/dist/affix/builtin.js.map +1 -0
- package/dist/affix/index.d.ts +8 -0
- package/dist/affix/index.d.ts.map +1 -0
- package/dist/affix/index.js +11 -0
- package/dist/affix/index.js.map +1 -0
- package/dist/affix/types.d.ts +152 -0
- package/dist/affix/types.d.ts.map +1 -0
- package/dist/affix/types.js +8 -0
- package/dist/affix/types.js.map +1 -0
- package/dist/ai/PlayKitClient.d.ts +208 -0
- package/dist/ai/PlayKitClient.d.ts.map +1 -0
- package/dist/ai/PlayKitClient.js +721 -0
- package/dist/ai/PlayKitClient.js.map +1 -0
- package/dist/ai/index.d.ts +5 -0
- package/dist/ai/index.d.ts.map +1 -0
- package/dist/ai/index.js +8 -0
- package/dist/ai/index.js.map +1 -0
- package/dist/app/App.d.ts +85 -0
- package/dist/app/App.d.ts.map +1 -0
- package/dist/app/App.js +296 -0
- package/dist/app/App.js.map +1 -0
- package/dist/app/EventBus.d.ts +222 -0
- package/dist/app/EventBus.d.ts.map +1 -0
- package/dist/app/EventBus.js +88 -0
- package/dist/app/EventBus.js.map +1 -0
- package/dist/app/Keybind.d.ts +83 -0
- package/dist/app/Keybind.d.ts.map +1 -0
- package/dist/app/Keybind.js +184 -0
- package/dist/app/Keybind.js.map +1 -0
- package/dist/app/Router.d.ts +123 -0
- package/dist/app/Router.d.ts.map +1 -0
- package/dist/app/Router.js +142 -0
- package/dist/app/Router.js.map +1 -0
- package/dist/app/ScreenManager.d.ts +97 -0
- package/dist/app/ScreenManager.d.ts.map +1 -0
- package/dist/app/ScreenManager.js +216 -0
- package/dist/app/ScreenManager.js.map +1 -0
- package/dist/app/index.d.ts +14 -0
- package/dist/app/index.d.ts.map +1 -0
- package/dist/app/index.js +19 -0
- package/dist/app/index.js.map +1 -0
- package/dist/app/screens/BaseScreen.d.ts +101 -0
- package/dist/app/screens/BaseScreen.d.ts.map +1 -0
- package/dist/app/screens/BaseScreen.js +132 -0
- package/dist/app/screens/BaseScreen.js.map +1 -0
- package/dist/app/screens/CharacterCreationScreen.d.ts +42 -0
- package/dist/app/screens/CharacterCreationScreen.d.ts.map +1 -0
- package/dist/app/screens/CharacterCreationScreen.js +467 -0
- package/dist/app/screens/CharacterCreationScreen.js.map +1 -0
- package/dist/app/screens/CombatScreen.d.ts +30 -0
- package/dist/app/screens/CombatScreen.d.ts.map +1 -0
- package/dist/app/screens/CombatScreen.js +309 -0
- package/dist/app/screens/CombatScreen.js.map +1 -0
- package/dist/app/screens/DialogScreen.d.ts +29 -0
- package/dist/app/screens/DialogScreen.d.ts.map +1 -0
- package/dist/app/screens/DialogScreen.js +295 -0
- package/dist/app/screens/DialogScreen.js.map +1 -0
- package/dist/app/screens/ExploreScreen.d.ts +50 -0
- package/dist/app/screens/ExploreScreen.d.ts.map +1 -0
- package/dist/app/screens/ExploreScreen.js +308 -0
- package/dist/app/screens/ExploreScreen.js.map +1 -0
- package/dist/app/screens/HelpScreen.d.ts +12 -0
- package/dist/app/screens/HelpScreen.d.ts.map +1 -0
- package/dist/app/screens/HelpScreen.js +155 -0
- package/dist/app/screens/HelpScreen.js.map +1 -0
- package/dist/app/screens/InventoryScreen.d.ts +27 -0
- package/dist/app/screens/InventoryScreen.d.ts.map +1 -0
- package/dist/app/screens/InventoryScreen.js +326 -0
- package/dist/app/screens/InventoryScreen.js.map +1 -0
- package/dist/app/screens/PrologueScreen.d.ts +24 -0
- package/dist/app/screens/PrologueScreen.d.ts.map +1 -0
- package/dist/app/screens/PrologueScreen.js +176 -0
- package/dist/app/screens/PrologueScreen.js.map +1 -0
- package/dist/app/screens/TitleScreen.d.ts +42 -0
- package/dist/app/screens/TitleScreen.d.ts.map +1 -0
- package/dist/app/screens/TitleScreen.js +380 -0
- package/dist/app/screens/TitleScreen.js.map +1 -0
- package/dist/app/screens/TravelScreen.d.ts +22 -0
- package/dist/app/screens/TravelScreen.d.ts.map +1 -0
- package/dist/app/screens/TravelScreen.js +122 -0
- package/dist/app/screens/TravelScreen.js.map +1 -0
- package/dist/app/screens/index.d.ts +14 -0
- package/dist/app/screens/index.d.ts.map +1 -0
- package/dist/app/screens/index.js +17 -0
- package/dist/app/screens/index.js.map +1 -0
- package/dist/commands/CommandRegistry.d.ts +91 -0
- package/dist/commands/CommandRegistry.d.ts.map +1 -0
- package/dist/commands/CommandRegistry.js +159 -0
- package/dist/commands/CommandRegistry.js.map +1 -0
- package/dist/commands/index.d.ts +7 -0
- package/dist/commands/index.d.ts.map +1 -0
- package/dist/commands/index.js +10 -0
- package/dist/commands/index.js.map +1 -0
- package/dist/core/Actor.d.ts +103 -0
- package/dist/core/Actor.d.ts.map +1 -0
- package/dist/core/Actor.js +409 -0
- package/dist/core/Actor.js.map +1 -0
- package/dist/core/Combat.d.ts +37 -0
- package/dist/core/Combat.d.ts.map +1 -0
- package/dist/core/Combat.js +294 -0
- package/dist/core/Combat.js.map +1 -0
- package/dist/core/DungeonRunner.d.ts +169 -0
- package/dist/core/DungeonRunner.d.ts.map +1 -0
- package/dist/core/DungeonRunner.js +627 -0
- package/dist/core/DungeonRunner.js.map +1 -0
- package/dist/core/Game.d.ts +133 -0
- package/dist/core/Game.d.ts.map +1 -0
- package/dist/core/Game.js +644 -0
- package/dist/core/Game.js.map +1 -0
- package/dist/core/IdleCombat.d.ts +61 -0
- package/dist/core/IdleCombat.d.ts.map +1 -0
- package/dist/core/IdleCombat.js +461 -0
- package/dist/core/IdleCombat.js.map +1 -0
- package/dist/core/IdleGameManager.d.ts +198 -0
- package/dist/core/IdleGameManager.d.ts.map +1 -0
- package/dist/core/IdleGameManager.js +688 -0
- package/dist/core/IdleGameManager.js.map +1 -0
- package/dist/core/IdleSaveManager.d.ts +109 -0
- package/dist/core/IdleSaveManager.d.ts.map +1 -0
- package/dist/core/IdleSaveManager.js +296 -0
- package/dist/core/IdleSaveManager.js.map +1 -0
- package/dist/core/NewGameFlowManager.d.ts +64 -0
- package/dist/core/NewGameFlowManager.d.ts.map +1 -0
- package/dist/core/NewGameFlowManager.js +153 -0
- package/dist/core/NewGameFlowManager.js.map +1 -0
- package/dist/core/Player.d.ts +65 -0
- package/dist/core/Player.d.ts.map +1 -0
- package/dist/core/Player.js +261 -0
- package/dist/core/Player.js.map +1 -0
- package/dist/core/RoomHandlers.d.ts +75 -0
- package/dist/core/RoomHandlers.d.ts.map +1 -0
- package/dist/core/RoomHandlers.js +383 -0
- package/dist/core/RoomHandlers.js.map +1 -0
- package/dist/core/SaveManager.d.ts +84 -0
- package/dist/core/SaveManager.d.ts.map +1 -0
- package/dist/core/SaveManager.js +281 -0
- package/dist/core/SaveManager.js.map +1 -0
- package/dist/core/SaveMigration.d.ts +69 -0
- package/dist/core/SaveMigration.d.ts.map +1 -0
- package/dist/core/SaveMigration.js +408 -0
- package/dist/core/SaveMigration.js.map +1 -0
- package/dist/core/StateAdapter.d.ts +79 -0
- package/dist/core/StateAdapter.d.ts.map +1 -0
- package/dist/core/StateAdapter.js +397 -0
- package/dist/core/StateAdapter.js.map +1 -0
- package/dist/core/Team.d.ts +145 -0
- package/dist/core/Team.d.ts.map +1 -0
- package/dist/core/Team.js +371 -0
- package/dist/core/Team.js.map +1 -0
- package/dist/core/TeamCombat.d.ts +88 -0
- package/dist/core/TeamCombat.d.ts.map +1 -0
- package/dist/core/TeamCombat.js +405 -0
- package/dist/core/TeamCombat.js.map +1 -0
- package/dist/core/TeamDungeonRunner.d.ts +186 -0
- package/dist/core/TeamDungeonRunner.d.ts.map +1 -0
- package/dist/core/TeamDungeonRunner.js +758 -0
- package/dist/core/TeamDungeonRunner.js.map +1 -0
- package/dist/core/TimeManager.d.ts +114 -0
- package/dist/core/TimeManager.d.ts.map +1 -0
- package/dist/core/TimeManager.js +318 -0
- package/dist/core/TimeManager.js.map +1 -0
- package/dist/core/index.d.ts +9 -0
- package/dist/core/index.d.ts.map +1 -0
- package/dist/core/index.js +12 -0
- package/dist/core/index.js.map +1 -0
- package/dist/core/timeConstants.d.ts +135 -0
- package/dist/core/timeConstants.d.ts.map +1 -0
- package/dist/core/timeConstants.js +157 -0
- package/dist/core/timeConstants.js.map +1 -0
- package/dist/core/types.d.ts +780 -0
- package/dist/core/types.d.ts.map +1 -0
- package/dist/core/types.js +16 -0
- package/dist/core/types.js.map +1 -0
- package/dist/data/continents/index.d.ts +163 -0
- package/dist/data/continents/index.d.ts.map +1 -0
- package/dist/data/continents/index.js +31 -0
- package/dist/data/continents/index.js.map +1 -0
- package/dist/data/continents/verdantia.d.ts +294 -0
- package/dist/data/continents/verdantia.d.ts.map +1 -0
- package/dist/data/continents/verdantia.js +327 -0
- package/dist/data/continents/verdantia.js.map +1 -0
- package/dist/handlers/DialogHandler.d.ts +95 -0
- package/dist/handlers/DialogHandler.d.ts.map +1 -0
- package/dist/handlers/DialogHandler.js +450 -0
- package/dist/handlers/DialogHandler.js.map +1 -0
- package/dist/handlers/SaveLoadHandler.d.ts +60 -0
- package/dist/handlers/SaveLoadHandler.d.ts.map +1 -0
- package/dist/handlers/SaveLoadHandler.js +187 -0
- package/dist/handlers/SaveLoadHandler.js.map +1 -0
- package/dist/handlers/TitleScreenHandler.d.ts +43 -0
- package/dist/handlers/TitleScreenHandler.d.ts.map +1 -0
- package/dist/handlers/TitleScreenHandler.js +508 -0
- package/dist/handlers/TitleScreenHandler.js.map +1 -0
- package/dist/handlers/WorkshopHandler.d.ts +75 -0
- package/dist/handlers/WorkshopHandler.d.ts.map +1 -0
- package/dist/handlers/WorkshopHandler.js +401 -0
- package/dist/handlers/WorkshopHandler.js.map +1 -0
- package/dist/handlers/index.d.ts +12 -0
- package/dist/handlers/index.d.ts.map +1 -0
- package/dist/handlers/index.js +14 -0
- package/dist/handlers/index.js.map +1 -0
- package/dist/handlers/types.d.ts +34 -0
- package/dist/handlers/types.d.ts.map +1 -0
- package/dist/handlers/types.js +8 -0
- package/dist/handlers/types.js.map +1 -0
- package/dist/i18n/en.d.ts +3 -0
- package/dist/i18n/en.d.ts.map +1 -0
- package/dist/i18n/en.js +130 -0
- package/dist/i18n/en.js.map +1 -0
- package/dist/i18n/index.d.ts +40 -0
- package/dist/i18n/index.d.ts.map +1 -0
- package/dist/i18n/index.js +105 -0
- package/dist/i18n/index.js.map +1 -0
- package/dist/i18n/types.d.ts +133 -0
- package/dist/i18n/types.d.ts.map +1 -0
- package/dist/i18n/types.js +8 -0
- package/dist/i18n/types.js.map +1 -0
- package/dist/i18n/zh.d.ts +3 -0
- package/dist/i18n/zh.d.ts.map +1 -0
- package/dist/i18n/zh.js +130 -0
- package/dist/i18n/zh.js.map +1 -0
- package/dist/instrument.d.ts +8 -0
- package/dist/instrument.d.ts.map +1 -0
- package/dist/instrument.js +33 -0
- package/dist/instrument.js.map +1 -0
- package/dist/main-new.d.ts +12 -0
- package/dist/main-new.d.ts.map +1 -0
- package/dist/main-new.js +32 -0
- package/dist/main-new.js.map +1 -0
- package/dist/main.d.ts +7 -0
- package/dist/main.d.ts.map +1 -0
- package/dist/main.js +2816 -0
- package/dist/main.js.map +1 -0
- package/dist/map/ContinentManager.d.ts +88 -0
- package/dist/map/ContinentManager.d.ts.map +1 -0
- package/dist/map/ContinentManager.js +241 -0
- package/dist/map/ContinentManager.js.map +1 -0
- package/dist/map/DungeonGenerator.d.ts +32 -0
- package/dist/map/DungeonGenerator.d.ts.map +1 -0
- package/dist/map/DungeonGenerator.js +615 -0
- package/dist/map/DungeonGenerator.js.map +1 -0
- package/dist/map/MapGenerator.d.ts +27 -0
- package/dist/map/MapGenerator.d.ts.map +1 -0
- package/dist/map/MapGenerator.js +485 -0
- package/dist/map/MapGenerator.js.map +1 -0
- package/dist/map/index.d.ts +5 -0
- package/dist/map/index.d.ts.map +1 -0
- package/dist/map/index.js +8 -0
- package/dist/map/index.js.map +1 -0
- package/dist/npc/NPCGenerator.d.ts +68 -0
- package/dist/npc/NPCGenerator.d.ts.map +1 -0
- package/dist/npc/NPCGenerator.js +468 -0
- package/dist/npc/NPCGenerator.js.map +1 -0
- package/dist/npc/NPCManager.d.ts +86 -0
- package/dist/npc/NPCManager.d.ts.map +1 -0
- package/dist/npc/NPCManager.js +217 -0
- package/dist/npc/NPCManager.js.map +1 -0
- package/dist/npc/fixedNPCs.d.ts +7 -0
- package/dist/npc/fixedNPCs.d.ts.map +1 -0
- package/dist/npc/fixedNPCs.js +196 -0
- package/dist/npc/fixedNPCs.js.map +1 -0
- package/dist/npc/index.d.ts +9 -0
- package/dist/npc/index.d.ts.map +1 -0
- package/dist/npc/index.js +12 -0
- package/dist/npc/index.js.map +1 -0
- package/dist/npc/traits.d.ts +33 -0
- package/dist/npc/traits.d.ts.map +1 -0
- package/dist/npc/traits.js +795 -0
- package/dist/npc/traits.js.map +1 -0
- package/dist/npc/types.d.ts +193 -0
- package/dist/npc/types.d.ts.map +1 -0
- package/dist/npc/types.js +9 -0
- package/dist/npc/types.js.map +1 -0
- package/dist/quest/QuestManager.d.ts +79 -0
- package/dist/quest/QuestManager.d.ts.map +1 -0
- package/dist/quest/QuestManager.js +273 -0
- package/dist/quest/QuestManager.js.map +1 -0
- package/dist/quest/index.d.ts +6 -0
- package/dist/quest/index.d.ts.map +1 -0
- package/dist/quest/index.js +9 -0
- package/dist/quest/index.js.map +1 -0
- package/dist/quest/types.d.ts +81 -0
- package/dist/quest/types.d.ts.map +1 -0
- package/dist/quest/types.js +8 -0
- package/dist/quest/types.js.map +1 -0
- package/dist/strategy/StrategyExecutor.d.ts +159 -0
- package/dist/strategy/StrategyExecutor.d.ts.map +1 -0
- package/dist/strategy/StrategyExecutor.js +479 -0
- package/dist/strategy/StrategyExecutor.js.map +1 -0
- package/dist/strategy/StrategyParser.d.ts +48 -0
- package/dist/strategy/StrategyParser.d.ts.map +1 -0
- package/dist/strategy/StrategyParser.js +321 -0
- package/dist/strategy/StrategyParser.js.map +1 -0
- package/dist/strategy/defaultStrategy.d.ts +40 -0
- package/dist/strategy/defaultStrategy.d.ts.map +1 -0
- package/dist/strategy/defaultStrategy.js +254 -0
- package/dist/strategy/defaultStrategy.js.map +1 -0
- package/dist/strategy/index.d.ts +8 -0
- package/dist/strategy/index.d.ts.map +1 -0
- package/dist/strategy/index.js +14 -0
- package/dist/strategy/index.js.map +1 -0
- package/dist/tui/ExploreMenu.d.ts +106 -0
- package/dist/tui/ExploreMenu.d.ts.map +1 -0
- package/dist/tui/ExploreMenu.js +282 -0
- package/dist/tui/ExploreMenu.js.map +1 -0
- package/dist/tui/GameUI.d.ts +313 -0
- package/dist/tui/GameUI.d.ts.map +1 -0
- package/dist/tui/GameUI.js +2116 -0
- package/dist/tui/GameUI.js.map +1 -0
- package/dist/tui/GameUIAdapter.d.ts +207 -0
- package/dist/tui/GameUIAdapter.d.ts.map +1 -0
- package/dist/tui/GameUIAdapter.js +1342 -0
- package/dist/tui/GameUIAdapter.js.map +1 -0
- package/dist/tui/Input.d.ts +139 -0
- package/dist/tui/Input.d.ts.map +1 -0
- package/dist/tui/Input.js +278 -0
- package/dist/tui/Input.js.map +1 -0
- package/dist/tui/Menu.d.ts +110 -0
- package/dist/tui/Menu.d.ts.map +1 -0
- package/dist/tui/Menu.js +365 -0
- package/dist/tui/Menu.js.map +1 -0
- package/dist/tui/Screen.d.ts +228 -0
- package/dist/tui/Screen.d.ts.map +1 -0
- package/dist/tui/Screen.js +502 -0
- package/dist/tui/Screen.js.map +1 -0
- package/dist/tui/components/Box.d.ts +36 -0
- package/dist/tui/components/Box.d.ts.map +1 -0
- package/dist/tui/components/Box.js +43 -0
- package/dist/tui/components/Box.js.map +1 -0
- package/dist/tui/components/List.d.ts +69 -0
- package/dist/tui/components/List.d.ts.map +1 -0
- package/dist/tui/components/List.js +136 -0
- package/dist/tui/components/List.js.map +1 -0
- package/dist/tui/components/ProgressBar.d.ts +42 -0
- package/dist/tui/components/ProgressBar.d.ts.map +1 -0
- package/dist/tui/components/ProgressBar.js +75 -0
- package/dist/tui/components/ProgressBar.js.map +1 -0
- package/dist/tui/components/index.d.ts +8 -0
- package/dist/tui/components/index.d.ts.map +1 -0
- package/dist/tui/components/index.js +11 -0
- package/dist/tui/components/index.js.map +1 -0
- package/dist/tui/core/BaseSection.d.ts +98 -0
- package/dist/tui/core/BaseSection.d.ts.map +1 -0
- package/dist/tui/core/BaseSection.js +174 -0
- package/dist/tui/core/BaseSection.js.map +1 -0
- package/dist/tui/core/Component.d.ts +61 -0
- package/dist/tui/core/Component.d.ts.map +1 -0
- package/dist/tui/core/Component.js +32 -0
- package/dist/tui/core/Component.js.map +1 -0
- package/dist/tui/core/Section.d.ts +101 -0
- package/dist/tui/core/Section.d.ts.map +1 -0
- package/dist/tui/core/Section.js +24 -0
- package/dist/tui/core/Section.js.map +1 -0
- package/dist/tui/core/SectionManager.d.ts +108 -0
- package/dist/tui/core/SectionManager.d.ts.map +1 -0
- package/dist/tui/core/SectionManager.js +258 -0
- package/dist/tui/core/SectionManager.js.map +1 -0
- package/dist/tui/core/index.d.ts +9 -0
- package/dist/tui/core/index.d.ts.map +1 -0
- package/dist/tui/core/index.js +12 -0
- package/dist/tui/core/index.js.map +1 -0
- package/dist/tui/index.d.ts +15 -0
- package/dist/tui/index.d.ts.map +1 -0
- package/dist/tui/index.js +23 -0
- package/dist/tui/index.js.map +1 -0
- package/dist/tui/screens/BaseScreen.d.ts +62 -0
- package/dist/tui/screens/BaseScreen.d.ts.map +1 -0
- package/dist/tui/screens/BaseScreen.js +55 -0
- package/dist/tui/screens/BaseScreen.js.map +1 -0
- package/dist/tui/screens/CombatScreen.d.ts +43 -0
- package/dist/tui/screens/CombatScreen.d.ts.map +1 -0
- package/dist/tui/screens/CombatScreen.js +125 -0
- package/dist/tui/screens/CombatScreen.js.map +1 -0
- package/dist/tui/screens/DialogScreen.d.ts +53 -0
- package/dist/tui/screens/DialogScreen.d.ts.map +1 -0
- package/dist/tui/screens/DialogScreen.js +90 -0
- package/dist/tui/screens/DialogScreen.js.map +1 -0
- package/dist/tui/screens/DungeonScreen.d.ts +80 -0
- package/dist/tui/screens/DungeonScreen.d.ts.map +1 -0
- package/dist/tui/screens/DungeonScreen.js +317 -0
- package/dist/tui/screens/DungeonScreen.js.map +1 -0
- package/dist/tui/screens/ExploreScreen.d.ts +69 -0
- package/dist/tui/screens/ExploreScreen.d.ts.map +1 -0
- package/dist/tui/screens/ExploreScreen.js +224 -0
- package/dist/tui/screens/ExploreScreen.js.map +1 -0
- package/dist/tui/screens/SectionScreen.d.ts +84 -0
- package/dist/tui/screens/SectionScreen.d.ts.map +1 -0
- package/dist/tui/screens/SectionScreen.js +156 -0
- package/dist/tui/screens/SectionScreen.js.map +1 -0
- package/dist/tui/screens/TitleScreen.d.ts +40 -0
- package/dist/tui/screens/TitleScreen.d.ts.map +1 -0
- package/dist/tui/screens/TitleScreen.js +253 -0
- package/dist/tui/screens/TitleScreen.js.map +1 -0
- package/dist/tui/screens/TownScreen.d.ts +98 -0
- package/dist/tui/screens/TownScreen.d.ts.map +1 -0
- package/dist/tui/screens/TownScreen.js +370 -0
- package/dist/tui/screens/TownScreen.js.map +1 -0
- package/dist/tui/screens/TravelScreen.d.ts +67 -0
- package/dist/tui/screens/TravelScreen.d.ts.map +1 -0
- package/dist/tui/screens/TravelScreen.js +286 -0
- package/dist/tui/screens/TravelScreen.js.map +1 -0
- package/dist/tui/screens/index.d.ts +8 -0
- package/dist/tui/screens/index.d.ts.map +1 -0
- package/dist/tui/screens/index.js +17 -0
- package/dist/tui/screens/index.js.map +1 -0
- package/dist/tui/sections/ActionsSection.d.ts +71 -0
- package/dist/tui/sections/ActionsSection.d.ts.map +1 -0
- package/dist/tui/sections/ActionsSection.js +184 -0
- package/dist/tui/sections/ActionsSection.js.map +1 -0
- package/dist/tui/sections/DungeonSection.d.ts +65 -0
- package/dist/tui/sections/DungeonSection.d.ts.map +1 -0
- package/dist/tui/sections/DungeonSection.js +144 -0
- package/dist/tui/sections/DungeonSection.js.map +1 -0
- package/dist/tui/sections/EventsSection.d.ts +50 -0
- package/dist/tui/sections/EventsSection.d.ts.map +1 -0
- package/dist/tui/sections/EventsSection.js +134 -0
- package/dist/tui/sections/EventsSection.js.map +1 -0
- package/dist/tui/sections/MapSection.d.ts +66 -0
- package/dist/tui/sections/MapSection.d.ts.map +1 -0
- package/dist/tui/sections/MapSection.js +669 -0
- package/dist/tui/sections/MapSection.js.map +1 -0
- package/dist/tui/sections/StatusSection.d.ts +47 -0
- package/dist/tui/sections/StatusSection.d.ts.map +1 -0
- package/dist/tui/sections/StatusSection.js +133 -0
- package/dist/tui/sections/StatusSection.js.map +1 -0
- package/dist/tui/sections/TeamSection.d.ts +71 -0
- package/dist/tui/sections/TeamSection.d.ts.map +1 -0
- package/dist/tui/sections/TeamSection.js +224 -0
- package/dist/tui/sections/TeamSection.js.map +1 -0
- package/dist/tui/sections/TravelingSection.d.ts +51 -0
- package/dist/tui/sections/TravelingSection.d.ts.map +1 -0
- package/dist/tui/sections/TravelingSection.js +106 -0
- package/dist/tui/sections/TravelingSection.js.map +1 -0
- package/dist/tui/sections/index.d.ts +9 -0
- package/dist/tui/sections/index.d.ts.map +1 -0
- package/dist/tui/sections/index.js +12 -0
- package/dist/tui/sections/index.js.map +1 -0
- package/dist/ui/Terminal.d.ts +68 -0
- package/dist/ui/Terminal.d.ts.map +1 -0
- package/dist/ui/Terminal.js +297 -0
- package/dist/ui/Terminal.js.map +1 -0
- package/dist/ui/index.d.ts +5 -0
- package/dist/ui/index.d.ts.map +1 -0
- package/dist/ui/index.js +8 -0
- package/dist/ui/index.js.map +1 -0
- package/dist/utils/configMigration.d.ts +14 -0
- package/dist/utils/configMigration.d.ts.map +1 -0
- package/dist/utils/configMigration.js +92 -0
- package/dist/utils/configMigration.js.map +1 -0
- package/dist/utils/errorHandler.d.ts +86 -0
- package/dist/utils/errorHandler.d.ts.map +1 -0
- package/dist/utils/errorHandler.js +224 -0
- package/dist/utils/errorHandler.js.map +1 -0
- package/dist/utils/logger.d.ts +14 -0
- package/dist/utils/logger.d.ts.map +1 -0
- package/dist/utils/logger.js +43 -0
- package/dist/utils/logger.js.map +1 -0
- package/dist/weapon/WeaponFactory.d.ts +32 -0
- package/dist/weapon/WeaponFactory.d.ts.map +1 -0
- package/dist/weapon/WeaponFactory.js +216 -0
- package/dist/weapon/WeaponFactory.js.map +1 -0
- package/dist/weapon/index.d.ts +5 -0
- package/dist/weapon/index.d.ts.map +1 -0
- package/dist/weapon/index.js +8 -0
- package/dist/weapon/index.js.map +1 -0
- package/package.json +46 -0
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Continent Manager - Manages world map hierarchy
|
|
3
|
+
* Handles continents, towns, and dungeon access
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Manager for world map hierarchy
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="7d614b8f-acfd-5913-acf1-48835e203aa1")}catch(e){}}();
|
|
10
|
+
export class ContinentManager {
|
|
11
|
+
continents = new Map();
|
|
12
|
+
towns = new Map();
|
|
13
|
+
dungeons = new Map();
|
|
14
|
+
constructor() { }
|
|
15
|
+
/**
|
|
16
|
+
* Load a continent into the manager
|
|
17
|
+
*/
|
|
18
|
+
loadContinent(continent) {
|
|
19
|
+
this.continents.set(continent.id, continent);
|
|
20
|
+
// Index towns and dungeons for quick access
|
|
21
|
+
for (const town of continent.towns) {
|
|
22
|
+
this.towns.set(town.id, town);
|
|
23
|
+
}
|
|
24
|
+
for (const dungeon of continent.dungeons) {
|
|
25
|
+
this.dungeons.set(dungeon.id, dungeon);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Get a continent by ID
|
|
30
|
+
*/
|
|
31
|
+
getContinent(id) {
|
|
32
|
+
return this.continents.get(id);
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Get a town by ID
|
|
36
|
+
*/
|
|
37
|
+
getTown(id) {
|
|
38
|
+
return this.towns.get(id);
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Get a dungeon by ID
|
|
42
|
+
*/
|
|
43
|
+
getDungeon(id) {
|
|
44
|
+
return this.dungeons.get(id);
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Get all continents
|
|
48
|
+
*/
|
|
49
|
+
getAllContinents() {
|
|
50
|
+
return Array.from(this.continents.values());
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Get all towns in a continent
|
|
54
|
+
*/
|
|
55
|
+
getTownsInContinent(continentId) {
|
|
56
|
+
const continent = this.continents.get(continentId);
|
|
57
|
+
return continent ? continent.towns : [];
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Get all dungeons in a continent
|
|
61
|
+
*/
|
|
62
|
+
getDungeonsInContinent(continentId) {
|
|
63
|
+
const continent = this.continents.get(continentId);
|
|
64
|
+
return continent ? continent.dungeons : [];
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Get dungeons accessible from a town
|
|
68
|
+
*/
|
|
69
|
+
getDungeonsFromTown(townId) {
|
|
70
|
+
const town = this.towns.get(townId);
|
|
71
|
+
if (!town)
|
|
72
|
+
return [];
|
|
73
|
+
return town.connectedDungeons
|
|
74
|
+
.map(id => this.dungeons.get(id))
|
|
75
|
+
.filter((d) => d !== undefined);
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Get connected towns from a town
|
|
79
|
+
*/
|
|
80
|
+
getConnectedTowns(townId) {
|
|
81
|
+
const town = this.towns.get(townId);
|
|
82
|
+
if (!town)
|
|
83
|
+
return [];
|
|
84
|
+
return town.connectedTowns
|
|
85
|
+
.map(conn => {
|
|
86
|
+
const targetTown = this.towns.get(conn.targetTownId);
|
|
87
|
+
return targetTown ? { town: targetTown, connection: conn } : null;
|
|
88
|
+
})
|
|
89
|
+
.filter((t) => t !== null);
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Calculate travel time between two towns
|
|
93
|
+
*/
|
|
94
|
+
calculateTownTravelTime(fromTownId, toTownId) {
|
|
95
|
+
const fromTown = this.towns.get(fromTownId);
|
|
96
|
+
if (!fromTown)
|
|
97
|
+
return null;
|
|
98
|
+
const connection = fromTown.connectedTowns.find(c => c.targetTownId === toTownId);
|
|
99
|
+
return connection ? connection.travelTime : null;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Calculate travel time from town to dungeon
|
|
103
|
+
*/
|
|
104
|
+
calculateDungeonTravelTime(townId, dungeonId) {
|
|
105
|
+
const town = this.towns.get(townId);
|
|
106
|
+
const dungeon = this.dungeons.get(dungeonId);
|
|
107
|
+
if (!town || !dungeon)
|
|
108
|
+
return null;
|
|
109
|
+
if (!town.connectedDungeons.includes(dungeonId))
|
|
110
|
+
return null;
|
|
111
|
+
return dungeon.travelTimeFromTown;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Get the starting location for a new game
|
|
115
|
+
*/
|
|
116
|
+
getStartingLocation() {
|
|
117
|
+
// Find the first continent
|
|
118
|
+
const firstContinent = Array.from(this.continents.values())[0];
|
|
119
|
+
if (!firstContinent)
|
|
120
|
+
return null;
|
|
121
|
+
// Find the first town
|
|
122
|
+
const firstTown = firstContinent.towns[0];
|
|
123
|
+
if (!firstTown)
|
|
124
|
+
return null;
|
|
125
|
+
return {
|
|
126
|
+
type: 'town',
|
|
127
|
+
continentId: firstContinent.id,
|
|
128
|
+
townId: firstTown.id,
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Check if a location is unlocked for a player
|
|
133
|
+
*/
|
|
134
|
+
isLocationUnlocked(location, worldState, playerLevel) {
|
|
135
|
+
// Check continent unlock
|
|
136
|
+
if (!worldState.unlockedContinents.includes(location.continentId)) {
|
|
137
|
+
const continent = this.continents.get(location.continentId);
|
|
138
|
+
if (continent && continent.unlockedAt && playerLevel < continent.unlockedAt) {
|
|
139
|
+
return false;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
// Check town unlock
|
|
143
|
+
if (location.townId) {
|
|
144
|
+
if (!worldState.unlockedTowns.includes(location.townId)) {
|
|
145
|
+
const town = this.towns.get(location.townId);
|
|
146
|
+
if (town && town.unlockedAt && playerLevel < town.unlockedAt) {
|
|
147
|
+
return false;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
// Check dungeon unlock
|
|
152
|
+
if (location.dungeonId) {
|
|
153
|
+
if (!worldState.unlockedDungeons.includes(location.dungeonId)) {
|
|
154
|
+
const dungeon = this.dungeons.get(location.dungeonId);
|
|
155
|
+
if (dungeon && dungeon.unlockedAt && playerLevel < dungeon.unlockedAt) {
|
|
156
|
+
return false;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
return true;
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* Get available destinations from current location
|
|
164
|
+
*/
|
|
165
|
+
getAvailableDestinations(currentLocation, worldState, playerLevel) {
|
|
166
|
+
const destinations = [];
|
|
167
|
+
if (currentLocation.type === 'town' && currentLocation.townId) {
|
|
168
|
+
// Get connected towns
|
|
169
|
+
const connectedTowns = this.getConnectedTowns(currentLocation.townId);
|
|
170
|
+
for (const { town, connection } of connectedTowns) {
|
|
171
|
+
const townLocation = {
|
|
172
|
+
type: 'town',
|
|
173
|
+
continentId: currentLocation.continentId,
|
|
174
|
+
townId: town.id,
|
|
175
|
+
};
|
|
176
|
+
if (this.isLocationUnlocked(townLocation, worldState, playerLevel)) {
|
|
177
|
+
destinations.push({
|
|
178
|
+
type: 'town',
|
|
179
|
+
id: town.id,
|
|
180
|
+
name: town.name,
|
|
181
|
+
travelTime: connection.travelTime,
|
|
182
|
+
});
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
// Get connected dungeons
|
|
186
|
+
const dungeons = this.getDungeonsFromTown(currentLocation.townId);
|
|
187
|
+
for (const dungeon of dungeons) {
|
|
188
|
+
const dungeonLocation = {
|
|
189
|
+
type: 'dungeon',
|
|
190
|
+
continentId: currentLocation.continentId,
|
|
191
|
+
dungeonId: dungeon.id,
|
|
192
|
+
};
|
|
193
|
+
if (this.isLocationUnlocked(dungeonLocation, worldState, playerLevel)) {
|
|
194
|
+
destinations.push({
|
|
195
|
+
type: 'dungeon',
|
|
196
|
+
id: dungeon.id,
|
|
197
|
+
name: dungeon.name,
|
|
198
|
+
travelTime: dungeon.travelTimeFromTown,
|
|
199
|
+
});
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
return destinations;
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* Get the nearest town to a dungeon
|
|
207
|
+
*/
|
|
208
|
+
getNearestTown(dungeonId) {
|
|
209
|
+
const dungeon = this.dungeons.get(dungeonId);
|
|
210
|
+
if (!dungeon)
|
|
211
|
+
return undefined;
|
|
212
|
+
return this.towns.get(dungeon.nearestTownId);
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* Get formatted location name
|
|
216
|
+
*/
|
|
217
|
+
getLocationName(location) {
|
|
218
|
+
if (location.type === 'town' && location.townId) {
|
|
219
|
+
const town = this.towns.get(location.townId);
|
|
220
|
+
return town ? town.name : 'Unknown Town';
|
|
221
|
+
}
|
|
222
|
+
if (location.type === 'dungeon' && location.dungeonId) {
|
|
223
|
+
const dungeon = this.dungeons.get(location.dungeonId);
|
|
224
|
+
return dungeon ? dungeon.name : 'Unknown Dungeon';
|
|
225
|
+
}
|
|
226
|
+
if (location.type === 'traveling') {
|
|
227
|
+
return 'Traveling...';
|
|
228
|
+
}
|
|
229
|
+
return 'Unknown Location';
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
// Singleton instance
|
|
233
|
+
let continentManagerInstance = null;
|
|
234
|
+
export function getContinentManager() {
|
|
235
|
+
if (!continentManagerInstance) {
|
|
236
|
+
continentManagerInstance = new ContinentManager();
|
|
237
|
+
}
|
|
238
|
+
return continentManagerInstance;
|
|
239
|
+
}
|
|
240
|
+
//# sourceMappingURL=ContinentManager.js.map
|
|
241
|
+
//# debugId=7d614b8f-acfd-5913-acf1-48835e203aa1
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContinentManager.js","sources":["map/ContinentManager.ts"],"sourceRoot":"/","sourcesContent":["/**\r\n * Continent Manager - Manages world map hierarchy\r\n * Handles continents, towns, and dungeon access\r\n */\r\n\r\nimport type {\r\n Continent,\r\n Town,\r\n Dungeon,\r\n TownConnection,\r\n CurrentLocation,\r\n WorldState,\r\n} from '../core/types.js';\r\n\r\n/**\r\n * Manager for world map hierarchy\r\n */\r\nexport class ContinentManager {\r\n private continents: Map<string, Continent> = new Map();\r\n private towns: Map<string, Town> = new Map();\r\n private dungeons: Map<string, Dungeon> = new Map();\r\n\r\n constructor() {}\r\n\r\n /**\r\n * Load a continent into the manager\r\n */\r\n loadContinent(continent: Continent): void {\r\n this.continents.set(continent.id, continent);\r\n\r\n // Index towns and dungeons for quick access\r\n for (const town of continent.towns) {\r\n this.towns.set(town.id, town);\r\n }\r\n for (const dungeon of continent.dungeons) {\r\n this.dungeons.set(dungeon.id, dungeon);\r\n }\r\n }\r\n\r\n /**\r\n * Get a continent by ID\r\n */\r\n getContinent(id: string): Continent | undefined {\r\n return this.continents.get(id);\r\n }\r\n\r\n /**\r\n * Get a town by ID\r\n */\r\n getTown(id: string): Town | undefined {\r\n return this.towns.get(id);\r\n }\r\n\r\n /**\r\n * Get a dungeon by ID\r\n */\r\n getDungeon(id: string): Dungeon | undefined {\r\n return this.dungeons.get(id);\r\n }\r\n\r\n /**\r\n * Get all continents\r\n */\r\n getAllContinents(): Continent[] {\r\n return Array.from(this.continents.values());\r\n }\r\n\r\n /**\r\n * Get all towns in a continent\r\n */\r\n getTownsInContinent(continentId: string): Town[] {\r\n const continent = this.continents.get(continentId);\r\n return continent ? continent.towns : [];\r\n }\r\n\r\n /**\r\n * Get all dungeons in a continent\r\n */\r\n getDungeonsInContinent(continentId: string): Dungeon[] {\r\n const continent = this.continents.get(continentId);\r\n return continent ? continent.dungeons : [];\r\n }\r\n\r\n /**\r\n * Get dungeons accessible from a town\r\n */\r\n getDungeonsFromTown(townId: string): Dungeon[] {\r\n const town = this.towns.get(townId);\r\n if (!town) return [];\r\n\r\n return town.connectedDungeons\r\n .map(id => this.dungeons.get(id))\r\n .filter((d): d is Dungeon => d !== undefined);\r\n }\r\n\r\n /**\r\n * Get connected towns from a town\r\n */\r\n getConnectedTowns(townId: string): Array<{ town: Town; connection: TownConnection }> {\r\n const town = this.towns.get(townId);\r\n if (!town) return [];\r\n\r\n return town.connectedTowns\r\n .map(conn => {\r\n const targetTown = this.towns.get(conn.targetTownId);\r\n return targetTown ? { town: targetTown, connection: conn } : null;\r\n })\r\n .filter((t): t is { town: Town; connection: TownConnection } => t !== null);\r\n }\r\n\r\n /**\r\n * Calculate travel time between two towns\r\n */\r\n calculateTownTravelTime(fromTownId: string, toTownId: string): number | null {\r\n const fromTown = this.towns.get(fromTownId);\r\n if (!fromTown) return null;\r\n\r\n const connection = fromTown.connectedTowns.find(c => c.targetTownId === toTownId);\r\n return connection ? connection.travelTime : null;\r\n }\r\n\r\n /**\r\n * Calculate travel time from town to dungeon\r\n */\r\n calculateDungeonTravelTime(townId: string, dungeonId: string): number | null {\r\n const town = this.towns.get(townId);\r\n const dungeon = this.dungeons.get(dungeonId);\r\n\r\n if (!town || !dungeon) return null;\r\n if (!town.connectedDungeons.includes(dungeonId)) return null;\r\n\r\n return dungeon.travelTimeFromTown;\r\n }\r\n\r\n /**\r\n * Get the starting location for a new game\r\n */\r\n getStartingLocation(): CurrentLocation | null {\r\n // Find the first continent\r\n const firstContinent = Array.from(this.continents.values())[0];\r\n if (!firstContinent) return null;\r\n\r\n // Find the first town\r\n const firstTown = firstContinent.towns[0];\r\n if (!firstTown) return null;\r\n\r\n return {\r\n type: 'town',\r\n continentId: firstContinent.id,\r\n townId: firstTown.id,\r\n };\r\n }\r\n\r\n /**\r\n * Check if a location is unlocked for a player\r\n */\r\n isLocationUnlocked(\r\n location: CurrentLocation,\r\n worldState: WorldState,\r\n playerLevel: number\r\n ): boolean {\r\n // Check continent unlock\r\n if (!worldState.unlockedContinents.includes(location.continentId)) {\r\n const continent = this.continents.get(location.continentId);\r\n if (continent && continent.unlockedAt && playerLevel < continent.unlockedAt) {\r\n return false;\r\n }\r\n }\r\n\r\n // Check town unlock\r\n if (location.townId) {\r\n if (!worldState.unlockedTowns.includes(location.townId)) {\r\n const town = this.towns.get(location.townId);\r\n if (town && town.unlockedAt && playerLevel < town.unlockedAt) {\r\n return false;\r\n }\r\n }\r\n }\r\n\r\n // Check dungeon unlock\r\n if (location.dungeonId) {\r\n if (!worldState.unlockedDungeons.includes(location.dungeonId)) {\r\n const dungeon = this.dungeons.get(location.dungeonId);\r\n if (dungeon && dungeon.unlockedAt && playerLevel < dungeon.unlockedAt) {\r\n return false;\r\n }\r\n }\r\n }\r\n\r\n return true;\r\n }\r\n\r\n /**\r\n * Get available destinations from current location\r\n */\r\n getAvailableDestinations(\r\n currentLocation: CurrentLocation,\r\n worldState: WorldState,\r\n playerLevel: number\r\n ): Array<{ type: 'town' | 'dungeon'; id: string; name: string; travelTime: number }> {\r\n const destinations: Array<{ type: 'town' | 'dungeon'; id: string; name: string; travelTime: number }> = [];\r\n\r\n if (currentLocation.type === 'town' && currentLocation.townId) {\r\n // Get connected towns\r\n const connectedTowns = this.getConnectedTowns(currentLocation.townId);\r\n for (const { town, connection } of connectedTowns) {\r\n const townLocation: CurrentLocation = {\r\n type: 'town',\r\n continentId: currentLocation.continentId,\r\n townId: town.id,\r\n };\r\n if (this.isLocationUnlocked(townLocation, worldState, playerLevel)) {\r\n destinations.push({\r\n type: 'town',\r\n id: town.id,\r\n name: town.name,\r\n travelTime: connection.travelTime,\r\n });\r\n }\r\n }\r\n\r\n // Get connected dungeons\r\n const dungeons = this.getDungeonsFromTown(currentLocation.townId);\r\n for (const dungeon of dungeons) {\r\n const dungeonLocation: CurrentLocation = {\r\n type: 'dungeon',\r\n continentId: currentLocation.continentId,\r\n dungeonId: dungeon.id,\r\n };\r\n if (this.isLocationUnlocked(dungeonLocation, worldState, playerLevel)) {\r\n destinations.push({\r\n type: 'dungeon',\r\n id: dungeon.id,\r\n name: dungeon.name,\r\n travelTime: dungeon.travelTimeFromTown,\r\n });\r\n }\r\n }\r\n }\r\n\r\n return destinations;\r\n }\r\n\r\n /**\r\n * Get the nearest town to a dungeon\r\n */\r\n getNearestTown(dungeonId: string): Town | undefined {\r\n const dungeon = this.dungeons.get(dungeonId);\r\n if (!dungeon) return undefined;\r\n return this.towns.get(dungeon.nearestTownId);\r\n }\r\n\r\n /**\r\n * Get formatted location name\r\n */\r\n getLocationName(location: CurrentLocation): string {\r\n if (location.type === 'town' && location.townId) {\r\n const town = this.towns.get(location.townId);\r\n return town ? town.name : 'Unknown Town';\r\n }\r\n if (location.type === 'dungeon' && location.dungeonId) {\r\n const dungeon = this.dungeons.get(location.dungeonId);\r\n return dungeon ? dungeon.name : 'Unknown Dungeon';\r\n }\r\n if (location.type === 'traveling') {\r\n return 'Traveling...';\r\n }\r\n return 'Unknown Location';\r\n }\r\n}\r\n\r\n// Singleton instance\r\nlet continentManagerInstance: ContinentManager | null = null;\r\n\r\nexport function getContinentManager(): ContinentManager {\r\n if (!continentManagerInstance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AK,WAAW,EAAE,CAAC;YAClC,OAAO,cAAc,CAAC;QACxB,CAAC;QACD,OAAO,kBAAkB,CAAC;IAC5B,CAAC;CACF;AAED,qBAAqB;AACrB,IAAI,wBAAwB,GAA4B,IAAI,CAAC;AAE7D,MAAM,UAAU,mBAAmB;IACjC,IAAI,CAAC,wBAAwB,EAAE,CAAC;QAC9B,wBAAwB,GAAG,IAAI,gBAAgB,EAAE,CAAC;IACpD,CAAC;IACD,OAAO,wBAAwB,CAAC;AAClC,CAAC","debug_id":"7d614b8f-acfd-5913-acf1-48835e203aa1"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dungeon Generator - Creates multi-level dungeons for IdleRPG
|
|
3
|
+
* Builds on BSP algorithm for room generation
|
|
4
|
+
*/
|
|
5
|
+
import type { Dungeon, DungeonDifficulty } from '../core/types.js';
|
|
6
|
+
interface DungeonGeneratorConfig {
|
|
7
|
+
dungeonId: string;
|
|
8
|
+
name: string;
|
|
9
|
+
description: string;
|
|
10
|
+
continentId: string;
|
|
11
|
+
nearestTownId: string;
|
|
12
|
+
difficulty: DungeonDifficulty;
|
|
13
|
+
recommendedLevel: number;
|
|
14
|
+
numberOfLevels: number;
|
|
15
|
+
roomsPerLevel: {
|
|
16
|
+
min: number;
|
|
17
|
+
max: number;
|
|
18
|
+
};
|
|
19
|
+
hasBoss: boolean;
|
|
20
|
+
bossName?: string;
|
|
21
|
+
seed?: number;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Generate a complete dungeon with multiple levels
|
|
25
|
+
*/
|
|
26
|
+
export declare function generateDungeon(config: DungeonGeneratorConfig): Dungeon;
|
|
27
|
+
/**
|
|
28
|
+
* Regenerate a dungeon with a new seed
|
|
29
|
+
*/
|
|
30
|
+
export declare function regenerateDungeon(dungeon: Dungeon, newSeed?: number): Dungeon;
|
|
31
|
+
export {};
|
|
32
|
+
//# sourceMappingURL=DungeonGenerator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DungeonGenerator.d.ts","sourceRoot":"/","sources":["map/DungeonGenerator.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EACV,OAAO,EAWP,iBAAiB,EAClB,MAAM,kBAAkB,CAAC;AAM1B,UAAU,sBAAsB;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,iBAAiB,CAAC;IAC9B,gBAAgB,EAAE,MAAM,CAAC;IACzB,cAAc,EAAE,MAAM,CAAC;IACvB,aAAa,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;IAC5C,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AA8ID;;GAEG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,sBAAsB,GAAG,OAAO,CAsCvE;AA6iBD;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAe7E"}
|