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.
Files changed (478) hide show
  1. package/README.md +171 -0
  2. package/dist/affix/AffixRegistry.d.ts +68 -0
  3. package/dist/affix/AffixRegistry.d.ts.map +1 -0
  4. package/dist/affix/AffixRegistry.js +245 -0
  5. package/dist/affix/AffixRegistry.js.map +1 -0
  6. package/dist/affix/PluginLoader.d.ts +66 -0
  7. package/dist/affix/PluginLoader.d.ts.map +1 -0
  8. package/dist/affix/PluginLoader.js +321 -0
  9. package/dist/affix/PluginLoader.js.map +1 -0
  10. package/dist/affix/builtin.d.ts +6 -0
  11. package/dist/affix/builtin.d.ts.map +1 -0
  12. package/dist/affix/builtin.js +311 -0
  13. package/dist/affix/builtin.js.map +1 -0
  14. package/dist/affix/index.d.ts +8 -0
  15. package/dist/affix/index.d.ts.map +1 -0
  16. package/dist/affix/index.js +11 -0
  17. package/dist/affix/index.js.map +1 -0
  18. package/dist/affix/types.d.ts +152 -0
  19. package/dist/affix/types.d.ts.map +1 -0
  20. package/dist/affix/types.js +8 -0
  21. package/dist/affix/types.js.map +1 -0
  22. package/dist/ai/PlayKitClient.d.ts +208 -0
  23. package/dist/ai/PlayKitClient.d.ts.map +1 -0
  24. package/dist/ai/PlayKitClient.js +721 -0
  25. package/dist/ai/PlayKitClient.js.map +1 -0
  26. package/dist/ai/index.d.ts +5 -0
  27. package/dist/ai/index.d.ts.map +1 -0
  28. package/dist/ai/index.js +8 -0
  29. package/dist/ai/index.js.map +1 -0
  30. package/dist/app/App.d.ts +85 -0
  31. package/dist/app/App.d.ts.map +1 -0
  32. package/dist/app/App.js +296 -0
  33. package/dist/app/App.js.map +1 -0
  34. package/dist/app/EventBus.d.ts +222 -0
  35. package/dist/app/EventBus.d.ts.map +1 -0
  36. package/dist/app/EventBus.js +88 -0
  37. package/dist/app/EventBus.js.map +1 -0
  38. package/dist/app/Keybind.d.ts +83 -0
  39. package/dist/app/Keybind.d.ts.map +1 -0
  40. package/dist/app/Keybind.js +184 -0
  41. package/dist/app/Keybind.js.map +1 -0
  42. package/dist/app/Router.d.ts +123 -0
  43. package/dist/app/Router.d.ts.map +1 -0
  44. package/dist/app/Router.js +142 -0
  45. package/dist/app/Router.js.map +1 -0
  46. package/dist/app/ScreenManager.d.ts +97 -0
  47. package/dist/app/ScreenManager.d.ts.map +1 -0
  48. package/dist/app/ScreenManager.js +216 -0
  49. package/dist/app/ScreenManager.js.map +1 -0
  50. package/dist/app/index.d.ts +14 -0
  51. package/dist/app/index.d.ts.map +1 -0
  52. package/dist/app/index.js +19 -0
  53. package/dist/app/index.js.map +1 -0
  54. package/dist/app/screens/BaseScreen.d.ts +101 -0
  55. package/dist/app/screens/BaseScreen.d.ts.map +1 -0
  56. package/dist/app/screens/BaseScreen.js +132 -0
  57. package/dist/app/screens/BaseScreen.js.map +1 -0
  58. package/dist/app/screens/CharacterCreationScreen.d.ts +42 -0
  59. package/dist/app/screens/CharacterCreationScreen.d.ts.map +1 -0
  60. package/dist/app/screens/CharacterCreationScreen.js +467 -0
  61. package/dist/app/screens/CharacterCreationScreen.js.map +1 -0
  62. package/dist/app/screens/CombatScreen.d.ts +30 -0
  63. package/dist/app/screens/CombatScreen.d.ts.map +1 -0
  64. package/dist/app/screens/CombatScreen.js +309 -0
  65. package/dist/app/screens/CombatScreen.js.map +1 -0
  66. package/dist/app/screens/DialogScreen.d.ts +29 -0
  67. package/dist/app/screens/DialogScreen.d.ts.map +1 -0
  68. package/dist/app/screens/DialogScreen.js +295 -0
  69. package/dist/app/screens/DialogScreen.js.map +1 -0
  70. package/dist/app/screens/ExploreScreen.d.ts +50 -0
  71. package/dist/app/screens/ExploreScreen.d.ts.map +1 -0
  72. package/dist/app/screens/ExploreScreen.js +308 -0
  73. package/dist/app/screens/ExploreScreen.js.map +1 -0
  74. package/dist/app/screens/HelpScreen.d.ts +12 -0
  75. package/dist/app/screens/HelpScreen.d.ts.map +1 -0
  76. package/dist/app/screens/HelpScreen.js +155 -0
  77. package/dist/app/screens/HelpScreen.js.map +1 -0
  78. package/dist/app/screens/InventoryScreen.d.ts +27 -0
  79. package/dist/app/screens/InventoryScreen.d.ts.map +1 -0
  80. package/dist/app/screens/InventoryScreen.js +326 -0
  81. package/dist/app/screens/InventoryScreen.js.map +1 -0
  82. package/dist/app/screens/PrologueScreen.d.ts +24 -0
  83. package/dist/app/screens/PrologueScreen.d.ts.map +1 -0
  84. package/dist/app/screens/PrologueScreen.js +176 -0
  85. package/dist/app/screens/PrologueScreen.js.map +1 -0
  86. package/dist/app/screens/TitleScreen.d.ts +42 -0
  87. package/dist/app/screens/TitleScreen.d.ts.map +1 -0
  88. package/dist/app/screens/TitleScreen.js +380 -0
  89. package/dist/app/screens/TitleScreen.js.map +1 -0
  90. package/dist/app/screens/TravelScreen.d.ts +22 -0
  91. package/dist/app/screens/TravelScreen.d.ts.map +1 -0
  92. package/dist/app/screens/TravelScreen.js +122 -0
  93. package/dist/app/screens/TravelScreen.js.map +1 -0
  94. package/dist/app/screens/index.d.ts +14 -0
  95. package/dist/app/screens/index.d.ts.map +1 -0
  96. package/dist/app/screens/index.js +17 -0
  97. package/dist/app/screens/index.js.map +1 -0
  98. package/dist/commands/CommandRegistry.d.ts +91 -0
  99. package/dist/commands/CommandRegistry.d.ts.map +1 -0
  100. package/dist/commands/CommandRegistry.js +159 -0
  101. package/dist/commands/CommandRegistry.js.map +1 -0
  102. package/dist/commands/index.d.ts +7 -0
  103. package/dist/commands/index.d.ts.map +1 -0
  104. package/dist/commands/index.js +10 -0
  105. package/dist/commands/index.js.map +1 -0
  106. package/dist/core/Actor.d.ts +103 -0
  107. package/dist/core/Actor.d.ts.map +1 -0
  108. package/dist/core/Actor.js +409 -0
  109. package/dist/core/Actor.js.map +1 -0
  110. package/dist/core/Combat.d.ts +37 -0
  111. package/dist/core/Combat.d.ts.map +1 -0
  112. package/dist/core/Combat.js +294 -0
  113. package/dist/core/Combat.js.map +1 -0
  114. package/dist/core/DungeonRunner.d.ts +169 -0
  115. package/dist/core/DungeonRunner.d.ts.map +1 -0
  116. package/dist/core/DungeonRunner.js +627 -0
  117. package/dist/core/DungeonRunner.js.map +1 -0
  118. package/dist/core/Game.d.ts +133 -0
  119. package/dist/core/Game.d.ts.map +1 -0
  120. package/dist/core/Game.js +644 -0
  121. package/dist/core/Game.js.map +1 -0
  122. package/dist/core/IdleCombat.d.ts +61 -0
  123. package/dist/core/IdleCombat.d.ts.map +1 -0
  124. package/dist/core/IdleCombat.js +461 -0
  125. package/dist/core/IdleCombat.js.map +1 -0
  126. package/dist/core/IdleGameManager.d.ts +198 -0
  127. package/dist/core/IdleGameManager.d.ts.map +1 -0
  128. package/dist/core/IdleGameManager.js +688 -0
  129. package/dist/core/IdleGameManager.js.map +1 -0
  130. package/dist/core/IdleSaveManager.d.ts +109 -0
  131. package/dist/core/IdleSaveManager.d.ts.map +1 -0
  132. package/dist/core/IdleSaveManager.js +296 -0
  133. package/dist/core/IdleSaveManager.js.map +1 -0
  134. package/dist/core/NewGameFlowManager.d.ts +64 -0
  135. package/dist/core/NewGameFlowManager.d.ts.map +1 -0
  136. package/dist/core/NewGameFlowManager.js +153 -0
  137. package/dist/core/NewGameFlowManager.js.map +1 -0
  138. package/dist/core/Player.d.ts +65 -0
  139. package/dist/core/Player.d.ts.map +1 -0
  140. package/dist/core/Player.js +261 -0
  141. package/dist/core/Player.js.map +1 -0
  142. package/dist/core/RoomHandlers.d.ts +75 -0
  143. package/dist/core/RoomHandlers.d.ts.map +1 -0
  144. package/dist/core/RoomHandlers.js +383 -0
  145. package/dist/core/RoomHandlers.js.map +1 -0
  146. package/dist/core/SaveManager.d.ts +84 -0
  147. package/dist/core/SaveManager.d.ts.map +1 -0
  148. package/dist/core/SaveManager.js +281 -0
  149. package/dist/core/SaveManager.js.map +1 -0
  150. package/dist/core/SaveMigration.d.ts +69 -0
  151. package/dist/core/SaveMigration.d.ts.map +1 -0
  152. package/dist/core/SaveMigration.js +408 -0
  153. package/dist/core/SaveMigration.js.map +1 -0
  154. package/dist/core/StateAdapter.d.ts +79 -0
  155. package/dist/core/StateAdapter.d.ts.map +1 -0
  156. package/dist/core/StateAdapter.js +397 -0
  157. package/dist/core/StateAdapter.js.map +1 -0
  158. package/dist/core/Team.d.ts +145 -0
  159. package/dist/core/Team.d.ts.map +1 -0
  160. package/dist/core/Team.js +371 -0
  161. package/dist/core/Team.js.map +1 -0
  162. package/dist/core/TeamCombat.d.ts +88 -0
  163. package/dist/core/TeamCombat.d.ts.map +1 -0
  164. package/dist/core/TeamCombat.js +405 -0
  165. package/dist/core/TeamCombat.js.map +1 -0
  166. package/dist/core/TeamDungeonRunner.d.ts +186 -0
  167. package/dist/core/TeamDungeonRunner.d.ts.map +1 -0
  168. package/dist/core/TeamDungeonRunner.js +758 -0
  169. package/dist/core/TeamDungeonRunner.js.map +1 -0
  170. package/dist/core/TimeManager.d.ts +114 -0
  171. package/dist/core/TimeManager.d.ts.map +1 -0
  172. package/dist/core/TimeManager.js +318 -0
  173. package/dist/core/TimeManager.js.map +1 -0
  174. package/dist/core/index.d.ts +9 -0
  175. package/dist/core/index.d.ts.map +1 -0
  176. package/dist/core/index.js +12 -0
  177. package/dist/core/index.js.map +1 -0
  178. package/dist/core/timeConstants.d.ts +135 -0
  179. package/dist/core/timeConstants.d.ts.map +1 -0
  180. package/dist/core/timeConstants.js +157 -0
  181. package/dist/core/timeConstants.js.map +1 -0
  182. package/dist/core/types.d.ts +780 -0
  183. package/dist/core/types.d.ts.map +1 -0
  184. package/dist/core/types.js +16 -0
  185. package/dist/core/types.js.map +1 -0
  186. package/dist/data/continents/index.d.ts +163 -0
  187. package/dist/data/continents/index.d.ts.map +1 -0
  188. package/dist/data/continents/index.js +31 -0
  189. package/dist/data/continents/index.js.map +1 -0
  190. package/dist/data/continents/verdantia.d.ts +294 -0
  191. package/dist/data/continents/verdantia.d.ts.map +1 -0
  192. package/dist/data/continents/verdantia.js +327 -0
  193. package/dist/data/continents/verdantia.js.map +1 -0
  194. package/dist/handlers/DialogHandler.d.ts +95 -0
  195. package/dist/handlers/DialogHandler.d.ts.map +1 -0
  196. package/dist/handlers/DialogHandler.js +450 -0
  197. package/dist/handlers/DialogHandler.js.map +1 -0
  198. package/dist/handlers/SaveLoadHandler.d.ts +60 -0
  199. package/dist/handlers/SaveLoadHandler.d.ts.map +1 -0
  200. package/dist/handlers/SaveLoadHandler.js +187 -0
  201. package/dist/handlers/SaveLoadHandler.js.map +1 -0
  202. package/dist/handlers/TitleScreenHandler.d.ts +43 -0
  203. package/dist/handlers/TitleScreenHandler.d.ts.map +1 -0
  204. package/dist/handlers/TitleScreenHandler.js +508 -0
  205. package/dist/handlers/TitleScreenHandler.js.map +1 -0
  206. package/dist/handlers/WorkshopHandler.d.ts +75 -0
  207. package/dist/handlers/WorkshopHandler.d.ts.map +1 -0
  208. package/dist/handlers/WorkshopHandler.js +401 -0
  209. package/dist/handlers/WorkshopHandler.js.map +1 -0
  210. package/dist/handlers/index.d.ts +12 -0
  211. package/dist/handlers/index.d.ts.map +1 -0
  212. package/dist/handlers/index.js +14 -0
  213. package/dist/handlers/index.js.map +1 -0
  214. package/dist/handlers/types.d.ts +34 -0
  215. package/dist/handlers/types.d.ts.map +1 -0
  216. package/dist/handlers/types.js +8 -0
  217. package/dist/handlers/types.js.map +1 -0
  218. package/dist/i18n/en.d.ts +3 -0
  219. package/dist/i18n/en.d.ts.map +1 -0
  220. package/dist/i18n/en.js +130 -0
  221. package/dist/i18n/en.js.map +1 -0
  222. package/dist/i18n/index.d.ts +40 -0
  223. package/dist/i18n/index.d.ts.map +1 -0
  224. package/dist/i18n/index.js +105 -0
  225. package/dist/i18n/index.js.map +1 -0
  226. package/dist/i18n/types.d.ts +133 -0
  227. package/dist/i18n/types.d.ts.map +1 -0
  228. package/dist/i18n/types.js +8 -0
  229. package/dist/i18n/types.js.map +1 -0
  230. package/dist/i18n/zh.d.ts +3 -0
  231. package/dist/i18n/zh.d.ts.map +1 -0
  232. package/dist/i18n/zh.js +130 -0
  233. package/dist/i18n/zh.js.map +1 -0
  234. package/dist/instrument.d.ts +8 -0
  235. package/dist/instrument.d.ts.map +1 -0
  236. package/dist/instrument.js +33 -0
  237. package/dist/instrument.js.map +1 -0
  238. package/dist/main-new.d.ts +12 -0
  239. package/dist/main-new.d.ts.map +1 -0
  240. package/dist/main-new.js +32 -0
  241. package/dist/main-new.js.map +1 -0
  242. package/dist/main.d.ts +7 -0
  243. package/dist/main.d.ts.map +1 -0
  244. package/dist/main.js +2816 -0
  245. package/dist/main.js.map +1 -0
  246. package/dist/map/ContinentManager.d.ts +88 -0
  247. package/dist/map/ContinentManager.d.ts.map +1 -0
  248. package/dist/map/ContinentManager.js +241 -0
  249. package/dist/map/ContinentManager.js.map +1 -0
  250. package/dist/map/DungeonGenerator.d.ts +32 -0
  251. package/dist/map/DungeonGenerator.d.ts.map +1 -0
  252. package/dist/map/DungeonGenerator.js +615 -0
  253. package/dist/map/DungeonGenerator.js.map +1 -0
  254. package/dist/map/MapGenerator.d.ts +27 -0
  255. package/dist/map/MapGenerator.d.ts.map +1 -0
  256. package/dist/map/MapGenerator.js +485 -0
  257. package/dist/map/MapGenerator.js.map +1 -0
  258. package/dist/map/index.d.ts +5 -0
  259. package/dist/map/index.d.ts.map +1 -0
  260. package/dist/map/index.js +8 -0
  261. package/dist/map/index.js.map +1 -0
  262. package/dist/npc/NPCGenerator.d.ts +68 -0
  263. package/dist/npc/NPCGenerator.d.ts.map +1 -0
  264. package/dist/npc/NPCGenerator.js +468 -0
  265. package/dist/npc/NPCGenerator.js.map +1 -0
  266. package/dist/npc/NPCManager.d.ts +86 -0
  267. package/dist/npc/NPCManager.d.ts.map +1 -0
  268. package/dist/npc/NPCManager.js +217 -0
  269. package/dist/npc/NPCManager.js.map +1 -0
  270. package/dist/npc/fixedNPCs.d.ts +7 -0
  271. package/dist/npc/fixedNPCs.d.ts.map +1 -0
  272. package/dist/npc/fixedNPCs.js +196 -0
  273. package/dist/npc/fixedNPCs.js.map +1 -0
  274. package/dist/npc/index.d.ts +9 -0
  275. package/dist/npc/index.d.ts.map +1 -0
  276. package/dist/npc/index.js +12 -0
  277. package/dist/npc/index.js.map +1 -0
  278. package/dist/npc/traits.d.ts +33 -0
  279. package/dist/npc/traits.d.ts.map +1 -0
  280. package/dist/npc/traits.js +795 -0
  281. package/dist/npc/traits.js.map +1 -0
  282. package/dist/npc/types.d.ts +193 -0
  283. package/dist/npc/types.d.ts.map +1 -0
  284. package/dist/npc/types.js +9 -0
  285. package/dist/npc/types.js.map +1 -0
  286. package/dist/quest/QuestManager.d.ts +79 -0
  287. package/dist/quest/QuestManager.d.ts.map +1 -0
  288. package/dist/quest/QuestManager.js +273 -0
  289. package/dist/quest/QuestManager.js.map +1 -0
  290. package/dist/quest/index.d.ts +6 -0
  291. package/dist/quest/index.d.ts.map +1 -0
  292. package/dist/quest/index.js +9 -0
  293. package/dist/quest/index.js.map +1 -0
  294. package/dist/quest/types.d.ts +81 -0
  295. package/dist/quest/types.d.ts.map +1 -0
  296. package/dist/quest/types.js +8 -0
  297. package/dist/quest/types.js.map +1 -0
  298. package/dist/strategy/StrategyExecutor.d.ts +159 -0
  299. package/dist/strategy/StrategyExecutor.d.ts.map +1 -0
  300. package/dist/strategy/StrategyExecutor.js +479 -0
  301. package/dist/strategy/StrategyExecutor.js.map +1 -0
  302. package/dist/strategy/StrategyParser.d.ts +48 -0
  303. package/dist/strategy/StrategyParser.d.ts.map +1 -0
  304. package/dist/strategy/StrategyParser.js +321 -0
  305. package/dist/strategy/StrategyParser.js.map +1 -0
  306. package/dist/strategy/defaultStrategy.d.ts +40 -0
  307. package/dist/strategy/defaultStrategy.d.ts.map +1 -0
  308. package/dist/strategy/defaultStrategy.js +254 -0
  309. package/dist/strategy/defaultStrategy.js.map +1 -0
  310. package/dist/strategy/index.d.ts +8 -0
  311. package/dist/strategy/index.d.ts.map +1 -0
  312. package/dist/strategy/index.js +14 -0
  313. package/dist/strategy/index.js.map +1 -0
  314. package/dist/tui/ExploreMenu.d.ts +106 -0
  315. package/dist/tui/ExploreMenu.d.ts.map +1 -0
  316. package/dist/tui/ExploreMenu.js +282 -0
  317. package/dist/tui/ExploreMenu.js.map +1 -0
  318. package/dist/tui/GameUI.d.ts +313 -0
  319. package/dist/tui/GameUI.d.ts.map +1 -0
  320. package/dist/tui/GameUI.js +2116 -0
  321. package/dist/tui/GameUI.js.map +1 -0
  322. package/dist/tui/GameUIAdapter.d.ts +207 -0
  323. package/dist/tui/GameUIAdapter.d.ts.map +1 -0
  324. package/dist/tui/GameUIAdapter.js +1342 -0
  325. package/dist/tui/GameUIAdapter.js.map +1 -0
  326. package/dist/tui/Input.d.ts +139 -0
  327. package/dist/tui/Input.d.ts.map +1 -0
  328. package/dist/tui/Input.js +278 -0
  329. package/dist/tui/Input.js.map +1 -0
  330. package/dist/tui/Menu.d.ts +110 -0
  331. package/dist/tui/Menu.d.ts.map +1 -0
  332. package/dist/tui/Menu.js +365 -0
  333. package/dist/tui/Menu.js.map +1 -0
  334. package/dist/tui/Screen.d.ts +228 -0
  335. package/dist/tui/Screen.d.ts.map +1 -0
  336. package/dist/tui/Screen.js +502 -0
  337. package/dist/tui/Screen.js.map +1 -0
  338. package/dist/tui/components/Box.d.ts +36 -0
  339. package/dist/tui/components/Box.d.ts.map +1 -0
  340. package/dist/tui/components/Box.js +43 -0
  341. package/dist/tui/components/Box.js.map +1 -0
  342. package/dist/tui/components/List.d.ts +69 -0
  343. package/dist/tui/components/List.d.ts.map +1 -0
  344. package/dist/tui/components/List.js +136 -0
  345. package/dist/tui/components/List.js.map +1 -0
  346. package/dist/tui/components/ProgressBar.d.ts +42 -0
  347. package/dist/tui/components/ProgressBar.d.ts.map +1 -0
  348. package/dist/tui/components/ProgressBar.js +75 -0
  349. package/dist/tui/components/ProgressBar.js.map +1 -0
  350. package/dist/tui/components/index.d.ts +8 -0
  351. package/dist/tui/components/index.d.ts.map +1 -0
  352. package/dist/tui/components/index.js +11 -0
  353. package/dist/tui/components/index.js.map +1 -0
  354. package/dist/tui/core/BaseSection.d.ts +98 -0
  355. package/dist/tui/core/BaseSection.d.ts.map +1 -0
  356. package/dist/tui/core/BaseSection.js +174 -0
  357. package/dist/tui/core/BaseSection.js.map +1 -0
  358. package/dist/tui/core/Component.d.ts +61 -0
  359. package/dist/tui/core/Component.d.ts.map +1 -0
  360. package/dist/tui/core/Component.js +32 -0
  361. package/dist/tui/core/Component.js.map +1 -0
  362. package/dist/tui/core/Section.d.ts +101 -0
  363. package/dist/tui/core/Section.d.ts.map +1 -0
  364. package/dist/tui/core/Section.js +24 -0
  365. package/dist/tui/core/Section.js.map +1 -0
  366. package/dist/tui/core/SectionManager.d.ts +108 -0
  367. package/dist/tui/core/SectionManager.d.ts.map +1 -0
  368. package/dist/tui/core/SectionManager.js +258 -0
  369. package/dist/tui/core/SectionManager.js.map +1 -0
  370. package/dist/tui/core/index.d.ts +9 -0
  371. package/dist/tui/core/index.d.ts.map +1 -0
  372. package/dist/tui/core/index.js +12 -0
  373. package/dist/tui/core/index.js.map +1 -0
  374. package/dist/tui/index.d.ts +15 -0
  375. package/dist/tui/index.d.ts.map +1 -0
  376. package/dist/tui/index.js +23 -0
  377. package/dist/tui/index.js.map +1 -0
  378. package/dist/tui/screens/BaseScreen.d.ts +62 -0
  379. package/dist/tui/screens/BaseScreen.d.ts.map +1 -0
  380. package/dist/tui/screens/BaseScreen.js +55 -0
  381. package/dist/tui/screens/BaseScreen.js.map +1 -0
  382. package/dist/tui/screens/CombatScreen.d.ts +43 -0
  383. package/dist/tui/screens/CombatScreen.d.ts.map +1 -0
  384. package/dist/tui/screens/CombatScreen.js +125 -0
  385. package/dist/tui/screens/CombatScreen.js.map +1 -0
  386. package/dist/tui/screens/DialogScreen.d.ts +53 -0
  387. package/dist/tui/screens/DialogScreen.d.ts.map +1 -0
  388. package/dist/tui/screens/DialogScreen.js +90 -0
  389. package/dist/tui/screens/DialogScreen.js.map +1 -0
  390. package/dist/tui/screens/DungeonScreen.d.ts +80 -0
  391. package/dist/tui/screens/DungeonScreen.d.ts.map +1 -0
  392. package/dist/tui/screens/DungeonScreen.js +317 -0
  393. package/dist/tui/screens/DungeonScreen.js.map +1 -0
  394. package/dist/tui/screens/ExploreScreen.d.ts +69 -0
  395. package/dist/tui/screens/ExploreScreen.d.ts.map +1 -0
  396. package/dist/tui/screens/ExploreScreen.js +224 -0
  397. package/dist/tui/screens/ExploreScreen.js.map +1 -0
  398. package/dist/tui/screens/SectionScreen.d.ts +84 -0
  399. package/dist/tui/screens/SectionScreen.d.ts.map +1 -0
  400. package/dist/tui/screens/SectionScreen.js +156 -0
  401. package/dist/tui/screens/SectionScreen.js.map +1 -0
  402. package/dist/tui/screens/TitleScreen.d.ts +40 -0
  403. package/dist/tui/screens/TitleScreen.d.ts.map +1 -0
  404. package/dist/tui/screens/TitleScreen.js +253 -0
  405. package/dist/tui/screens/TitleScreen.js.map +1 -0
  406. package/dist/tui/screens/TownScreen.d.ts +98 -0
  407. package/dist/tui/screens/TownScreen.d.ts.map +1 -0
  408. package/dist/tui/screens/TownScreen.js +370 -0
  409. package/dist/tui/screens/TownScreen.js.map +1 -0
  410. package/dist/tui/screens/TravelScreen.d.ts +67 -0
  411. package/dist/tui/screens/TravelScreen.d.ts.map +1 -0
  412. package/dist/tui/screens/TravelScreen.js +286 -0
  413. package/dist/tui/screens/TravelScreen.js.map +1 -0
  414. package/dist/tui/screens/index.d.ts +8 -0
  415. package/dist/tui/screens/index.d.ts.map +1 -0
  416. package/dist/tui/screens/index.js +17 -0
  417. package/dist/tui/screens/index.js.map +1 -0
  418. package/dist/tui/sections/ActionsSection.d.ts +71 -0
  419. package/dist/tui/sections/ActionsSection.d.ts.map +1 -0
  420. package/dist/tui/sections/ActionsSection.js +184 -0
  421. package/dist/tui/sections/ActionsSection.js.map +1 -0
  422. package/dist/tui/sections/DungeonSection.d.ts +65 -0
  423. package/dist/tui/sections/DungeonSection.d.ts.map +1 -0
  424. package/dist/tui/sections/DungeonSection.js +144 -0
  425. package/dist/tui/sections/DungeonSection.js.map +1 -0
  426. package/dist/tui/sections/EventsSection.d.ts +50 -0
  427. package/dist/tui/sections/EventsSection.d.ts.map +1 -0
  428. package/dist/tui/sections/EventsSection.js +134 -0
  429. package/dist/tui/sections/EventsSection.js.map +1 -0
  430. package/dist/tui/sections/MapSection.d.ts +66 -0
  431. package/dist/tui/sections/MapSection.d.ts.map +1 -0
  432. package/dist/tui/sections/MapSection.js +669 -0
  433. package/dist/tui/sections/MapSection.js.map +1 -0
  434. package/dist/tui/sections/StatusSection.d.ts +47 -0
  435. package/dist/tui/sections/StatusSection.d.ts.map +1 -0
  436. package/dist/tui/sections/StatusSection.js +133 -0
  437. package/dist/tui/sections/StatusSection.js.map +1 -0
  438. package/dist/tui/sections/TeamSection.d.ts +71 -0
  439. package/dist/tui/sections/TeamSection.d.ts.map +1 -0
  440. package/dist/tui/sections/TeamSection.js +224 -0
  441. package/dist/tui/sections/TeamSection.js.map +1 -0
  442. package/dist/tui/sections/TravelingSection.d.ts +51 -0
  443. package/dist/tui/sections/TravelingSection.d.ts.map +1 -0
  444. package/dist/tui/sections/TravelingSection.js +106 -0
  445. package/dist/tui/sections/TravelingSection.js.map +1 -0
  446. package/dist/tui/sections/index.d.ts +9 -0
  447. package/dist/tui/sections/index.d.ts.map +1 -0
  448. package/dist/tui/sections/index.js +12 -0
  449. package/dist/tui/sections/index.js.map +1 -0
  450. package/dist/ui/Terminal.d.ts +68 -0
  451. package/dist/ui/Terminal.d.ts.map +1 -0
  452. package/dist/ui/Terminal.js +297 -0
  453. package/dist/ui/Terminal.js.map +1 -0
  454. package/dist/ui/index.d.ts +5 -0
  455. package/dist/ui/index.d.ts.map +1 -0
  456. package/dist/ui/index.js +8 -0
  457. package/dist/ui/index.js.map +1 -0
  458. package/dist/utils/configMigration.d.ts +14 -0
  459. package/dist/utils/configMigration.d.ts.map +1 -0
  460. package/dist/utils/configMigration.js +92 -0
  461. package/dist/utils/configMigration.js.map +1 -0
  462. package/dist/utils/errorHandler.d.ts +86 -0
  463. package/dist/utils/errorHandler.d.ts.map +1 -0
  464. package/dist/utils/errorHandler.js +224 -0
  465. package/dist/utils/errorHandler.js.map +1 -0
  466. package/dist/utils/logger.d.ts +14 -0
  467. package/dist/utils/logger.d.ts.map +1 -0
  468. package/dist/utils/logger.js +43 -0
  469. package/dist/utils/logger.js.map +1 -0
  470. package/dist/weapon/WeaponFactory.d.ts +32 -0
  471. package/dist/weapon/WeaponFactory.d.ts.map +1 -0
  472. package/dist/weapon/WeaponFactory.js +216 -0
  473. package/dist/weapon/WeaponFactory.js.map +1 -0
  474. package/dist/weapon/index.d.ts +5 -0
  475. package/dist/weapon/index.d.ts.map +1 -0
  476. package/dist/weapon/index.js +8 -0
  477. package/dist/weapon/index.js.map +1 -0
  478. 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) {\r\n continentManagerInstance = new ContinentManager();\r\n }\r\n return continentManagerInstance;\r\n}\r\n"],"names":[],"mappings":"AAAA;;;GAGG;AAWH;;GAEG;;;AACH,MAAM,OAAO,gBAAgB;IACnB,UAAU,GAA2B,IAAI,GAAG,EAAE,CAAC;IAC/C,KAAK,GAAsB,IAAI,GAAG,EAAE,CAAC;IACrC,QAAQ,GAAyB,IAAI,GAAG,EAAE,CAAC;IAEnD,gBAAe,CAAC;IAEhB;;OAEG;IACH,aAAa,CAAC,SAAoB;QAChC,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,SAAS,CAAC,EAAE,EAAE,SAAS,CAAC,CAAC;QAE7C,4CAA4C;QAC5C,KAAK,MAAM,IAAI,IAAI,SAAS,CAAC,KAAK,EAAE,CAAC;YACnC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC;QAChC,CAAC;QACD,KAAK,MAAM,OAAO,IAAI,SAAS,C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AAC;IAED;;OAEG;IACH,eAAe,CAAC,QAAyB;QACvC,IAAI,QAAQ,CAAC,IAAI,KAAK,MAAM,IAAI,QAAQ,CAAC,MAAM,EAAE,CAAC;YAChD,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;YAC7C,OAAO,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,cAAc,CAAC;QAC3C,CAAC;QACD,IAAI,QAAQ,CAAC,IAAI,KAAK,SAAS,IAAI,QAAQ,CAAC,SAAS,EAAE,CAAC;YACtD,MAAM,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;YACtD,OAAO,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,iBAAiB,CAAC;QACpD,CAAC;QACD,IAAI,QAAQ,CAAC,IAAI,KAAK,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"}