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.
- package/README.md +0 -3
- package/dist/StringExpand.d.ts +4 -0
- package/dist/StringExpand.js +0 -0
- package/dist/adb-url-resolver.d.ts +34 -0
- package/dist/adb-url-resolver.js +57 -0
- package/dist/cc/dist/index.d.ts +273 -0
- package/dist/cc/dist/index.js +1185 -0
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +9 -0
- package/dist/core/CallID.d.ts +131 -0
- package/dist/core/CallID.js +171 -0
- package/dist/core/ListenID.d.ts +476 -0
- package/dist/core/ListenID.js +517 -0
- package/dist/core/config/BadgeCfg.d.ts +287 -0
- package/dist/core/config/BadgeCfg.js +285 -0
- package/dist/core/config/BattleConfigCfg.d.ts +9 -0
- package/dist/core/config/BattleConfigCfg.js +8 -0
- package/dist/core/config/BattlePassCfg.d.ts +18 -0
- package/dist/core/config/BattlePassCfg.js +8 -0
- package/dist/core/config/BattlePassLvCfg.d.ts +15 -0
- package/dist/core/config/BattlePassLvCfg.js +8 -0
- package/dist/core/config/BlackMarketCfg.d.ts +16 -0
- package/dist/core/config/BlackMarketCfg.js +8 -0
- package/dist/core/config/BlackMarketGoodsCfg.d.ts +24 -0
- package/dist/core/config/BlackMarketGoodsCfg.js +8 -0
- package/dist/core/config/BlackTideIslandConfigCfg.d.ts +29 -0
- package/dist/core/config/BlackTideIslandConfigCfg.js +26 -0
- package/dist/core/config/BlackTideIslandDrawCfg.d.ts +10 -0
- package/dist/core/config/BlackTideIslandDrawCfg.js +8 -0
- package/dist/core/config/BlackTideIslandGameCfg.d.ts +8 -0
- package/dist/core/config/BlackTideIslandGameCfg.js +8 -0
- package/dist/core/config/BlackTideIslandGroupCfg.d.ts +10 -0
- package/dist/core/config/BlackTideIslandGroupCfg.js +8 -0
- package/dist/core/config/BlackTideIslandRoleCfg.d.ts +20 -0
- package/dist/core/config/BlackTideIslandRoleCfg.js +8 -0
- package/dist/core/config/BlackTideIslandSignInCfg.d.ts +9 -0
- package/dist/core/config/BlackTideIslandSignInCfg.js +8 -0
- package/dist/core/config/BountyConfigCfg.d.ts +20 -0
- package/dist/core/config/BountyConfigCfg.js +17 -0
- package/dist/core/config/BountyLvCfg.d.ts +8 -0
- package/dist/core/config/BountyLvCfg.js +8 -0
- package/dist/core/config/BountyTaskCfg.d.ts +11 -0
- package/dist/core/config/BountyTaskCfg.js +8 -0
- package/dist/core/config/BuffCfg.d.ts +151 -0
- package/dist/core/config/BuffCfg.js +139 -0
- package/dist/core/config/Cfg.d.ts +570 -0
- package/dist/core/config/Cfg.js +913 -0
- package/dist/core/config/ChatChannelCfg.d.ts +13 -0
- package/dist/core/config/ChatChannelCfg.js +8 -0
- package/dist/core/config/ChatEmojiCfg.d.ts +11 -0
- package/dist/core/config/ChatEmojiCfg.js +8 -0
- package/dist/core/config/CodeCfg.d.ts +8 -0
- package/dist/core/config/CodeCfg.js +8 -0
- package/dist/core/config/CodexGroupCfg.d.ts +24 -0
- package/dist/core/config/CodexGroupCfg.js +8 -0
- package/dist/core/config/CodexMonsterCfg.d.ts +8 -0
- package/dist/core/config/CodexMonsterCfg.js +8 -0
- package/dist/core/config/CodexTurretCfg.d.ts +9 -0
- package/dist/core/config/CodexTurretCfg.js +8 -0
- package/dist/core/config/CoinConfigCfg.d.ts +14 -0
- package/dist/core/config/CoinConfigCfg.js +8 -0
- package/dist/core/config/CoinDungeonConfigCfg.d.ts +25 -0
- package/dist/core/config/CoinDungeonConfigCfg.js +22 -0
- package/dist/core/config/CoinDungeonFishCfg.d.ts +11 -0
- package/dist/core/config/CoinDungeonFishCfg.js +8 -0
- package/dist/core/config/CoinDungeonGroupCfg.d.ts +16 -0
- package/dist/core/config/CoinDungeonGroupCfg.js +8 -0
- package/dist/core/config/CoinDungeonLevelCfg.d.ts +16 -0
- package/dist/core/config/CoinDungeonLevelCfg.js +8 -0
- package/dist/core/config/ConditionalGiftCfg.d.ts +14 -0
- package/dist/core/config/ConditionalGiftCfg.js +8 -0
- package/dist/core/config/Const.d.ts +27 -0
- package/dist/core/config/Const.js +32 -0
- package/dist/core/config/ConstConfigCfg.d.ts +57 -0
- package/dist/core/config/ConstConfigCfg.js +54 -0
- package/dist/core/config/DailyTrialBuffCfg.d.ts +10 -0
- package/dist/core/config/DailyTrialBuffCfg.js +8 -0
- package/dist/core/config/DailyTrialConfigCfg.d.ts +18 -0
- package/dist/core/config/DailyTrialConfigCfg.js +15 -0
- package/dist/core/config/DailyTrialLevelCfg.d.ts +13 -0
- package/dist/core/config/DailyTrialLevelCfg.js +8 -0
- package/dist/core/config/DailyTrialMapCfg.d.ts +15 -0
- package/dist/core/config/DailyTrialMapCfg.js +8 -0
- package/dist/core/config/DecorationAttrCfg.d.ts +14 -0
- package/dist/core/config/DecorationAttrCfg.js +8 -0
- package/dist/core/config/DragonCfg.d.ts +14 -0
- package/dist/core/config/DragonCfg.js +8 -0
- package/dist/core/config/DragonPathCfg.d.ts +8 -0
- package/dist/core/config/DragonPathCfg.js +8 -0
- package/dist/core/config/DrawTagCfg.d.ts +29 -0
- package/dist/core/config/DrawTagCfg.js +8 -0
- package/dist/core/config/DropPoolCfg.d.ts +16 -0
- package/dist/core/config/DropPoolCfg.js +8 -0
- package/dist/core/config/EffectPathCfg.d.ts +28 -0
- package/dist/core/config/EffectPathCfg.js +8 -0
- package/dist/core/config/EmailCfg.d.ts +25 -0
- package/dist/core/config/EmailCfg.js +21 -0
- package/dist/core/config/EndlessConfigCfg.d.ts +14 -0
- package/dist/core/config/EndlessConfigCfg.js +11 -0
- package/dist/core/config/EndlessEventCfg.d.ts +12 -0
- package/dist/core/config/EndlessEventCfg.js +8 -0
- package/dist/core/config/EnemyCfg.d.ts +66 -0
- package/dist/core/config/EnemyCfg.js +8 -0
- package/dist/core/config/EnemyGridCfg.d.ts +8 -0
- package/dist/core/config/EnemyGridCfg.js +8 -0
- package/dist/core/config/EquipCfg.d.ts +26 -0
- package/dist/core/config/EquipCfg.js +8 -0
- package/dist/core/config/EquipChestCfg.d.ts +12 -0
- package/dist/core/config/EquipChestCfg.js +8 -0
- package/dist/core/config/EquipCombineCfg.d.ts +10 -0
- package/dist/core/config/EquipCombineCfg.js +8 -0
- package/dist/core/config/EquipLvCfg.d.ts +11 -0
- package/dist/core/config/EquipLvCfg.js +8 -0
- package/dist/core/config/EquipmentDrawCfg.d.ts +8 -0
- package/dist/core/config/EquipmentDrawCfg.js +8 -0
- package/dist/core/config/EventTypeCfg.d.ts +10 -0
- package/dist/core/config/EventTypeCfg.js +8 -0
- package/dist/core/config/FightExpCfg.d.ts +12 -0
- package/dist/core/config/FightExpCfg.js +8 -0
- package/dist/core/config/FirstRechargeCfg.d.ts +11 -0
- package/dist/core/config/FirstRechargeCfg.js +8 -0
- package/dist/core/config/FormationCfg.d.ts +17 -0
- package/dist/core/config/FormationCfg.js +8 -0
- package/dist/core/config/FuncDescCfg.d.ts +139 -0
- package/dist/core/config/FuncDescCfg.js +134 -0
- package/dist/core/config/GemCfg.d.ts +37 -0
- package/dist/core/config/GemCfg.js +8 -0
- package/dist/core/config/GemCombineCfg.d.ts +9 -0
- package/dist/core/config/GemCombineCfg.js +8 -0
- package/dist/core/config/GemDrawCfg.d.ts +13 -0
- package/dist/core/config/GemDrawCfg.js +8 -0
- package/dist/core/config/GemEntryCfg.d.ts +35 -0
- package/dist/core/config/GemEntryCfg.js +8 -0
- package/dist/core/config/GemPurifyCfg.d.ts +11 -0
- package/dist/core/config/GemPurifyCfg.js +8 -0
- package/dist/core/config/GemRefinedCfg.d.ts +11 -0
- package/dist/core/config/GemRefinedCfg.js +8 -0
- package/dist/core/config/GemUnlockCfg.d.ts +9 -0
- package/dist/core/config/GemUnlockCfg.js +8 -0
- package/dist/core/config/GuideCfg.d.ts +29 -0
- package/dist/core/config/GuideCfg.js +8 -0
- package/dist/core/config/GuideConfigCfg.d.ts +14 -0
- package/dist/core/config/GuideConfigCfg.js +11 -0
- package/dist/core/config/GuideViewPathCfg.d.ts +11 -0
- package/dist/core/config/GuideViewPathCfg.js +8 -0
- package/dist/core/config/GuildBossCfg.d.ts +15 -0
- package/dist/core/config/GuildBossCfg.js +8 -0
- package/dist/core/config/GuildBossConfigCfg.d.ts +22 -0
- package/dist/core/config/GuildBossConfigCfg.js +19 -0
- package/dist/core/config/GuildBossLevelCfg.d.ts +11 -0
- package/dist/core/config/GuildBossLevelCfg.js +8 -0
- package/dist/core/config/GuildBossRankRewardCfg.d.ts +10 -0
- package/dist/core/config/GuildBossRankRewardCfg.js +8 -0
- package/dist/core/config/GuildBossWaveCfg.d.ts +13 -0
- package/dist/core/config/GuildBossWaveCfg.js +8 -0
- package/dist/core/config/GuildBounsCfg.d.ts +9 -0
- package/dist/core/config/GuildBounsCfg.js +8 -0
- package/dist/core/config/GuildBounsRankCfg.d.ts +10 -0
- package/dist/core/config/GuildBounsRankCfg.js +8 -0
- package/dist/core/config/GuildConfigCfg.d.ts +46 -0
- package/dist/core/config/GuildConfigCfg.js +43 -0
- package/dist/core/config/GuildDonateCfg.d.ts +10 -0
- package/dist/core/config/GuildDonateCfg.js +8 -0
- package/dist/core/config/GuildFlagCfg.d.ts +9 -0
- package/dist/core/config/GuildFlagCfg.js +8 -0
- package/dist/core/config/GuildLogCfg.d.ts +21 -0
- package/dist/core/config/GuildLogCfg.js +20 -0
- package/dist/core/config/GuildLvCfg.d.ts +14 -0
- package/dist/core/config/GuildLvCfg.js +8 -0
- package/dist/core/config/GuildSupplyCfg.d.ts +10 -0
- package/dist/core/config/GuildSupplyCfg.js +8 -0
- package/dist/core/config/InitialItemsCfg.d.ts +9 -0
- package/dist/core/config/InitialItemsCfg.js +8 -0
- package/dist/core/config/IntegralTaskCfg.d.ts +12 -0
- package/dist/core/config/IntegralTaskCfg.js +8 -0
- package/dist/core/config/ItemsCfg.d.ts +40 -0
- package/dist/core/config/ItemsCfg.js +26 -0
- package/dist/core/config/MapTraitCfg.d.ts +12 -0
- package/dist/core/config/MapTraitCfg.js +8 -0
- package/dist/core/config/MarqueeChannelCfg.d.ts +10 -0
- package/dist/core/config/MarqueeChannelCfg.js +8 -0
- package/dist/core/config/MarqueeConfigCfg.d.ts +14 -0
- package/dist/core/config/MarqueeConfigCfg.js +11 -0
- package/dist/core/config/MarqueeContentCfg.d.ts +15 -0
- package/dist/core/config/MarqueeContentCfg.js +8 -0
- package/dist/core/config/MonsterTraitCfg.d.ts +10 -0
- package/dist/core/config/MonsterTraitCfg.js +8 -0
- package/dist/core/config/PetCfg.d.ts +14 -0
- package/dist/core/config/PetCfg.js +8 -0
- package/dist/core/config/PetSkillCfg.d.ts +13 -0
- package/dist/core/config/PetSkillCfg.js +8 -0
- package/dist/core/config/PetSlotLvCfg.d.ts +9 -0
- package/dist/core/config/PetSlotLvCfg.js +8 -0
- package/dist/core/config/PetStarCfg.d.ts +12 -0
- package/dist/core/config/PetStarCfg.js +8 -0
- package/dist/core/config/PlayerLvCfg.d.ts +8 -0
- package/dist/core/config/PlayerLvCfg.js +8 -0
- package/dist/core/config/PrivilegeCardCfg.d.ts +10 -0
- package/dist/core/config/PrivilegeCardCfg.js +8 -0
- package/dist/core/config/PrivilegeCfg.d.ts +29 -0
- package/dist/core/config/PrivilegeCfg.js +27 -0
- package/dist/core/config/PrivilegeItemCfg.d.ts +9 -0
- package/dist/core/config/PrivilegeItemCfg.js +8 -0
- package/dist/core/config/ProDefineCfg.d.ts +23 -0
- package/dist/core/config/ProDefineCfg.js +8 -0
- package/dist/core/config/QualityCfg.d.ts +37 -0
- package/dist/core/config/QualityCfg.js +8 -0
- package/dist/core/config/QuestionnaireCfg.d.ts +17 -0
- package/dist/core/config/QuestionnaireCfg.js +12 -0
- package/dist/core/config/RandomNameCfg.d.ts +10 -0
- package/dist/core/config/RandomNameCfg.js +8 -0
- package/dist/core/config/RelicCfg.d.ts +18 -0
- package/dist/core/config/RelicCfg.js +8 -0
- package/dist/core/config/RelicDungeonBuffCfg.d.ts +10 -0
- package/dist/core/config/RelicDungeonBuffCfg.js +8 -0
- package/dist/core/config/RelicDungeonConfigCfg.d.ts +17 -0
- package/dist/core/config/RelicDungeonConfigCfg.js +14 -0
- package/dist/core/config/RelicDungeonLevelCfg.d.ts +17 -0
- package/dist/core/config/RelicDungeonLevelCfg.js +8 -0
- package/dist/core/config/RelicEntryCfg.d.ts +15 -0
- package/dist/core/config/RelicEntryCfg.js +8 -0
- package/dist/core/config/RelicPurifyCfg.d.ts +11 -0
- package/dist/core/config/RelicPurifyCfg.js +8 -0
- package/dist/core/config/RelicRandomAttrCfg.d.ts +10 -0
- package/dist/core/config/RelicRandomAttrCfg.js +8 -0
- package/dist/core/config/RelicRandomAttrScoreCfg.d.ts +9 -0
- package/dist/core/config/RelicRandomAttrScoreCfg.js +8 -0
- package/dist/core/config/RelicTiesCfg.d.ts +9 -0
- package/dist/core/config/RelicTiesCfg.js +8 -0
- package/dist/core/config/RoleCfg.d.ts +34 -0
- package/dist/core/config/RoleCfg.js +8 -0
- package/dist/core/config/RuleDescCfg.d.ts +45 -0
- package/dist/core/config/RuleDescCfg.js +41 -0
- package/dist/core/config/ServerNameCfg.d.ts +9 -0
- package/dist/core/config/ServerNameCfg.js +8 -0
- package/dist/core/config/ShopCfg.d.ts +32 -0
- package/dist/core/config/ShopCfg.js +8 -0
- package/dist/core/config/ShowCfg.d.ts +13 -0
- package/dist/core/config/ShowCfg.js +8 -0
- package/dist/core/config/SignCfg.d.ts +16 -0
- package/dist/core/config/SignCfg.js +8 -0
- package/dist/core/config/SignDayCfg.d.ts +14 -0
- package/dist/core/config/SignDayCfg.js +8 -0
- package/dist/core/config/SkillCfg.d.ts +64 -0
- package/dist/core/config/SkillCfg.js +8 -0
- package/dist/core/config/SkillEmitterCfg.d.ts +9 -0
- package/dist/core/config/SkillEmitterCfg.js +8 -0
- package/dist/core/config/SkinCfg.d.ts +26 -0
- package/dist/core/config/SkinCfg.js +8 -0
- package/dist/core/config/SkinGroupCfg.d.ts +13 -0
- package/dist/core/config/SkinGroupCfg.js +8 -0
- package/dist/core/config/SkinLvCfg.d.ts +11 -0
- package/dist/core/config/SkinLvCfg.js +8 -0
- package/dist/core/config/SkinSkillCfg.d.ts +11 -0
- package/dist/core/config/SkinSkillCfg.js +8 -0
- package/dist/core/config/SkinSlotCfg.d.ts +9 -0
- package/dist/core/config/SkinSlotCfg.js +8 -0
- package/dist/core/config/SkinStarCfg.d.ts +10 -0
- package/dist/core/config/SkinStarCfg.js +8 -0
- package/dist/core/config/SoundCfg.d.ts +100 -0
- package/dist/core/config/SoundCfg.js +89 -0
- package/dist/core/config/SprintActivityConfigCfg.d.ts +28 -0
- package/dist/core/config/SprintActivityConfigCfg.js +25 -0
- package/dist/core/config/SprintActivityRankRewardCfg.d.ts +11 -0
- package/dist/core/config/SprintActivityRankRewardCfg.js +8 -0
- package/dist/core/config/StageCfg.d.ts +40 -0
- package/dist/core/config/StageCfg.js +8 -0
- package/dist/core/config/StageTemplateCfg.d.ts +13 -0
- package/dist/core/config/StageTemplateCfg.js +8 -0
- package/dist/core/config/StarRewardCfg.d.ts +9 -0
- package/dist/core/config/StarRewardCfg.js +8 -0
- package/dist/core/config/TConfig.d.ts +37 -0
- package/dist/core/config/TConfig.js +182 -0
- package/dist/core/config/TagCfg.d.ts +13 -0
- package/dist/core/config/TagCfg.js +8 -0
- package/dist/core/config/TalentLvCfg.d.ts +16 -0
- package/dist/core/config/TalentLvCfg.js +8 -0
- package/dist/core/config/TalentRewardCfg.d.ts +16 -0
- package/dist/core/config/TalentRewardCfg.js +8 -0
- package/dist/core/config/TalentTreeCfg.d.ts +15 -0
- package/dist/core/config/TalentTreeCfg.js +8 -0
- package/dist/core/config/TalentTreeLvCfg.d.ts +14 -0
- package/dist/core/config/TalentTreeLvCfg.js +8 -0
- package/dist/core/config/TaskCfg.d.ts +24 -0
- package/dist/core/config/TaskCfg.js +8 -0
- package/dist/core/config/TaskRewardCfg.d.ts +11 -0
- package/dist/core/config/TaskRewardCfg.js +8 -0
- package/dist/core/config/TaskTypeCfg.d.ts +13 -0
- package/dist/core/config/TaskTypeCfg.js +8 -0
- package/dist/core/config/TreasureChestCfg.d.ts +31 -0
- package/dist/core/config/TreasureChestCfg.js +14 -0
- package/dist/core/config/TreasureLevelCfg.d.ts +12 -0
- package/dist/core/config/TreasureLevelCfg.js +8 -0
- package/dist/core/config/TurretDrawCfg.d.ts +8 -0
- package/dist/core/config/TurretDrawCfg.js +8 -0
- package/dist/core/config/TurretLotteryCfg.d.ts +14 -0
- package/dist/core/config/TurretLotteryCfg.js +8 -0
- package/dist/core/config/TurretLotteryGroupCfg.d.ts +10 -0
- package/dist/core/config/TurretLotteryGroupCfg.js +8 -0
- package/dist/core/config/TurretLotteryIconCfg.d.ts +10 -0
- package/dist/core/config/TurretLotteryIconCfg.js +8 -0
- package/dist/core/config/TurretLotteryWeightCfg.d.ts +8 -0
- package/dist/core/config/TurretLotteryWeightCfg.js +8 -0
- package/dist/core/config/TurretLvCfg.d.ts +15 -0
- package/dist/core/config/TurretLvCfg.js +8 -0
- package/dist/core/config/TypeRandCfg.d.ts +13 -0
- package/dist/core/config/TypeRandCfg.js +8 -0
- package/dist/core/config/VehicleWashConfigCfg.d.ts +17 -0
- package/dist/core/config/VehicleWashConfigCfg.js +14 -0
- package/dist/core/config/VehicleWashLevelCfg.d.ts +11 -0
- package/dist/core/config/VehicleWashLevelCfg.js +8 -0
- package/dist/core/config/WavesInfoCfg.d.ts +37 -0
- package/dist/core/config/WavesInfoCfg.js +8 -0
- package/dist/core/config/WeatherTraitCfg.d.ts +11 -0
- package/dist/core/config/WeatherTraitCfg.js +8 -0
- package/dist/core/framework/Log.d.ts +10 -0
- package/dist/core/framework/Log.js +29 -0
- package/dist/core/framework/Pool.d.ts +99 -0
- package/dist/core/framework/Pool.js +363 -0
- package/dist/core/framework/Time.d.ts +75 -0
- package/dist/core/framework/Time.js +253 -0
- package/dist/core/framework/Watcher.d.ts +21 -0
- package/dist/core/framework/Watcher.js +79 -0
- package/dist/core/framework/collections/MinSortList.d.ts +24 -0
- package/dist/core/framework/collections/MinSortList.js +152 -0
- package/dist/core/framework/collections/ObjectPool.d.ts +11 -0
- package/dist/core/framework/collections/ObjectPool.js +45 -0
- package/dist/core/framework/notify/Notifier.d.ts +69 -0
- package/dist/core/framework/notify/Notifier.js +169 -0
- package/dist/core/framework/notify/NotifyCaller.d.ts +7 -0
- package/dist/core/framework/notify/NotifyCaller.js +40 -0
- package/dist/core/framework/notify/NotifyID.d.ts +14 -0
- package/dist/core/framework/notify/NotifyID.js +18 -0
- package/dist/core/framework/notify/NotifyListener.d.ts +29 -0
- package/dist/core/framework/notify/NotifyListener.js +190 -0
- package/dist/core/module/battle/Game.d.ts +358 -0
- package/dist/core/module/battle/Game.js +1340 -0
- package/dist/core/module/battle/IGameModule.d.ts +98 -0
- package/dist/core/module/battle/IGameModule.js +877 -0
- package/dist/core/module/battle/battle.interface.d.ts +248 -0
- package/dist/core/module/battle/battle.interface.js +76 -0
- package/dist/core/module/battle/buff/BuffMgr.d.ts +77 -0
- package/dist/core/module/battle/buff/BuffMgr.js +63 -0
- package/dist/core/module/battle/buff/BuffPool.d.ts +22 -0
- package/dist/core/module/battle/buff/BuffPool.js +64 -0
- package/dist/core/module/battle/buff/BuffTrigger.d.ts +5 -0
- package/dist/core/module/battle/buff/BuffTrigger.js +410 -0
- package/dist/core/module/battle/buff/buffitem/AddActionTimeBuff.d.ts +6 -0
- package/dist/core/module/battle/buff/buffitem/AddActionTimeBuff.js +31 -0
- package/dist/core/module/battle/buff/buffitem/AddAtrBuff.d.ts +7 -0
- package/dist/core/module/battle/buff/buffitem/AddAtrBuff.js +51 -0
- package/dist/core/module/battle/buff/buffitem/AddCritLayerBuff.d.ts +7 -0
- package/dist/core/module/battle/buff/buffitem/AddCritLayerBuff.js +26 -0
- package/dist/core/module/battle/buff/buffitem/AddPhysicDamBuff.d.ts +7 -0
- package/dist/core/module/battle/buff/buffitem/AddPhysicDamBuff.js +45 -0
- package/dist/core/module/battle/buff/buffitem/AddProjectBuff.d.ts +7 -0
- package/dist/core/module/battle/buff/buffitem/AddProjectBuff.js +26 -0
- package/dist/core/module/battle/buff/buffitem/AddSkillNumBuff.d.ts +6 -0
- package/dist/core/module/battle/buff/buffitem/AddSkillNumBuff.js +36 -0
- package/dist/core/module/battle/buff/buffitem/ArmorBuff.d.ts +3 -0
- package/dist/core/module/battle/buff/buffitem/ArmorBuff.js +18 -0
- package/dist/core/module/battle/buff/buffitem/AshBuff.d.ts +6 -0
- package/dist/core/module/battle/buff/buffitem/AshBuff.js +44 -0
- package/dist/core/module/battle/buff/buffitem/AttackInvisibleBuff.d.ts +3 -0
- package/dist/core/module/battle/buff/buffitem/AttackInvisibleBuff.js +18 -0
- package/dist/core/module/battle/buff/buffitem/AttackSpeedBuff.d.ts +7 -0
- package/dist/core/module/battle/buff/buffitem/AttackSpeedBuff.js +26 -0
- package/dist/core/module/battle/buff/buffitem/BackHitAddAttrBuff.d.ts +9 -0
- package/dist/core/module/battle/buff/buffitem/BackHitAddAttrBuff.js +94 -0
- package/dist/core/module/battle/buff/buffitem/BaseBuff.d.ts +8 -0
- package/dist/core/module/battle/buff/buffitem/BaseBuff.js +21 -0
- package/dist/core/module/battle/buff/buffitem/BleedBuff.d.ts +7 -0
- package/dist/core/module/battle/buff/buffitem/BleedBuff.js +46 -0
- package/dist/core/module/battle/buff/buffitem/BlizzardBuff.d.ts +9 -0
- package/dist/core/module/battle/buff/buffitem/BlizzardBuff.js +60 -0
- package/dist/core/module/battle/buff/buffitem/BounceCutDamageBuff.d.ts +9 -0
- package/dist/core/module/battle/buff/buffitem/BounceCutDamageBuff.js +39 -0
- package/dist/core/module/battle/buff/buffitem/BulletDeviationBuff.d.ts +8 -0
- package/dist/core/module/battle/buff/buffitem/BulletDeviationBuff.js +45 -0
- package/dist/core/module/battle/buff/buffitem/BurnBuff.d.ts +8 -0
- package/dist/core/module/battle/buff/buffitem/BurnBuff.js +64 -0
- package/dist/core/module/battle/buff/buffitem/ChangeActionBuff.d.ts +8 -0
- package/dist/core/module/battle/buff/buffitem/ChangeActionBuff.js +47 -0
- package/dist/core/module/battle/buff/buffitem/ChangeActionTypeBuff.d.ts +8 -0
- package/dist/core/module/battle/buff/buffitem/ChangeActionTypeBuff.js +42 -0
- package/dist/core/module/battle/buff/buffitem/ChangeEntityStepBuff.d.ts +8 -0
- package/dist/core/module/battle/buff/buffitem/ChangeEntityStepBuff.js +40 -0
- package/dist/core/module/battle/buff/buffitem/ChangeSetpAddDamageBuff.d.ts +10 -0
- package/dist/core/module/battle/buff/buffitem/ChangeSetpAddDamageBuff.js +86 -0
- package/dist/core/module/battle/buff/buffitem/ChangeSetpTimeBuff.d.ts +3 -0
- package/dist/core/module/battle/buff/buffitem/ChangeSetpTimeBuff.js +18 -0
- package/dist/core/module/battle/buff/buffitem/ChangeStateBuff.d.ts +8 -0
- package/dist/core/module/battle/buff/buffitem/ChangeStateBuff.js +46 -0
- package/dist/core/module/battle/buff/buffitem/ChillBuff.d.ts +7 -0
- package/dist/core/module/battle/buff/buffitem/ChillBuff.js +28 -0
- package/dist/core/module/battle/buff/buffitem/ClearBuffBuff.d.ts +6 -0
- package/dist/core/module/battle/buff/buffitem/ClearBuffBuff.js +25 -0
- package/dist/core/module/battle/buff/buffitem/CurHpDamBuff.d.ts +7 -0
- package/dist/core/module/battle/buff/buffitem/CurHpDamBuff.js +48 -0
- package/dist/core/module/battle/buff/buffitem/CurseBuff.d.ts +14 -0
- package/dist/core/module/battle/buff/buffitem/CurseBuff.js +74 -0
- package/dist/core/module/battle/buff/buffitem/CutSkillCdBuff.d.ts +8 -0
- package/dist/core/module/battle/buff/buffitem/CutSkillCdBuff.js +73 -0
- package/dist/core/module/battle/buff/buffitem/DamMarkBuff.d.ts +9 -0
- package/dist/core/module/battle/buff/buffitem/DamMarkBuff.js +50 -0
- package/dist/core/module/battle/buff/buffitem/DebuffAddAttrBuff.d.ts +10 -0
- package/dist/core/module/battle/buff/buffitem/DebuffAddAttrBuff.js +59 -0
- package/dist/core/module/battle/buff/buffitem/DeltaUseSkillBuff.d.ts +11 -0
- package/dist/core/module/battle/buff/buffitem/DeltaUseSkillBuff.js +112 -0
- package/dist/core/module/battle/buff/buffitem/DiceAddAttrBuff.d.ts +8 -0
- package/dist/core/module/battle/buff/buffitem/DiceAddAttrBuff.js +55 -0
- package/dist/core/module/battle/buff/buffitem/DisarmBuff.d.ts +3 -0
- package/dist/core/module/battle/buff/buffitem/DisarmBuff.js +18 -0
- package/dist/core/module/battle/buff/buffitem/DizzinessBuff.d.ts +6 -0
- package/dist/core/module/battle/buff/buffitem/DizzinessBuff.js +26 -0
- package/dist/core/module/battle/buff/buffitem/DominationBuff.d.ts +3 -0
- package/dist/core/module/battle/buff/buffitem/DominationBuff.js +18 -0
- package/dist/core/module/battle/buff/buffitem/ElectricMarkBuff.d.ts +7 -0
- package/dist/core/module/battle/buff/buffitem/ElectricMarkBuff.js +25 -0
- package/dist/core/module/battle/buff/buffitem/ElectrifyBuff.d.ts +6 -0
- package/dist/core/module/battle/buff/buffitem/ElectrifyBuff.js +45 -0
- package/dist/core/module/battle/buff/buffitem/EnemyBuff1Buff.d.ts +10 -0
- package/dist/core/module/battle/buff/buffitem/EnemyBuff1Buff.js +59 -0
- package/dist/core/module/battle/buff/buffitem/EnemyRatioBuff.d.ts +3 -0
- package/dist/core/module/battle/buff/buffitem/EnemyRatioBuff.js +18 -0
- package/dist/core/module/battle/buff/buffitem/FixedProjectileNumBuff.d.ts +6 -0
- package/dist/core/module/battle/buff/buffitem/FixedProjectileNumBuff.js +42 -0
- package/dist/core/module/battle/buff/buffitem/FollowMainEntityBuff.d.ts +7 -0
- package/dist/core/module/battle/buff/buffitem/FollowMainEntityBuff.js +44 -0
- package/dist/core/module/battle/buff/buffitem/ForceTargetBuff.d.ts +7 -0
- package/dist/core/module/battle/buff/buffitem/ForceTargetBuff.js +59 -0
- package/dist/core/module/battle/buff/buffitem/FrozenBuff.d.ts +7 -0
- package/dist/core/module/battle/buff/buffitem/FrozenBuff.js +59 -0
- package/dist/core/module/battle/buff/buffitem/HaulBuff.d.ts +8 -0
- package/dist/core/module/battle/buff/buffitem/HaulBuff.js +50 -0
- package/dist/core/module/battle/buff/buffitem/HightHpAddCritBuff.d.ts +9 -0
- package/dist/core/module/battle/buff/buffitem/HightHpAddCritBuff.js +55 -0
- package/dist/core/module/battle/buff/buffitem/HitBoundAddDamageBuff.d.ts +11 -0
- package/dist/core/module/battle/buff/buffitem/HitBoundAddDamageBuff.js +78 -0
- package/dist/core/module/battle/buff/buffitem/HitEnemyAddDamBuff.d.ts +10 -0
- package/dist/core/module/battle/buff/buffitem/HitEnemyAddDamBuff.js +65 -0
- package/dist/core/module/battle/buff/buffitem/HornBuff.d.ts +8 -0
- package/dist/core/module/battle/buff/buffitem/HornBuff.js +78 -0
- package/dist/core/module/battle/buff/buffitem/HpAddDamageBuff.d.ts +10 -0
- package/dist/core/module/battle/buff/buffitem/HpAddDamageBuff.js +66 -0
- package/dist/core/module/battle/buff/buffitem/HpShieldBuff.d.ts +6 -0
- package/dist/core/module/battle/buff/buffitem/HpShieldBuff.js +24 -0
- package/dist/core/module/battle/buff/buffitem/IceShieldBuff.d.ts +8 -0
- package/dist/core/module/battle/buff/buffitem/IceShieldBuff.js +38 -0
- package/dist/core/module/battle/buff/buffitem/IcicleBuff.d.ts +9 -0
- package/dist/core/module/battle/buff/buffitem/IcicleBuff.js +45 -0
- package/dist/core/module/battle/buff/buffitem/ImmueChillBuff.d.ts +3 -0
- package/dist/core/module/battle/buff/buffitem/ImmueChillBuff.js +18 -0
- package/dist/core/module/battle/buff/buffitem/ImmueDisarmBuff.d.ts +3 -0
- package/dist/core/module/battle/buff/buffitem/ImmueDisarmBuff.js +18 -0
- package/dist/core/module/battle/buff/buffitem/ImmueDizzinessBuff.d.ts +3 -0
- package/dist/core/module/battle/buff/buffitem/ImmueDizzinessBuff.js +18 -0
- package/dist/core/module/battle/buff/buffitem/ImmueElectrifyBuff.d.ts +3 -0
- package/dist/core/module/battle/buff/buffitem/ImmueElectrifyBuff.js +18 -0
- package/dist/core/module/battle/buff/buffitem/ImmueFrozenBuff.d.ts +3 -0
- package/dist/core/module/battle/buff/buffitem/ImmueFrozenBuff.js +18 -0
- package/dist/core/module/battle/buff/buffitem/ImmueParalysisBuff.d.ts +3 -0
- package/dist/core/module/battle/buff/buffitem/ImmueParalysisBuff.js +18 -0
- package/dist/core/module/battle/buff/buffitem/ImmueRepelBuff.d.ts +3 -0
- package/dist/core/module/battle/buff/buffitem/ImmueRepelBuff.js +18 -0
- package/dist/core/module/battle/buff/buffitem/ImmueSlayBuff.d.ts +3 -0
- package/dist/core/module/battle/buff/buffitem/ImmueSlayBuff.js +18 -0
- package/dist/core/module/battle/buff/buffitem/ImmueSlowBuff.d.ts +3 -0
- package/dist/core/module/battle/buff/buffitem/ImmueSlowBuff.js +18 -0
- package/dist/core/module/battle/buff/buffitem/ImmueVulnerableBuff.d.ts +3 -0
- package/dist/core/module/battle/buff/buffitem/ImmueVulnerableBuff.js +18 -0
- package/dist/core/module/battle/buff/buffitem/ImmuneDizzinessBuff.d.ts +3 -0
- package/dist/core/module/battle/buff/buffitem/ImmuneDizzinessBuff.js +18 -0
- package/dist/core/module/battle/buff/buffitem/ImmuneFrozenBuff.d.ts +3 -0
- package/dist/core/module/battle/buff/buffitem/ImmuneFrozenBuff.js +18 -0
- package/dist/core/module/battle/buff/buffitem/ImmuneParalysisBuff.d.ts +3 -0
- package/dist/core/module/battle/buff/buffitem/ImmuneParalysisBuff.js +18 -0
- package/dist/core/module/battle/buff/buffitem/InDebuffAddAttrBuff.d.ts +10 -0
- package/dist/core/module/battle/buff/buffitem/InDebuffAddAttrBuff.js +55 -0
- package/dist/core/module/battle/buff/buffitem/InvicibleBuff.d.ts +3 -0
- package/dist/core/module/battle/buff/buffitem/InvicibleBuff.js +18 -0
- package/dist/core/module/battle/buff/buffitem/LastSkillNumAddDamageBuff.d.ts +9 -0
- package/dist/core/module/battle/buff/buffitem/LastSkillNumAddDamageBuff.js +51 -0
- package/dist/core/module/battle/buff/buffitem/LinkCurseBuff.d.ts +8 -0
- package/dist/core/module/battle/buff/buffitem/LinkCurseBuff.js +131 -0
- package/dist/core/module/battle/buff/buffitem/LinkLogBuff.d.ts +6 -0
- package/dist/core/module/battle/buff/buffitem/LinkLogBuff.js +24 -0
- package/dist/core/module/battle/buff/buffitem/LockOffsetBuff.d.ts +6 -0
- package/dist/core/module/battle/buff/buffitem/LockOffsetBuff.js +22 -0
- package/dist/core/module/battle/buff/buffitem/LockTargetBuff.d.ts +9 -0
- package/dist/core/module/battle/buff/buffitem/LockTargetBuff.js +40 -0
- package/dist/core/module/battle/buff/buffitem/LvAddDamBuff.d.ts +9 -0
- package/dist/core/module/battle/buff/buffitem/LvAddDamBuff.js +39 -0
- package/dist/core/module/battle/buff/buffitem/MagazineSwapProjectBuff.d.ts +8 -0
- package/dist/core/module/battle/buff/buffitem/MagazineSwapProjectBuff.js +45 -0
- package/dist/core/module/battle/buff/buffitem/MagazineSwapTimeBuff.d.ts +11 -0
- package/dist/core/module/battle/buff/buffitem/MagazineSwapTimeBuff.js +114 -0
- package/dist/core/module/battle/buff/buffitem/MaxHpDamBuff.d.ts +7 -0
- package/dist/core/module/battle/buff/buffitem/MaxHpDamBuff.js +48 -0
- package/dist/core/module/battle/buff/buffitem/MirrorUseSkillBuff.d.ts +8 -0
- package/dist/core/module/battle/buff/buffitem/MirrorUseSkillBuff.js +59 -0
- package/dist/core/module/battle/buff/buffitem/ModifyInHitBuff.d.ts +9 -0
- package/dist/core/module/battle/buff/buffitem/ModifyInHitBuff.js +72 -0
- package/dist/core/module/battle/buff/buffitem/ModifyProjectileAttrBuff.d.ts +11 -0
- package/dist/core/module/battle/buff/buffitem/ModifyProjectileAttrBuff.js +69 -0
- package/dist/core/module/battle/buff/buffitem/MonitorBuff.d.ts +19 -0
- package/dist/core/module/battle/buff/buffitem/MonitorBuff.js +203 -0
- package/dist/core/module/battle/buff/buffitem/NotAllowSplitBuff.d.ts +3 -0
- package/dist/core/module/battle/buff/buffitem/NotAllowSplitBuff.js +18 -0
- package/dist/core/module/battle/buff/buffitem/ParalysisBuff.d.ts +3 -0
- package/dist/core/module/battle/buff/buffitem/ParalysisBuff.js +18 -0
- package/dist/core/module/battle/buff/buffitem/PosionBuff.d.ts +15 -0
- package/dist/core/module/battle/buff/buffitem/PosionBuff.js +85 -0
- package/dist/core/module/battle/buff/buffitem/PosionExtraAddBuff.d.ts +3 -0
- package/dist/core/module/battle/buff/buffitem/PosionExtraAddBuff.js +18 -0
- package/dist/core/module/battle/buff/buffitem/PowerUpAddDamBuff.d.ts +10 -0
- package/dist/core/module/battle/buff/buffitem/PowerUpAddDamBuff.js +70 -0
- package/dist/core/module/battle/buff/buffitem/PriorityTargetBuff.d.ts +8 -0
- package/dist/core/module/battle/buff/buffitem/PriorityTargetBuff.js +58 -0
- package/dist/core/module/battle/buff/buffitem/ProjectileAlignShootBuff.d.ts +9 -0
- package/dist/core/module/battle/buff/buffitem/ProjectileAlignShootBuff.js +97 -0
- package/dist/core/module/battle/buff/buffitem/ProjectileCreateDamageBuff.d.ts +8 -0
- package/dist/core/module/battle/buff/buffitem/ProjectileCreateDamageBuff.js +62 -0
- package/dist/core/module/battle/buff/buffitem/ProjectileCreateScaleBuff.d.ts +8 -0
- package/dist/core/module/battle/buff/buffitem/ProjectileCreateScaleBuff.js +65 -0
- package/dist/core/module/battle/buff/buffitem/ProjectileCrossDamageBuff.d.ts +9 -0
- package/dist/core/module/battle/buff/buffitem/ProjectileCrossDamageBuff.js +73 -0
- package/dist/core/module/battle/buff/buffitem/ProjectileHitByTimesBuff.d.ts +10 -0
- package/dist/core/module/battle/buff/buffitem/ProjectileHitByTimesBuff.js +86 -0
- package/dist/core/module/battle/buff/buffitem/ProjectileOrbLinkBuff.d.ts +30 -0
- package/dist/core/module/battle/buff/buffitem/ProjectileOrbLinkBuff.js +393 -0
- package/dist/core/module/battle/buff/buffitem/ProjectileRandomDamageBuff.d.ts +9 -0
- package/dist/core/module/battle/buff/buffitem/ProjectileRandomDamageBuff.js +42 -0
- package/dist/core/module/battle/buff/buffitem/ProjectileScaleUpBuff.d.ts +10 -0
- package/dist/core/module/battle/buff/buffitem/ProjectileScaleUpBuff.js +87 -0
- package/dist/core/module/battle/buff/buffitem/ProtectBuff.d.ts +8 -0
- package/dist/core/module/battle/buff/buffitem/ProtectBuff.js +40 -0
- package/dist/core/module/battle/buff/buffitem/RandomDamageBuff.d.ts +10 -0
- package/dist/core/module/battle/buff/buffitem/RandomDamageBuff.js +81 -0
- package/dist/core/module/battle/buff/buffitem/RangeAtrBuff.d.ts +8 -0
- package/dist/core/module/battle/buff/buffitem/RangeAtrBuff.js +62 -0
- package/dist/core/module/battle/buff/buffitem/ReduceAtrBuff.d.ts +7 -0
- package/dist/core/module/battle/buff/buffitem/ReduceAtrBuff.js +49 -0
- package/dist/core/module/battle/buff/buffitem/RepelBuff.d.ts +7 -0
- package/dist/core/module/battle/buff/buffitem/RepelBuff.js +82 -0
- package/dist/core/module/battle/buff/buffitem/ReplaceSkillBuff.d.ts +8 -0
- package/dist/core/module/battle/buff/buffitem/ReplaceSkillBuff.js +109 -0
- package/dist/core/module/battle/buff/buffitem/RestoreSkillNumBuff.d.ts +10 -0
- package/dist/core/module/battle/buff/buffitem/RestoreSkillNumBuff.js +40 -0
- package/dist/core/module/battle/buff/buffitem/SameHitAddDamageBuff.d.ts +10 -0
- package/dist/core/module/battle/buff/buffitem/SameHitAddDamageBuff.js +53 -0
- package/dist/core/module/battle/buff/buffitem/ScaleBuff.d.ts +7 -0
- package/dist/core/module/battle/buff/buffitem/ScaleBuff.js +26 -0
- package/dist/core/module/battle/buff/buffitem/SearBuff.d.ts +6 -0
- package/dist/core/module/battle/buff/buffitem/SearBuff.js +44 -0
- package/dist/core/module/battle/buff/buffitem/SetSelectBuff.d.ts +8 -0
- package/dist/core/module/battle/buff/buffitem/SetSelectBuff.js +41 -0
- package/dist/core/module/battle/buff/buffitem/ShieldAddDamBuff.d.ts +9 -0
- package/dist/core/module/battle/buff/buffitem/ShieldAddDamBuff.js +46 -0
- package/dist/core/module/battle/buff/buffitem/ShieldAndSpeedBuff.d.ts +8 -0
- package/dist/core/module/battle/buff/buffitem/ShieldAndSpeedBuff.js +40 -0
- package/dist/core/module/battle/buff/buffitem/ShootAddDamageBuff.d.ts +9 -0
- package/dist/core/module/battle/buff/buffitem/ShootAddDamageBuff.js +44 -0
- package/dist/core/module/battle/buff/buffitem/SlayBuff.d.ts +9 -0
- package/dist/core/module/battle/buff/buffitem/SlayBuff.js +62 -0
- package/dist/core/module/battle/buff/buffitem/SlowBuff.d.ts +7 -0
- package/dist/core/module/battle/buff/buffitem/SlowBuff.js +25 -0
- package/dist/core/module/battle/buff/buffitem/SneakBuff.d.ts +7 -0
- package/dist/core/module/battle/buff/buffitem/SneakBuff.js +31 -0
- package/dist/core/module/battle/buff/buffitem/SprintBuff.d.ts +8 -0
- package/dist/core/module/battle/buff/buffitem/SprintBuff.js +71 -0
- package/dist/core/module/battle/buff/buffitem/StableBuff.d.ts +7 -0
- package/dist/core/module/battle/buff/buffitem/StableBuff.js +26 -0
- package/dist/core/module/battle/buff/buffitem/StateChangeBuff.d.ts +10 -0
- package/dist/core/module/battle/buff/buffitem/StateChangeBuff.js +71 -0
- package/dist/core/module/battle/buff/buffitem/StorageBuff.d.ts +3 -0
- package/dist/core/module/battle/buff/buffitem/StorageBuff.js +18 -0
- package/dist/core/module/battle/buff/buffitem/SurgeBuff.d.ts +7 -0
- package/dist/core/module/battle/buff/buffitem/SurgeBuff.js +28 -0
- package/dist/core/module/battle/buff/buffitem/SwordWindShieldBuff.d.ts +9 -0
- package/dist/core/module/battle/buff/buffitem/SwordWindShieldBuff.js +60 -0
- package/dist/core/module/battle/buff/buffitem/SwordWindWallBuff.d.ts +7 -0
- package/dist/core/module/battle/buff/buffitem/SwordWindWallBuff.js +38 -0
- package/dist/core/module/battle/buff/buffitem/TeleportBuff.d.ts +8 -0
- package/dist/core/module/battle/buff/buffitem/TeleportBuff.js +85 -0
- package/dist/core/module/battle/buff/buffitem/TimeAddDamageBuff.d.ts +11 -0
- package/dist/core/module/battle/buff/buffitem/TimeAddDamageBuff.js +84 -0
- package/dist/core/module/battle/buff/buffitem/TowerCritBuff.d.ts +7 -0
- package/dist/core/module/battle/buff/buffitem/TowerCritBuff.js +26 -0
- package/dist/core/module/battle/buff/buffitem/VulnerableBuff.d.ts +7 -0
- package/dist/core/module/battle/buff/buffitem/VulnerableBuff.js +27 -0
- package/dist/core/module/battle/buff/buffitem/index.d.ts +122 -0
- package/dist/core/module/battle/buff/buffitem/index.js +134 -0
- package/dist/core/module/battle/collider/Collider.d.ts +60 -0
- package/dist/core/module/battle/collider/Collider.js +54 -0
- package/dist/core/module/battle/collider/ColliderPool.d.ts +15 -0
- package/dist/core/module/battle/collider/ColliderPool.js +60 -0
- package/dist/core/module/battle/collider/QuadTree.d.ts +48 -0
- package/dist/core/module/battle/collider/QuadTree.js +192 -0
- package/dist/core/module/battle/entity/BaseEntityData.d.ts +141 -0
- package/dist/core/module/battle/entity/BaseEntityData.js +355 -0
- package/dist/core/module/battle/entity/DragonBodyData.d.ts +16 -0
- package/dist/core/module/battle/entity/DragonBodyData.js +32 -0
- package/dist/core/module/battle/entity/DragonData.d.ts +15 -0
- package/dist/core/module/battle/entity/DragonData.js +31 -0
- package/dist/core/module/battle/entity/EntityPool.d.ts +13 -0
- package/dist/core/module/battle/entity/EntityPool.js +60 -0
- package/dist/core/module/battle/entity/EntityPoolSpawner.d.ts +5 -0
- package/dist/core/module/battle/entity/EntityPoolSpawner.js +67 -0
- package/dist/core/module/battle/entity/FighterData.d.ts +131 -0
- package/dist/core/module/battle/entity/FighterData.js +466 -0
- package/dist/core/module/battle/entity/ProjectileData.d.ts +107 -0
- package/dist/core/module/battle/entity/ProjectileData.js +262 -0
- package/dist/core/module/battle/entity/RoleData.d.ts +11 -0
- package/dist/core/module/battle/entity/RoleData.js +43 -0
- package/dist/core/module/battle/entity/index.d.ts +8 -0
- package/dist/core/module/battle/entity/index.js +20 -0
- package/dist/core/module/battle/event/EntityEvent.d.ts +80 -0
- package/dist/core/module/battle/event/EntityEvent.js +84 -0
- package/dist/core/module/battle/event/EntityEventBus.d.ts +27 -0
- package/dist/core/module/battle/event/EntityEventBus.js +73 -0
- package/dist/core/module/battle/event/EventBind.d.ts +35 -0
- package/dist/core/module/battle/event/EventBind.js +93 -0
- package/dist/core/module/battle/event/EventListener.d.ts +60 -0
- package/dist/core/module/battle/event/EventListener.js +360 -0
- package/dist/core/module/battle/event/GameEvent.d.ts +44 -0
- package/dist/core/module/battle/event/GameEvent.js +52 -0
- package/dist/core/module/battle/factory/FighterFactory.d.ts +14 -0
- package/dist/core/module/battle/factory/FighterFactory.js +237 -0
- package/dist/core/module/battle/fsm-state/AnyFighterStateTransitions.d.ts +59 -0
- package/dist/core/module/battle/fsm-state/AnyFighterStateTransitions.js +183 -0
- package/dist/core/module/battle/fsm-state/AnyFighterStates.d.ts +108 -0
- package/dist/core/module/battle/fsm-state/AnyFighterStates.js +560 -0
- package/dist/core/module/battle/fsm-state/Boss18110CallState.d.ts +19 -0
- package/dist/core/module/battle/fsm-state/Boss18110CallState.js +49 -0
- package/dist/core/module/battle/fsm-state/Boss18110State.d.ts +15 -0
- package/dist/core/module/battle/fsm-state/Boss18110State.js +38 -0
- package/dist/core/module/battle/fsm-state/Boss18110Transitions.d.ts +11 -0
- package/dist/core/module/battle/fsm-state/Boss18110Transitions.js +52 -0
- package/dist/core/module/battle/fsm-state/DragonBodyFighterStates.d.ts +11 -0
- package/dist/core/module/battle/fsm-state/DragonBodyFighterStates.js +27 -0
- package/dist/core/module/battle/fsm-state/DragonFighterStates.d.ts +22 -0
- package/dist/core/module/battle/fsm-state/DragonFighterStates.js +162 -0
- package/dist/core/module/battle/fsm-state/FighterStateMachine.d.ts +7 -0
- package/dist/core/module/battle/fsm-state/FighterStateMachine.js +50 -0
- package/dist/core/module/battle/fsm-state/FighterStateProfiles.d.ts +18 -0
- package/dist/core/module/battle/fsm-state/FighterStateProfiles.js +109 -0
- package/dist/core/module/battle/fsm-state/FighterStateRegistry.d.ts +25 -0
- package/dist/core/module/battle/fsm-state/FighterStateRegistry.js +73 -0
- package/dist/core/module/battle/fsm-state/FighterStateShared.d.ts +23 -0
- package/dist/core/module/battle/fsm-state/FighterStateShared.js +274 -0
- package/dist/core/module/battle/fsm-state/FighterStateTransition.d.ts +11 -0
- package/dist/core/module/battle/fsm-state/FighterStateTransition.js +15 -0
- package/dist/core/module/battle/fsm-state/FighterStateType.d.ts +17 -0
- package/dist/core/module/battle/fsm-state/FighterStateType.js +21 -0
- package/dist/core/module/battle/fsm-state/index.d.ts +7 -0
- package/dist/core/module/battle/fsm-state/index.js +19 -0
- package/dist/core/module/battle/manager/EntityManager.d.ts +10 -0
- package/dist/core/module/battle/manager/EntityManager.js +219 -0
- package/dist/core/module/battle/render/RenderModule.d.ts +10 -0
- package/dist/core/module/battle/render/RenderModule.js +19 -0
- package/dist/core/module/battle/skill/SkillData.d.ts +23 -0
- package/dist/core/module/battle/skill/SkillData.js +23 -0
- package/dist/core/module/battle/skill/emitter/SkillDirectEmitter.d.ts +12 -0
- package/dist/core/module/battle/skill/emitter/SkillDirectEmitter.js +98 -0
- package/dist/core/module/battle/skill/emitter/SkillEmitter.d.ts +12 -0
- package/dist/core/module/battle/skill/emitter/SkillEmitter.js +60 -0
- package/dist/core/module/battle/skill/emitter/SkillRandomDirEmitter.d.ts +12 -0
- package/dist/core/module/battle/skill/emitter/SkillRandomDirEmitter.js +68 -0
- package/dist/core/module/battle/skill/emitter/SkillRandomIndexEmitter.d.ts +12 -0
- package/dist/core/module/battle/skill/emitter/SkillRandomIndexEmitter.js +71 -0
- package/dist/core/module/battle/skill/emitter/index.d.ts +4 -0
- package/dist/core/module/battle/skill/emitter/index.js +16 -0
- package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter.d.ts +30 -0
- package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter.js +120 -0
- package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter0.d.ts +8 -0
- package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter0.js +39 -0
- package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter1.d.ts +24 -0
- package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter1.js +162 -0
- package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter10.d.ts +40 -0
- package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter10.js +229 -0
- package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter11.d.ts +12 -0
- package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter11.js +39 -0
- package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter12.d.ts +9 -0
- package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter12.js +53 -0
- package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter13.d.ts +77 -0
- package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter13.js +431 -0
- package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter14.d.ts +24 -0
- package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter14.js +112 -0
- package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter15.d.ts +17 -0
- package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter15.js +107 -0
- package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter16.d.ts +23 -0
- package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter16.js +116 -0
- package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter17.d.ts +26 -0
- package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter17.js +81 -0
- package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter18.d.ts +17 -0
- package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter18.js +86 -0
- package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter19.d.ts +57 -0
- package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter19.js +327 -0
- package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter2.d.ts +13 -0
- package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter2.js +81 -0
- package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter20.d.ts +12 -0
- package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter20.js +49 -0
- package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter21.d.ts +21 -0
- package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter21.js +103 -0
- package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter22.d.ts +18 -0
- package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter22.js +68 -0
- package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter23.d.ts +33 -0
- package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter23.js +130 -0
- package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter24.d.ts +31 -0
- package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter24.js +139 -0
- package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter25.d.ts +16 -0
- package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter25.js +60 -0
- package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter26.d.ts +30 -0
- package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter26.js +72 -0
- package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter27.d.ts +19 -0
- package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter27.js +74 -0
- package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter28.d.ts +25 -0
- package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter28.js +212 -0
- package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter29.d.ts +49 -0
- package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter29.js +359 -0
- package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter3.d.ts +74 -0
- package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter3.js +420 -0
- package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter4.d.ts +76 -0
- package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter4.js +413 -0
- package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter5.d.ts +9 -0
- package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter5.js +42 -0
- package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter6.d.ts +18 -0
- package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter6.js +111 -0
- package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter7.d.ts +36 -0
- package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter7.js +114 -0
- package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter8.d.ts +24 -0
- package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter8.js +253 -0
- package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter9.d.ts +9 -0
- package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitter9.js +56 -0
- package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitterShared.d.ts +45 -0
- package/dist/core/module/battle/skill/emitter/projectiles/ProjectileEmitterShared.js +68 -0
- package/dist/core/module/battle/skill/emitter/projectiles/index.d.ts +32 -0
- package/dist/core/module/battle/skill/emitter/projectiles/index.js +44 -0
- package/dist/core/module/battle/skill/impacts/Impact0.d.ts +7 -0
- package/dist/core/module/battle/skill/impacts/Impact0.js +20 -0
- package/dist/core/module/battle/skill/impacts/Impact1.d.ts +14 -0
- package/dist/core/module/battle/skill/impacts/Impact1.js +77 -0
- package/dist/core/module/battle/skill/impacts/Impact10.d.ts +13 -0
- package/dist/core/module/battle/skill/impacts/Impact10.js +55 -0
- package/dist/core/module/battle/skill/impacts/Impact11.d.ts +11 -0
- package/dist/core/module/battle/skill/impacts/Impact11.js +33 -0
- package/dist/core/module/battle/skill/impacts/Impact12.d.ts +10 -0
- package/dist/core/module/battle/skill/impacts/Impact12.js +35 -0
- package/dist/core/module/battle/skill/impacts/Impact13.d.ts +14 -0
- package/dist/core/module/battle/skill/impacts/Impact13.js +49 -0
- package/dist/core/module/battle/skill/impacts/Impact14.d.ts +10 -0
- package/dist/core/module/battle/skill/impacts/Impact14.js +36 -0
- package/dist/core/module/battle/skill/impacts/Impact15.d.ts +10 -0
- package/dist/core/module/battle/skill/impacts/Impact15.js +35 -0
- package/dist/core/module/battle/skill/impacts/Impact16.d.ts +12 -0
- package/dist/core/module/battle/skill/impacts/Impact16.js +33 -0
- package/dist/core/module/battle/skill/impacts/Impact17.d.ts +12 -0
- package/dist/core/module/battle/skill/impacts/Impact17.js +39 -0
- package/dist/core/module/battle/skill/impacts/Impact18.d.ts +12 -0
- package/dist/core/module/battle/skill/impacts/Impact18.js +33 -0
- package/dist/core/module/battle/skill/impacts/Impact2.d.ts +16 -0
- package/dist/core/module/battle/skill/impacts/Impact2.js +89 -0
- package/dist/core/module/battle/skill/impacts/Impact3.d.ts +30 -0
- package/dist/core/module/battle/skill/impacts/Impact3.js +254 -0
- package/dist/core/module/battle/skill/impacts/Impact4.d.ts +11 -0
- package/dist/core/module/battle/skill/impacts/Impact4.js +27 -0
- package/dist/core/module/battle/skill/impacts/Impact5.d.ts +18 -0
- package/dist/core/module/battle/skill/impacts/Impact5.js +211 -0
- package/dist/core/module/battle/skill/impacts/Impact6.d.ts +19 -0
- package/dist/core/module/battle/skill/impacts/Impact6.js +105 -0
- package/dist/core/module/battle/skill/impacts/Impact7.d.ts +13 -0
- package/dist/core/module/battle/skill/impacts/Impact7.js +40 -0
- package/dist/core/module/battle/skill/impacts/Impact8.d.ts +10 -0
- package/dist/core/module/battle/skill/impacts/Impact8.js +28 -0
- package/dist/core/module/battle/skill/impacts/Impact9.d.ts +10 -0
- package/dist/core/module/battle/skill/impacts/Impact9.js +32 -0
- package/dist/core/module/battle/skill/impacts/Impact99.d.ts +13 -0
- package/dist/core/module/battle/skill/impacts/Impact99.js +40 -0
- package/dist/core/module/battle/skill/impacts/ImpactRegistry.d.ts +10 -0
- package/dist/core/module/battle/skill/impacts/ImpactRegistry.js +28 -0
- package/dist/core/module/battle/skill/impacts/SkillImpact.d.ts +25 -0
- package/dist/core/module/battle/skill/impacts/SkillImpact.js +33 -0
- package/dist/core/module/battle/skill/impacts/SkillImpactShared.d.ts +3 -0
- package/dist/core/module/battle/skill/impacts/SkillImpactShared.js +6 -0
- package/dist/core/module/battle/skill/impacts/index.d.ts +23 -0
- package/dist/core/module/battle/skill/impacts/index.js +35 -0
- package/dist/core/module/battle/skill/pool/SkillEmitterPool.d.ts +10 -0
- package/dist/core/module/battle/skill/pool/SkillEmitterPool.js +30 -0
- package/dist/core/module/battle/skill/pool/SkillImpactPool.d.ts +13 -0
- package/dist/core/module/battle/skill/pool/SkillImpactPool.js +45 -0
- package/dist/core/module/battle/system/BornSystem.d.ts +32 -0
- package/dist/core/module/battle/system/BornSystem.js +776 -0
- package/dist/core/module/battle/system/BuffSystem.d.ts +35 -0
- package/dist/core/module/battle/system/BuffSystem.js +431 -0
- package/dist/core/module/battle/system/CollisionSystem.d.ts +78 -0
- package/dist/core/module/battle/system/CollisionSystem.js +638 -0
- package/dist/core/module/battle/system/DebugSystem.d.ts +21 -0
- package/dist/core/module/battle/system/DebugSystem.js +42 -0
- package/dist/core/module/battle/system/DestroySystem.d.ts +13 -0
- package/dist/core/module/battle/system/DestroySystem.js +84 -0
- package/dist/core/module/battle/system/EntityBoundsSystem.d.ts +9 -0
- package/dist/core/module/battle/system/EntityBoundsSystem.js +32 -0
- package/dist/core/module/battle/system/FsmSystem.d.ts +12 -0
- package/dist/core/module/battle/system/FsmSystem.js +41 -0
- package/dist/core/module/battle/system/GameSystem.d.ts +12 -0
- package/dist/core/module/battle/system/GameSystem.js +10 -0
- package/dist/core/module/battle/system/InputSystem.d.ts +21 -0
- package/dist/core/module/battle/system/InputSystem.js +146 -0
- package/dist/core/module/battle/system/MarkCaptureSystem.d.ts +9 -0
- package/dist/core/module/battle/system/MarkCaptureSystem.js +25 -0
- package/dist/core/module/battle/system/ProjectileSystem.d.ts +23 -0
- package/dist/core/module/battle/system/ProjectileSystem.js +301 -0
- package/dist/core/module/battle/system/SkillSystem.d.ts +92 -0
- package/dist/core/module/battle/system/SkillSystem.js +393 -0
- package/dist/core/module/battle/system/TimeSystem.d.ts +7 -0
- package/dist/core/module/battle/system/TimeSystem.js +14 -0
- package/dist/core/module/battle/target/CloseAngleTargetSelection.d.ts +4 -0
- package/dist/core/module/battle/target/CloseAngleTargetSelection.js +54 -0
- package/dist/core/module/battle/target/CloseDownTargetSelection.d.ts +4 -0
- package/dist/core/module/battle/target/CloseDownTargetSelection.js +63 -0
- package/dist/core/module/battle/target/CloseTargetSelection.d.ts +4 -0
- package/dist/core/module/battle/target/CloseTargetSelection.js +65 -0
- package/dist/core/module/battle/target/FarTargetSelection.d.ts +4 -0
- package/dist/core/module/battle/target/FarTargetSelection.js +54 -0
- package/dist/core/module/battle/target/PriorityBossTargetSelection.js +52 -0
- package/dist/core/module/battle/target/PriorityTypeTargetSelection.d.ts +4 -0
- package/dist/core/module/battle/target/PriorityTypeTargetSelection.js +74 -0
- package/dist/core/module/battle/target/RandomRangeTargetSelection.d.ts +4 -0
- package/dist/core/module/battle/target/RandomRangeTargetSelection.js +42 -0
- package/dist/core/module/battle/target/RandomTargetSelection.d.ts +4 -0
- package/dist/core/module/battle/target/RandomTargetSelection.js +50 -0
- package/dist/core/module/battle/target/RectRandomTargetSelection.d.ts +4 -0
- package/dist/core/module/battle/target/RectRandomTargetSelection.js +25 -0
- package/dist/core/module/battle/target/SelfRandomTargetSelection.d.ts +4 -0
- package/dist/core/module/battle/target/SelfRandomTargetSelection.js +48 -0
- package/dist/core/module/battle/target/SelfRandomTowerTargetSelection.d.ts +4 -0
- package/dist/core/module/battle/target/SelfRandomTowerTargetSelection.js +33 -0
- package/dist/core/module/battle/target/SelfRoleTargetSelection.d.ts +4 -0
- package/dist/core/module/battle/target/SelfRoleTargetSelection.js +13 -0
- package/dist/core/module/battle/target/SelfTargetSelection.d.ts +4 -0
- package/dist/core/module/battle/target/SelfTargetSelection.js +12 -0
- package/dist/core/module/battle/target/TargetSelection.d.ts +16 -0
- package/dist/core/module/battle/target/TargetSelection.js +43 -0
- package/dist/core/module/battle/target/index.d.ts +12 -0
- package/dist/core/module/battle/target/index.js +24 -0
- package/dist/core/module/battle/util/BRect.d.ts +18 -0
- package/dist/core/module/battle/util/BRect.js +26 -0
- package/dist/core/module/battle/util/BSize.d.ts +10 -0
- package/dist/core/module/battle/util/BSize.js +12 -0
- package/dist/core/module/battle/util/BVec2.d.ts +58 -0
- package/dist/core/module/battle/util/BVec2.js +247 -0
- package/dist/core/module/battle/util/BattleAudioAdpater.d.ts +4 -0
- package/dist/core/module/battle/util/BattleAudioAdpater.js +10 -0
- package/dist/core/module/battle/util/BattleConfig.d.ts +10 -0
- package/dist/core/module/battle/util/BattleConfig.js +25 -0
- package/dist/core/module/battle/util/BattleInputCodec.d.ts +35 -0
- package/dist/core/module/battle/util/BattleInputCodec.js +184 -0
- package/dist/core/module/battle/util/BattleUtils.d.ts +46 -0
- package/dist/core/module/battle/util/BattleUtils.js +501 -0
- package/dist/core/module/battle/util/EllipseArc.d.ts +3 -0
- package/dist/core/module/battle/util/EllipseArc.js +95 -0
- package/dist/core/module/battle/util/Hash.d.ts +7 -0
- package/dist/core/module/battle/util/Hash.js +44 -0
- package/dist/core/module/battle/util/HitDataPool.d.ts +44 -0
- package/dist/core/module/battle/util/HitDataPool.js +97 -0
- package/dist/core/module/battle/util/Intersection.d.ts +151 -0
- package/dist/core/module/battle/util/Intersection.js +696 -0
- package/dist/core/module/battle/util/JMath.d.ts +30 -0
- package/dist/core/module/battle/util/JMath.js +239 -0
- package/dist/core/module/battle/util/Random.d.ts +23 -0
- package/dist/core/module/battle/util/Random.js +113 -0
- package/dist/core/module/battle/util/SkillEffectByIdParamsPool.d.ts +3 -0
- package/dist/core/module/battle/util/SkillEffectByIdParamsPool.js +34 -0
- package/dist/core/module/guild/view/boss/GuildBossBattleModule.d.ts +29 -0
- package/dist/core/module/guild/view/boss/GuildBossBattleModule.js +216 -0
- package/dist/core/module/guild/view/boss/index.d.ts +1 -0
- package/dist/core/module/guild/view/boss/index.js +13 -0
- package/dist/core/module/module.interface.d.ts +134 -0
- package/dist/core/module/module.interface.js +44 -0
- package/dist/core/module/property/Property.d.ts +61 -0
- package/dist/core/module/property/Property.js +239 -0
- package/dist/core/module/property/PropertyUtil.d.ts +61 -0
- package/dist/core/module/property/PropertyUtil.js +284 -0
- package/dist/core/module/relicDungeon/RelicBattleModule.d.ts +11 -0
- package/dist/core/module/relicDungeon/RelicBattleModule.js +100 -0
- package/dist/core/module/relicDungeon/index.d.ts +1 -0
- package/dist/core/module/relicDungeon/index.js +13 -0
- package/dist/core/module/stage/StageBattleModule.d.ts +11 -0
- package/dist/core/module/stage/StageBattleModule.js +105 -0
- package/dist/core/module/stage/index.d.ts +1 -0
- package/dist/core/module/stage/index.js +13 -0
- package/dist/core/proto/CommonProto.d.ts +45098 -0
- package/dist/core/proto/Proto.d.ts +1016 -0
- package/dist/core/util/BattlePlayerUtil.d.ts +14 -0
- package/dist/core/util/BattlePlayerUtil.js +23 -0
- package/dist/core/util/DeepCopy.d.ts +1 -0
- package/dist/core/util/DeepCopy.js +28 -0
- package/dist/core/util/GameUtil.d.ts +213 -0
- package/dist/core/util/GameUtil.js +922 -0
- package/dist/core/util/lz-string.d.ts +12 -0
- package/dist/core/util/lz-string.js +471 -0
- package/dist/core/util/pako_inflate.d.ts +2 -0
- package/dist/core/util/pako_inflate.js +655 -0
- package/dist/db-url-resolver.js +57 -0
- package/dist/index.d.ts +43 -0
- package/dist/index.js +278 -0
- package/dist/register-all.d.ts +10 -0
- package/dist/register-all.js +28 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/node_modules/cc/dist/index.d.ts +407 -0
- package/node_modules/cc/dist/index.js +1139 -0
- package/node_modules/cc/package.json +23 -0
- package/node_modules/cc/src/index.ts +1230 -0
- package/package.json +61 -4
- package/resources/config/GameJsonCfg.bin +0 -0
|
@@ -0,0 +1,696 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.AngleSlerp = exports.Intersection = void 0;
|
|
7
|
+
exports.catmullRomSmooth = catmullRomSmooth;
|
|
8
|
+
exports.generateMosquitoCoilPath = generateMosquitoCoilPath;
|
|
9
|
+
const BRect_1 = require("./BRect");
|
|
10
|
+
const BVec2_1 = require("./BVec2");
|
|
11
|
+
const BattleUtils_1 = require("./BattleUtils");
|
|
12
|
+
const JMath_1 = __importDefault(require("./JMath"));
|
|
13
|
+
let temp1 = new BVec2_1.BVec2();
|
|
14
|
+
let temp2 = new BVec2_1.BVec2();
|
|
15
|
+
let temp3 = new BVec2_1.BVec2();
|
|
16
|
+
let temp4 = new BVec2_1.BVec2();
|
|
17
|
+
function isOverlay(proA, proB) {
|
|
18
|
+
let min, max;
|
|
19
|
+
if (proA.min < proB.min) {
|
|
20
|
+
min = proA.min;
|
|
21
|
+
}
|
|
22
|
+
else {
|
|
23
|
+
min = proB.min;
|
|
24
|
+
}
|
|
25
|
+
if (proA.max > proB.max) {
|
|
26
|
+
max = proA.max;
|
|
27
|
+
}
|
|
28
|
+
else {
|
|
29
|
+
max = proB.max;
|
|
30
|
+
}
|
|
31
|
+
return (proA.max - proA.min) + (proB.max - proB.min) < max - min;
|
|
32
|
+
}
|
|
33
|
+
// Catmull - Rom 样条曲线计算函数
|
|
34
|
+
function catmullRomPoint(p0, p1, p2, p3, t) {
|
|
35
|
+
const tt = t * t;
|
|
36
|
+
const ttt = tt * t;
|
|
37
|
+
const x = 0.5 * ((2 * p1.x) +
|
|
38
|
+
(-p0.x + p2.x) * t +
|
|
39
|
+
(2 * p0.x - 5 * p1.x + 4 * p2.x - p3.x) * tt +
|
|
40
|
+
(-p0.x + 3 * p1.x - 3 * p2.x + p3.x) * ttt);
|
|
41
|
+
const y = 0.5 * ((2 * p1.y) +
|
|
42
|
+
(-p0.y + p2.y) * t +
|
|
43
|
+
(2 * p0.y - 5 * p1.y + 4 * p2.y - p3.y) * tt +
|
|
44
|
+
(-p0.y + 3 * p1.y - 3 * p2.y + p3.y) * ttt);
|
|
45
|
+
return { x, y };
|
|
46
|
+
}
|
|
47
|
+
// 使用 Catmull - Rom 样条曲线平滑一系列控制点
|
|
48
|
+
function catmullRomSmooth(points, steps = 10) {
|
|
49
|
+
const smoothedPoints = [];
|
|
50
|
+
if (points.length < 2) {
|
|
51
|
+
return points;
|
|
52
|
+
}
|
|
53
|
+
// 添加虚拟控制点
|
|
54
|
+
const extendedPoints = [
|
|
55
|
+
{
|
|
56
|
+
x: 2 * points[0].x - points[1].x,
|
|
57
|
+
y: 2 * points[0].y - points[1].y
|
|
58
|
+
},
|
|
59
|
+
...points,
|
|
60
|
+
{
|
|
61
|
+
x: 2 * points[points.length - 1].x - points[points.length - 2].x,
|
|
62
|
+
y: 2 * points[points.length - 1].y - points[points.length - 2].y
|
|
63
|
+
}
|
|
64
|
+
];
|
|
65
|
+
for (let i = 0; i < extendedPoints.length - 3; i++) {
|
|
66
|
+
const p0 = extendedPoints[i];
|
|
67
|
+
const p1 = extendedPoints[i + 1];
|
|
68
|
+
const p2 = extendedPoints[i + 2];
|
|
69
|
+
const p3 = extendedPoints[i + 3];
|
|
70
|
+
for (let j = 0; j < steps; j++) {
|
|
71
|
+
const t = j / steps;
|
|
72
|
+
const point = catmullRomPoint(p0, p1, p2, p3, t);
|
|
73
|
+
smoothedPoints.push(point);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
// 添加最后一个控制点
|
|
77
|
+
smoothedPoints.push(points[points.length - 1]);
|
|
78
|
+
return smoothedPoints;
|
|
79
|
+
}
|
|
80
|
+
function generateMosquitoCoilPath(radius, turns, step, isClockwise = true) {
|
|
81
|
+
const path = [];
|
|
82
|
+
const angleIncrement = JMath_1.default.PI / 180 * (isClockwise ? 1 : -1); // 每次增加1度
|
|
83
|
+
let angle = 0;
|
|
84
|
+
let cutTurns = 0;
|
|
85
|
+
for (let i = 0; i < turns * 360; i++) {
|
|
86
|
+
cutTurns = Math.floor(i / 360);
|
|
87
|
+
let cutRadius = radius + cutTurns * step + ((i % 360) / 360) * step;
|
|
88
|
+
// 计算当前点的坐标
|
|
89
|
+
const x = cutRadius * JMath_1.default.cos(angle);
|
|
90
|
+
const y = cutRadius * JMath_1.default.sin(angle);
|
|
91
|
+
// 添加当前点到路径
|
|
92
|
+
path.push({ x: x, y: y });
|
|
93
|
+
// 更新角度
|
|
94
|
+
angle += angleIncrement;
|
|
95
|
+
}
|
|
96
|
+
return path;
|
|
97
|
+
}
|
|
98
|
+
class Intersection {
|
|
99
|
+
static polygonCircle(polygon, circle) {
|
|
100
|
+
let position = circle.worldPosition;
|
|
101
|
+
if (circle.worldRadius <= 0)
|
|
102
|
+
return false;
|
|
103
|
+
if (Intersection.pointInPolygon(position, polygon)) {
|
|
104
|
+
return true;
|
|
105
|
+
}
|
|
106
|
+
let sqrtratiud = circle.worldRadius * circle.worldRadius;
|
|
107
|
+
for (let i = 0, len = polygon.length; i < len; i++) {
|
|
108
|
+
let start = i === 0 ? polygon[polygon.length - 1] : polygon[i - 1];
|
|
109
|
+
let end = polygon[i];
|
|
110
|
+
if (Intersection.pointLineDistanceSqr(position, start, end, true) < sqrtratiud) {
|
|
111
|
+
return true;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
return false;
|
|
115
|
+
}
|
|
116
|
+
static pointLineDistanceSqr(point, start, end, isSegment) {
|
|
117
|
+
let dx = end.x - start.x;
|
|
118
|
+
let dy = end.y - start.y;
|
|
119
|
+
let d = dx * dx + dy * dy;
|
|
120
|
+
let t = ((point.x - start.x) * dx + (point.y - start.y) * dy) / d;
|
|
121
|
+
let p;
|
|
122
|
+
if (!isSegment) {
|
|
123
|
+
p = BVec2_1.BVecHelper.set(temp1, start.x + t * dx, start.y + t * dy);
|
|
124
|
+
}
|
|
125
|
+
else {
|
|
126
|
+
if (d) {
|
|
127
|
+
if (t < 0)
|
|
128
|
+
p = start;
|
|
129
|
+
else if (t > 1)
|
|
130
|
+
p = end;
|
|
131
|
+
else
|
|
132
|
+
p = BVec2_1.BVecHelper.set(temp1, start.x + t * dx, start.y + t * dy);
|
|
133
|
+
}
|
|
134
|
+
else {
|
|
135
|
+
p = start;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
dx = point.x - p.x;
|
|
139
|
+
dy = point.y - p.y;
|
|
140
|
+
return dx * dx + dy * dy;
|
|
141
|
+
}
|
|
142
|
+
static circleCircle(a, b) {
|
|
143
|
+
if (a.worldRadius <= 0 || b.worldRadius <= 0)
|
|
144
|
+
return false;
|
|
145
|
+
BVec2_1.BVecHelper.sub(temp4, a.worldPosition, b.worldPosition);
|
|
146
|
+
let dissqrt = BVec2_1.BVecHelper.lengthSqr(temp4);
|
|
147
|
+
return dissqrt < (a.worldRadius + b.worldRadius) ** 2;
|
|
148
|
+
}
|
|
149
|
+
static lineLine(a1, a2, b1, b2) {
|
|
150
|
+
let ua_t = (b2.x - b1.x) * (a1.y - b1.y) - (b2.y - b1.y) * (a1.x - b1.x);
|
|
151
|
+
let ub_t = (a2.x - a1.x) * (a1.y - b1.y) - (a2.y - a1.y) * (a1.x - b1.x);
|
|
152
|
+
let u_b = (b2.y - b1.y) * (a2.x - a1.x) - (b2.x - b1.x) * (a2.y - a1.y);
|
|
153
|
+
if (u_b !== 0) {
|
|
154
|
+
let ua = ua_t / u_b;
|
|
155
|
+
let ub = ub_t / u_b;
|
|
156
|
+
if (0 <= ua && ua <= 1 && 0 <= ub && ub <= 1) {
|
|
157
|
+
return true;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
return false;
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* 线段与矩形相交
|
|
164
|
+
* @param {BVec2Like} a1
|
|
165
|
+
* @param {BVec2Like} a2
|
|
166
|
+
* @param {BRectLike} b
|
|
167
|
+
*/
|
|
168
|
+
static lineRect(a1, a2, b) {
|
|
169
|
+
BVec2_1.BVecHelper.set(temp1, b.x, b.y);
|
|
170
|
+
BVec2_1.BVecHelper.set(temp2, b.x, b.y + b.height);
|
|
171
|
+
BVec2_1.BVecHelper.set(temp3, b.x + b.width, b.y + b.height);
|
|
172
|
+
BVec2_1.BVecHelper.set(temp4, b.x + b.width, b.y);
|
|
173
|
+
if (Intersection.lineLine(a1, a2, temp1, temp2)) {
|
|
174
|
+
return true;
|
|
175
|
+
}
|
|
176
|
+
if (Intersection.lineLine(a1, a2, temp2, temp3)) {
|
|
177
|
+
return true;
|
|
178
|
+
}
|
|
179
|
+
if (Intersection.lineLine(a1, a2, temp3, temp4)) {
|
|
180
|
+
return true;
|
|
181
|
+
}
|
|
182
|
+
if (Intersection.lineLine(a1, a2, temp4, temp1)) {
|
|
183
|
+
return true;
|
|
184
|
+
}
|
|
185
|
+
return false;
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* 线段与多边形相交
|
|
189
|
+
* @param {BVec2} a1
|
|
190
|
+
* @param {BVec2} a2
|
|
191
|
+
* @param {BVec2[]} b
|
|
192
|
+
*/
|
|
193
|
+
static linePolygon(a1, a2, b) {
|
|
194
|
+
let length = b.length;
|
|
195
|
+
for (let i = 0; i < length; ++i) {
|
|
196
|
+
let b1 = b[i];
|
|
197
|
+
let b2 = b[(i + 1) % length];
|
|
198
|
+
if (Intersection.lineLine(a1, a2, b1, b2))
|
|
199
|
+
return true;
|
|
200
|
+
}
|
|
201
|
+
return false;
|
|
202
|
+
}
|
|
203
|
+
/**
|
|
204
|
+
* !#en Test rect and rect
|
|
205
|
+
* !#zh 测试矩形与矩形是否相交
|
|
206
|
+
* @method rectRect
|
|
207
|
+
* @param {Rect} a - The first rect
|
|
208
|
+
* @param {Rect} b - The second rect
|
|
209
|
+
* @return {boolean}
|
|
210
|
+
*/
|
|
211
|
+
static rectRect(a, b) {
|
|
212
|
+
let a_min_x = a.x;
|
|
213
|
+
let a_min_y = a.y;
|
|
214
|
+
let a_max_x = a.x + a.width;
|
|
215
|
+
let a_max_y = a.y + a.height;
|
|
216
|
+
let b_min_x = b.x;
|
|
217
|
+
let b_min_y = b.y;
|
|
218
|
+
let b_max_x = b.x + b.width;
|
|
219
|
+
let b_max_y = b.y + b.height;
|
|
220
|
+
return a_min_x <= b_max_x &&
|
|
221
|
+
a_max_x >= b_min_x &&
|
|
222
|
+
a_min_y <= b_max_y &&
|
|
223
|
+
a_max_y >= b_min_y;
|
|
224
|
+
}
|
|
225
|
+
static rectPolygon(a, b) {
|
|
226
|
+
BVec2_1.BVecHelper.set(temp1, a.x, a.y);
|
|
227
|
+
BVec2_1.BVecHelper.set(temp2, a.x, a.y + a.height);
|
|
228
|
+
BVec2_1.BVecHelper.set(temp3, a.x + a.width, a.y + a.height);
|
|
229
|
+
BVec2_1.BVecHelper.set(temp4, a.x + a.width, a.y);
|
|
230
|
+
// intersection check
|
|
231
|
+
if (Intersection.linePolygon(temp1, temp2, b))
|
|
232
|
+
return true;
|
|
233
|
+
if (Intersection.linePolygon(temp2, temp3, b))
|
|
234
|
+
return true;
|
|
235
|
+
if (Intersection.linePolygon(temp3, temp4, b))
|
|
236
|
+
return true;
|
|
237
|
+
if (Intersection.linePolygon(temp4, temp1, b))
|
|
238
|
+
return true;
|
|
239
|
+
// check if a contains b
|
|
240
|
+
for (let i = 0, l = b.length; i < l; ++i) {
|
|
241
|
+
if (BRect_1.BRectHelper.contains(a, b[i]))
|
|
242
|
+
return true;
|
|
243
|
+
}
|
|
244
|
+
// check if b contains a
|
|
245
|
+
if (Intersection.pointInPolygon(temp1, b))
|
|
246
|
+
return true;
|
|
247
|
+
if (Intersection.pointInPolygon(temp2, b))
|
|
248
|
+
return true;
|
|
249
|
+
if (Intersection.pointInPolygon(temp3, b))
|
|
250
|
+
return true;
|
|
251
|
+
if (Intersection.pointInPolygon(temp4, b))
|
|
252
|
+
return true;
|
|
253
|
+
return false;
|
|
254
|
+
}
|
|
255
|
+
static pointInPolygon(point, polygon) {
|
|
256
|
+
let inside = false;
|
|
257
|
+
let x = point.x;
|
|
258
|
+
let y = point.y;
|
|
259
|
+
// use some raycasting to test hits
|
|
260
|
+
// https://github.com/substack/point-in-polygon/blob/master/index.js
|
|
261
|
+
let length = polygon.length;
|
|
262
|
+
for (let i = 0, j = length - 1; i < length; j = i++) {
|
|
263
|
+
let xi = polygon[i].x, yi = polygon[i].y, xj = polygon[j].x, yj = polygon[j].y, intersect = ((yi > y) !== (yj > y)) && (x < (xj - xi) * (y - yi) / (yj - yi) + xi);
|
|
264
|
+
if (intersect)
|
|
265
|
+
inside = !inside;
|
|
266
|
+
}
|
|
267
|
+
return inside;
|
|
268
|
+
}
|
|
269
|
+
/**
|
|
270
|
+
* 求圆心与多边形最近点
|
|
271
|
+
* @param center
|
|
272
|
+
* @param a
|
|
273
|
+
*/
|
|
274
|
+
static getNearestPoint(center, a) {
|
|
275
|
+
let rp = a[0], minDis = BVec2_1.BVecHelper.distanceSqr(center, rp);
|
|
276
|
+
for (let i = 1, len = a.length; i < len; i++) {
|
|
277
|
+
let p2 = a[i], sd = BVec2_1.BVecHelper.distanceSqr(center, p2);
|
|
278
|
+
if (sd < minDis) {
|
|
279
|
+
minDis = sd;
|
|
280
|
+
rp = p2;
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
return rp;
|
|
284
|
+
}
|
|
285
|
+
/**
|
|
286
|
+
*分离轴算法,只适合凸多边形
|
|
287
|
+
*
|
|
288
|
+
* @static
|
|
289
|
+
* @param {BVec2[]} a
|
|
290
|
+
* @param {BVec2[]} b
|
|
291
|
+
* @param {BVec2[]} aside
|
|
292
|
+
* @param {BVec2[]} bside
|
|
293
|
+
* @return {*}
|
|
294
|
+
* @memberof Intersection
|
|
295
|
+
*/
|
|
296
|
+
static satPolygonPolygon(a, b, aside, bside) {
|
|
297
|
+
for (let i = 0, len = aside.length; i < len; i++) {
|
|
298
|
+
BVec2_1.BVecHelper.set(temp1, aside[i].y, -aside[i].x);
|
|
299
|
+
let proA = Intersection.getProjectionPolygon(a, temp1);
|
|
300
|
+
let proB = Intersection.getProjectionPolygon(b, temp1);
|
|
301
|
+
if (isOverlay(proA, proB))
|
|
302
|
+
return false;
|
|
303
|
+
}
|
|
304
|
+
for (let i = 0, ilen = bside.length; i < ilen; i++) {
|
|
305
|
+
BVec2_1.BVecHelper.set(temp1, bside[i].y, -bside[i].x);
|
|
306
|
+
let proA = Intersection.getProjectionPolygon(a, temp1);
|
|
307
|
+
let proB = Intersection.getProjectionPolygon(b, temp1);
|
|
308
|
+
if (isOverlay(proA, proB))
|
|
309
|
+
return false;
|
|
310
|
+
}
|
|
311
|
+
return true;
|
|
312
|
+
}
|
|
313
|
+
static getProjectionPolygon(a, asix) {
|
|
314
|
+
let min = Number.MAX_SAFE_INTEGER, max = -Number.MAX_SAFE_INTEGER;
|
|
315
|
+
for (let ai = 0, al = a.length; ai < al; ai++) {
|
|
316
|
+
let pro = BVec2_1.BVecHelper.dot(a[ai], asix);
|
|
317
|
+
;
|
|
318
|
+
min = Math.min(min, pro);
|
|
319
|
+
max = Math.max(max, pro);
|
|
320
|
+
}
|
|
321
|
+
return { min, max };
|
|
322
|
+
}
|
|
323
|
+
static polygonPolygon(a, b) {
|
|
324
|
+
let i, l;
|
|
325
|
+
// check if a intersects b
|
|
326
|
+
for (i = 0, l = a.length; i < l; ++i) {
|
|
327
|
+
let a1 = a[i];
|
|
328
|
+
let a2 = a[(i + 1) % l];
|
|
329
|
+
if (Intersection.linePolygon(a1, a2, b))
|
|
330
|
+
return true;
|
|
331
|
+
}
|
|
332
|
+
// check if a contains b
|
|
333
|
+
for (i = 0, l = b.length; i < l; ++i) {
|
|
334
|
+
if (Intersection.pointInPolygon(b[i], a))
|
|
335
|
+
return true;
|
|
336
|
+
}
|
|
337
|
+
// check if b contains a
|
|
338
|
+
for (i = 0, l = a.length; i < l; ++i) {
|
|
339
|
+
if (Intersection.pointInPolygon(a[i], b))
|
|
340
|
+
return true;
|
|
341
|
+
}
|
|
342
|
+
return false;
|
|
343
|
+
}
|
|
344
|
+
/**
|
|
345
|
+
* 获取线段相交的点
|
|
346
|
+
* @param {BVec2Like} p1
|
|
347
|
+
* @param {BVec2Like} p2
|
|
348
|
+
* @param {BVec2Like} p3
|
|
349
|
+
* @param {BVec2Like} p4
|
|
350
|
+
* @param {BVec2Like} out?
|
|
351
|
+
*/
|
|
352
|
+
static getPoint(p1, p2, p3, p4, out) {
|
|
353
|
+
out = out || new BVec2_1.BVec2();
|
|
354
|
+
let x1 = p1.x, y1 = p1.y;
|
|
355
|
+
let x2 = p2.x, y2 = p2.y;
|
|
356
|
+
let x3 = p3.x, y3 = p3.y;
|
|
357
|
+
let x4 = p4.x, y4 = p4.y;
|
|
358
|
+
let t = ((x2 - x1) * (y3 - y1) - (x3 - x1) * (y2 - y1)) / ((x2 - x1) * (y3 - y4) - (x3 - x4) * (y2 - y1));
|
|
359
|
+
return BVec2_1.BVecHelper.set(out, x3 + t * (x4 - x3), y3 + t * (y4 - y3));
|
|
360
|
+
}
|
|
361
|
+
//判断是否为凹多边形状
|
|
362
|
+
static isConcavePolygon(pos) {
|
|
363
|
+
let line = [];
|
|
364
|
+
for (let i = 0, l = pos.length; i < l; ++i) {
|
|
365
|
+
let a1 = pos[i];
|
|
366
|
+
let a2 = pos[(i + 1) % l];
|
|
367
|
+
let linep = new BVec2_1.BVec2();
|
|
368
|
+
BVec2_1.BVecHelper.sub(linep, a1, a2);
|
|
369
|
+
line.push(linep);
|
|
370
|
+
}
|
|
371
|
+
let preValue = BVec2_1.BVecHelper.cross(line[0], line[1]) >= 0 ? 1 : -1;
|
|
372
|
+
let current, next;
|
|
373
|
+
let len = line.length;
|
|
374
|
+
for (let i = 1; i < line.length; i++) {
|
|
375
|
+
current = line[i];
|
|
376
|
+
next = line[(i + 1) % len];
|
|
377
|
+
let currentValue = BVec2_1.BVecHelper.cross(current, next) >= 0 ? 1 : -1;
|
|
378
|
+
if (preValue != currentValue)
|
|
379
|
+
return true;
|
|
380
|
+
preValue = currentValue;
|
|
381
|
+
}
|
|
382
|
+
return false;
|
|
383
|
+
}
|
|
384
|
+
/**
|
|
385
|
+
* 线段A(A1->A2)与线段B(B1->B2)碰撞,返回碰撞点和反射向量
|
|
386
|
+
* @param A1 A线起点
|
|
387
|
+
* @param A2 A线终点
|
|
388
|
+
* @param B1 B线起点
|
|
389
|
+
* @param B2 B线终点
|
|
390
|
+
* @returns null | { point: BVec2, reflect: BVec2, normal: BVec2, t: number, u: number }
|
|
391
|
+
*/
|
|
392
|
+
static reflectOnSegmentByEnds(A1, A2, B1, B2, out) {
|
|
393
|
+
const p = A1;
|
|
394
|
+
const r = temp1;
|
|
395
|
+
BVec2_1.BVecHelper.sub(r, A2, A1);
|
|
396
|
+
const q = B1;
|
|
397
|
+
const s = temp2;
|
|
398
|
+
BVec2_1.BVecHelper.sub(s, B2, B1);
|
|
399
|
+
const rxs = BVec2_1.BVecHelper.cross(r, s);
|
|
400
|
+
if (Math.abs(rxs) < 1e-8)
|
|
401
|
+
return null;
|
|
402
|
+
const qp = temp3;
|
|
403
|
+
BVec2_1.BVecHelper.sub(qp, q, p);
|
|
404
|
+
const t = BVec2_1.BVecHelper.cross(qp, s) / rxs;
|
|
405
|
+
const u = BVec2_1.BVecHelper.cross(qp, r) / rxs;
|
|
406
|
+
if (t > 0 && t <= 1 && u >= 0 && u <= 1) {
|
|
407
|
+
out = out || {
|
|
408
|
+
point: BVec2_1.BVecHelper.pop(),
|
|
409
|
+
reflect: BVec2_1.BVecHelper.pop(),
|
|
410
|
+
normal: BVec2_1.BVecHelper.pop(),
|
|
411
|
+
t,
|
|
412
|
+
u
|
|
413
|
+
};
|
|
414
|
+
out.t = t;
|
|
415
|
+
out.u = u;
|
|
416
|
+
const point = out.point;
|
|
417
|
+
const rmul = temp3;
|
|
418
|
+
BVec2_1.BVecHelper.mulScalar(rmul, r, t);
|
|
419
|
+
BVec2_1.BVecHelper.add(point, p, rmul);
|
|
420
|
+
const normal = out.normal;
|
|
421
|
+
BVec2_1.BVecHelper.set(normal, s.y, -s.x);
|
|
422
|
+
BVec2_1.BVecHelper.normalize(normal, normal);
|
|
423
|
+
const dir = temp1;
|
|
424
|
+
BVec2_1.BVecHelper.normalize(dir, r);
|
|
425
|
+
const reflect = out.reflect;
|
|
426
|
+
BVec2_1.BVecHelper.reflect(reflect, dir, normal);
|
|
427
|
+
return out;
|
|
428
|
+
}
|
|
429
|
+
return null;
|
|
430
|
+
}
|
|
431
|
+
/**
|
|
432
|
+
* 射线A(A1为起点,dir为方向向量)与线段B(B1->B2)碰撞,返回碰撞点和反射向量
|
|
433
|
+
* @param A1 射线起点(BVec2)
|
|
434
|
+
* @param dir 射线方向(BVec2,可以不是单位向量)
|
|
435
|
+
* @param B1 线段B起点
|
|
436
|
+
* @param B2 线段B终点
|
|
437
|
+
* @returns { point, reflect, normal, t, u }
|
|
438
|
+
*/
|
|
439
|
+
static reflectRayOnSegment(A1, dir, B1, B2, out) {
|
|
440
|
+
const dx = dir.x, dy = dir.y;
|
|
441
|
+
const sx = B2.x - B1.x, sy = B2.y - B1.y;
|
|
442
|
+
const rxs = dx * sy - dy * sx;
|
|
443
|
+
if (Math.abs(rxs) < 1e-8)
|
|
444
|
+
return null;
|
|
445
|
+
const qpx = B1.x - A1.x, qpy = B1.y - A1.y;
|
|
446
|
+
const t = (qpx * sy - qpy * sx) / rxs;
|
|
447
|
+
const u = (qpx * dy - qpy * dx) / rxs;
|
|
448
|
+
if (t >= 0 && u >= 0 && u <= 1) {
|
|
449
|
+
out = out || {
|
|
450
|
+
point: BVec2_1.BVecHelper.pop(),
|
|
451
|
+
reflect: BVec2_1.BVecHelper.pop(),
|
|
452
|
+
normal: BVec2_1.BVecHelper.pop(),
|
|
453
|
+
t,
|
|
454
|
+
u
|
|
455
|
+
};
|
|
456
|
+
out.t = t;
|
|
457
|
+
out.u = u;
|
|
458
|
+
BVec2_1.BVecHelper.set(out.point, A1.x + dx * t, A1.y + dy * t);
|
|
459
|
+
let nx = sy, ny = -sx;
|
|
460
|
+
let nlen = JMath_1.default.sqrt(nx * nx + ny * ny);
|
|
461
|
+
if (nlen > 1e-8) {
|
|
462
|
+
nx /= nlen;
|
|
463
|
+
ny /= nlen;
|
|
464
|
+
}
|
|
465
|
+
else {
|
|
466
|
+
nx = 0;
|
|
467
|
+
ny = 0;
|
|
468
|
+
}
|
|
469
|
+
BVec2_1.BVecHelper.set(out.normal, nx, ny);
|
|
470
|
+
let rlen = JMath_1.default.sqrt(dx * dx + dy * dy);
|
|
471
|
+
let ddx = dx / rlen, ddy = dy / rlen;
|
|
472
|
+
const dot = ddx * nx + ddy * ny;
|
|
473
|
+
BVec2_1.BVecHelper.set(out.reflect, ddx - 2 * dot * nx, ddy - 2 * dot * ny);
|
|
474
|
+
return out;
|
|
475
|
+
}
|
|
476
|
+
return null;
|
|
477
|
+
}
|
|
478
|
+
/**
|
|
479
|
+
* 有体积(半径radius)的射线A(A1为起点,dir为方向向量)与线段B(B1->B2)碰撞,返回碰撞点和反射向量
|
|
480
|
+
* @param A1 射线起点(BVec2)
|
|
481
|
+
* @param dir 射线方向(BVec2,可以不是单位向量)
|
|
482
|
+
* @param radius 射线圆形体积半径
|
|
483
|
+
* @param B1 线段B起点(BVec2)
|
|
484
|
+
* @param B2 线段B终点(BVec2)
|
|
485
|
+
* @returns null | { point, reflect, normal, t, u }
|
|
486
|
+
*/
|
|
487
|
+
static reflectFatRayOnSegment(A1, dir, radius, B1, B2) {
|
|
488
|
+
const sx = B2.x - B1.x, sy = B2.y - B1.y;
|
|
489
|
+
let nx = sy, ny = -sx;
|
|
490
|
+
let nlen = JMath_1.default.sqrt(nx * nx + ny * ny);
|
|
491
|
+
if (nlen > 1e-8) {
|
|
492
|
+
nx /= nlen;
|
|
493
|
+
ny /= nlen;
|
|
494
|
+
}
|
|
495
|
+
else {
|
|
496
|
+
nx = 0;
|
|
497
|
+
ny = 0;
|
|
498
|
+
}
|
|
499
|
+
const normal = new BVec2_1.BVec2(nx, ny);
|
|
500
|
+
const A1p = new BVec2_1.BVec2(A1.x + nx * radius, A1.y + ny * radius);
|
|
501
|
+
const dx = dir.x, dy = dir.y;
|
|
502
|
+
const sx2 = B2.x - B1.x, sy2 = B2.y - B1.y;
|
|
503
|
+
const rxs = dx * sy2 - dy * sx2;
|
|
504
|
+
if (Math.abs(rxs) < 1e-8)
|
|
505
|
+
return null;
|
|
506
|
+
const qpx = B1.x - A1p.x, qpy = B1.y - A1p.y;
|
|
507
|
+
const t = (qpx * sy2 - qpy * sx2) / rxs;
|
|
508
|
+
const u = (qpx * dy - qpy * dx) / rxs;
|
|
509
|
+
if (t >= 0 && u >= 0 && u <= 1) {
|
|
510
|
+
const point = new BVec2_1.BVec2(A1.x + dx * t, A1.y + dy * t);
|
|
511
|
+
let rlen = JMath_1.default.sqrt(dx * dx + dy * dy);
|
|
512
|
+
let ddx = dx / rlen, ddy = dy / rlen;
|
|
513
|
+
const dot = ddx * nx + ddy * ny;
|
|
514
|
+
const reflect = new BVec2_1.BVec2(ddx - 2 * dot * nx, ddy - 2 * dot * ny);
|
|
515
|
+
return { point, reflect, normal, t, u };
|
|
516
|
+
}
|
|
517
|
+
const resB1 = this.rayCircle(A1, dir, B1, radius);
|
|
518
|
+
if (resB1 && resB1.t >= 0 && (t < 0 || resB1.t <= t)) {
|
|
519
|
+
const n = new BVec2_1.BVec2();
|
|
520
|
+
BVec2_1.BVecHelper.sub(n, resB1.point, B1);
|
|
521
|
+
BVec2_1.BVecHelper.normalize(n, n);
|
|
522
|
+
const dirNorm = new BVec2_1.BVec2();
|
|
523
|
+
BVec2_1.BVecHelper.normalize(dirNorm, dir);
|
|
524
|
+
const reflect = new BVec2_1.BVec2();
|
|
525
|
+
BVec2_1.BVecHelper.reflect(reflect, dirNorm, n);
|
|
526
|
+
return { point: resB1.point, reflect, normal: n, t: resB1.t, u: 0 };
|
|
527
|
+
}
|
|
528
|
+
const resB2 = this.rayCircle(A1, dir, B2, radius);
|
|
529
|
+
if (resB2 && resB2.t >= 0 && (t < 0 || resB2.t <= t)) {
|
|
530
|
+
const n = new BVec2_1.BVec2();
|
|
531
|
+
BVec2_1.BVecHelper.sub(n, resB2.point, B2);
|
|
532
|
+
BVec2_1.BVecHelper.normalize(n, n);
|
|
533
|
+
const dirNorm = new BVec2_1.BVec2();
|
|
534
|
+
BVec2_1.BVecHelper.normalize(dirNorm, dir);
|
|
535
|
+
const reflect = new BVec2_1.BVec2();
|
|
536
|
+
BVec2_1.BVecHelper.reflect(reflect, dirNorm, n);
|
|
537
|
+
return { point: resB2.point, reflect, normal: n, t: resB2.t, u: 1 };
|
|
538
|
+
}
|
|
539
|
+
return null;
|
|
540
|
+
}
|
|
541
|
+
/**
|
|
542
|
+
* 射线与圆碰撞
|
|
543
|
+
* @param O 射线起点(BVec2)
|
|
544
|
+
* @param d 射线方向(BVec2)
|
|
545
|
+
* @param C 圆心(BVec2)
|
|
546
|
+
* @param r 半径
|
|
547
|
+
* @returns null | {point, t}
|
|
548
|
+
*/
|
|
549
|
+
static rayCircle(O, d, C, r) {
|
|
550
|
+
const dx = d.x, dy = d.y;
|
|
551
|
+
const ox = O.x, oy = O.y;
|
|
552
|
+
const cx = C.x, cy = C.y;
|
|
553
|
+
const fx = ox - cx, fy = oy - cy;
|
|
554
|
+
const a = dx * dx + dy * dy;
|
|
555
|
+
const b = 2 * (fx * dx + fy * dy);
|
|
556
|
+
const c = fx * fx + fy * fy - r * r;
|
|
557
|
+
const discriminant = b * b - 4 * a * c;
|
|
558
|
+
if (discriminant < 0)
|
|
559
|
+
return null;
|
|
560
|
+
const sqrtD = JMath_1.default.sqrt(discriminant);
|
|
561
|
+
const t1 = (-b - sqrtD) / (2 * a);
|
|
562
|
+
const t2 = (-b + sqrtD) / (2 * a);
|
|
563
|
+
let t = Number.POSITIVE_INFINITY;
|
|
564
|
+
if (t1 >= 0)
|
|
565
|
+
t = t1;
|
|
566
|
+
else if (t2 >= 0)
|
|
567
|
+
t = t2;
|
|
568
|
+
else
|
|
569
|
+
return null;
|
|
570
|
+
const point = new BVec2_1.BVec2(ox + dx * t, oy + dy * t);
|
|
571
|
+
return { point, t };
|
|
572
|
+
}
|
|
573
|
+
/**
|
|
574
|
+
* 线段与圆相交,返回交点、反射方向、法线
|
|
575
|
+
* @param A1 线段起点
|
|
576
|
+
* @param A2 线段终点
|
|
577
|
+
* @param C 圆心
|
|
578
|
+
* @param r 圆半径
|
|
579
|
+
* @param out 可选的复用输出对象
|
|
580
|
+
* @returns null | { point, reflect, normal, t, u }
|
|
581
|
+
*/
|
|
582
|
+
static reflectOnCircle(A1, A2, C, r, out) {
|
|
583
|
+
const dx = A2.x - A1.x;
|
|
584
|
+
const dy = A2.y - A1.y;
|
|
585
|
+
const a = dx * dx + dy * dy;
|
|
586
|
+
if (a < 1e-8)
|
|
587
|
+
return null;
|
|
588
|
+
const fx = A1.x - C.x;
|
|
589
|
+
const fy = A1.y - C.y;
|
|
590
|
+
const b = 2 * (fx * dx + fy * dy);
|
|
591
|
+
const c = fx * fx + fy * fy - r * r;
|
|
592
|
+
const discriminant = b * b - 4 * a * c;
|
|
593
|
+
if (discriminant < 0)
|
|
594
|
+
return null;
|
|
595
|
+
const sqrtD = JMath_1.default.sqrt(discriminant);
|
|
596
|
+
const t1 = (-b - sqrtD) / (2 * a);
|
|
597
|
+
const t2 = (-b + sqrtD) / (2 * a);
|
|
598
|
+
// 取线段上最近的交点(t ∈ [0,1])
|
|
599
|
+
let t = (t1 >= 0 && t1 <= 1) ? t1 : ((t2 >= 0 && t2 <= 1) ? t2 : -1);
|
|
600
|
+
if (t < 0)
|
|
601
|
+
return null;
|
|
602
|
+
// 交点坐标
|
|
603
|
+
const px = A1.x + dx * t;
|
|
604
|
+
const py = A1.y + dy * t;
|
|
605
|
+
// 法线:圆心指向交点(向外)
|
|
606
|
+
const nx = px - C.x;
|
|
607
|
+
const ny = py - C.y;
|
|
608
|
+
const nLen = JMath_1.default.sqrt(nx * nx + ny * ny);
|
|
609
|
+
const unx = nLen > 1e-8 ? nx / nLen : 0;
|
|
610
|
+
const uny = nLen > 1e-8 ? ny / nLen : 0;
|
|
611
|
+
// 入射方向单位化
|
|
612
|
+
const dLen = JMath_1.default.sqrt(dx * dx + dy * dy);
|
|
613
|
+
const udx = dLen > 1e-8 ? dx / dLen : 0;
|
|
614
|
+
const udy = dLen > 1e-8 ? dy / dLen : 0;
|
|
615
|
+
// 反射公式: r = d - 2*(d·n)*n
|
|
616
|
+
const dot = udx * unx + udy * uny;
|
|
617
|
+
const rfx = udx - 2 * dot * unx;
|
|
618
|
+
const rfy = udy - 2 * dot * uny;
|
|
619
|
+
out = out || {
|
|
620
|
+
point: BVec2_1.BVecHelper.pop(),
|
|
621
|
+
reflect: BVec2_1.BVecHelper.pop(),
|
|
622
|
+
normal: BVec2_1.BVecHelper.pop(),
|
|
623
|
+
t: 0,
|
|
624
|
+
u: 0,
|
|
625
|
+
};
|
|
626
|
+
out.t = t;
|
|
627
|
+
out.u = 0;
|
|
628
|
+
BVec2_1.BVecHelper.set(out.point, px, py);
|
|
629
|
+
BVec2_1.BVecHelper.set(out.reflect, rfx, rfy);
|
|
630
|
+
BVec2_1.BVecHelper.set(out.normal, unx, uny);
|
|
631
|
+
return out;
|
|
632
|
+
}
|
|
633
|
+
}
|
|
634
|
+
exports.Intersection = Intersection;
|
|
635
|
+
class AngleSlerp {
|
|
636
|
+
/**
|
|
637
|
+
* 在两个角度之间进行插值,考虑角度环绕
|
|
638
|
+
* @param a 起始角度
|
|
639
|
+
* @param b 结束角度
|
|
640
|
+
* @param t 插值因子,范围从 0 到 1
|
|
641
|
+
* @returns 插值后的角度
|
|
642
|
+
*/
|
|
643
|
+
static slerp(a, b, t) {
|
|
644
|
+
// 将角度转换为弧度
|
|
645
|
+
const radA = a * (JMath_1.default.PI / 180);
|
|
646
|
+
const radB = b * (JMath_1.default.PI / 180);
|
|
647
|
+
// 计算角度差值
|
|
648
|
+
let diff = radB - radA;
|
|
649
|
+
// 确保差值在 -π 到 π 之间
|
|
650
|
+
if (diff > JMath_1.default.PI) {
|
|
651
|
+
diff -= 2 * JMath_1.default.PI;
|
|
652
|
+
}
|
|
653
|
+
else if (diff < -JMath_1.default.PI) {
|
|
654
|
+
diff += 2 * JMath_1.default.PI;
|
|
655
|
+
}
|
|
656
|
+
// 计算插值后的弧度
|
|
657
|
+
const radC = radA + t * diff;
|
|
658
|
+
// 将弧度转换回角度
|
|
659
|
+
let angleC = radC * (180 / JMath_1.default.PI);
|
|
660
|
+
// 确保角度在 0 到 360 度之间
|
|
661
|
+
angleC = angleC % 360;
|
|
662
|
+
if (angleC < 0) {
|
|
663
|
+
angleC += 360;
|
|
664
|
+
}
|
|
665
|
+
return angleC;
|
|
666
|
+
}
|
|
667
|
+
// 角度转弧度
|
|
668
|
+
static degToRad(degrees) {
|
|
669
|
+
return degrees * (JMath_1.default.PI / 180);
|
|
670
|
+
}
|
|
671
|
+
// 弧度转角度
|
|
672
|
+
static radToDeg(radians) {
|
|
673
|
+
return radians * (180 / JMath_1.default.PI);
|
|
674
|
+
}
|
|
675
|
+
static clampAngleInRange(angle, min, max) {
|
|
676
|
+
// 归一化到0~360
|
|
677
|
+
angle = (angle % 360 + 360) % 360;
|
|
678
|
+
min = (min % 360 + 360) % 360;
|
|
679
|
+
max = (max % 360 + 360) % 360;
|
|
680
|
+
if (min < max) {
|
|
681
|
+
// 普通区间
|
|
682
|
+
return BattleUtils_1.BattleUtils.clampf(angle, min, max);
|
|
683
|
+
}
|
|
684
|
+
else {
|
|
685
|
+
// 跨0区间
|
|
686
|
+
if (angle >= min || angle <= max) {
|
|
687
|
+
return angle;
|
|
688
|
+
}
|
|
689
|
+
// 离哪个端点近就贴边
|
|
690
|
+
let distToMin = ((angle - min + 360) % 360);
|
|
691
|
+
let distToMax = ((max - angle + 360) % 360);
|
|
692
|
+
return distToMin < distToMax ? max : min;
|
|
693
|
+
}
|
|
694
|
+
}
|
|
695
|
+
}
|
|
696
|
+
exports.AngleSlerp = AngleSlerp;
|