captainbattle 0.0.0-stage → 1.0.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 (916) hide show
  1. package/README.md +0 -3
  2. package/dist/StringExpand.d.ts +4 -0
  3. package/dist/StringExpand.js +0 -0
  4. package/dist/adb-url-resolver.d.ts +34 -0
  5. package/dist/adb-url-resolver.js +57 -0
  6. package/dist/cc/dist/index.d.ts +273 -0
  7. package/dist/cc/dist/index.js +1185 -0
  8. package/dist/cli.d.ts +1 -0
  9. package/dist/cli.js +9 -0
  10. package/dist/core/CallID.d.ts +131 -0
  11. package/dist/core/CallID.js +171 -0
  12. package/dist/core/ListenID.d.ts +476 -0
  13. package/dist/core/ListenID.js +517 -0
  14. package/dist/core/config/BadgeCfg.d.ts +287 -0
  15. package/dist/core/config/BadgeCfg.js +285 -0
  16. package/dist/core/config/BattleConfigCfg.d.ts +9 -0
  17. package/dist/core/config/BattleConfigCfg.js +8 -0
  18. package/dist/core/config/BattlePassCfg.d.ts +18 -0
  19. package/dist/core/config/BattlePassCfg.js +8 -0
  20. package/dist/core/config/BattlePassLvCfg.d.ts +15 -0
  21. package/dist/core/config/BattlePassLvCfg.js +8 -0
  22. package/dist/core/config/BlackMarketCfg.d.ts +16 -0
  23. package/dist/core/config/BlackMarketCfg.js +8 -0
  24. package/dist/core/config/BlackMarketGoodsCfg.d.ts +24 -0
  25. package/dist/core/config/BlackMarketGoodsCfg.js +8 -0
  26. package/dist/core/config/BlackTideIslandConfigCfg.d.ts +29 -0
  27. package/dist/core/config/BlackTideIslandConfigCfg.js +26 -0
  28. package/dist/core/config/BlackTideIslandDrawCfg.d.ts +10 -0
  29. package/dist/core/config/BlackTideIslandDrawCfg.js +8 -0
  30. package/dist/core/config/BlackTideIslandGameCfg.d.ts +8 -0
  31. package/dist/core/config/BlackTideIslandGameCfg.js +8 -0
  32. package/dist/core/config/BlackTideIslandGroupCfg.d.ts +10 -0
  33. package/dist/core/config/BlackTideIslandGroupCfg.js +8 -0
  34. package/dist/core/config/BlackTideIslandRoleCfg.d.ts +20 -0
  35. package/dist/core/config/BlackTideIslandRoleCfg.js +8 -0
  36. package/dist/core/config/BlackTideIslandSignInCfg.d.ts +9 -0
  37. package/dist/core/config/BlackTideIslandSignInCfg.js +8 -0
  38. package/dist/core/config/BountyConfigCfg.d.ts +20 -0
  39. package/dist/core/config/BountyConfigCfg.js +17 -0
  40. package/dist/core/config/BountyLvCfg.d.ts +8 -0
  41. package/dist/core/config/BountyLvCfg.js +8 -0
  42. package/dist/core/config/BountyTaskCfg.d.ts +11 -0
  43. package/dist/core/config/BountyTaskCfg.js +8 -0
  44. package/dist/core/config/BuffCfg.d.ts +151 -0
  45. package/dist/core/config/BuffCfg.js +139 -0
  46. package/dist/core/config/Cfg.d.ts +570 -0
  47. package/dist/core/config/Cfg.js +913 -0
  48. package/dist/core/config/ChatChannelCfg.d.ts +13 -0
  49. package/dist/core/config/ChatChannelCfg.js +8 -0
  50. package/dist/core/config/ChatEmojiCfg.d.ts +11 -0
  51. package/dist/core/config/ChatEmojiCfg.js +8 -0
  52. package/dist/core/config/CodeCfg.d.ts +8 -0
  53. package/dist/core/config/CodeCfg.js +8 -0
  54. package/dist/core/config/CodexGroupCfg.d.ts +24 -0
  55. package/dist/core/config/CodexGroupCfg.js +8 -0
  56. package/dist/core/config/CodexMonsterCfg.d.ts +8 -0
  57. package/dist/core/config/CodexMonsterCfg.js +8 -0
  58. package/dist/core/config/CodexTurretCfg.d.ts +9 -0
  59. package/dist/core/config/CodexTurretCfg.js +8 -0
  60. package/dist/core/config/CoinConfigCfg.d.ts +14 -0
  61. package/dist/core/config/CoinConfigCfg.js +8 -0
  62. package/dist/core/config/CoinDungeonConfigCfg.d.ts +25 -0
  63. package/dist/core/config/CoinDungeonConfigCfg.js +22 -0
  64. package/dist/core/config/CoinDungeonFishCfg.d.ts +11 -0
  65. package/dist/core/config/CoinDungeonFishCfg.js +8 -0
  66. package/dist/core/config/CoinDungeonGroupCfg.d.ts +16 -0
  67. package/dist/core/config/CoinDungeonGroupCfg.js +8 -0
  68. package/dist/core/config/CoinDungeonLevelCfg.d.ts +16 -0
  69. package/dist/core/config/CoinDungeonLevelCfg.js +8 -0
  70. package/dist/core/config/ConditionalGiftCfg.d.ts +14 -0
  71. package/dist/core/config/ConditionalGiftCfg.js +8 -0
  72. package/dist/core/config/Const.d.ts +27 -0
  73. package/dist/core/config/Const.js +32 -0
  74. package/dist/core/config/ConstConfigCfg.d.ts +57 -0
  75. package/dist/core/config/ConstConfigCfg.js +54 -0
  76. package/dist/core/config/DailyTrialBuffCfg.d.ts +10 -0
  77. package/dist/core/config/DailyTrialBuffCfg.js +8 -0
  78. package/dist/core/config/DailyTrialConfigCfg.d.ts +18 -0
  79. package/dist/core/config/DailyTrialConfigCfg.js +15 -0
  80. package/dist/core/config/DailyTrialLevelCfg.d.ts +13 -0
  81. package/dist/core/config/DailyTrialLevelCfg.js +8 -0
  82. package/dist/core/config/DailyTrialMapCfg.d.ts +15 -0
  83. package/dist/core/config/DailyTrialMapCfg.js +8 -0
  84. package/dist/core/config/DecorationAttrCfg.d.ts +14 -0
  85. package/dist/core/config/DecorationAttrCfg.js +8 -0
  86. package/dist/core/config/DragonCfg.d.ts +14 -0
  87. package/dist/core/config/DragonCfg.js +8 -0
  88. package/dist/core/config/DragonPathCfg.d.ts +8 -0
  89. package/dist/core/config/DragonPathCfg.js +8 -0
  90. package/dist/core/config/DrawTagCfg.d.ts +29 -0
  91. package/dist/core/config/DrawTagCfg.js +8 -0
  92. package/dist/core/config/DropPoolCfg.d.ts +16 -0
  93. package/dist/core/config/DropPoolCfg.js +8 -0
  94. package/dist/core/config/EffectPathCfg.d.ts +28 -0
  95. package/dist/core/config/EffectPathCfg.js +8 -0
  96. package/dist/core/config/EmailCfg.d.ts +25 -0
  97. package/dist/core/config/EmailCfg.js +21 -0
  98. package/dist/core/config/EndlessConfigCfg.d.ts +14 -0
  99. package/dist/core/config/EndlessConfigCfg.js +11 -0
  100. package/dist/core/config/EndlessEventCfg.d.ts +12 -0
  101. package/dist/core/config/EndlessEventCfg.js +8 -0
  102. package/dist/core/config/EnemyCfg.d.ts +66 -0
  103. package/dist/core/config/EnemyCfg.js +8 -0
  104. package/dist/core/config/EnemyGridCfg.d.ts +8 -0
  105. package/dist/core/config/EnemyGridCfg.js +8 -0
  106. package/dist/core/config/EquipCfg.d.ts +26 -0
  107. package/dist/core/config/EquipCfg.js +8 -0
  108. package/dist/core/config/EquipChestCfg.d.ts +12 -0
  109. package/dist/core/config/EquipChestCfg.js +8 -0
  110. package/dist/core/config/EquipCombineCfg.d.ts +10 -0
  111. package/dist/core/config/EquipCombineCfg.js +8 -0
  112. package/dist/core/config/EquipLvCfg.d.ts +11 -0
  113. package/dist/core/config/EquipLvCfg.js +8 -0
  114. package/dist/core/config/EquipmentDrawCfg.d.ts +8 -0
  115. package/dist/core/config/EquipmentDrawCfg.js +8 -0
  116. package/dist/core/config/EventTypeCfg.d.ts +10 -0
  117. package/dist/core/config/EventTypeCfg.js +8 -0
  118. package/dist/core/config/FightExpCfg.d.ts +12 -0
  119. package/dist/core/config/FightExpCfg.js +8 -0
  120. package/dist/core/config/FirstRechargeCfg.d.ts +11 -0
  121. package/dist/core/config/FirstRechargeCfg.js +8 -0
  122. package/dist/core/config/FormationCfg.d.ts +17 -0
  123. package/dist/core/config/FormationCfg.js +8 -0
  124. package/dist/core/config/FuncDescCfg.d.ts +139 -0
  125. package/dist/core/config/FuncDescCfg.js +134 -0
  126. package/dist/core/config/GemCfg.d.ts +37 -0
  127. package/dist/core/config/GemCfg.js +8 -0
  128. package/dist/core/config/GemCombineCfg.d.ts +9 -0
  129. package/dist/core/config/GemCombineCfg.js +8 -0
  130. package/dist/core/config/GemDrawCfg.d.ts +13 -0
  131. package/dist/core/config/GemDrawCfg.js +8 -0
  132. package/dist/core/config/GemEntryCfg.d.ts +35 -0
  133. package/dist/core/config/GemEntryCfg.js +8 -0
  134. package/dist/core/config/GemPurifyCfg.d.ts +11 -0
  135. package/dist/core/config/GemPurifyCfg.js +8 -0
  136. package/dist/core/config/GemRefinedCfg.d.ts +11 -0
  137. package/dist/core/config/GemRefinedCfg.js +8 -0
  138. package/dist/core/config/GemUnlockCfg.d.ts +9 -0
  139. package/dist/core/config/GemUnlockCfg.js +8 -0
  140. package/dist/core/config/GuideCfg.d.ts +29 -0
  141. package/dist/core/config/GuideCfg.js +8 -0
  142. package/dist/core/config/GuideConfigCfg.d.ts +14 -0
  143. package/dist/core/config/GuideConfigCfg.js +11 -0
  144. package/dist/core/config/GuideViewPathCfg.d.ts +11 -0
  145. package/dist/core/config/GuideViewPathCfg.js +8 -0
  146. package/dist/core/config/GuildBossCfg.d.ts +15 -0
  147. package/dist/core/config/GuildBossCfg.js +8 -0
  148. package/dist/core/config/GuildBossConfigCfg.d.ts +22 -0
  149. package/dist/core/config/GuildBossConfigCfg.js +19 -0
  150. package/dist/core/config/GuildBossLevelCfg.d.ts +11 -0
  151. package/dist/core/config/GuildBossLevelCfg.js +8 -0
  152. package/dist/core/config/GuildBossRankRewardCfg.d.ts +10 -0
  153. package/dist/core/config/GuildBossRankRewardCfg.js +8 -0
  154. package/dist/core/config/GuildBossWaveCfg.d.ts +13 -0
  155. package/dist/core/config/GuildBossWaveCfg.js +8 -0
  156. package/dist/core/config/GuildBounsCfg.d.ts +9 -0
  157. package/dist/core/config/GuildBounsCfg.js +8 -0
  158. package/dist/core/config/GuildBounsRankCfg.d.ts +10 -0
  159. package/dist/core/config/GuildBounsRankCfg.js +8 -0
  160. package/dist/core/config/GuildConfigCfg.d.ts +46 -0
  161. package/dist/core/config/GuildConfigCfg.js +43 -0
  162. package/dist/core/config/GuildDonateCfg.d.ts +10 -0
  163. package/dist/core/config/GuildDonateCfg.js +8 -0
  164. package/dist/core/config/GuildFlagCfg.d.ts +9 -0
  165. package/dist/core/config/GuildFlagCfg.js +8 -0
  166. package/dist/core/config/GuildLogCfg.d.ts +21 -0
  167. package/dist/core/config/GuildLogCfg.js +20 -0
  168. package/dist/core/config/GuildLvCfg.d.ts +14 -0
  169. package/dist/core/config/GuildLvCfg.js +8 -0
  170. package/dist/core/config/GuildSupplyCfg.d.ts +10 -0
  171. package/dist/core/config/GuildSupplyCfg.js +8 -0
  172. package/dist/core/config/InitialItemsCfg.d.ts +9 -0
  173. package/dist/core/config/InitialItemsCfg.js +8 -0
  174. package/dist/core/config/IntegralTaskCfg.d.ts +12 -0
  175. package/dist/core/config/IntegralTaskCfg.js +8 -0
  176. package/dist/core/config/ItemsCfg.d.ts +40 -0
  177. package/dist/core/config/ItemsCfg.js +26 -0
  178. package/dist/core/config/MapTraitCfg.d.ts +12 -0
  179. package/dist/core/config/MapTraitCfg.js +8 -0
  180. package/dist/core/config/MarqueeChannelCfg.d.ts +10 -0
  181. package/dist/core/config/MarqueeChannelCfg.js +8 -0
  182. package/dist/core/config/MarqueeConfigCfg.d.ts +14 -0
  183. package/dist/core/config/MarqueeConfigCfg.js +11 -0
  184. package/dist/core/config/MarqueeContentCfg.d.ts +15 -0
  185. package/dist/core/config/MarqueeContentCfg.js +8 -0
  186. package/dist/core/config/MonsterTraitCfg.d.ts +10 -0
  187. package/dist/core/config/MonsterTraitCfg.js +8 -0
  188. package/dist/core/config/PetCfg.d.ts +14 -0
  189. package/dist/core/config/PetCfg.js +8 -0
  190. package/dist/core/config/PetSkillCfg.d.ts +13 -0
  191. package/dist/core/config/PetSkillCfg.js +8 -0
  192. package/dist/core/config/PetSlotLvCfg.d.ts +9 -0
  193. package/dist/core/config/PetSlotLvCfg.js +8 -0
  194. package/dist/core/config/PetStarCfg.d.ts +12 -0
  195. package/dist/core/config/PetStarCfg.js +8 -0
  196. package/dist/core/config/PlayerLvCfg.d.ts +8 -0
  197. package/dist/core/config/PlayerLvCfg.js +8 -0
  198. package/dist/core/config/PrivilegeCardCfg.d.ts +10 -0
  199. package/dist/core/config/PrivilegeCardCfg.js +8 -0
  200. package/dist/core/config/PrivilegeCfg.d.ts +29 -0
  201. package/dist/core/config/PrivilegeCfg.js +27 -0
  202. package/dist/core/config/PrivilegeItemCfg.d.ts +9 -0
  203. package/dist/core/config/PrivilegeItemCfg.js +8 -0
  204. package/dist/core/config/ProDefineCfg.d.ts +23 -0
  205. package/dist/core/config/ProDefineCfg.js +8 -0
  206. package/dist/core/config/QualityCfg.d.ts +37 -0
  207. package/dist/core/config/QualityCfg.js +8 -0
  208. package/dist/core/config/QuestionnaireCfg.d.ts +17 -0
  209. package/dist/core/config/QuestionnaireCfg.js +12 -0
  210. package/dist/core/config/RandomNameCfg.d.ts +10 -0
  211. package/dist/core/config/RandomNameCfg.js +8 -0
  212. package/dist/core/config/RelicCfg.d.ts +18 -0
  213. package/dist/core/config/RelicCfg.js +8 -0
  214. package/dist/core/config/RelicDungeonBuffCfg.d.ts +10 -0
  215. package/dist/core/config/RelicDungeonBuffCfg.js +8 -0
  216. package/dist/core/config/RelicDungeonConfigCfg.d.ts +17 -0
  217. package/dist/core/config/RelicDungeonConfigCfg.js +14 -0
  218. package/dist/core/config/RelicDungeonLevelCfg.d.ts +17 -0
  219. package/dist/core/config/RelicDungeonLevelCfg.js +8 -0
  220. package/dist/core/config/RelicEntryCfg.d.ts +15 -0
  221. package/dist/core/config/RelicEntryCfg.js +8 -0
  222. package/dist/core/config/RelicPurifyCfg.d.ts +11 -0
  223. package/dist/core/config/RelicPurifyCfg.js +8 -0
  224. package/dist/core/config/RelicRandomAttrCfg.d.ts +10 -0
  225. package/dist/core/config/RelicRandomAttrCfg.js +8 -0
  226. package/dist/core/config/RelicRandomAttrScoreCfg.d.ts +9 -0
  227. package/dist/core/config/RelicRandomAttrScoreCfg.js +8 -0
  228. package/dist/core/config/RelicTiesCfg.d.ts +9 -0
  229. package/dist/core/config/RelicTiesCfg.js +8 -0
  230. package/dist/core/config/RoleCfg.d.ts +34 -0
  231. package/dist/core/config/RoleCfg.js +8 -0
  232. package/dist/core/config/RuleDescCfg.d.ts +45 -0
  233. package/dist/core/config/RuleDescCfg.js +41 -0
  234. package/dist/core/config/ServerNameCfg.d.ts +9 -0
  235. package/dist/core/config/ServerNameCfg.js +8 -0
  236. package/dist/core/config/ShopCfg.d.ts +32 -0
  237. package/dist/core/config/ShopCfg.js +8 -0
  238. package/dist/core/config/ShowCfg.d.ts +13 -0
  239. package/dist/core/config/ShowCfg.js +8 -0
  240. package/dist/core/config/SignCfg.d.ts +16 -0
  241. package/dist/core/config/SignCfg.js +8 -0
  242. package/dist/core/config/SignDayCfg.d.ts +14 -0
  243. package/dist/core/config/SignDayCfg.js +8 -0
  244. package/dist/core/config/SkillCfg.d.ts +64 -0
  245. package/dist/core/config/SkillCfg.js +8 -0
  246. package/dist/core/config/SkillEmitterCfg.d.ts +9 -0
  247. package/dist/core/config/SkillEmitterCfg.js +8 -0
  248. package/dist/core/config/SkinCfg.d.ts +26 -0
  249. package/dist/core/config/SkinCfg.js +8 -0
  250. package/dist/core/config/SkinGroupCfg.d.ts +13 -0
  251. package/dist/core/config/SkinGroupCfg.js +8 -0
  252. package/dist/core/config/SkinLvCfg.d.ts +11 -0
  253. package/dist/core/config/SkinLvCfg.js +8 -0
  254. package/dist/core/config/SkinSkillCfg.d.ts +11 -0
  255. package/dist/core/config/SkinSkillCfg.js +8 -0
  256. package/dist/core/config/SkinSlotCfg.d.ts +9 -0
  257. package/dist/core/config/SkinSlotCfg.js +8 -0
  258. package/dist/core/config/SkinStarCfg.d.ts +10 -0
  259. package/dist/core/config/SkinStarCfg.js +8 -0
  260. package/dist/core/config/SoundCfg.d.ts +100 -0
  261. package/dist/core/config/SoundCfg.js +89 -0
  262. package/dist/core/config/SprintActivityConfigCfg.d.ts +28 -0
  263. package/dist/core/config/SprintActivityConfigCfg.js +25 -0
  264. package/dist/core/config/SprintActivityRankRewardCfg.d.ts +11 -0
  265. package/dist/core/config/SprintActivityRankRewardCfg.js +8 -0
  266. package/dist/core/config/StageCfg.d.ts +40 -0
  267. package/dist/core/config/StageCfg.js +8 -0
  268. package/dist/core/config/StageTemplateCfg.d.ts +13 -0
  269. package/dist/core/config/StageTemplateCfg.js +8 -0
  270. package/dist/core/config/StarRewardCfg.d.ts +9 -0
  271. package/dist/core/config/StarRewardCfg.js +8 -0
  272. package/dist/core/config/TConfig.d.ts +37 -0
  273. package/dist/core/config/TConfig.js +182 -0
  274. package/dist/core/config/TagCfg.d.ts +13 -0
  275. package/dist/core/config/TagCfg.js +8 -0
  276. package/dist/core/config/TalentLvCfg.d.ts +16 -0
  277. package/dist/core/config/TalentLvCfg.js +8 -0
  278. package/dist/core/config/TalentRewardCfg.d.ts +16 -0
  279. package/dist/core/config/TalentRewardCfg.js +8 -0
  280. package/dist/core/config/TalentTreeCfg.d.ts +15 -0
  281. package/dist/core/config/TalentTreeCfg.js +8 -0
  282. package/dist/core/config/TalentTreeLvCfg.d.ts +14 -0
  283. package/dist/core/config/TalentTreeLvCfg.js +8 -0
  284. package/dist/core/config/TaskCfg.d.ts +24 -0
  285. package/dist/core/config/TaskCfg.js +8 -0
  286. package/dist/core/config/TaskRewardCfg.d.ts +11 -0
  287. package/dist/core/config/TaskRewardCfg.js +8 -0
  288. package/dist/core/config/TaskTypeCfg.d.ts +13 -0
  289. package/dist/core/config/TaskTypeCfg.js +8 -0
  290. package/dist/core/config/TreasureChestCfg.d.ts +31 -0
  291. package/dist/core/config/TreasureChestCfg.js +14 -0
  292. package/dist/core/config/TreasureLevelCfg.d.ts +12 -0
  293. package/dist/core/config/TreasureLevelCfg.js +8 -0
  294. package/dist/core/config/TurretDrawCfg.d.ts +8 -0
  295. package/dist/core/config/TurretDrawCfg.js +8 -0
  296. package/dist/core/config/TurretLotteryCfg.d.ts +14 -0
  297. package/dist/core/config/TurretLotteryCfg.js +8 -0
  298. package/dist/core/config/TurretLotteryGroupCfg.d.ts +10 -0
  299. package/dist/core/config/TurretLotteryGroupCfg.js +8 -0
  300. package/dist/core/config/TurretLotteryIconCfg.d.ts +10 -0
  301. package/dist/core/config/TurretLotteryIconCfg.js +8 -0
  302. package/dist/core/config/TurretLotteryWeightCfg.d.ts +8 -0
  303. package/dist/core/config/TurretLotteryWeightCfg.js +8 -0
  304. package/dist/core/config/TurretLvCfg.d.ts +15 -0
  305. package/dist/core/config/TurretLvCfg.js +8 -0
  306. package/dist/core/config/TypeRandCfg.d.ts +13 -0
  307. package/dist/core/config/TypeRandCfg.js +8 -0
  308. package/dist/core/config/VehicleWashConfigCfg.d.ts +17 -0
  309. package/dist/core/config/VehicleWashConfigCfg.js +14 -0
  310. package/dist/core/config/VehicleWashLevelCfg.d.ts +11 -0
  311. package/dist/core/config/VehicleWashLevelCfg.js +8 -0
  312. package/dist/core/config/WavesInfoCfg.d.ts +37 -0
  313. package/dist/core/config/WavesInfoCfg.js +8 -0
  314. package/dist/core/config/WeatherTraitCfg.d.ts +11 -0
  315. package/dist/core/config/WeatherTraitCfg.js +8 -0
  316. package/dist/core/framework/Log.d.ts +10 -0
  317. package/dist/core/framework/Log.js +29 -0
  318. package/dist/core/framework/Pool.d.ts +99 -0
  319. package/dist/core/framework/Pool.js +363 -0
  320. package/dist/core/framework/Time.d.ts +75 -0
  321. package/dist/core/framework/Time.js +253 -0
  322. package/dist/core/framework/Watcher.d.ts +21 -0
  323. package/dist/core/framework/Watcher.js +79 -0
  324. package/dist/core/framework/collections/MinSortList.d.ts +24 -0
  325. package/dist/core/framework/collections/MinSortList.js +152 -0
  326. package/dist/core/framework/collections/ObjectPool.d.ts +11 -0
  327. package/dist/core/framework/collections/ObjectPool.js +45 -0
  328. package/dist/core/framework/notify/Notifier.d.ts +69 -0
  329. package/dist/core/framework/notify/Notifier.js +169 -0
  330. package/dist/core/framework/notify/NotifyCaller.d.ts +7 -0
  331. package/dist/core/framework/notify/NotifyCaller.js +40 -0
  332. package/dist/core/framework/notify/NotifyID.d.ts +14 -0
  333. package/dist/core/framework/notify/NotifyID.js +18 -0
  334. package/dist/core/framework/notify/NotifyListener.d.ts +29 -0
  335. package/dist/core/framework/notify/NotifyListener.js +190 -0
  336. package/dist/core/module/battle/Game.d.ts +358 -0
  337. package/dist/core/module/battle/Game.js +1340 -0
  338. package/dist/core/module/battle/IGameModule.d.ts +98 -0
  339. package/dist/core/module/battle/IGameModule.js +877 -0
  340. package/dist/core/module/battle/battle.interface.d.ts +248 -0
  341. package/dist/core/module/battle/battle.interface.js +76 -0
  342. package/dist/core/module/battle/buff/BuffMgr.d.ts +77 -0
  343. package/dist/core/module/battle/buff/BuffMgr.js +63 -0
  344. package/dist/core/module/battle/buff/BuffPool.d.ts +22 -0
  345. package/dist/core/module/battle/buff/BuffPool.js +64 -0
  346. package/dist/core/module/battle/buff/BuffTrigger.d.ts +5 -0
  347. package/dist/core/module/battle/buff/BuffTrigger.js +410 -0
  348. package/dist/core/module/battle/buff/buffitem/AddActionTimeBuff.d.ts +6 -0
  349. package/dist/core/module/battle/buff/buffitem/AddActionTimeBuff.js +31 -0
  350. package/dist/core/module/battle/buff/buffitem/AddAtrBuff.d.ts +7 -0
  351. package/dist/core/module/battle/buff/buffitem/AddAtrBuff.js +51 -0
  352. package/dist/core/module/battle/buff/buffitem/AddCritLayerBuff.d.ts +7 -0
  353. package/dist/core/module/battle/buff/buffitem/AddCritLayerBuff.js +26 -0
  354. package/dist/core/module/battle/buff/buffitem/AddPhysicDamBuff.d.ts +7 -0
  355. package/dist/core/module/battle/buff/buffitem/AddPhysicDamBuff.js +45 -0
  356. package/dist/core/module/battle/buff/buffitem/AddProjectBuff.d.ts +7 -0
  357. package/dist/core/module/battle/buff/buffitem/AddProjectBuff.js +26 -0
  358. package/dist/core/module/battle/buff/buffitem/AddSkillNumBuff.d.ts +6 -0
  359. package/dist/core/module/battle/buff/buffitem/AddSkillNumBuff.js +36 -0
  360. package/dist/core/module/battle/buff/buffitem/ArmorBuff.d.ts +3 -0
  361. package/dist/core/module/battle/buff/buffitem/ArmorBuff.js +18 -0
  362. package/dist/core/module/battle/buff/buffitem/AshBuff.d.ts +6 -0
  363. package/dist/core/module/battle/buff/buffitem/AshBuff.js +44 -0
  364. package/dist/core/module/battle/buff/buffitem/AttackInvisibleBuff.d.ts +3 -0
  365. package/dist/core/module/battle/buff/buffitem/AttackInvisibleBuff.js +18 -0
  366. package/dist/core/module/battle/buff/buffitem/AttackSpeedBuff.d.ts +7 -0
  367. package/dist/core/module/battle/buff/buffitem/AttackSpeedBuff.js +26 -0
  368. package/dist/core/module/battle/buff/buffitem/BackHitAddAttrBuff.d.ts +9 -0
  369. package/dist/core/module/battle/buff/buffitem/BackHitAddAttrBuff.js +94 -0
  370. package/dist/core/module/battle/buff/buffitem/BaseBuff.d.ts +8 -0
  371. package/dist/core/module/battle/buff/buffitem/BaseBuff.js +21 -0
  372. package/dist/core/module/battle/buff/buffitem/BleedBuff.d.ts +7 -0
  373. package/dist/core/module/battle/buff/buffitem/BleedBuff.js +46 -0
  374. package/dist/core/module/battle/buff/buffitem/BlizzardBuff.d.ts +9 -0
  375. package/dist/core/module/battle/buff/buffitem/BlizzardBuff.js +60 -0
  376. package/dist/core/module/battle/buff/buffitem/BounceCutDamageBuff.d.ts +9 -0
  377. package/dist/core/module/battle/buff/buffitem/BounceCutDamageBuff.js +39 -0
  378. package/dist/core/module/battle/buff/buffitem/BulletDeviationBuff.d.ts +8 -0
  379. package/dist/core/module/battle/buff/buffitem/BulletDeviationBuff.js +45 -0
  380. package/dist/core/module/battle/buff/buffitem/BurnBuff.d.ts +8 -0
  381. package/dist/core/module/battle/buff/buffitem/BurnBuff.js +64 -0
  382. package/dist/core/module/battle/buff/buffitem/ChangeActionBuff.d.ts +8 -0
  383. package/dist/core/module/battle/buff/buffitem/ChangeActionBuff.js +47 -0
  384. package/dist/core/module/battle/buff/buffitem/ChangeActionTypeBuff.d.ts +8 -0
  385. package/dist/core/module/battle/buff/buffitem/ChangeActionTypeBuff.js +42 -0
  386. package/dist/core/module/battle/buff/buffitem/ChangeEntityStepBuff.d.ts +8 -0
  387. package/dist/core/module/battle/buff/buffitem/ChangeEntityStepBuff.js +40 -0
  388. package/dist/core/module/battle/buff/buffitem/ChangeSetpAddDamageBuff.d.ts +10 -0
  389. package/dist/core/module/battle/buff/buffitem/ChangeSetpAddDamageBuff.js +86 -0
  390. package/dist/core/module/battle/buff/buffitem/ChangeSetpTimeBuff.d.ts +3 -0
  391. package/dist/core/module/battle/buff/buffitem/ChangeSetpTimeBuff.js +18 -0
  392. package/dist/core/module/battle/buff/buffitem/ChangeStateBuff.d.ts +8 -0
  393. package/dist/core/module/battle/buff/buffitem/ChangeStateBuff.js +46 -0
  394. package/dist/core/module/battle/buff/buffitem/ChillBuff.d.ts +7 -0
  395. package/dist/core/module/battle/buff/buffitem/ChillBuff.js +28 -0
  396. package/dist/core/module/battle/buff/buffitem/ClearBuffBuff.d.ts +6 -0
  397. package/dist/core/module/battle/buff/buffitem/ClearBuffBuff.js +25 -0
  398. package/dist/core/module/battle/buff/buffitem/CurHpDamBuff.d.ts +7 -0
  399. package/dist/core/module/battle/buff/buffitem/CurHpDamBuff.js +48 -0
  400. package/dist/core/module/battle/buff/buffitem/CurseBuff.d.ts +14 -0
  401. package/dist/core/module/battle/buff/buffitem/CurseBuff.js +74 -0
  402. package/dist/core/module/battle/buff/buffitem/CutSkillCdBuff.d.ts +8 -0
  403. package/dist/core/module/battle/buff/buffitem/CutSkillCdBuff.js +73 -0
  404. package/dist/core/module/battle/buff/buffitem/DamMarkBuff.d.ts +9 -0
  405. package/dist/core/module/battle/buff/buffitem/DamMarkBuff.js +50 -0
  406. package/dist/core/module/battle/buff/buffitem/DebuffAddAttrBuff.d.ts +10 -0
  407. package/dist/core/module/battle/buff/buffitem/DebuffAddAttrBuff.js +59 -0
  408. package/dist/core/module/battle/buff/buffitem/DeltaUseSkillBuff.d.ts +11 -0
  409. package/dist/core/module/battle/buff/buffitem/DeltaUseSkillBuff.js +112 -0
  410. package/dist/core/module/battle/buff/buffitem/DiceAddAttrBuff.d.ts +8 -0
  411. package/dist/core/module/battle/buff/buffitem/DiceAddAttrBuff.js +55 -0
  412. package/dist/core/module/battle/buff/buffitem/DisarmBuff.d.ts +3 -0
  413. package/dist/core/module/battle/buff/buffitem/DisarmBuff.js +18 -0
  414. package/dist/core/module/battle/buff/buffitem/DizzinessBuff.d.ts +6 -0
  415. package/dist/core/module/battle/buff/buffitem/DizzinessBuff.js +26 -0
  416. package/dist/core/module/battle/buff/buffitem/DominationBuff.d.ts +3 -0
  417. package/dist/core/module/battle/buff/buffitem/DominationBuff.js +18 -0
  418. package/dist/core/module/battle/buff/buffitem/ElectricMarkBuff.d.ts +7 -0
  419. package/dist/core/module/battle/buff/buffitem/ElectricMarkBuff.js +25 -0
  420. package/dist/core/module/battle/buff/buffitem/ElectrifyBuff.d.ts +6 -0
  421. package/dist/core/module/battle/buff/buffitem/ElectrifyBuff.js +45 -0
  422. package/dist/core/module/battle/buff/buffitem/EnemyBuff1Buff.d.ts +10 -0
  423. package/dist/core/module/battle/buff/buffitem/EnemyBuff1Buff.js +59 -0
  424. package/dist/core/module/battle/buff/buffitem/EnemyRatioBuff.d.ts +3 -0
  425. package/dist/core/module/battle/buff/buffitem/EnemyRatioBuff.js +18 -0
  426. package/dist/core/module/battle/buff/buffitem/FixedProjectileNumBuff.d.ts +6 -0
  427. package/dist/core/module/battle/buff/buffitem/FixedProjectileNumBuff.js +42 -0
  428. package/dist/core/module/battle/buff/buffitem/FollowMainEntityBuff.d.ts +7 -0
  429. package/dist/core/module/battle/buff/buffitem/FollowMainEntityBuff.js +44 -0
  430. package/dist/core/module/battle/buff/buffitem/ForceTargetBuff.d.ts +7 -0
  431. package/dist/core/module/battle/buff/buffitem/ForceTargetBuff.js +59 -0
  432. package/dist/core/module/battle/buff/buffitem/FrozenBuff.d.ts +7 -0
  433. package/dist/core/module/battle/buff/buffitem/FrozenBuff.js +59 -0
  434. package/dist/core/module/battle/buff/buffitem/HaulBuff.d.ts +8 -0
  435. package/dist/core/module/battle/buff/buffitem/HaulBuff.js +50 -0
  436. package/dist/core/module/battle/buff/buffitem/HightHpAddCritBuff.d.ts +9 -0
  437. package/dist/core/module/battle/buff/buffitem/HightHpAddCritBuff.js +55 -0
  438. package/dist/core/module/battle/buff/buffitem/HitBoundAddDamageBuff.d.ts +11 -0
  439. package/dist/core/module/battle/buff/buffitem/HitBoundAddDamageBuff.js +78 -0
  440. package/dist/core/module/battle/buff/buffitem/HitEnemyAddDamBuff.d.ts +10 -0
  441. package/dist/core/module/battle/buff/buffitem/HitEnemyAddDamBuff.js +65 -0
  442. package/dist/core/module/battle/buff/buffitem/HornBuff.d.ts +8 -0
  443. package/dist/core/module/battle/buff/buffitem/HornBuff.js +78 -0
  444. package/dist/core/module/battle/buff/buffitem/HpAddDamageBuff.d.ts +10 -0
  445. package/dist/core/module/battle/buff/buffitem/HpAddDamageBuff.js +66 -0
  446. package/dist/core/module/battle/buff/buffitem/HpShieldBuff.d.ts +6 -0
  447. package/dist/core/module/battle/buff/buffitem/HpShieldBuff.js +24 -0
  448. package/dist/core/module/battle/buff/buffitem/IceShieldBuff.d.ts +8 -0
  449. package/dist/core/module/battle/buff/buffitem/IceShieldBuff.js +38 -0
  450. package/dist/core/module/battle/buff/buffitem/IcicleBuff.d.ts +9 -0
  451. package/dist/core/module/battle/buff/buffitem/IcicleBuff.js +45 -0
  452. package/dist/core/module/battle/buff/buffitem/ImmueChillBuff.d.ts +3 -0
  453. package/dist/core/module/battle/buff/buffitem/ImmueChillBuff.js +18 -0
  454. package/dist/core/module/battle/buff/buffitem/ImmueDisarmBuff.d.ts +3 -0
  455. package/dist/core/module/battle/buff/buffitem/ImmueDisarmBuff.js +18 -0
  456. package/dist/core/module/battle/buff/buffitem/ImmueDizzinessBuff.d.ts +3 -0
  457. package/dist/core/module/battle/buff/buffitem/ImmueDizzinessBuff.js +18 -0
  458. package/dist/core/module/battle/buff/buffitem/ImmueElectrifyBuff.d.ts +3 -0
  459. package/dist/core/module/battle/buff/buffitem/ImmueElectrifyBuff.js +18 -0
  460. package/dist/core/module/battle/buff/buffitem/ImmueFrozenBuff.d.ts +3 -0
  461. package/dist/core/module/battle/buff/buffitem/ImmueFrozenBuff.js +18 -0
  462. package/dist/core/module/battle/buff/buffitem/ImmueParalysisBuff.d.ts +3 -0
  463. package/dist/core/module/battle/buff/buffitem/ImmueParalysisBuff.js +18 -0
  464. package/dist/core/module/battle/buff/buffitem/ImmueRepelBuff.d.ts +3 -0
  465. package/dist/core/module/battle/buff/buffitem/ImmueRepelBuff.js +18 -0
  466. package/dist/core/module/battle/buff/buffitem/ImmueSlayBuff.d.ts +3 -0
  467. package/dist/core/module/battle/buff/buffitem/ImmueSlayBuff.js +18 -0
  468. package/dist/core/module/battle/buff/buffitem/ImmueSlowBuff.d.ts +3 -0
  469. package/dist/core/module/battle/buff/buffitem/ImmueSlowBuff.js +18 -0
  470. package/dist/core/module/battle/buff/buffitem/ImmueVulnerableBuff.d.ts +3 -0
  471. package/dist/core/module/battle/buff/buffitem/ImmueVulnerableBuff.js +18 -0
  472. package/dist/core/module/battle/buff/buffitem/ImmuneDizzinessBuff.d.ts +3 -0
  473. package/dist/core/module/battle/buff/buffitem/ImmuneDizzinessBuff.js +18 -0
  474. package/dist/core/module/battle/buff/buffitem/ImmuneFrozenBuff.d.ts +3 -0
  475. package/dist/core/module/battle/buff/buffitem/ImmuneFrozenBuff.js +18 -0
  476. package/dist/core/module/battle/buff/buffitem/ImmuneParalysisBuff.d.ts +3 -0
  477. package/dist/core/module/battle/buff/buffitem/ImmuneParalysisBuff.js +18 -0
  478. package/dist/core/module/battle/buff/buffitem/InDebuffAddAttrBuff.d.ts +10 -0
  479. package/dist/core/module/battle/buff/buffitem/InDebuffAddAttrBuff.js +55 -0
  480. package/dist/core/module/battle/buff/buffitem/InvicibleBuff.d.ts +3 -0
  481. package/dist/core/module/battle/buff/buffitem/InvicibleBuff.js +18 -0
  482. package/dist/core/module/battle/buff/buffitem/LastSkillNumAddDamageBuff.d.ts +9 -0
  483. package/dist/core/module/battle/buff/buffitem/LastSkillNumAddDamageBuff.js +51 -0
  484. package/dist/core/module/battle/buff/buffitem/LinkCurseBuff.d.ts +8 -0
  485. package/dist/core/module/battle/buff/buffitem/LinkCurseBuff.js +131 -0
  486. package/dist/core/module/battle/buff/buffitem/LinkLogBuff.d.ts +6 -0
  487. package/dist/core/module/battle/buff/buffitem/LinkLogBuff.js +24 -0
  488. package/dist/core/module/battle/buff/buffitem/LockOffsetBuff.d.ts +6 -0
  489. package/dist/core/module/battle/buff/buffitem/LockOffsetBuff.js +22 -0
  490. package/dist/core/module/battle/buff/buffitem/LockTargetBuff.d.ts +9 -0
  491. package/dist/core/module/battle/buff/buffitem/LockTargetBuff.js +40 -0
  492. package/dist/core/module/battle/buff/buffitem/LvAddDamBuff.d.ts +9 -0
  493. package/dist/core/module/battle/buff/buffitem/LvAddDamBuff.js +39 -0
  494. package/dist/core/module/battle/buff/buffitem/MagazineSwapProjectBuff.d.ts +8 -0
  495. package/dist/core/module/battle/buff/buffitem/MagazineSwapProjectBuff.js +45 -0
  496. package/dist/core/module/battle/buff/buffitem/MagazineSwapTimeBuff.d.ts +11 -0
  497. package/dist/core/module/battle/buff/buffitem/MagazineSwapTimeBuff.js +114 -0
  498. package/dist/core/module/battle/buff/buffitem/MaxHpDamBuff.d.ts +7 -0
  499. package/dist/core/module/battle/buff/buffitem/MaxHpDamBuff.js +48 -0
  500. package/dist/core/module/battle/buff/buffitem/MirrorUseSkillBuff.d.ts +8 -0
  501. package/dist/core/module/battle/buff/buffitem/MirrorUseSkillBuff.js +59 -0
  502. package/dist/core/module/battle/buff/buffitem/ModifyInHitBuff.d.ts +9 -0
  503. package/dist/core/module/battle/buff/buffitem/ModifyInHitBuff.js +72 -0
  504. package/dist/core/module/battle/buff/buffitem/ModifyProjectileAttrBuff.d.ts +11 -0
  505. package/dist/core/module/battle/buff/buffitem/ModifyProjectileAttrBuff.js +69 -0
  506. package/dist/core/module/battle/buff/buffitem/MonitorBuff.d.ts +19 -0
  507. package/dist/core/module/battle/buff/buffitem/MonitorBuff.js +203 -0
  508. package/dist/core/module/battle/buff/buffitem/NotAllowSplitBuff.d.ts +3 -0
  509. package/dist/core/module/battle/buff/buffitem/NotAllowSplitBuff.js +18 -0
  510. package/dist/core/module/battle/buff/buffitem/ParalysisBuff.d.ts +3 -0
  511. package/dist/core/module/battle/buff/buffitem/ParalysisBuff.js +18 -0
  512. package/dist/core/module/battle/buff/buffitem/PosionBuff.d.ts +15 -0
  513. package/dist/core/module/battle/buff/buffitem/PosionBuff.js +85 -0
  514. package/dist/core/module/battle/buff/buffitem/PosionExtraAddBuff.d.ts +3 -0
  515. package/dist/core/module/battle/buff/buffitem/PosionExtraAddBuff.js +18 -0
  516. package/dist/core/module/battle/buff/buffitem/PowerUpAddDamBuff.d.ts +10 -0
  517. package/dist/core/module/battle/buff/buffitem/PowerUpAddDamBuff.js +70 -0
  518. package/dist/core/module/battle/buff/buffitem/PriorityTargetBuff.d.ts +8 -0
  519. package/dist/core/module/battle/buff/buffitem/PriorityTargetBuff.js +58 -0
  520. package/dist/core/module/battle/buff/buffitem/ProjectileAlignShootBuff.d.ts +9 -0
  521. package/dist/core/module/battle/buff/buffitem/ProjectileAlignShootBuff.js +97 -0
  522. package/dist/core/module/battle/buff/buffitem/ProjectileCreateDamageBuff.d.ts +8 -0
  523. package/dist/core/module/battle/buff/buffitem/ProjectileCreateDamageBuff.js +62 -0
  524. package/dist/core/module/battle/buff/buffitem/ProjectileCreateScaleBuff.d.ts +8 -0
  525. package/dist/core/module/battle/buff/buffitem/ProjectileCreateScaleBuff.js +65 -0
  526. package/dist/core/module/battle/buff/buffitem/ProjectileCrossDamageBuff.d.ts +9 -0
  527. package/dist/core/module/battle/buff/buffitem/ProjectileCrossDamageBuff.js +73 -0
  528. package/dist/core/module/battle/buff/buffitem/ProjectileHitByTimesBuff.d.ts +10 -0
  529. package/dist/core/module/battle/buff/buffitem/ProjectileHitByTimesBuff.js +86 -0
  530. package/dist/core/module/battle/buff/buffitem/ProjectileOrbLinkBuff.d.ts +30 -0
  531. package/dist/core/module/battle/buff/buffitem/ProjectileOrbLinkBuff.js +393 -0
  532. package/dist/core/module/battle/buff/buffitem/ProjectileRandomDamageBuff.d.ts +9 -0
  533. package/dist/core/module/battle/buff/buffitem/ProjectileRandomDamageBuff.js +42 -0
  534. package/dist/core/module/battle/buff/buffitem/ProjectileScaleUpBuff.d.ts +10 -0
  535. package/dist/core/module/battle/buff/buffitem/ProjectileScaleUpBuff.js +87 -0
  536. package/dist/core/module/battle/buff/buffitem/ProtectBuff.d.ts +8 -0
  537. package/dist/core/module/battle/buff/buffitem/ProtectBuff.js +40 -0
  538. package/dist/core/module/battle/buff/buffitem/RandomDamageBuff.d.ts +10 -0
  539. package/dist/core/module/battle/buff/buffitem/RandomDamageBuff.js +81 -0
  540. package/dist/core/module/battle/buff/buffitem/RangeAtrBuff.d.ts +8 -0
  541. package/dist/core/module/battle/buff/buffitem/RangeAtrBuff.js +62 -0
  542. package/dist/core/module/battle/buff/buffitem/ReduceAtrBuff.d.ts +7 -0
  543. package/dist/core/module/battle/buff/buffitem/ReduceAtrBuff.js +49 -0
  544. package/dist/core/module/battle/buff/buffitem/RepelBuff.d.ts +7 -0
  545. package/dist/core/module/battle/buff/buffitem/RepelBuff.js +82 -0
  546. package/dist/core/module/battle/buff/buffitem/ReplaceSkillBuff.d.ts +8 -0
  547. package/dist/core/module/battle/buff/buffitem/ReplaceSkillBuff.js +109 -0
  548. package/dist/core/module/battle/buff/buffitem/RestoreSkillNumBuff.d.ts +10 -0
  549. package/dist/core/module/battle/buff/buffitem/RestoreSkillNumBuff.js +40 -0
  550. package/dist/core/module/battle/buff/buffitem/SameHitAddDamageBuff.d.ts +10 -0
  551. package/dist/core/module/battle/buff/buffitem/SameHitAddDamageBuff.js +53 -0
  552. package/dist/core/module/battle/buff/buffitem/ScaleBuff.d.ts +7 -0
  553. package/dist/core/module/battle/buff/buffitem/ScaleBuff.js +26 -0
  554. package/dist/core/module/battle/buff/buffitem/SearBuff.d.ts +6 -0
  555. package/dist/core/module/battle/buff/buffitem/SearBuff.js +44 -0
  556. package/dist/core/module/battle/buff/buffitem/SetSelectBuff.d.ts +8 -0
  557. package/dist/core/module/battle/buff/buffitem/SetSelectBuff.js +41 -0
  558. package/dist/core/module/battle/buff/buffitem/ShieldAddDamBuff.d.ts +9 -0
  559. package/dist/core/module/battle/buff/buffitem/ShieldAddDamBuff.js +46 -0
  560. package/dist/core/module/battle/buff/buffitem/ShieldAndSpeedBuff.d.ts +8 -0
  561. package/dist/core/module/battle/buff/buffitem/ShieldAndSpeedBuff.js +40 -0
  562. package/dist/core/module/battle/buff/buffitem/ShootAddDamageBuff.d.ts +9 -0
  563. package/dist/core/module/battle/buff/buffitem/ShootAddDamageBuff.js +44 -0
  564. package/dist/core/module/battle/buff/buffitem/SlayBuff.d.ts +9 -0
  565. package/dist/core/module/battle/buff/buffitem/SlayBuff.js +62 -0
  566. package/dist/core/module/battle/buff/buffitem/SlowBuff.d.ts +7 -0
  567. package/dist/core/module/battle/buff/buffitem/SlowBuff.js +25 -0
  568. package/dist/core/module/battle/buff/buffitem/SneakBuff.d.ts +7 -0
  569. package/dist/core/module/battle/buff/buffitem/SneakBuff.js +31 -0
  570. package/dist/core/module/battle/buff/buffitem/SprintBuff.d.ts +8 -0
  571. package/dist/core/module/battle/buff/buffitem/SprintBuff.js +71 -0
  572. package/dist/core/module/battle/buff/buffitem/StableBuff.d.ts +7 -0
  573. package/dist/core/module/battle/buff/buffitem/StableBuff.js +26 -0
  574. package/dist/core/module/battle/buff/buffitem/StateChangeBuff.d.ts +10 -0
  575. package/dist/core/module/battle/buff/buffitem/StateChangeBuff.js +71 -0
  576. package/dist/core/module/battle/buff/buffitem/StorageBuff.d.ts +3 -0
  577. package/dist/core/module/battle/buff/buffitem/StorageBuff.js +18 -0
  578. package/dist/core/module/battle/buff/buffitem/SurgeBuff.d.ts +7 -0
  579. package/dist/core/module/battle/buff/buffitem/SurgeBuff.js +28 -0
  580. package/dist/core/module/battle/buff/buffitem/SwordWindShieldBuff.d.ts +9 -0
  581. package/dist/core/module/battle/buff/buffitem/SwordWindShieldBuff.js +60 -0
  582. package/dist/core/module/battle/buff/buffitem/SwordWindWallBuff.d.ts +7 -0
  583. package/dist/core/module/battle/buff/buffitem/SwordWindWallBuff.js +38 -0
  584. package/dist/core/module/battle/buff/buffitem/TeleportBuff.d.ts +8 -0
  585. package/dist/core/module/battle/buff/buffitem/TeleportBuff.js +85 -0
  586. package/dist/core/module/battle/buff/buffitem/TimeAddDamageBuff.d.ts +11 -0
  587. package/dist/core/module/battle/buff/buffitem/TimeAddDamageBuff.js +84 -0
  588. package/dist/core/module/battle/buff/buffitem/TowerCritBuff.d.ts +7 -0
  589. package/dist/core/module/battle/buff/buffitem/TowerCritBuff.js +26 -0
  590. package/dist/core/module/battle/buff/buffitem/VulnerableBuff.d.ts +7 -0
  591. package/dist/core/module/battle/buff/buffitem/VulnerableBuff.js +27 -0
  592. package/dist/core/module/battle/buff/buffitem/index.d.ts +122 -0
  593. package/dist/core/module/battle/buff/buffitem/index.js +134 -0
  594. package/dist/core/module/battle/collider/Collider.d.ts +60 -0
  595. package/dist/core/module/battle/collider/Collider.js +54 -0
  596. package/dist/core/module/battle/collider/ColliderPool.d.ts +15 -0
  597. package/dist/core/module/battle/collider/ColliderPool.js +60 -0
  598. package/dist/core/module/battle/collider/QuadTree.d.ts +48 -0
  599. package/dist/core/module/battle/collider/QuadTree.js +192 -0
  600. package/dist/core/module/battle/entity/BaseEntityData.d.ts +141 -0
  601. package/dist/core/module/battle/entity/BaseEntityData.js +355 -0
  602. package/dist/core/module/battle/entity/DragonBodyData.d.ts +16 -0
  603. package/dist/core/module/battle/entity/DragonBodyData.js +32 -0
  604. package/dist/core/module/battle/entity/DragonData.d.ts +15 -0
  605. package/dist/core/module/battle/entity/DragonData.js +31 -0
  606. package/dist/core/module/battle/entity/EntityPool.d.ts +13 -0
  607. package/dist/core/module/battle/entity/EntityPool.js +60 -0
  608. package/dist/core/module/battle/entity/EntityPoolSpawner.d.ts +5 -0
  609. package/dist/core/module/battle/entity/EntityPoolSpawner.js +67 -0
  610. package/dist/core/module/battle/entity/FighterData.d.ts +131 -0
  611. package/dist/core/module/battle/entity/FighterData.js +466 -0
  612. package/dist/core/module/battle/entity/ProjectileData.d.ts +107 -0
  613. package/dist/core/module/battle/entity/ProjectileData.js +262 -0
  614. package/dist/core/module/battle/entity/RoleData.d.ts +11 -0
  615. package/dist/core/module/battle/entity/RoleData.js +43 -0
  616. package/dist/core/module/battle/entity/index.d.ts +8 -0
  617. package/dist/core/module/battle/entity/index.js +20 -0
  618. package/dist/core/module/battle/event/EntityEvent.d.ts +80 -0
  619. package/dist/core/module/battle/event/EntityEvent.js +84 -0
  620. package/dist/core/module/battle/event/EntityEventBus.d.ts +27 -0
  621. package/dist/core/module/battle/event/EntityEventBus.js +73 -0
  622. package/dist/core/module/battle/event/EventBind.d.ts +35 -0
  623. package/dist/core/module/battle/event/EventBind.js +93 -0
  624. package/dist/core/module/battle/event/EventListener.d.ts +60 -0
  625. package/dist/core/module/battle/event/EventListener.js +360 -0
  626. package/dist/core/module/battle/event/GameEvent.d.ts +44 -0
  627. package/dist/core/module/battle/event/GameEvent.js +52 -0
  628. package/dist/core/module/battle/factory/FighterFactory.d.ts +14 -0
  629. package/dist/core/module/battle/factory/FighterFactory.js +237 -0
  630. package/dist/core/module/battle/fsm-state/AnyFighterStateTransitions.d.ts +59 -0
  631. package/dist/core/module/battle/fsm-state/AnyFighterStateTransitions.js +183 -0
  632. package/dist/core/module/battle/fsm-state/AnyFighterStates.d.ts +108 -0
  633. package/dist/core/module/battle/fsm-state/AnyFighterStates.js +560 -0
  634. package/dist/core/module/battle/fsm-state/Boss18110CallState.d.ts +19 -0
  635. package/dist/core/module/battle/fsm-state/Boss18110CallState.js +49 -0
  636. package/dist/core/module/battle/fsm-state/Boss18110State.d.ts +15 -0
  637. package/dist/core/module/battle/fsm-state/Boss18110State.js +38 -0
  638. package/dist/core/module/battle/fsm-state/Boss18110Transitions.d.ts +11 -0
  639. package/dist/core/module/battle/fsm-state/Boss18110Transitions.js +52 -0
  640. package/dist/core/module/battle/fsm-state/DragonBodyFighterStates.d.ts +11 -0
  641. package/dist/core/module/battle/fsm-state/DragonBodyFighterStates.js +27 -0
  642. package/dist/core/module/battle/fsm-state/DragonFighterStates.d.ts +22 -0
  643. package/dist/core/module/battle/fsm-state/DragonFighterStates.js +162 -0
  644. package/dist/core/module/battle/fsm-state/FighterStateMachine.d.ts +7 -0
  645. package/dist/core/module/battle/fsm-state/FighterStateMachine.js +50 -0
  646. package/dist/core/module/battle/fsm-state/FighterStateProfiles.d.ts +18 -0
  647. package/dist/core/module/battle/fsm-state/FighterStateProfiles.js +109 -0
  648. package/dist/core/module/battle/fsm-state/FighterStateRegistry.d.ts +25 -0
  649. package/dist/core/module/battle/fsm-state/FighterStateRegistry.js +73 -0
  650. package/dist/core/module/battle/fsm-state/FighterStateShared.d.ts +23 -0
  651. package/dist/core/module/battle/fsm-state/FighterStateShared.js +274 -0
  652. package/dist/core/module/battle/fsm-state/FighterStateTransition.d.ts +11 -0
  653. package/dist/core/module/battle/fsm-state/FighterStateTransition.js +15 -0
  654. package/dist/core/module/battle/fsm-state/FighterStateType.d.ts +17 -0
  655. package/dist/core/module/battle/fsm-state/FighterStateType.js +21 -0
  656. package/dist/core/module/battle/fsm-state/index.d.ts +7 -0
  657. package/dist/core/module/battle/fsm-state/index.js +19 -0
  658. package/dist/core/module/battle/manager/EntityManager.d.ts +10 -0
  659. package/dist/core/module/battle/manager/EntityManager.js +219 -0
  660. package/dist/core/module/battle/render/RenderModule.d.ts +10 -0
  661. package/dist/core/module/battle/render/RenderModule.js +19 -0
  662. package/dist/core/module/battle/skill/SkillData.d.ts +23 -0
  663. package/dist/core/module/battle/skill/SkillData.js +23 -0
  664. package/dist/core/module/battle/skill/emitter/SkillDirectEmitter.d.ts +12 -0
  665. package/dist/core/module/battle/skill/emitter/SkillDirectEmitter.js +98 -0
  666. package/dist/core/module/battle/skill/emitter/SkillEmitter.d.ts +12 -0
  667. package/dist/core/module/battle/skill/emitter/SkillEmitter.js +60 -0
  668. package/dist/core/module/battle/skill/emitter/SkillRandomDirEmitter.d.ts +12 -0
  669. package/dist/core/module/battle/skill/emitter/SkillRandomDirEmitter.js +68 -0
  670. package/dist/core/module/battle/skill/emitter/SkillRandomIndexEmitter.d.ts +12 -0
  671. package/dist/core/module/battle/skill/emitter/SkillRandomIndexEmitter.js +71 -0
  672. package/dist/core/module/battle/skill/emitter/index.d.ts +4 -0
  673. package/dist/core/module/battle/skill/emitter/index.js +16 -0
  674. package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter.d.ts +30 -0
  675. package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter.js +120 -0
  676. package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter0.d.ts +8 -0
  677. package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter0.js +39 -0
  678. package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter1.d.ts +24 -0
  679. package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter1.js +162 -0
  680. package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter10.d.ts +40 -0
  681. package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter10.js +229 -0
  682. package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter11.d.ts +12 -0
  683. package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter11.js +39 -0
  684. package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter12.d.ts +9 -0
  685. package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter12.js +53 -0
  686. package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter13.d.ts +77 -0
  687. package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter13.js +431 -0
  688. package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter14.d.ts +24 -0
  689. package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter14.js +112 -0
  690. package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter15.d.ts +17 -0
  691. package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter15.js +107 -0
  692. package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter16.d.ts +23 -0
  693. package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter16.js +116 -0
  694. package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter17.d.ts +26 -0
  695. package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter17.js +81 -0
  696. package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter18.d.ts +17 -0
  697. package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter18.js +86 -0
  698. package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter19.d.ts +57 -0
  699. package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter19.js +327 -0
  700. package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter2.d.ts +13 -0
  701. package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter2.js +81 -0
  702. package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter20.d.ts +12 -0
  703. package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter20.js +49 -0
  704. package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter21.d.ts +21 -0
  705. package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter21.js +103 -0
  706. package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter22.d.ts +18 -0
  707. package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter22.js +68 -0
  708. package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter23.d.ts +33 -0
  709. package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter23.js +130 -0
  710. package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter24.d.ts +31 -0
  711. package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter24.js +139 -0
  712. package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter25.d.ts +16 -0
  713. package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter25.js +60 -0
  714. package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter26.d.ts +30 -0
  715. package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter26.js +72 -0
  716. package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter27.d.ts +19 -0
  717. package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter27.js +74 -0
  718. package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter28.d.ts +25 -0
  719. package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter28.js +212 -0
  720. package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter29.d.ts +49 -0
  721. package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter29.js +359 -0
  722. package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter3.d.ts +74 -0
  723. package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter3.js +420 -0
  724. package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter4.d.ts +76 -0
  725. package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter4.js +413 -0
  726. package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter5.d.ts +9 -0
  727. package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter5.js +42 -0
  728. package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter6.d.ts +18 -0
  729. package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter6.js +111 -0
  730. package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter7.d.ts +36 -0
  731. package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter7.js +114 -0
  732. package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter8.d.ts +24 -0
  733. package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter8.js +253 -0
  734. package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter9.d.ts +9 -0
  735. package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter9.js +56 -0
  736. package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitterShared.d.ts +45 -0
  737. package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitterShared.js +68 -0
  738. package/dist/core/module/battle/skill/emitter/projectiles/index.d.ts +32 -0
  739. package/dist/core/module/battle/skill/emitter/projectiles/index.js +44 -0
  740. package/dist/core/module/battle/skill/impacts/Impact0.d.ts +7 -0
  741. package/dist/core/module/battle/skill/impacts/Impact0.js +20 -0
  742. package/dist/core/module/battle/skill/impacts/Impact1.d.ts +14 -0
  743. package/dist/core/module/battle/skill/impacts/Impact1.js +77 -0
  744. package/dist/core/module/battle/skill/impacts/Impact10.d.ts +13 -0
  745. package/dist/core/module/battle/skill/impacts/Impact10.js +55 -0
  746. package/dist/core/module/battle/skill/impacts/Impact11.d.ts +11 -0
  747. package/dist/core/module/battle/skill/impacts/Impact11.js +33 -0
  748. package/dist/core/module/battle/skill/impacts/Impact12.d.ts +10 -0
  749. package/dist/core/module/battle/skill/impacts/Impact12.js +35 -0
  750. package/dist/core/module/battle/skill/impacts/Impact13.d.ts +14 -0
  751. package/dist/core/module/battle/skill/impacts/Impact13.js +49 -0
  752. package/dist/core/module/battle/skill/impacts/Impact14.d.ts +10 -0
  753. package/dist/core/module/battle/skill/impacts/Impact14.js +36 -0
  754. package/dist/core/module/battle/skill/impacts/Impact15.d.ts +10 -0
  755. package/dist/core/module/battle/skill/impacts/Impact15.js +35 -0
  756. package/dist/core/module/battle/skill/impacts/Impact16.d.ts +12 -0
  757. package/dist/core/module/battle/skill/impacts/Impact16.js +33 -0
  758. package/dist/core/module/battle/skill/impacts/Impact17.d.ts +12 -0
  759. package/dist/core/module/battle/skill/impacts/Impact17.js +39 -0
  760. package/dist/core/module/battle/skill/impacts/Impact18.d.ts +12 -0
  761. package/dist/core/module/battle/skill/impacts/Impact18.js +33 -0
  762. package/dist/core/module/battle/skill/impacts/Impact2.d.ts +16 -0
  763. package/dist/core/module/battle/skill/impacts/Impact2.js +89 -0
  764. package/dist/core/module/battle/skill/impacts/Impact3.d.ts +30 -0
  765. package/dist/core/module/battle/skill/impacts/Impact3.js +254 -0
  766. package/dist/core/module/battle/skill/impacts/Impact4.d.ts +11 -0
  767. package/dist/core/module/battle/skill/impacts/Impact4.js +27 -0
  768. package/dist/core/module/battle/skill/impacts/Impact5.d.ts +18 -0
  769. package/dist/core/module/battle/skill/impacts/Impact5.js +211 -0
  770. package/dist/core/module/battle/skill/impacts/Impact6.d.ts +19 -0
  771. package/dist/core/module/battle/skill/impacts/Impact6.js +105 -0
  772. package/dist/core/module/battle/skill/impacts/Impact7.d.ts +13 -0
  773. package/dist/core/module/battle/skill/impacts/Impact7.js +40 -0
  774. package/dist/core/module/battle/skill/impacts/Impact8.d.ts +10 -0
  775. package/dist/core/module/battle/skill/impacts/Impact8.js +28 -0
  776. package/dist/core/module/battle/skill/impacts/Impact9.d.ts +10 -0
  777. package/dist/core/module/battle/skill/impacts/Impact9.js +32 -0
  778. package/dist/core/module/battle/skill/impacts/Impact99.d.ts +13 -0
  779. package/dist/core/module/battle/skill/impacts/Impact99.js +40 -0
  780. package/dist/core/module/battle/skill/impacts/ImpactRegistry.d.ts +10 -0
  781. package/dist/core/module/battle/skill/impacts/ImpactRegistry.js +28 -0
  782. package/dist/core/module/battle/skill/impacts/SkillImpact.d.ts +25 -0
  783. package/dist/core/module/battle/skill/impacts/SkillImpact.js +33 -0
  784. package/dist/core/module/battle/skill/impacts/SkillImpactShared.d.ts +3 -0
  785. package/dist/core/module/battle/skill/impacts/SkillImpactShared.js +6 -0
  786. package/dist/core/module/battle/skill/impacts/index.d.ts +23 -0
  787. package/dist/core/module/battle/skill/impacts/index.js +35 -0
  788. package/dist/core/module/battle/skill/pool/SkillEmitterPool.d.ts +10 -0
  789. package/dist/core/module/battle/skill/pool/SkillEmitterPool.js +30 -0
  790. package/dist/core/module/battle/skill/pool/SkillImpactPool.d.ts +13 -0
  791. package/dist/core/module/battle/skill/pool/SkillImpactPool.js +45 -0
  792. package/dist/core/module/battle/system/BornSystem.d.ts +32 -0
  793. package/dist/core/module/battle/system/BornSystem.js +776 -0
  794. package/dist/core/module/battle/system/BuffSystem.d.ts +35 -0
  795. package/dist/core/module/battle/system/BuffSystem.js +431 -0
  796. package/dist/core/module/battle/system/CollisionSystem.d.ts +78 -0
  797. package/dist/core/module/battle/system/CollisionSystem.js +638 -0
  798. package/dist/core/module/battle/system/DebugSystem.d.ts +21 -0
  799. package/dist/core/module/battle/system/DebugSystem.js +42 -0
  800. package/dist/core/module/battle/system/DestroySystem.d.ts +13 -0
  801. package/dist/core/module/battle/system/DestroySystem.js +84 -0
  802. package/dist/core/module/battle/system/EntityBoundsSystem.d.ts +9 -0
  803. package/dist/core/module/battle/system/EntityBoundsSystem.js +32 -0
  804. package/dist/core/module/battle/system/FsmSystem.d.ts +12 -0
  805. package/dist/core/module/battle/system/FsmSystem.js +41 -0
  806. package/dist/core/module/battle/system/GameSystem.d.ts +12 -0
  807. package/dist/core/module/battle/system/GameSystem.js +10 -0
  808. package/dist/core/module/battle/system/InputSystem.d.ts +21 -0
  809. package/dist/core/module/battle/system/InputSystem.js +146 -0
  810. package/dist/core/module/battle/system/MarkCaptureSystem.d.ts +9 -0
  811. package/dist/core/module/battle/system/MarkCaptureSystem.js +25 -0
  812. package/dist/core/module/battle/system/ProjectileSystem.d.ts +23 -0
  813. package/dist/core/module/battle/system/ProjectileSystem.js +301 -0
  814. package/dist/core/module/battle/system/SkillSystem.d.ts +92 -0
  815. package/dist/core/module/battle/system/SkillSystem.js +393 -0
  816. package/dist/core/module/battle/system/TimeSystem.d.ts +7 -0
  817. package/dist/core/module/battle/system/TimeSystem.js +14 -0
  818. package/dist/core/module/battle/target/CloseAngleTargetSelection.d.ts +4 -0
  819. package/dist/core/module/battle/target/CloseAngleTargetSelection.js +54 -0
  820. package/dist/core/module/battle/target/CloseDownTargetSelection.d.ts +4 -0
  821. package/dist/core/module/battle/target/CloseDownTargetSelection.js +63 -0
  822. package/dist/core/module/battle/target/CloseTargetSelection.d.ts +4 -0
  823. package/dist/core/module/battle/target/CloseTargetSelection.js +65 -0
  824. package/dist/core/module/battle/target/FarTargetSelection.d.ts +4 -0
  825. package/dist/core/module/battle/target/FarTargetSelection.js +54 -0
  826. package/dist/core/module/battle/target/PriorityBossTargetSelection.js +52 -0
  827. package/dist/core/module/battle/target/PriorityTypeTargetSelection.d.ts +4 -0
  828. package/dist/core/module/battle/target/PriorityTypeTargetSelection.js +74 -0
  829. package/dist/core/module/battle/target/RandomRangeTargetSelection.d.ts +4 -0
  830. package/dist/core/module/battle/target/RandomRangeTargetSelection.js +42 -0
  831. package/dist/core/module/battle/target/RandomTargetSelection.d.ts +4 -0
  832. package/dist/core/module/battle/target/RandomTargetSelection.js +50 -0
  833. package/dist/core/module/battle/target/RectRandomTargetSelection.d.ts +4 -0
  834. package/dist/core/module/battle/target/RectRandomTargetSelection.js +25 -0
  835. package/dist/core/module/battle/target/SelfRandomTargetSelection.d.ts +4 -0
  836. package/dist/core/module/battle/target/SelfRandomTargetSelection.js +48 -0
  837. package/dist/core/module/battle/target/SelfRandomTowerTargetSelection.d.ts +4 -0
  838. package/dist/core/module/battle/target/SelfRandomTowerTargetSelection.js +33 -0
  839. package/dist/core/module/battle/target/SelfRoleTargetSelection.d.ts +4 -0
  840. package/dist/core/module/battle/target/SelfRoleTargetSelection.js +13 -0
  841. package/dist/core/module/battle/target/SelfTargetSelection.d.ts +4 -0
  842. package/dist/core/module/battle/target/SelfTargetSelection.js +12 -0
  843. package/dist/core/module/battle/target/TargetSelection.d.ts +16 -0
  844. package/dist/core/module/battle/target/TargetSelection.js +43 -0
  845. package/dist/core/module/battle/target/index.d.ts +12 -0
  846. package/dist/core/module/battle/target/index.js +24 -0
  847. package/dist/core/module/battle/util/BRect.d.ts +18 -0
  848. package/dist/core/module/battle/util/BRect.js +26 -0
  849. package/dist/core/module/battle/util/BSize.d.ts +10 -0
  850. package/dist/core/module/battle/util/BSize.js +12 -0
  851. package/dist/core/module/battle/util/BVec2.d.ts +58 -0
  852. package/dist/core/module/battle/util/BVec2.js +247 -0
  853. package/dist/core/module/battle/util/BattleAudioAdpater.d.ts +4 -0
  854. package/dist/core/module/battle/util/BattleAudioAdpater.js +10 -0
  855. package/dist/core/module/battle/util/BattleConfig.d.ts +10 -0
  856. package/dist/core/module/battle/util/BattleConfig.js +25 -0
  857. package/dist/core/module/battle/util/BattleInputCodec.d.ts +35 -0
  858. package/dist/core/module/battle/util/BattleInputCodec.js +184 -0
  859. package/dist/core/module/battle/util/BattleUtils.d.ts +46 -0
  860. package/dist/core/module/battle/util/BattleUtils.js +501 -0
  861. package/dist/core/module/battle/util/EllipseArc.d.ts +3 -0
  862. package/dist/core/module/battle/util/EllipseArc.js +95 -0
  863. package/dist/core/module/battle/util/Hash.d.ts +7 -0
  864. package/dist/core/module/battle/util/Hash.js +44 -0
  865. package/dist/core/module/battle/util/HitDataPool.d.ts +44 -0
  866. package/dist/core/module/battle/util/HitDataPool.js +97 -0
  867. package/dist/core/module/battle/util/Intersection.d.ts +151 -0
  868. package/dist/core/module/battle/util/Intersection.js +696 -0
  869. package/dist/core/module/battle/util/JMath.d.ts +30 -0
  870. package/dist/core/module/battle/util/JMath.js +239 -0
  871. package/dist/core/module/battle/util/Random.d.ts +23 -0
  872. package/dist/core/module/battle/util/Random.js +113 -0
  873. package/dist/core/module/battle/util/SkillEffectByIdParamsPool.d.ts +3 -0
  874. package/dist/core/module/battle/util/SkillEffectByIdParamsPool.js +34 -0
  875. package/dist/core/module/guild/view/boss/GuildBossBattleModule.d.ts +29 -0
  876. package/dist/core/module/guild/view/boss/GuildBossBattleModule.js +216 -0
  877. package/dist/core/module/guild/view/boss/index.d.ts +1 -0
  878. package/dist/core/module/guild/view/boss/index.js +13 -0
  879. package/dist/core/module/module.interface.d.ts +134 -0
  880. package/dist/core/module/module.interface.js +44 -0
  881. package/dist/core/module/property/Property.d.ts +61 -0
  882. package/dist/core/module/property/Property.js +239 -0
  883. package/dist/core/module/property/PropertyUtil.d.ts +61 -0
  884. package/dist/core/module/property/PropertyUtil.js +284 -0
  885. package/dist/core/module/relicDungeon/RelicBattleModule.d.ts +11 -0
  886. package/dist/core/module/relicDungeon/RelicBattleModule.js +100 -0
  887. package/dist/core/module/relicDungeon/index.d.ts +1 -0
  888. package/dist/core/module/relicDungeon/index.js +13 -0
  889. package/dist/core/module/stage/StageBattleModule.d.ts +11 -0
  890. package/dist/core/module/stage/StageBattleModule.js +105 -0
  891. package/dist/core/module/stage/index.d.ts +1 -0
  892. package/dist/core/module/stage/index.js +13 -0
  893. package/dist/core/proto/CommonProto.d.ts +45098 -0
  894. package/dist/core/proto/Proto.d.ts +1016 -0
  895. package/dist/core/util/BattlePlayerUtil.d.ts +14 -0
  896. package/dist/core/util/BattlePlayerUtil.js +23 -0
  897. package/dist/core/util/DeepCopy.d.ts +1 -0
  898. package/dist/core/util/DeepCopy.js +28 -0
  899. package/dist/core/util/GameUtil.d.ts +213 -0
  900. package/dist/core/util/GameUtil.js +922 -0
  901. package/dist/core/util/lz-string.d.ts +12 -0
  902. package/dist/core/util/lz-string.js +471 -0
  903. package/dist/core/util/pako_inflate.d.ts +2 -0
  904. package/dist/core/util/pako_inflate.js +655 -0
  905. package/dist/db-url-resolver.js +57 -0
  906. package/dist/index.d.ts +43 -0
  907. package/dist/index.js +278 -0
  908. package/dist/register-all.d.ts +10 -0
  909. package/dist/register-all.js +28 -0
  910. package/dist/tsconfig.tsbuildinfo +1 -0
  911. package/node_modules/cc/dist/index.d.ts +407 -0
  912. package/node_modules/cc/dist/index.js +1139 -0
  913. package/node_modules/cc/package.json +23 -0
  914. package/node_modules/cc/src/index.ts +1230 -0
  915. package/package.json +61 -4
  916. package/resources/config/GameJsonCfg.bin +0 -0
@@ -0,0 +1,1139 @@
1
+ /**
2
+ * cc —— Cocos Creator 引擎 API 在 Node 侧的替身实现
3
+ *
4
+ * 为什么需要它:core/ 是从 Cocos Creator 工程里抽出的战斗逻辑,源码里到处写
5
+ * `import { ... } from "cc"`。Node 里没有引擎,这层替身把用到的 API 按原语义补齐,
6
+ * 让战斗逻辑能脱离引擎跑(离线复算战斗、和回放对 hash、跑单测)。
7
+ *
8
+ * 三条原则:
9
+ * 1. 逻辑侧真实现。log/warn/error、js、math、director + Scheduler 是全真的,
10
+ * Node 下和引擎行为一致,拿到就能用。
11
+ * 2. 引擎侧不撒谎。Node/Vec3/资源这些只做到"能构造、不崩、语义可预期";
12
+ * 没实现的 API 一律不导出——用到了在编译期就报错,而不是运行期悄悄给 undefined。
13
+ * 3. 零依赖。只用 Node 自带能力;`node:fs` 在真要读盘时才动态 import,
14
+ * 保证 `import "cc"` 本身在任何宿主里都不会有副作用。
15
+ *
16
+ * 只覆盖本项目实际用到的子集,不是引擎的完整实现。以后补 API 请照引擎原语义写,
17
+ * 别按调用点的巧合行为写。
18
+ *
19
+ * 放在单文件里是有意的:编译产物是 ESM,一旦拆成多个文件,相对 import 就得带
20
+ * `.js` 后缀 Node 才解析得了;这里没有相对 import,省掉这个坑。
21
+ */
22
+ /* -------------------------------------------------------------------------- */
23
+ /* 日志:log / warn / error */
24
+ /* -------------------------------------------------------------------------- */
25
+ /*
26
+ * 引擎的 log/warn/error 支持 printf 风格占位符(%s/%d/%i/%f/%j/%o/%O/%%),
27
+ * 且只在第一个参数是字符串时按占位符吃后面的参数。
28
+ * Node 的 console 是同一套规则,所以这里直接转发,不做二次格式化——
29
+ * 自己实现反而会在 "%s" 和普通 "%" 混用时和引擎对不上。
30
+ */
31
+ export function log(...args) {
32
+ console.log(...args);
33
+ }
34
+ export function warn(...args) {
35
+ console.warn(...args);
36
+ }
37
+ export function error(...args) {
38
+ console.error(...args);
39
+ }
40
+ /* -------------------------------------------------------------------------- */
41
+ /* js 命名空间 */
42
+ /* -------------------------------------------------------------------------- */
43
+ const _classByName = new Map();
44
+ const _classById = new Map();
45
+ export var js;
46
+ (function (js) {
47
+ /**
48
+ * 建一个纯字典对象。
49
+ * 引擎里返回 Object.create(null),不受原型链干扰——当 map 用时
50
+ * `obj["toString"]` 这类键名不会误命中 Object.prototype 上的东西。
51
+ */
52
+ function createMap(forceDictMode) {
53
+ const map = Object.create(null);
54
+ if (forceDictMode) {
55
+ // 强制字典模式下把三个危险键占成不可枚举属性,挡住原型链入口
56
+ for (const key of ["__proto__", "constructor", "prototype"]) {
57
+ Object.defineProperty(map, key, {
58
+ value: undefined,
59
+ enumerable: false,
60
+ writable: true,
61
+ configurable: true,
62
+ });
63
+ }
64
+ }
65
+ return map;
66
+ }
67
+ js.createMap = createMap;
68
+ function getClassName(target) {
69
+ if (target == null)
70
+ return "";
71
+ return target.__classname__ || target.name || "";
72
+ }
73
+ js.getClassName = getClassName;
74
+ function setClassName(target, name) {
75
+ if (target == null)
76
+ return;
77
+ target.__classname__ = name;
78
+ }
79
+ js.setClassName = setClassName;
80
+ function getClassByName(name) {
81
+ return _classByName.get(name) || null;
82
+ }
83
+ js.getClassByName = getClassByName;
84
+ function getClassById(id) {
85
+ return _classById.get(id) || null;
86
+ }
87
+ js.getClassById = getClassById;
88
+ function setClassId(id, constructor) {
89
+ _classById.set(id, constructor);
90
+ }
91
+ js.setClassId = setClassId;
92
+ function isChildClassOf(subclass, superclass) {
93
+ if (typeof subclass !== "function" || typeof superclass !== "function")
94
+ return false;
95
+ if (subclass === superclass)
96
+ return true;
97
+ if (superclass === Object)
98
+ return true;
99
+ let proto = subclass;
100
+ while (proto) {
101
+ proto = Object.getPrototypeOf(proto);
102
+ if (proto === superclass)
103
+ return true;
104
+ }
105
+ return false;
106
+ }
107
+ js.isChildClassOf = isChildClassOf;
108
+ function isCCClassOrFastDefined(obj) {
109
+ return !!(obj && obj.__isCCClass__);
110
+ }
111
+ js.isCCClassOrFastDefined = isCCClassOrFastDefined;
112
+ /** 把 src 的自有属性(含访问器)拷到 dst,同名的不覆盖 */
113
+ function mixin(dst, src) {
114
+ if (!src)
115
+ return dst;
116
+ for (const key of Object.getOwnPropertyNames(src)) {
117
+ if (key === "constructor" || key in dst)
118
+ continue;
119
+ const desc = Object.getOwnPropertyDescriptor(src, key);
120
+ if (desc)
121
+ Object.defineProperty(dst, key, desc);
122
+ }
123
+ return dst;
124
+ }
125
+ js.mixin = mixin;
126
+ /** 和 mixin 的唯一区别是它会覆盖同名属性 */
127
+ function addon(dst, src) {
128
+ if (!src)
129
+ return dst;
130
+ for (const key of Object.getOwnPropertyNames(src)) {
131
+ if (key === "constructor")
132
+ continue;
133
+ const desc = Object.getOwnPropertyDescriptor(src, key);
134
+ if (desc)
135
+ Object.defineProperty(dst, key, desc);
136
+ }
137
+ return dst;
138
+ }
139
+ js.addon = addon;
140
+ function clear(obj) {
141
+ if (!obj)
142
+ return;
143
+ for (const key of Object.keys(obj))
144
+ delete obj[key];
145
+ }
146
+ js.clear = clear;
147
+ let array;
148
+ (function (array_1) {
149
+ function remove(array, value) {
150
+ const index = array.indexOf(value);
151
+ if (index < 0)
152
+ return false;
153
+ array.splice(index, 1);
154
+ return true;
155
+ }
156
+ array_1.remove = remove;
157
+ function removeIf(array, predicate) {
158
+ for (let i = array.length - 1; i >= 0; --i) {
159
+ if (predicate(array[i], i))
160
+ array.splice(i, 1);
161
+ }
162
+ }
163
+ array_1.removeIf = removeIf;
164
+ function append(array, value) {
165
+ array.push(value);
166
+ }
167
+ array_1.append = append;
168
+ function appendArray(array, values) {
169
+ if (!values)
170
+ return;
171
+ for (const value of values)
172
+ array.push(value);
173
+ }
174
+ array_1.appendArray = appendArray;
175
+ /** 用末位元素填洞顶掉被删元素,不保序但省去 splice 的整体搬移 */
176
+ function fastRemove(array, value) {
177
+ fastRemoveAt(array, array.indexOf(value));
178
+ }
179
+ array_1.fastRemove = fastRemove;
180
+ function fastRemoveAt(array, index) {
181
+ if (index < 0 || index >= array.length)
182
+ return;
183
+ const last = array.length - 1;
184
+ if (index !== last)
185
+ array[index] = array[last];
186
+ array.length = last;
187
+ }
188
+ array_1.fastRemoveAt = fastRemoveAt;
189
+ function contains(array, value) {
190
+ return array.indexOf(value) >= 0;
191
+ }
192
+ array_1.contains = contains;
193
+ function verifyType(array, type, allowNull) {
194
+ for (const value of array) {
195
+ if (value == null) {
196
+ if (!allowNull)
197
+ return false;
198
+ continue;
199
+ }
200
+ if (!(value instanceof type))
201
+ return false;
202
+ }
203
+ return true;
204
+ }
205
+ array_1.verifyType = verifyType;
206
+ function removeArray(array, values) {
207
+ if (!values)
208
+ return;
209
+ for (const value of values)
210
+ remove(array, value);
211
+ }
212
+ array_1.removeArray = removeArray;
213
+ function copy(array) {
214
+ return array.slice();
215
+ }
216
+ array_1.copy = copy;
217
+ })(array = js.array || (js.array = {}));
218
+ /** 登记类名,getClassByName 才找得回来 */
219
+ function registerClass(constructor) {
220
+ _classByName.set(getClassName(constructor), constructor);
221
+ }
222
+ js.registerClass = registerClass;
223
+ })(js || (js = {}));
224
+ /* -------------------------------------------------------------------------- */
225
+ /* math 命名空间 */
226
+ /* */
227
+ /* Vec2/Vec3 定义在命名空间里,再桥到顶层导出(见文件末尾)。这样 cc.Vec3 和 */
228
+ /* math.Vec3 拿到的是同一个类对象,instanceof / 装饰器检查都安全。 */
229
+ /* -------------------------------------------------------------------------- */
230
+ export var math;
231
+ (function (math) {
232
+ math.EPSILON = 0.000001;
233
+ math.PI = Math.PI;
234
+ math.HALF_PI = Math.PI / 2;
235
+ math.TWO_PI = Math.PI * 2;
236
+ math.RAD = Math.PI / 180;
237
+ math.DEG = 180 / Math.PI;
238
+ class Vec2 {
239
+ static ZERO = Object.freeze(new Vec2(0, 0));
240
+ static ONE = Object.freeze(new Vec2(1, 1));
241
+ static UP = Object.freeze(new Vec2(0, 1));
242
+ static RIGHT = Object.freeze(new Vec2(1, 0));
243
+ x;
244
+ y;
245
+ constructor(x = 0, y = 0) {
246
+ this.x = x;
247
+ this.y = y;
248
+ }
249
+ clone() { return new Vec2(this.x, this.y); }
250
+ set(x, y) {
251
+ if (typeof x === "object") {
252
+ this.x = x.x;
253
+ this.y = x.y;
254
+ }
255
+ else {
256
+ this.x = x;
257
+ this.y = y;
258
+ }
259
+ return this;
260
+ }
261
+ copy(other) { return this.set(other.x, other.y); }
262
+ add(other) {
263
+ this.x += other.x;
264
+ this.y += other.y;
265
+ return this;
266
+ }
267
+ subtract(other) {
268
+ this.x -= other.x;
269
+ this.y -= other.y;
270
+ return this;
271
+ }
272
+ multiplyScalar(scale) {
273
+ this.x *= scale;
274
+ this.y *= scale;
275
+ return this;
276
+ }
277
+ divideScalar(scale) {
278
+ if (scale === 0)
279
+ return this.multiplyScalar(0);
280
+ this.x /= scale;
281
+ this.y /= scale;
282
+ return this;
283
+ }
284
+ negative() {
285
+ this.x = -this.x;
286
+ this.y = -this.y;
287
+ return this;
288
+ }
289
+ length() { return Math.sqrt(this.x * this.x + this.y * this.y); }
290
+ lengthSqr() { return this.x * this.x + this.y * this.y; }
291
+ normalize() {
292
+ const len = this.length();
293
+ if (len > 0)
294
+ this.divideScalar(len);
295
+ return this;
296
+ }
297
+ dot(other) { return this.x * other.x + this.y * other.y; }
298
+ cross(other) { return this.x * other.y - this.y * other.x; }
299
+ lerp(to, ratio) {
300
+ this.x = this.x + (to.x - this.x) * ratio;
301
+ this.y = this.y + (to.y - this.y) * ratio;
302
+ return this;
303
+ }
304
+ equals(other, epsilon = 0) {
305
+ return Math.abs(this.x - other.x) <= epsilon && Math.abs(this.y - other.y) <= epsilon;
306
+ }
307
+ toString() { return `(${this.x}, ${this.y})`; }
308
+ static lerp(out, from, to, ratio) {
309
+ return out.set(from.x + (to.x - from.x) * ratio, from.y + (to.y - from.y) * ratio);
310
+ }
311
+ }
312
+ math.Vec2 = Vec2;
313
+ class Vec3 {
314
+ static ZERO = Object.freeze(new Vec3(0, 0, 0));
315
+ static ONE = Object.freeze(new Vec3(1, 1, 1));
316
+ static NEG_ONE = Object.freeze(new Vec3(-1, -1, -1));
317
+ static UP = Object.freeze(new Vec3(0, 1, 0));
318
+ static DOWN = Object.freeze(new Vec3(0, -1, 0));
319
+ static LEFT = Object.freeze(new Vec3(-1, 0, 0));
320
+ static RIGHT = Object.freeze(new Vec3(1, 0, 0));
321
+ static FORWARD = Object.freeze(new Vec3(0, 0, -1));
322
+ static BACK = Object.freeze(new Vec3(0, 0, 1));
323
+ x;
324
+ y;
325
+ z;
326
+ constructor(x = 0, y = 0, z = 0) {
327
+ this.x = x;
328
+ this.y = y;
329
+ this.z = z;
330
+ }
331
+ clone() { return new Vec3(this.x, this.y, this.z); }
332
+ set(x, y, z) {
333
+ if (typeof x === "object") {
334
+ this.x = x.x;
335
+ this.y = x.y;
336
+ this.z = x.z;
337
+ }
338
+ else {
339
+ this.x = x;
340
+ this.y = y;
341
+ this.z = z;
342
+ }
343
+ return this;
344
+ }
345
+ copy(other) { return this.set(other.x, other.y, other.z); }
346
+ add(other) {
347
+ this.x += other.x;
348
+ this.y += other.y;
349
+ this.z += other.z;
350
+ return this;
351
+ }
352
+ add3f(x, y, z) {
353
+ this.x += x;
354
+ this.y += y;
355
+ this.z += z;
356
+ return this;
357
+ }
358
+ subtract(other) {
359
+ this.x -= other.x;
360
+ this.y -= other.y;
361
+ this.z -= other.z;
362
+ return this;
363
+ }
364
+ multiply(other) {
365
+ this.x *= other.x;
366
+ this.y *= other.y;
367
+ this.z *= other.z;
368
+ return this;
369
+ }
370
+ multiplyScalar(scale) {
371
+ this.x *= scale;
372
+ this.y *= scale;
373
+ this.z *= scale;
374
+ return this;
375
+ }
376
+ divide(other) {
377
+ this.x /= other.x;
378
+ this.y /= other.y;
379
+ this.z /= other.z;
380
+ return this;
381
+ }
382
+ divideScalar(scale) {
383
+ if (scale === 0)
384
+ return this.multiplyScalar(0);
385
+ this.x /= scale;
386
+ this.y /= scale;
387
+ this.z /= scale;
388
+ return this;
389
+ }
390
+ negative() {
391
+ this.x = -this.x;
392
+ this.y = -this.y;
393
+ this.z = -this.z;
394
+ return this;
395
+ }
396
+ length() { return Math.sqrt(this.x * this.x + this.y * this.y + this.z * this.z); }
397
+ lengthSqr() { return this.x * this.x + this.y * this.y + this.z * this.z; }
398
+ normalize() {
399
+ const len = this.length();
400
+ if (len > 0)
401
+ this.divideScalar(len);
402
+ return this;
403
+ }
404
+ dot(other) {
405
+ return this.x * other.x + this.y * other.y + this.z * other.z;
406
+ }
407
+ cross(other) {
408
+ const ax = this.x, ay = this.y, az = this.z;
409
+ const bx = other.x, by = other.y, bz = other.z;
410
+ this.x = ay * bz - az * by;
411
+ this.y = az * bx - ax * bz;
412
+ this.z = ax * by - ay * bx;
413
+ return this;
414
+ }
415
+ lerp(to, ratio) {
416
+ this.x = this.x + (to.x - this.x) * ratio;
417
+ this.y = this.y + (to.y - this.y) * ratio;
418
+ this.z = this.z + (to.z - this.z) * ratio;
419
+ return this;
420
+ }
421
+ equals(other, epsilon = 0) {
422
+ return Math.abs(this.x - other.x) <= epsilon
423
+ && Math.abs(this.y - other.y) <= epsilon
424
+ && Math.abs(this.z - other.z) <= epsilon;
425
+ }
426
+ toString() { return `(${this.x}, ${this.y}, ${this.z})`; }
427
+ toArray(out = [], offset = 0) {
428
+ out[offset] = this.x;
429
+ out[offset + 1] = this.y;
430
+ out[offset + 2] = this.z;
431
+ return out;
432
+ }
433
+ fromArray(array, offset = 0) {
434
+ this.x = array[offset];
435
+ this.y = array[offset + 1];
436
+ this.z = array[offset + 2];
437
+ return this;
438
+ }
439
+ static add(out, a, b) {
440
+ return out.set(a.x + b.x, a.y + b.y, a.z + b.z);
441
+ }
442
+ static subtract(out, a, b) {
443
+ return out.set(a.x - b.x, a.y - b.y, a.z - b.z);
444
+ }
445
+ static multiplyScalar(out, a, scale) {
446
+ return out.set(a.x * scale, a.y * scale, a.z * scale);
447
+ }
448
+ static dot(a, b) {
449
+ return a.x * b.x + a.y * b.y + a.z * b.z;
450
+ }
451
+ static cross(out, a, b) {
452
+ return out.set(a.y * b.z - a.z * b.y, a.z * b.x - a.x * b.z, a.x * b.y - a.y * b.x);
453
+ }
454
+ static lerp(out, from, to, ratio) {
455
+ return out.set(from.x + (to.x - from.x) * ratio, from.y + (to.y - from.y) * ratio, from.z + (to.z - from.z) * ratio);
456
+ }
457
+ static distance(a, b) {
458
+ const dx = a.x - b.x, dy = a.y - b.y, dz = a.z - b.z;
459
+ return Math.sqrt(dx * dx + dy * dy + dz * dz);
460
+ }
461
+ static normalize(out, a) {
462
+ return out.set(a).normalize();
463
+ }
464
+ }
465
+ math.Vec3 = Vec3;
466
+ /** 引擎的 lerp 不做钳制,ratio 超出 [0,1] 会外推 */
467
+ function lerp(from, to, ratio) {
468
+ return from + (to - from) * ratio;
469
+ }
470
+ math.lerp = lerp;
471
+ function clamp(value, min, max) {
472
+ if (value < min)
473
+ return min;
474
+ if (value > max)
475
+ return max;
476
+ return value;
477
+ }
478
+ math.clamp = clamp;
479
+ function clamp01(value) {
480
+ if (value < 0)
481
+ return 0;
482
+ if (value > 1)
483
+ return 1;
484
+ return value;
485
+ }
486
+ math.clamp01 = clamp01;
487
+ function toRadian(degree) {
488
+ return degree * math.RAD;
489
+ }
490
+ math.toRadian = toRadian;
491
+ function toDegree(radian) {
492
+ return radian * math.DEG;
493
+ }
494
+ math.toDegree = toDegree;
495
+ function randomRange(min, max) {
496
+ if (max === undefined) {
497
+ max = min;
498
+ min = 0;
499
+ }
500
+ return min + Math.random() * (max - min);
501
+ }
502
+ math.randomRange = randomRange;
503
+ /** 闭区间 [min, max] */
504
+ function randomRangeInt(min, max) {
505
+ if (max === undefined) {
506
+ max = min;
507
+ min = 0;
508
+ }
509
+ return Math.floor(min + Math.random() * (max - min + 1));
510
+ }
511
+ math.randomRangeInt = randomRangeInt;
512
+ function sign(value) {
513
+ return value < 0 ? -1 : (value > 0 ? 1 : 0);
514
+ }
515
+ math.sign = sign;
516
+ })(math || (math = {}));
517
+ /** 引擎的 EventTarget。Node / director 都靠它做 on/off/emit */
518
+ export class EventTarget {
519
+ _listeners = null;
520
+ on(type, callback, target) {
521
+ this._addListener(type, callback, target, false);
522
+ }
523
+ once(type, callback, target) {
524
+ this._addListener(type, callback, target, true);
525
+ }
526
+ _addListener(type, callback, target, once) {
527
+ if (typeof callback !== "function") {
528
+ error(`EventTarget.on("${type}"): callback 必须是函数`);
529
+ return;
530
+ }
531
+ if (!this._listeners)
532
+ this._listeners = new Map();
533
+ let list = this._listeners.get(type);
534
+ if (!list) {
535
+ list = [];
536
+ this._listeners.set(type, list);
537
+ }
538
+ list.push({ callback, target, once });
539
+ }
540
+ /** 不传 callback 就摘掉这个 type 下的全部监听 */
541
+ off(type, callback, target) {
542
+ const list = this._listeners && this._listeners.get(type);
543
+ if (!list)
544
+ return;
545
+ if (!callback) {
546
+ this._listeners.delete(type);
547
+ return;
548
+ }
549
+ for (let i = list.length - 1; i >= 0; --i) {
550
+ const item = list[i];
551
+ if (item.callback === callback && (target === undefined || item.target === target)) {
552
+ list.splice(i, 1);
553
+ }
554
+ }
555
+ if (list.length === 0)
556
+ this._listeners.delete(type);
557
+ }
558
+ /** 摘掉某个 target 注册的全部监听,引擎里主要在对象销毁时做清理 */
559
+ targetOff(target) {
560
+ if (!this._listeners)
561
+ return;
562
+ for (const [type, list] of this._listeners) {
563
+ for (let i = list.length - 1; i >= 0; --i) {
564
+ if (list[i].target === target)
565
+ list.splice(i, 1);
566
+ }
567
+ if (list.length === 0)
568
+ this._listeners.delete(type);
569
+ }
570
+ }
571
+ emit(type, ...args) {
572
+ const list = this._listeners && this._listeners.get(type);
573
+ if (!list || list.length === 0)
574
+ return;
575
+ // 先拷一份再遍历:回调里给自己 off 是常见写法,直接遍历原数组会漏掉后面的监听
576
+ for (const item of list.slice()) {
577
+ if (item.once)
578
+ this.off(type, item.callback, item.target);
579
+ item.callback.apply(item.target, args);
580
+ }
581
+ }
582
+ hasEventListener(type, callback, target) {
583
+ const list = this._listeners && this._listeners.get(type);
584
+ if (!list)
585
+ return false;
586
+ if (!callback)
587
+ return list.length > 0;
588
+ return list.some(i => i.callback === callback && (target === undefined || i.target === target));
589
+ }
590
+ removeAllListeners(type) {
591
+ if (!this._listeners)
592
+ return;
593
+ if (type === undefined)
594
+ this._listeners.clear();
595
+ else
596
+ this._listeners.delete(type);
597
+ }
598
+ }
599
+ /* -------------------------------------------------------------------------- */
600
+ /* director + Scheduler */
601
+ /* -------------------------------------------------------------------------- */
602
+ /**
603
+ * 引擎里的 Scheduler 负责跑定时器和维护 timeScale。
604
+ * 这里只保留 timeScale —— Time.ts 靠它做全局慢放/加速,是战斗逻辑真的会读写的状态,
605
+ * 所以必须真存真取,不能做成空转的桩。
606
+ *
607
+ * 定时器那部分不走这里:core 里由 Time.ts 自己的 Watcher 实现。
608
+ */
609
+ export class Scheduler {
610
+ _timeScale = 1;
611
+ _paused = false;
612
+ setTimeScale(scale) {
613
+ this._timeScale = scale;
614
+ }
615
+ getTimeScale() {
616
+ return this._timeScale;
617
+ }
618
+ pause() { this._paused = true; }
619
+ resume() { this._paused = false; }
620
+ isPaused() { return this._paused; }
621
+ }
622
+ /** 引擎的全局单例 director */
623
+ class Director extends EventTarget {
624
+ static EVENT_BEFORE_UPDATE = "director_before_update";
625
+ static EVENT_AFTER_UPDATE = "director_after_update";
626
+ _scheduler = new Scheduler();
627
+ _deltaTime = 0;
628
+ _totalTime = 0;
629
+ _totalFrames = 0;
630
+ _paused = false;
631
+ getScheduler() {
632
+ return this._scheduler;
633
+ }
634
+ getDeltaTime() { return this._deltaTime; }
635
+ getTotalTime() { return this._totalTime; }
636
+ getTotalFrames() { return this._totalFrames; }
637
+ isPaused() { return this._paused; }
638
+ pause() { this._paused = true; }
639
+ resume() { this._paused = false; }
640
+ /**
641
+ * 非 cc API。
642
+ * 引擎里时间由主循环推进,Node 下没有主循环,所以开这个口子让宿主
643
+ * (战斗模拟的驱动方)手动推帧。
644
+ *
645
+ * dt 不乘 timeScale:引擎里 timeScale 影响的是派发给组件的 dt,由主循环负责,
646
+ * 这里保持原样传入,免得和 core 自己的 Time.ts 重复缩放。
647
+ */
648
+ tick(dt) {
649
+ if (this._paused)
650
+ return;
651
+ this._deltaTime = dt;
652
+ this._totalTime += dt;
653
+ this._totalFrames += 1;
654
+ this.emit(Director.EVENT_BEFORE_UPDATE, dt);
655
+ this.emit(Director.EVENT_AFTER_UPDATE, dt);
656
+ }
657
+ }
658
+ export const director = new Director();
659
+ /* -------------------------------------------------------------------------- */
660
+ /* _decorator + 属性类型标记 */
661
+ /* -------------------------------------------------------------------------- */
662
+ export class CCInteger {
663
+ value;
664
+ constructor(value) {
665
+ this.value = value;
666
+ }
667
+ }
668
+ export class CCFloat {
669
+ value;
670
+ constructor(value) {
671
+ this.value = value;
672
+ }
673
+ }
674
+ export class CCBoolean {
675
+ value;
676
+ constructor(value) {
677
+ this.value = value;
678
+ }
679
+ }
680
+ export class CCString {
681
+ value;
682
+ constructor(value) {
683
+ this.value = value;
684
+ }
685
+ }
686
+ /** 把属性装饰器的各种写法(@property / @property(Vec3) / @property({...}))归一成 options */
687
+ function normalizePropertyArgs(args) {
688
+ const options = {};
689
+ for (const arg of args) {
690
+ if (arg === undefined || arg === null)
691
+ continue;
692
+ if (Array.isArray(arg))
693
+ options.type = arg[0];
694
+ else if (typeof arg === "function")
695
+ options.type = arg;
696
+ else if (typeof arg === "object")
697
+ Object.assign(options, arg);
698
+ }
699
+ return options;
700
+ }
701
+ /**
702
+ * 引擎的 _decorator。
703
+ * Node 下没有编辑器序列化,装饰器退化成"打标记 + 记类名":类名要记,
704
+ * 因为 js.getClassName / getClassByName 和日志都依赖它。
705
+ */
706
+ export const _decorator = {
707
+ ccclass(nameOrTarget) {
708
+ return (target) => {
709
+ target.__isCCClass__ = true;
710
+ js.setClassName(target, typeof nameOrTarget === "string" ? nameOrTarget : target.name);
711
+ js.registerClass(target);
712
+ return target;
713
+ };
714
+ },
715
+ property(...args) {
716
+ const options = normalizePropertyArgs(args);
717
+ return (target, propertyKey) => {
718
+ if (propertyKey === undefined)
719
+ return;
720
+ const ctor = target.constructor;
721
+ if (!ctor.__properties__)
722
+ ctor.__properties__ = {};
723
+ ctor.__properties__[propertyKey] = options;
724
+ };
725
+ },
726
+ executeInEditMode: (target) => target,
727
+ requireComponent: (_type) => (target) => target,
728
+ executionOrder: (_order) => (target) => target,
729
+ disallowMultiple: (target) => target,
730
+ allowMultiple: (target) => target,
731
+ menu: (_path) => (target) => target,
732
+ help: (_url) => (target) => target,
733
+ // 属性级装饰器:Node 下不需要编辑器表现,统一原样返回
734
+ type: (_type) => (target, _key) => target,
735
+ integer: (target, _key) => target,
736
+ float: (target, _key) => target,
737
+ boolean: (target, _key) => target,
738
+ string: (target, _key) => target,
739
+ serializable: (target, _key) => target,
740
+ editable: (target, _key) => target,
741
+ override: (target, _key) => target,
742
+ visible: (target, _key) => target,
743
+ displayName: (_name) => (target, _key) => target,
744
+ tooltip: (_text) => (target, _key) => target,
745
+ range: (_min, _max, _step) => (target, _key) => target,
746
+ min: (_value) => (target, _key) => target,
747
+ max: (_value) => (target, _key) => target,
748
+ slide: (_value) => (target, _key) => target,
749
+ group: (_value) => (target, _key) => target,
750
+ notify: (_fn) => (target, _key) => target,
751
+ };
752
+ /* -------------------------------------------------------------------------- */
753
+ /* Component / Node */
754
+ /* -------------------------------------------------------------------------- */
755
+ /** 引擎的 Component 基类 */
756
+ export class Component extends EventTarget {
757
+ node = null;
758
+ enabled = true;
759
+ get name() { return js.getClassName(this.constructor); }
760
+ get isValid() { return this.node != null && this.node.isValid; }
761
+ getComponent(type) {
762
+ return this.node ? this.node.getComponent(type) : null;
763
+ }
764
+ /** Node 下没有引擎主循环,生命周期回调不会被自动调用 */
765
+ destroy() {
766
+ this.targetOff(this);
767
+ this.enabled = false;
768
+ }
769
+ }
770
+ /**
771
+ * 引擎的 Node。
772
+ *
773
+ * 战斗逻辑只把它当"渲染层句柄"来回传(Game.getBattleHpLayer、技能回调的 node 参数),
774
+ * 所以这里给的是一棵真能挂能查的树 + 一套坐标,但不做任何渲染。
775
+ *
776
+ * 有意的取舍:不跑 onLoad/onEnable/update 这些生命周期——Node 下没有主循环去驱动它们,
777
+ * 与其假装调了,不如让它们根本不触发。
778
+ */
779
+ export class Node extends EventTarget {
780
+ _name;
781
+ _active = true;
782
+ _parent = null;
783
+ _children = [];
784
+ _components = [];
785
+ _destroyed = false;
786
+ position = new math.Vec3();
787
+ scale = new math.Vec3(1, 1, 1);
788
+ worldPosition = new math.Vec3();
789
+ constructor(name = "Node") {
790
+ super();
791
+ this._name = name;
792
+ }
793
+ get name() { return this._name; }
794
+ set name(value) { this._name = value; }
795
+ get active() { return this._active; }
796
+ set active(value) { this._active = value; }
797
+ get activeInHierarchy() {
798
+ if (!this._active || this._destroyed)
799
+ return false;
800
+ return this._parent ? this._parent.activeInHierarchy : true;
801
+ }
802
+ get parent() { return this._parent; }
803
+ get children() { return this._children; }
804
+ get isValid() { return !this._destroyed; }
805
+ get isDestroyed() { return this._destroyed; }
806
+ addChild(child) {
807
+ if (!child || child === this)
808
+ return;
809
+ child.removeFromParent();
810
+ child._parent = this;
811
+ this._children.push(child);
812
+ }
813
+ removeChild(child) {
814
+ const index = this._children.indexOf(child);
815
+ if (index < 0)
816
+ return;
817
+ this._children.splice(index, 1);
818
+ child._parent = null;
819
+ }
820
+ removeFromParent() {
821
+ if (this._parent)
822
+ this._parent.removeChild(this);
823
+ }
824
+ removeAllChildren() {
825
+ for (const child of this._children.slice())
826
+ this.removeChild(child);
827
+ }
828
+ setParent(value) {
829
+ if (value)
830
+ value.addChild(this);
831
+ else
832
+ this.removeFromParent();
833
+ }
834
+ getChildByName(name) {
835
+ return this._children.find(child => child.name === name) || null;
836
+ }
837
+ isChildOf(parent) {
838
+ let node = this._parent;
839
+ while (node) {
840
+ if (node === parent)
841
+ return true;
842
+ node = node.parent;
843
+ }
844
+ return false;
845
+ }
846
+ addComponent(type) {
847
+ const component = new type();
848
+ component.node = this;
849
+ this._components.push(component);
850
+ return component;
851
+ }
852
+ getComponent(type) {
853
+ return this._components.find(c => this._matchComponent(c, type)) || null;
854
+ }
855
+ getComponents(type) {
856
+ return this._components.filter(c => this._matchComponent(c, type));
857
+ }
858
+ _matchComponent(component, type) {
859
+ if (typeof type === "string")
860
+ return js.getClassName(component.constructor) === type;
861
+ return component instanceof type;
862
+ }
863
+ destroy() {
864
+ if (this._destroyed)
865
+ return;
866
+ this._destroyed = true;
867
+ this.removeAllChildren();
868
+ this.removeFromParent();
869
+ this.targetOff(this);
870
+ }
871
+ toString() { return `<Node ${this._name}>`; }
872
+ }
873
+ /* -------------------------------------------------------------------------- */
874
+ /* 渲染组件(占位) */
875
+ /* */
876
+ /* 只是让 Cfg.ts 里 `test?: Label` / `pro?: ProgressBar` 这类签名有类型,并且真 */
877
+ /* new 出来不会崩。它们不接任何渲染后端,属性怎么写都不会画到屏幕上。 */
878
+ /* -------------------------------------------------------------------------- */
879
+ export class Label extends Component {
880
+ string = "";
881
+ fontSize = 40;
882
+ lineHeight = 40;
883
+ enableWrapText = true;
884
+ }
885
+ export class ProgressBar extends Component {
886
+ /** 0 ~ 1 */
887
+ progress = 0;
888
+ totalLength = 100;
889
+ }
890
+ /* -------------------------------------------------------------------------- */
891
+ /* 资源 */
892
+ /* -------------------------------------------------------------------------- */
893
+ export class Asset {
894
+ name = "";
895
+ _uuid = "";
896
+ nativeUrl = "";
897
+ refCount = 0;
898
+ _destroyed = false;
899
+ get isValid() { return !this._destroyed; }
900
+ addRef() {
901
+ this.refCount += 1;
902
+ return this;
903
+ }
904
+ decRef(_autoRelease) {
905
+ this.refCount -= 1;
906
+ return this;
907
+ }
908
+ destroy() {
909
+ if (this._destroyed)
910
+ return false;
911
+ this._destroyed = true;
912
+ return true;
913
+ }
914
+ }
915
+ export class JsonAsset extends Asset {
916
+ json = null;
917
+ }
918
+ export class TextAsset extends Asset {
919
+ text = "";
920
+ }
921
+ /** 二进制资源。引擎里 _file 还可能是 Blob,Node 侧只会是 ArrayBuffer。 */
922
+ export class BufferAsset extends Asset {
923
+ _file = null;
924
+ /** 引擎语义:返回二进制数据 */
925
+ buffer() {
926
+ return this._file;
927
+ }
928
+ }
929
+ /**
930
+ * 资源包。
931
+ *
932
+ * Node 下没有 asset-db,所以默认是空的:调 load/loadDir 会带着明确的错误回调返回,
933
+ * 不会静默给 null——省得把"没配资源"和"资源是空对象"混在一起排查。
934
+ *
935
+ * 唯一的口子是 localRoot:指向一个磁盘目录后 load/loadDir 就按下面的约定读盘。
936
+ * 这是给后端跑战斗用的扩展,**不是 cc 的 API**:
937
+ * JsonAsset → <root>/<path>.json
938
+ * TextAsset → <root>/<path>.txt,读不到再试 <root>/<path>
939
+ * BufferAsset → <root>/<path>,按二进制读(Cfg 的 gzip 配置用)
940
+ * asset.name → 文件名去掉扩展名,和引擎里 element.name 的取值口径对齐
941
+ */
942
+ export class Bundle {
943
+ name;
944
+ /** 非 cc API:磁盘目录。设了它 load/loadDir 才真读得到东西 */
945
+ localRoot = null;
946
+ _cache = new Map();
947
+ constructor(name = "") {
948
+ this.name = name;
949
+ }
950
+ load(path, type, onProgress, onComplete) {
951
+ const cb = typeof onProgress === "function" ? onProgress : onComplete;
952
+ if (typeof cb !== "function") {
953
+ error(`Bundle("${this.name}").load("${path}"): 缺少回调`);
954
+ return;
955
+ }
956
+ const cached = this._cache.get(path);
957
+ if (cached) {
958
+ cb(null, cached);
959
+ return;
960
+ }
961
+ this._readOne(path, type).then(asset => cb(null, asset), (e) => cb(e, null));
962
+ }
963
+ loadDir(dir, type, onProgress, onComplete) {
964
+ const cb = typeof onProgress === "function" ? onProgress : onComplete;
965
+ if (typeof cb !== "function") {
966
+ error(`Bundle("${this.name}").loadDir("${dir}"): 缺少回调`);
967
+ return;
968
+ }
969
+ this._readDir(dir, type).then(assets => cb(null, assets), (e) => cb(e, null));
970
+ }
971
+ get(path, _type) {
972
+ return this._cache.get(path) || null;
973
+ }
974
+ release(path) {
975
+ const asset = this._cache.get(path);
976
+ if (asset)
977
+ asset.destroy();
978
+ this._cache.delete(path);
979
+ }
980
+ releaseAll() {
981
+ for (const asset of this._cache.values())
982
+ asset.destroy();
983
+ this._cache.clear();
984
+ }
985
+ async _readOne(path, type) {
986
+ if (!this.localRoot)
987
+ throw this._noSourceError("load", path);
988
+ const fs = await import("node:fs/promises");
989
+ const pathMod = await import("node:path");
990
+ const base = pathMod.join(this.localRoot, path);
991
+ // 用 any 比较:type 是泛型构造签名,和具体类之间 TS 认为没有重叠
992
+ const ctor = type;
993
+ const candidates = [];
994
+ if (ctor === JsonAsset)
995
+ candidates.push(`${base}.json`);
996
+ else if (ctor === TextAsset)
997
+ candidates.push(`${base}.txt`, base);
998
+ else
999
+ candidates.push(base);
1000
+ let lastError = null;
1001
+ for (const file of candidates) {
1002
+ try {
1003
+ const asset = new type();
1004
+ asset.name = pathMod.basename(file, pathMod.extname(file));
1005
+ asset._uuid = file;
1006
+ asset.nativeUrl = file;
1007
+ if (asset instanceof BufferAsset) {
1008
+ // 按原始字节读;Buffer 底层可能共享 Node 内存池,拷成独立 ArrayBuffer
1009
+ const bin = await fs.readFile(file);
1010
+ asset._file =
1011
+ bin.byteOffset === 0 && bin.byteLength === bin.buffer.byteLength
1012
+ ? bin.buffer
1013
+ : bin.buffer.slice(bin.byteOffset, bin.byteOffset + bin.byteLength);
1014
+ }
1015
+ else {
1016
+ const raw = await fs.readFile(file, "utf8");
1017
+ if (asset instanceof JsonAsset)
1018
+ asset.json = JSON.parse(raw);
1019
+ else if (asset instanceof TextAsset)
1020
+ asset.text = raw;
1021
+ }
1022
+ this._cache.set(path, asset);
1023
+ return asset;
1024
+ }
1025
+ catch (e) {
1026
+ lastError = e;
1027
+ }
1028
+ }
1029
+ throw new Error(`[cc] Bundle("${this.name}") 读不到资源 "${path}",试过:${candidates.join(", ")}`
1030
+ + `(最后一次错误:${lastError && lastError.message})`);
1031
+ }
1032
+ async _readDir(dir, type) {
1033
+ if (!this.localRoot)
1034
+ throw this._noSourceError("loadDir", dir);
1035
+ const fs = await import("node:fs/promises");
1036
+ const pathMod = await import("node:path");
1037
+ const ctor = type;
1038
+ const exts = ctor === JsonAsset ? [".json"] : (ctor === TextAsset ? [".txt"] : null);
1039
+ const entries = await fs.readdir(pathMod.join(this.localRoot, dir), { withFileTypes: true });
1040
+ const assets = [];
1041
+ for (const entry of entries) {
1042
+ if (!entry.isFile())
1043
+ continue;
1044
+ const ext = pathMod.extname(entry.name);
1045
+ if (exts && !exts.includes(ext))
1046
+ continue;
1047
+ const sub = pathMod.join(dir, entry.name.slice(0, entry.name.length - ext.length));
1048
+ assets.push(await this._readOne(sub, type));
1049
+ }
1050
+ return assets;
1051
+ }
1052
+ _noSourceError(method, path) {
1053
+ return new Error(`[cc] Bundle("${this.name}").${method}("${path}") 没有资源来源:`
1054
+ + `Node 下没有 asset-db,需要先把 bundle.localRoot 指向磁盘目录`);
1055
+ }
1056
+ }
1057
+ class AssetManager {
1058
+ _bundles = new Map();
1059
+ constructor() {
1060
+ // 引擎里内置的 resources 也是一个 bundle
1061
+ this._bundles.set("resources", new Bundle("resources"));
1062
+ }
1063
+ getBundle(name) {
1064
+ return this._bundles.get(name) || null;
1065
+ }
1066
+ loadBundle(name, onComplete) {
1067
+ const bundle = this.getBundle(name);
1068
+ if (bundle) {
1069
+ if (onComplete)
1070
+ onComplete(null, bundle);
1071
+ return;
1072
+ }
1073
+ const err = new Error(`[cc] 没有名为 "${name}" 的 bundle,先用 assetManager.addBundle 注册`);
1074
+ if (onComplete)
1075
+ onComplete(err, null);
1076
+ else
1077
+ error(err.message);
1078
+ }
1079
+ /** 非 cc API:把自建 bundle 挂进来,getBundle 才找得到 */
1080
+ addBundle(bundle) {
1081
+ this._bundles.set(bundle.name, bundle);
1082
+ return bundle;
1083
+ }
1084
+ /**
1085
+ * 从 URL 加载。Node 18+ 有全局 fetch,直接用;
1086
+ * 小游戏/原生那套引擎下载器路径这里一概不走。
1087
+ */
1088
+ loadRemote(url, type, onComplete) {
1089
+ const finish = (err, asset) => onComplete(err, asset);
1090
+ if (typeof fetch !== "function") {
1091
+ finish(new Error(`[cc] loadRemote 需要全局 fetch(Node 18+),当前运行时没有`), null);
1092
+ return;
1093
+ }
1094
+ fetch(url).then(
1095
+ // Response 的类型来自运行时(undici / 浏览器)的 ambient 声明,
1096
+ // 各版本对不上,这里按结构化用法处理,不依赖具体类型
1097
+ (response) => {
1098
+ if (!response.ok)
1099
+ throw new Error(`HTTP ${response.status}`);
1100
+ return response.text();
1101
+ }).then(text => {
1102
+ const asset = new type();
1103
+ asset.name = url.slice(url.lastIndexOf("/") + 1);
1104
+ asset.nativeUrl = url;
1105
+ if (asset instanceof JsonAsset)
1106
+ asset.json = JSON.parse(text);
1107
+ else if (asset instanceof TextAsset)
1108
+ asset.text = text;
1109
+ finish(null, asset);
1110
+ }, (e) => finish(e, null));
1111
+ }
1112
+ }
1113
+ export const assetManager = new AssetManager();
1114
+ /** 引擎内置的 resources bundle。Cfg.ts 从这里读 config/*.json */
1115
+ export const resources = assetManager.getBundle("resources");
1116
+ /* -------------------------------------------------------------------------- */
1117
+ /* 顶层桥接 */
1118
+ /* */
1119
+ /* 引擎的 cc 里 Vec2/Vec3 和 math.Vec2/math.Vec3 是同一份东西,那些数学工具函数 */
1120
+ /* 也同时挂在 cc 顶层。这里用 const + type 同名的写法桥过去,保证: */
1121
+ /* - cc.Vec3 === math.Vec3(同一个类对象,instanceof / 装饰器检查都安全) */
1122
+ /* - Vec3 既能当值用(new / instanceof),也能当类型用(let v: Vec3) */
1123
+ /* -------------------------------------------------------------------------- */
1124
+ export const Vec2 = math.Vec2;
1125
+ export const Vec3 = math.Vec3;
1126
+ export const EPSILON = math.EPSILON;
1127
+ export const PI = math.PI;
1128
+ export const HALF_PI = math.HALF_PI;
1129
+ export const TWO_PI = math.TWO_PI;
1130
+ export const RAD = math.RAD;
1131
+ export const DEG = math.DEG;
1132
+ export const lerp = math.lerp;
1133
+ export const clamp = math.clamp;
1134
+ export const clamp01 = math.clamp01;
1135
+ export const toRadian = math.toRadian;
1136
+ export const toDegree = math.toDegree;
1137
+ export const randomRange = math.randomRange;
1138
+ export const randomRangeInt = math.randomRangeInt;
1139
+ export const sign = math.sign;