warscript 0.0.1-dev.008d8ef
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/LICENSE +23 -0
- package/attributes.d.ts +12 -0
- package/attributes.lua +16 -0
- package/binaryreader.d.ts +21 -0
- package/binaryreader.lua +53 -0
- package/binarywriter.d.ts +21 -0
- package/binarywriter.lua +90 -0
- package/core/dummy.d.ts +22 -0
- package/core/dummy.lua +133 -0
- package/core/game.d.ts +3 -0
- package/core/game.lua +24 -0
- package/core/thread.d.ts +8 -0
- package/core/thread.lua +40 -0
- package/core/types/ability.d.ts +4 -0
- package/core/types/ability.lua +10 -0
- package/core/types/async.d.ts +3 -0
- package/core/types/async.lua +2 -0
- package/core/types/camera.d.ts +4 -0
- package/core/types/camera.lua +21 -0
- package/core/types/cameraField.d.ts +15 -0
- package/core/types/cameraField.lua +38 -0
- package/core/types/color.d.ts +16 -0
- package/core/types/color.lua +93 -0
- package/core/types/destructable.d.ts +31 -0
- package/core/types/destructable.lua +245 -0
- package/core/types/effect.d.ts +31 -0
- package/core/types/effect.lua +209 -0
- package/core/types/frame.d.ts +141 -0
- package/core/types/frame.lua +884 -0
- package/core/types/game.d.ts +8 -0
- package/core/types/game.lua +41 -0
- package/core/types/group.d.ts +21 -0
- package/core/types/group.lua +94 -0
- package/core/types/handle.d.ts +49 -0
- package/core/types/handle.lua +174 -0
- package/core/types/image.d.ts +29 -0
- package/core/types/image.lua +121 -0
- package/core/types/internal/ability+cooldownRemaining.d.ts +1 -0
- package/core/types/internal/ability+cooldownRemaining.lua +0 -0
- package/core/types/item.d.ts +4 -0
- package/core/types/item.lua +6 -0
- package/core/types/missile.d.ts +22 -0
- package/core/types/missile.lua +239 -0
- package/core/types/order.d.ts +25 -0
- package/core/types/order.lua +55 -0
- package/core/types/player.d.ts +71 -0
- package/core/types/player.lua +448 -0
- package/core/types/playerCamera.d.ts +32 -0
- package/core/types/playerCamera.lua +162 -0
- package/core/types/playerColor.d.ts +40 -0
- package/core/types/playerColor.lua +203 -0
- package/core/types/rect.d.ts +39 -0
- package/core/types/rect.lua +152 -0
- package/core/types/region.d.ts +14 -0
- package/core/types/region.lua +84 -0
- package/core/types/sound.d.ts +69 -0
- package/core/types/sound.lua +247 -0
- package/core/types/tileCell.d.ts +13 -0
- package/core/types/tileCell.lua +100 -0
- package/core/types/timer.d.ts +36 -0
- package/core/types/timer.lua +230 -0
- package/core/types/timerDialog.d.ts +19 -0
- package/core/types/timerDialog.lua +95 -0
- package/core/types/unit.d.ts +10 -0
- package/core/types/unit.lua +32 -0
- package/core/types/widget.d.ts +5 -0
- package/core/types/widget.lua +2 -0
- package/core/util.d.ts +62 -0
- package/core/util.lua +464 -0
- package/core/vecmath/common.d.ts +18 -0
- package/core/vecmath/common.lua +29 -0
- package/core/vecmath/mat2.d.ts +73 -0
- package/core/vecmath/mat2.lua +261 -0
- package/core/vecmath/vec3.d.ts +47 -0
- package/core/vecmath/vec3.lua +350 -0
- package/core/vecmath/vec4.d.ts +54 -0
- package/core/vecmath/vec4.lua +400 -0
- package/crypto/ecc.d.ts +6 -0
- package/crypto/ecc.lua +1734 -0
- package/decl/index.d.ts +117 -0
- package/decl/native.d.ts +8198 -0
- package/destroyable.d.ts +20 -0
- package/destroyable.lua +31 -0
- package/engine/ability.d.ts +5 -0
- package/engine/ability.lua +7 -0
- package/engine/behavior.d.ts +28 -0
- package/engine/behavior.lua +181 -0
- package/engine/behaviour/ability/apply-buff.d.ts +38 -0
- package/engine/behaviour/ability/apply-buff.lua +126 -0
- package/engine/behaviour/ability/apply-unit-behavior.d.ts +21 -0
- package/engine/behaviour/ability/apply-unit-behavior.lua +58 -0
- package/engine/behaviour/ability/damage.d.ts +47 -0
- package/engine/behaviour/ability/damage.lua +133 -0
- package/engine/behaviour/ability/heal.d.ts +43 -0
- package/engine/behaviour/ability/heal.lua +114 -0
- package/engine/behaviour/ability/instant-impact.d.ts +6 -0
- package/engine/behaviour/ability/instant-impact.lua +29 -0
- package/engine/behaviour/ability/restore-mana.d.ts +15 -0
- package/engine/behaviour/ability/restore-mana.lua +29 -0
- package/engine/behaviour/ability.d.ts +47 -0
- package/engine/behaviour/ability.lua +237 -0
- package/engine/behaviour/unit/stun-immunity.d.ts +18 -0
- package/engine/behaviour/unit/stun-immunity.lua +67 -0
- package/engine/behaviour/unit.d.ts +21 -0
- package/engine/behaviour/unit.lua +82 -0
- package/engine/buff.d.ts +221 -0
- package/engine/buff.lua +1091 -0
- package/engine/constants.d.ts +7 -0
- package/engine/constants.lua +8 -0
- package/engine/game-map.d.ts +7 -0
- package/engine/game-map.lua +32 -0
- package/engine/index.d.ts +5 -0
- package/engine/index.lua +2 -0
- package/engine/internal/ability.d.ts +91 -0
- package/engine/internal/ability.lua +531 -0
- package/engine/internal/item/ability.d.ts +2 -0
- package/engine/internal/item/ability.lua +48 -0
- package/engine/internal/item+owner.d.ts +7 -0
- package/engine/internal/item+owner.lua +22 -0
- package/engine/internal/item.d.ts +86 -0
- package/engine/internal/item.lua +580 -0
- package/engine/internal/mechanics/ability-duration.d.ts +2 -0
- package/engine/internal/mechanics/ability-duration.lua +13 -0
- package/engine/internal/mechanics/area-damage.d.ts +2 -0
- package/engine/internal/mechanics/area-damage.lua +33 -0
- package/engine/internal/mechanics/cast-ability.d.ts +2 -0
- package/engine/internal/mechanics/cast-ability.lua +86 -0
- package/engine/internal/misc/dummy-units.d.ts +2 -0
- package/engine/internal/misc/dummy-units.lua +14 -0
- package/engine/internal/object-data/armor-increase.d.ts +2 -0
- package/engine/internal/object-data/armor-increase.lua +19 -0
- package/engine/internal/object-data/attribute-bonus.d.ts +2 -0
- package/engine/internal/object-data/attribute-bonus.lua +15 -0
- package/engine/internal/object-data/auto-attack-damage-increase.d.ts +2 -0
- package/engine/internal/object-data/auto-attack-damage-increase.lua +17 -0
- package/engine/internal/object-data/auto-attack-speed-increase.d.ts +2 -0
- package/engine/internal/object-data/auto-attack-speed-increase.lua +14 -0
- package/engine/internal/object-data/dummy-inventory.d.ts +2 -0
- package/engine/internal/object-data/dummy-inventory.lua +16 -0
- package/engine/internal/object-data/dummy-item.d.ts +2 -0
- package/engine/internal/object-data/dummy-item.lua +10 -0
- package/engine/internal/object-data/ghost-visible.d.ts +2 -0
- package/engine/internal/object-data/ghost-visible.lua +15 -0
- package/engine/internal/object-data/invulnerable.d.ts +2 -0
- package/engine/internal/object-data/invulnerable.lua +11 -0
- package/engine/internal/object-data/movement-speed-increase-factor.d.ts +2 -0
- package/engine/internal/object-data/movement-speed-increase-factor.lua +18 -0
- package/engine/internal/unit/ability.d.ts +143 -0
- package/engine/internal/unit/ability.lua +369 -0
- package/engine/internal/unit/allowed-targets.d.ts +17 -0
- package/engine/internal/unit/allowed-targets.lua +19 -0
- package/engine/internal/unit/band-aids/ancestral-spirit-cannibalize.d.ts +2 -0
- package/engine/internal/unit/band-aids/ancestral-spirit-cannibalize.lua +21 -0
- package/engine/internal/unit/bonus.d.ts +40 -0
- package/engine/internal/unit/bonus.lua +188 -0
- package/engine/internal/unit/buff.d.ts +38 -0
- package/engine/internal/unit/buff.lua +81 -0
- package/engine/internal/unit/detach-missiles.d.ts +7 -0
- package/engine/internal/unit/detach-missiles.lua +30 -0
- package/engine/internal/unit/expiration-timer.d.ts +22 -0
- package/engine/internal/unit/expiration-timer.lua +44 -0
- package/engine/internal/unit/ghost-counter.d.ts +12 -0
- package/engine/internal/unit/ghost-counter.lua +26 -0
- package/engine/internal/unit/invulnerability-counter.d.ts +12 -0
- package/engine/internal/unit/invulnerability-counter.lua +26 -0
- package/engine/internal/unit/missile.d.ts +42 -0
- package/engine/internal/unit/missile.lua +70 -0
- package/engine/internal/unit/movement-speed.d.ts +18 -0
- package/engine/internal/unit/movement-speed.lua +42 -0
- package/engine/internal/unit/summon-event.d.ts +12 -0
- package/engine/internal/unit/summon-event.lua +50 -0
- package/engine/internal/unit+ability.d.ts +9 -0
- package/engine/internal/unit+ability.lua +59 -0
- package/engine/internal/unit+bonus.d.ts +8 -0
- package/engine/internal/unit+bonus.lua +40 -0
- package/engine/internal/unit+damage.d.ts +69 -0
- package/engine/internal/unit+damage.lua +123 -0
- package/engine/internal/unit+rally.d.ts +10 -0
- package/engine/internal/unit+rally.lua +159 -0
- package/engine/internal/unit+spellSteal.d.ts +7 -0
- package/engine/internal/unit+spellSteal.lua +64 -0
- package/engine/internal/unit+transport.d.ts +12 -0
- package/engine/internal/unit+transport.lua +96 -0
- package/engine/internal/unit-missile-data.d.ts +2 -0
- package/engine/internal/unit-missile-data.lua +107 -0
- package/engine/internal/unit-missile-launch.d.ts +7 -0
- package/engine/internal/unit-missile-launch.lua +32 -0
- package/engine/internal/unit.d.ts +339 -0
- package/engine/internal/unit.lua +2590 -0
- package/engine/internal/utility.d.ts +2 -0
- package/engine/internal/utility.lua +13 -0
- package/engine/lightning.d.ts +51 -0
- package/engine/lightning.lua +303 -0
- package/engine/local-client.d.ts +16 -0
- package/engine/local-client.lua +86 -0
- package/engine/object-data/auxiliary/animation-name.d.ts +14 -0
- package/engine/object-data/auxiliary/animation-name.lua +2 -0
- package/engine/object-data/auxiliary/animation-qualifier.d.ts +53 -0
- package/engine/object-data/auxiliary/animation-qualifier.lua +2 -0
- package/engine/object-data/auxiliary/armor-sound-type.d.ts +8 -0
- package/engine/object-data/auxiliary/armor-sound-type.lua +2 -0
- package/engine/object-data/auxiliary/attachment-preset.d.ts +14 -0
- package/engine/object-data/auxiliary/attachment-preset.lua +29 -0
- package/engine/object-data/auxiliary/attack-type.d.ts +11 -0
- package/engine/object-data/auxiliary/attack-type.lua +2 -0
- package/engine/object-data/auxiliary/buff-polarity.d.ts +6 -0
- package/engine/object-data/auxiliary/buff-polarity.lua +2 -0
- package/engine/object-data/auxiliary/buff-resistance-type.d.ts +6 -0
- package/engine/object-data/auxiliary/buff-resistance-type.lua +2 -0
- package/engine/object-data/auxiliary/combat-classification.d.ts +44 -0
- package/engine/object-data/auxiliary/combat-classification.lua +206 -0
- package/engine/object-data/auxiliary/detection-type.d.ts +7 -0
- package/engine/object-data/auxiliary/detection-type.lua +2 -0
- package/engine/object-data/auxiliary/model-node-name.d.ts +12 -0
- package/engine/object-data/auxiliary/model-node-name.lua +2 -0
- package/engine/object-data/auxiliary/model-node-qualifier.d.ts +21 -0
- package/engine/object-data/auxiliary/model-node-qualifier.lua +2 -0
- package/engine/object-data/auxiliary/movement-type.d.ts +10 -0
- package/engine/object-data/auxiliary/movement-type.lua +2 -0
- package/engine/object-data/auxiliary/race.d.ts +14 -0
- package/engine/object-data/auxiliary/race.lua +2 -0
- package/engine/object-data/auxiliary/sound-preset-name.d.ts +8 -0
- package/engine/object-data/auxiliary/sound-preset-name.lua +2 -0
- package/engine/object-data/auxiliary/sound-set-name.d.ts +35 -0
- package/engine/object-data/auxiliary/sound-set-name.lua +2 -0
- package/engine/object-data/auxiliary/targeting-type.d.ts +8 -0
- package/engine/object-data/auxiliary/targeting-type.lua +2 -0
- package/engine/object-data/auxiliary/tech-tree-dependency.d.ts +16 -0
- package/engine/object-data/auxiliary/tech-tree-dependency.lua +8 -0
- package/engine/object-data/auxiliary/unit-classification.d.ts +19 -0
- package/engine/object-data/auxiliary/unit-classification.lua +50 -0
- package/engine/object-data/auxiliary/weapon-sound-type.d.ts +17 -0
- package/engine/object-data/auxiliary/weapon-sound-type.lua +2 -0
- package/engine/object-data/entry/ability-type/armor-increase.d.ts +8 -0
- package/engine/object-data/entry/ability-type/armor-increase.lua +26 -0
- package/engine/object-data/entry/ability-type/attribute-increase.d.ts +12 -0
- package/engine/object-data/entry/ability-type/attribute-increase.lua +52 -0
- package/engine/object-data/entry/ability-type/auto-attack-damage-increase.d.ts +8 -0
- package/engine/object-data/entry/ability-type/auto-attack-damage-increase.lua +26 -0
- package/engine/object-data/entry/ability-type/auto-attack-heal-reduction-effect.d.ts +12 -0
- package/engine/object-data/entry/ability-type/auto-attack-heal-reduction-effect.lua +52 -0
- package/engine/object-data/entry/ability-type/auto-attack-speed-increase.d.ts +8 -0
- package/engine/object-data/entry/ability-type/auto-attack-speed-increase.lua +26 -0
- package/engine/object-data/entry/ability-type/bash.d.ts +16 -0
- package/engine/object-data/entry/ability-type/bash.lua +78 -0
- package/engine/object-data/entry/ability-type/berserk.d.ts +10 -0
- package/engine/object-data/entry/ability-type/berserk.lua +39 -0
- package/engine/object-data/entry/ability-type/blank-configurable.d.ts +20 -0
- package/engine/object-data/entry/ability-type/blank-configurable.lua +249 -0
- package/engine/object-data/entry/ability-type/blank-passive.d.ts +6 -0
- package/engine/object-data/entry/ability-type/blank-passive.lua +28 -0
- package/engine/object-data/entry/ability-type/blink.d.ts +10 -0
- package/engine/object-data/entry/ability-type/blink.lua +39 -0
- package/engine/object-data/entry/ability-type/blizzard.d.ts +16 -0
- package/engine/object-data/entry/ability-type/blizzard.lua +78 -0
- package/engine/object-data/entry/ability-type/blood-lust.d.ts +12 -0
- package/engine/object-data/entry/ability-type/blood-lust.lua +52 -0
- package/engine/object-data/entry/ability-type/chain-lightning.d.ts +12 -0
- package/engine/object-data/entry/ability-type/chain-lightning.lua +52 -0
- package/engine/object-data/entry/ability-type/channel.d.ts +47 -0
- package/engine/object-data/entry/ability-type/channel.lua +140 -0
- package/engine/object-data/entry/ability-type/charge-gold-and-lumber.d.ts +14 -0
- package/engine/object-data/entry/ability-type/charge-gold-and-lumber.lua +65 -0
- package/engine/object-data/entry/ability-type/cleaving-attack.d.ts +8 -0
- package/engine/object-data/entry/ability-type/cleaving-attack.lua +26 -0
- package/engine/object-data/entry/ability-type/cluster-rockets.d.ts +18 -0
- package/engine/object-data/entry/ability-type/cluster-rockets.lua +91 -0
- package/engine/object-data/entry/ability-type/cripple.d.ts +12 -0
- package/engine/object-data/entry/ability-type/cripple.lua +52 -0
- package/engine/object-data/entry/ability-type/critical-strike.d.ts +18 -0
- package/engine/object-data/entry/ability-type/critical-strike.lua +91 -0
- package/engine/object-data/entry/ability-type/curse.d.ts +8 -0
- package/engine/object-data/entry/ability-type/curse.lua +26 -0
- package/engine/object-data/entry/ability-type/dark-summoning.d.ts +10 -0
- package/engine/object-data/entry/ability-type/dark-summoning.lua +39 -0
- package/engine/object-data/entry/ability-type/death-coil.d.ts +8 -0
- package/engine/object-data/entry/ability-type/death-coil.lua +26 -0
- package/engine/object-data/entry/ability-type/disease-cloud.d.ts +15 -0
- package/engine/object-data/entry/ability-type/disease-cloud.lua +65 -0
- package/engine/object-data/entry/ability-type/divine-shield.d.ts +5 -0
- package/engine/object-data/entry/ability-type/divine-shield.lua +12 -0
- package/engine/object-data/entry/ability-type/endurance-aura.d.ts +10 -0
- package/engine/object-data/entry/ability-type/endurance-aura.lua +39 -0
- package/engine/object-data/entry/ability-type/engineering-upgrade.d.ts +13 -0
- package/engine/object-data/entry/ability-type/engineering-upgrade.lua +88 -0
- package/engine/object-data/entry/ability-type/evasion.d.ts +8 -0
- package/engine/object-data/entry/ability-type/evasion.lua +26 -0
- package/engine/object-data/entry/ability-type/faerie-fire.d.ts +10 -0
- package/engine/object-data/entry/ability-type/faerie-fire.lua +39 -0
- package/engine/object-data/entry/ability-type/far-sight.d.ts +9 -0
- package/engine/object-data/entry/ability-type/far-sight.lua +26 -0
- package/engine/object-data/entry/ability-type/feral-spirit.d.ts +11 -0
- package/engine/object-data/entry/ability-type/feral-spirit.lua +39 -0
- package/engine/object-data/entry/ability-type/frenzy.d.ts +12 -0
- package/engine/object-data/entry/ability-type/frenzy.lua +52 -0
- package/engine/object-data/entry/ability-type/frost-nova.d.ts +12 -0
- package/engine/object-data/entry/ability-type/frost-nova.lua +52 -0
- package/engine/object-data/entry/ability-type/ghost-visible.d.ts +10 -0
- package/engine/object-data/entry/ability-type/ghost-visible.lua +39 -0
- package/engine/object-data/entry/ability-type/gold-mine.d.ts +12 -0
- package/engine/object-data/entry/ability-type/gold-mine.lua +52 -0
- package/engine/object-data/entry/ability-type/heal.d.ts +8 -0
- package/engine/object-data/entry/ability-type/heal.lua +26 -0
- package/engine/object-data/entry/ability-type/healing-salve.d.ts +22 -0
- package/engine/object-data/entry/ability-type/healing-salve.lua +78 -0
- package/engine/object-data/entry/ability-type/healing-spray.d.ts +18 -0
- package/engine/object-data/entry/ability-type/healing-spray.lua +91 -0
- package/engine/object-data/entry/ability-type/healing-wave.d.ts +12 -0
- package/engine/object-data/entry/ability-type/healing-wave.lua +52 -0
- package/engine/object-data/entry/ability-type/holy-light.d.ts +8 -0
- package/engine/object-data/entry/ability-type/holy-light.lua +26 -0
- package/engine/object-data/entry/ability-type/incinerate.d.ts +18 -0
- package/engine/object-data/entry/ability-type/incinerate.lua +91 -0
- package/engine/object-data/entry/ability-type/inner-fire.d.ts +14 -0
- package/engine/object-data/entry/ability-type/inner-fire.lua +65 -0
- package/engine/object-data/entry/ability-type/inventory.d.ts +16 -0
- package/engine/object-data/entry/ability-type/inventory.lua +78 -0
- package/engine/object-data/entry/ability-type/invulnerable.d.ts +5 -0
- package/engine/object-data/entry/ability-type/invulnerable.lua +12 -0
- package/engine/object-data/entry/ability-type/lightning-shield.d.ts +8 -0
- package/engine/object-data/entry/ability-type/lightning-shield.lua +26 -0
- package/engine/object-data/entry/ability-type/mine.d.ts +10 -0
- package/engine/object-data/entry/ability-type/mine.lua +39 -0
- package/engine/object-data/entry/ability-type/movement-speed-increase.d.ts +8 -0
- package/engine/object-data/entry/ability-type/movement-speed-increase.lua +26 -0
- package/engine/object-data/entry/ability-type/permanent-immolation.d.ts +8 -0
- package/engine/object-data/entry/ability-type/permanent-immolation.lua +26 -0
- package/engine/object-data/entry/ability-type/phoenix-morph.d.ts +25 -0
- package/engine/object-data/entry/ability-type/phoenix-morph.lua +130 -0
- package/engine/object-data/entry/ability-type/recall.d.ts +10 -0
- package/engine/object-data/entry/ability-type/recall.lua +39 -0
- package/engine/object-data/entry/ability-type/rejuvenation.d.ts +20 -0
- package/engine/object-data/entry/ability-type/rejuvenation.lua +65 -0
- package/engine/object-data/entry/ability-type/searing-arrows.d.ts +8 -0
- package/engine/object-data/entry/ability-type/searing-arrows.lua +26 -0
- package/engine/object-data/entry/ability-type/shock-wave.d.ts +10 -0
- package/engine/object-data/entry/ability-type/shock-wave.lua +39 -0
- package/engine/object-data/entry/ability-type/slow-poison.d.ts +12 -0
- package/engine/object-data/entry/ability-type/slow-poison.lua +52 -0
- package/engine/object-data/entry/ability-type/slow.d.ts +12 -0
- package/engine/object-data/entry/ability-type/slow.lua +52 -0
- package/engine/object-data/entry/ability-type/spell-damage-reduction.d.ts +10 -0
- package/engine/object-data/entry/ability-type/spell-damage-reduction.lua +39 -0
- package/engine/object-data/entry/ability-type/spiked-carapace.d.ts +12 -0
- package/engine/object-data/entry/ability-type/spiked-carapace.lua +52 -0
- package/engine/object-data/entry/ability-type/spirit-touch.d.ts +14 -0
- package/engine/object-data/entry/ability-type/spirit-touch.lua +65 -0
- package/engine/object-data/entry/ability-type/storm-bolt.d.ts +8 -0
- package/engine/object-data/entry/ability-type/storm-bolt.lua +26 -0
- package/engine/object-data/entry/ability-type/summon-quilbeast.d.ts +11 -0
- package/engine/object-data/entry/ability-type/summon-quilbeast.lua +39 -0
- package/engine/object-data/entry/ability-type/summon-water-elemental.d.ts +11 -0
- package/engine/object-data/entry/ability-type/summon-water-elemental.lua +39 -0
- package/engine/object-data/entry/ability-type.d.ts +148 -0
- package/engine/object-data/entry/ability-type.lua +1059 -0
- package/engine/object-data/entry/buff-type/applicable.d.ts +15 -0
- package/engine/object-data/entry/buff-type/applicable.lua +333 -0
- package/engine/object-data/entry/buff-type/blank.d.ts +7 -0
- package/engine/object-data/entry/buff-type/blank.lua +17 -0
- package/engine/object-data/entry/buff-type.d.ts +63 -0
- package/engine/object-data/entry/buff-type.lua +316 -0
- package/engine/object-data/entry/destructible-type.d.ts +20 -0
- package/engine/object-data/entry/destructible-type.lua +83 -0
- package/engine/object-data/entry/item-type/blank.d.ts +7 -0
- package/engine/object-data/entry/item-type/blank.lua +21 -0
- package/engine/object-data/entry/item-type.d.ts +48 -0
- package/engine/object-data/entry/item-type.lua +259 -0
- package/engine/object-data/entry/lightning-type.d.ts +36 -0
- package/engine/object-data/entry/lightning-type.lua +191 -0
- package/engine/object-data/entry/unit-type/blank.d.ts +6 -0
- package/engine/object-data/entry/unit-type/blank.lua +13 -0
- package/engine/object-data/entry/unit-type.d.ts +258 -0
- package/engine/object-data/entry/unit-type.lua +1634 -0
- package/engine/object-data/entry/upgrade/blank.d.ts +7 -0
- package/engine/object-data/entry/upgrade/blank.lua +22 -0
- package/engine/object-data/entry/upgrade.d.ts +58 -0
- package/engine/object-data/entry/upgrade.lua +238 -0
- package/engine/object-data/entry.d.ts +79 -0
- package/engine/object-data/entry.lua +634 -0
- package/engine/object-data/utility/object-data-entry-id-generator.d.ts +6 -0
- package/engine/object-data/utility/object-data-entry-id-generator.lua +63 -0
- package/engine/object-data/utility/order-type-string-id-factory.d.ts +9 -0
- package/engine/object-data/utility/order-type-string-id-factory.lua +368 -0
- package/engine/object-field/ability.d.ts +117 -0
- package/engine/object-field/ability.lua +477 -0
- package/engine/object-field/unit.d.ts +16 -0
- package/engine/object-field/unit.lua +52 -0
- package/engine/object-field.d.ts +86 -0
- package/engine/object-field.lua +470 -0
- package/engine/random.d.ts +11 -0
- package/engine/random.lua +18 -0
- package/engine/standard/entries/ability-type.d.ts +8 -0
- package/engine/standard/entries/ability-type.lua +8 -0
- package/engine/standard/entries/lightning-type.d.ts +16 -0
- package/engine/standard/entries/lightning-type.lua +16 -0
- package/engine/standard/entries/unit-type.d.ts +104 -0
- package/engine/standard/entries/unit-type.lua +104 -0
- package/engine/standard/entries/upgrade.d.ts +92 -0
- package/engine/standard/entries/upgrade.lua +92 -0
- package/engine/standard/fields/ability.d.ts +737 -0
- package/engine/standard/fields/ability.lua +749 -0
- package/engine/standard/pathing-textures.d.ts +6 -0
- package/engine/standard/pathing-textures.lua +7 -0
- package/engine/text-tag.d.ts +25 -0
- package/engine/text-tag.lua +109 -0
- package/engine/unit.d.ts +21 -0
- package/engine/unit.lua +39 -0
- package/event.d.ts +52 -0
- package/event.lua +273 -0
- package/exception.d.ts +19 -0
- package/exception.lua +57 -0
- package/file.d.ts +4 -0
- package/file.lua +42 -0
- package/global/math.d.ts +21 -0
- package/global/math.lua +72 -0
- package/global/vec2.d.ts +66 -0
- package/global/vec2.lua +160 -0
- package/index.d.ts +8 -0
- package/index.lua +9 -0
- package/lualib_bundle.lua +2733 -0
- package/math/vec2.d.ts +11 -0
- package/math/vec2.lua +42 -0
- package/math.d.ts +37 -0
- package/math.lua +91 -0
- package/net/signal.d.ts +11 -0
- package/net/signal.lua +56 -0
- package/net/socket.d.ts +9 -0
- package/net/socket.lua +26 -0
- package/network.d.ts +31 -0
- package/network.lua +194 -0
- package/objutil/ability.d.ts +709 -0
- package/objutil/ability.lua +3781 -0
- package/objutil/buff.d.ts +109 -0
- package/objutil/buff.lua +769 -0
- package/objutil/dummy.d.ts +2 -0
- package/objutil/dummy.lua +49 -0
- package/objutil/idgen.d.ts +9 -0
- package/objutil/idgen.lua +92 -0
- package/objutil/item.d.ts +38 -0
- package/objutil/item.lua +254 -0
- package/objutil/object.d.ts +42 -0
- package/objutil/object.lua +213 -0
- package/objutil/unit.d.ts +133 -0
- package/objutil/unit.lua +913 -0
- package/objutil/upgrade.d.ts +22 -0
- package/objutil/upgrade.lua +127 -0
- package/operation.d.ts +35 -0
- package/operation.lua +179 -0
- package/package.json +46 -0
- package/patch-lualib.d.ts +2 -0
- package/patch-lualib.lua +67 -0
- package/patch-natives.d.ts +11 -0
- package/patch-natives.lua +14 -0
- package/property.d.ts +55 -0
- package/property.lua +374 -0
- package/string.d.ts +136 -0
- package/string.lua +48 -0
- package/time/dayOfWeek.d.ts +97 -0
- package/time/dayOfWeek.lua +53 -0
- package/time/localDate.d.ts +145 -0
- package/time/localDate.lua +236 -0
- package/time/localDateTime.d.ts +133 -0
- package/time/localDateTime.lua +154 -0
- package/time/localTime.d.ts +87 -0
- package/time/localTime.lua +91 -0
- package/time/month.d.ts +146 -0
- package/time/month.lua +129 -0
- package/time/year.d.ts +117 -0
- package/time/year.lua +81 -0
- package/types.d.ts +13 -0
- package/types.lua +0 -0
- package/util/objectPool.d.ts +6 -0
- package/util/objectPool.lua +28 -0
- package/util/stream.d.ts +28 -0
- package/util/stream.lua +453 -0
- package/util/stringBuilder.d.ts +8 -0
- package/util/stringBuilder.lua +25 -0
- package/utility/arrays.d.ts +56 -0
- package/utility/arrays.lua +372 -0
- package/utility/base64.d.ts +23 -0
- package/utility/base64.lua +177 -0
- package/utility/bit-set.d.ts +16 -0
- package/utility/bit-set.lua +12 -0
- package/utility/functions.d.ts +5 -0
- package/utility/functions.lua +90 -0
- package/utility/json.d.ts +2 -0
- package/utility/json.lua +400 -0
- package/utility/linked-set.d.ts +49 -0
- package/utility/linked-set.lua +197 -0
- package/utility/lua-maps.d.ts +5 -0
- package/utility/lua-maps.lua +25 -0
- package/utility/lua-sets.d.ts +5 -0
- package/utility/lua-sets.lua +37 -0
- package/utility/lzw.d.ts +2 -0
- package/utility/lzw.lua +161 -0
- package/utility/observable-array.d.ts +17 -0
- package/utility/observable-array.lua +30 -0
- package/utility/preconditions.d.ts +23 -0
- package/utility/preconditions.lua +58 -0
- package/utility/records.d.ts +3 -0
- package/utility/records.lua +9 -0
- package/utility/reflection.d.ts +4 -0
- package/utility/reflection.lua +31 -0
- package/utility/strings.d.ts +2 -0
- package/utility/strings.lua +44 -0
- package/utility/types.d.ts +39 -0
- package/utility/types.lua +2 -0
|
@@ -0,0 +1,369 @@
|
|
|
1
|
+
local ____lualib = require("lualib_bundle")
|
|
2
|
+
local __TS__New = ____lualib.__TS__New
|
|
3
|
+
local ____exports = {}
|
|
4
|
+
local ____ability = require("engine.internal.ability")
|
|
5
|
+
local ItemAbility = ____ability.ItemAbility
|
|
6
|
+
local UnitAbility = ____ability.UnitAbility
|
|
7
|
+
local UnrecognizedAbility = ____ability.UnrecognizedAbility
|
|
8
|
+
local ____destructable = require("core.types.destructable")
|
|
9
|
+
local Destructable = ____destructable.Destructable
|
|
10
|
+
local ____item = require("engine.internal.item")
|
|
11
|
+
local Item = ____item.Item
|
|
12
|
+
local ____unit = require("engine.internal.unit")
|
|
13
|
+
local Unit = ____unit.Unit
|
|
14
|
+
local UnitTriggerEvent = ____unit.UnitTriggerEvent
|
|
15
|
+
local ____event = require("event")
|
|
16
|
+
local createDispatchingEvent = ____event.createDispatchingEvent
|
|
17
|
+
local DependentInitializingEvent = ____event.DependentInitializingEvent
|
|
18
|
+
local ____preconditions = require("utility.preconditions")
|
|
19
|
+
local checkNotNull = ____preconditions.checkNotNull
|
|
20
|
+
local getItemAbility = BlzGetItemAbility
|
|
21
|
+
local getSpellAbility = GetSpellAbility
|
|
22
|
+
local getSpellAbilityId = GetSpellAbilityId
|
|
23
|
+
local getSpellTargetDestructible = GetSpellTargetDestructable
|
|
24
|
+
local getSpellTargetItem = GetSpellTargetItem
|
|
25
|
+
local getSpellTargetUnit = GetSpellTargetUnit
|
|
26
|
+
local getSpellTargetX = GetSpellTargetX
|
|
27
|
+
local getSpellTargetY = GetSpellTargetY
|
|
28
|
+
local getTriggerUnit = GetTriggerUnit
|
|
29
|
+
local getUnitAbility = BlzGetUnitAbility
|
|
30
|
+
local unitAddAbility = UnitAddAbility
|
|
31
|
+
local unitInventorySize = UnitInventorySize
|
|
32
|
+
local unitItemInSlot = UnitItemInSlot
|
|
33
|
+
local unitRemoveAbility = UnitRemoveAbility
|
|
34
|
+
local function retrieveAbility(unit, ability, abilityId)
|
|
35
|
+
if ability == nil then
|
|
36
|
+
return __TS__New(
|
|
37
|
+
UnrecognizedAbility,
|
|
38
|
+
abilityId,
|
|
39
|
+
Unit:of(unit)
|
|
40
|
+
)
|
|
41
|
+
end
|
|
42
|
+
if not unitAddAbility(unit, abilityId) then
|
|
43
|
+
if getUnitAbility(unit, abilityId) == ability then
|
|
44
|
+
return UnitAbility:of(
|
|
45
|
+
ability,
|
|
46
|
+
abilityId,
|
|
47
|
+
Unit:of(unit)
|
|
48
|
+
)
|
|
49
|
+
end
|
|
50
|
+
else
|
|
51
|
+
unitRemoveAbility(unit, abilityId)
|
|
52
|
+
end
|
|
53
|
+
for i = 0, unitInventorySize(unit) - 1 do
|
|
54
|
+
local item = unitItemInSlot(unit, i)
|
|
55
|
+
if getItemAbility(item, abilityId) == ability then
|
|
56
|
+
return ItemAbility:of(
|
|
57
|
+
ability,
|
|
58
|
+
abilityId,
|
|
59
|
+
Item:of(item)
|
|
60
|
+
)
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
return UnitAbility:of(
|
|
64
|
+
ability,
|
|
65
|
+
abilityId,
|
|
66
|
+
Unit:of(unit)
|
|
67
|
+
)
|
|
68
|
+
end
|
|
69
|
+
local function collectInternalUnitAbilityEventParameters()
|
|
70
|
+
local unit = checkNotNull(getTriggerUnit())
|
|
71
|
+
return Unit:of(unit), retrieveAbility(
|
|
72
|
+
unit,
|
|
73
|
+
getSpellAbility(),
|
|
74
|
+
getSpellAbilityId()
|
|
75
|
+
), getSpellTargetUnit(), getSpellTargetItem(), getSpellTargetDestructible(), getSpellTargetX(), getSpellTargetY()
|
|
76
|
+
end
|
|
77
|
+
local function collectUnitAbilityEventParameters()
|
|
78
|
+
local unit = checkNotNull(getTriggerUnit())
|
|
79
|
+
return Unit:of(unit), retrieveAbility(
|
|
80
|
+
unit,
|
|
81
|
+
getSpellAbility(),
|
|
82
|
+
getSpellAbilityId()
|
|
83
|
+
)
|
|
84
|
+
end
|
|
85
|
+
local function createCommonEvent(underlyingEvent)
|
|
86
|
+
return __TS__New(
|
|
87
|
+
DependentInitializingEvent,
|
|
88
|
+
underlyingEvent,
|
|
89
|
+
3,
|
|
90
|
+
function(caster, ability)
|
|
91
|
+
return true, caster, ability
|
|
92
|
+
end
|
|
93
|
+
)
|
|
94
|
+
end
|
|
95
|
+
local function createWidgetTargetEvent(underlyingEvent)
|
|
96
|
+
return __TS__New(
|
|
97
|
+
DependentInitializingEvent,
|
|
98
|
+
underlyingEvent,
|
|
99
|
+
2,
|
|
100
|
+
function(caster, ability, targetUnit, targetItem, targetDestructible)
|
|
101
|
+
if targetUnit ~= nil or targetItem ~= nil or targetDestructible ~= nil then
|
|
102
|
+
return true, caster, ability, Unit:of(targetUnit) or Item:of(targetItem) or Destructable:of(targetDestructible)
|
|
103
|
+
else
|
|
104
|
+
return false
|
|
105
|
+
end
|
|
106
|
+
end
|
|
107
|
+
)
|
|
108
|
+
end
|
|
109
|
+
local function createUnitTargetEvent(underlyingEvent)
|
|
110
|
+
return __TS__New(
|
|
111
|
+
DependentInitializingEvent,
|
|
112
|
+
underlyingEvent,
|
|
113
|
+
1,
|
|
114
|
+
function(caster, ability, targetUnit)
|
|
115
|
+
if targetUnit ~= nil then
|
|
116
|
+
return true, caster, ability, Unit:of(targetUnit)
|
|
117
|
+
else
|
|
118
|
+
return false
|
|
119
|
+
end
|
|
120
|
+
end
|
|
121
|
+
)
|
|
122
|
+
end
|
|
123
|
+
local function createItemTargetEvent(underlyingEvent)
|
|
124
|
+
return __TS__New(
|
|
125
|
+
DependentInitializingEvent,
|
|
126
|
+
underlyingEvent,
|
|
127
|
+
1,
|
|
128
|
+
function(caster, ability, targetUnit, targetItem)
|
|
129
|
+
if targetItem ~= nil then
|
|
130
|
+
return true, caster, ability, Item:of(targetItem)
|
|
131
|
+
else
|
|
132
|
+
return false
|
|
133
|
+
end
|
|
134
|
+
end
|
|
135
|
+
)
|
|
136
|
+
end
|
|
137
|
+
local function createDestructibleTargetEvent(underlyingEvent)
|
|
138
|
+
return __TS__New(
|
|
139
|
+
DependentInitializingEvent,
|
|
140
|
+
underlyingEvent,
|
|
141
|
+
1,
|
|
142
|
+
function(caster, ability, targetUnit, targetItem, targetDestructible)
|
|
143
|
+
if targetDestructible ~= nil then
|
|
144
|
+
return true, caster, ability, Destructable:of(targetDestructible)
|
|
145
|
+
else
|
|
146
|
+
return false
|
|
147
|
+
end
|
|
148
|
+
end
|
|
149
|
+
)
|
|
150
|
+
end
|
|
151
|
+
local function createPointTargetEvent(underlyingEvent)
|
|
152
|
+
return __TS__New(
|
|
153
|
+
DependentInitializingEvent,
|
|
154
|
+
underlyingEvent,
|
|
155
|
+
1,
|
|
156
|
+
function(caster, ability, targetUnit, targetItem, targetDestructible, x, y)
|
|
157
|
+
if x ~= 0 and y ~= 0 and targetUnit == nil and targetItem == nil and targetDestructible == nil then
|
|
158
|
+
return true, caster, ability, x, y
|
|
159
|
+
else
|
|
160
|
+
return false
|
|
161
|
+
end
|
|
162
|
+
end
|
|
163
|
+
)
|
|
164
|
+
end
|
|
165
|
+
local function createNoTargetEvent(underlyingEvent)
|
|
166
|
+
return __TS__New(
|
|
167
|
+
DependentInitializingEvent,
|
|
168
|
+
underlyingEvent,
|
|
169
|
+
1,
|
|
170
|
+
function(caster, ability, targetUnit, targetItem, targetDestructible, x, y)
|
|
171
|
+
if x == 0 and y == 0 and targetUnit == nil and targetItem == nil and targetDestructible == nil then
|
|
172
|
+
return true, caster, ability
|
|
173
|
+
else
|
|
174
|
+
return false
|
|
175
|
+
end
|
|
176
|
+
end
|
|
177
|
+
)
|
|
178
|
+
end
|
|
179
|
+
local function extractAbilityTypeId(unit, ability)
|
|
180
|
+
return ability.typeId
|
|
181
|
+
end
|
|
182
|
+
local internalAbilityCastingStartEvent = __TS__New(UnitTriggerEvent, EVENT_PLAYER_UNIT_SPELL_CHANNEL, collectInternalUnitAbilityEventParameters)
|
|
183
|
+
rawset(
|
|
184
|
+
Unit,
|
|
185
|
+
"abilityCastingStartEvent",
|
|
186
|
+
createDispatchingEvent(
|
|
187
|
+
createCommonEvent(internalAbilityCastingStartEvent),
|
|
188
|
+
extractAbilityTypeId
|
|
189
|
+
)
|
|
190
|
+
)
|
|
191
|
+
rawset(
|
|
192
|
+
Unit,
|
|
193
|
+
"abilityWidgetTargetCastingStartEvent",
|
|
194
|
+
createDispatchingEvent(
|
|
195
|
+
createWidgetTargetEvent(internalAbilityCastingStartEvent),
|
|
196
|
+
extractAbilityTypeId
|
|
197
|
+
)
|
|
198
|
+
)
|
|
199
|
+
rawset(
|
|
200
|
+
Unit,
|
|
201
|
+
"abilityUnitTargetCastingStartEvent",
|
|
202
|
+
createDispatchingEvent(
|
|
203
|
+
createUnitTargetEvent(internalAbilityCastingStartEvent),
|
|
204
|
+
extractAbilityTypeId
|
|
205
|
+
)
|
|
206
|
+
)
|
|
207
|
+
rawset(
|
|
208
|
+
Unit,
|
|
209
|
+
"abilityItemTargetCastingStartEvent",
|
|
210
|
+
createDispatchingEvent(
|
|
211
|
+
createItemTargetEvent(internalAbilityCastingStartEvent),
|
|
212
|
+
extractAbilityTypeId
|
|
213
|
+
)
|
|
214
|
+
)
|
|
215
|
+
rawset(
|
|
216
|
+
Unit,
|
|
217
|
+
"abilityDestructibleTargetCastingStartEvent",
|
|
218
|
+
createDispatchingEvent(
|
|
219
|
+
createDestructibleTargetEvent(internalAbilityCastingStartEvent),
|
|
220
|
+
extractAbilityTypeId
|
|
221
|
+
)
|
|
222
|
+
)
|
|
223
|
+
rawset(
|
|
224
|
+
Unit,
|
|
225
|
+
"abilityPointTargetCastingStartEvent",
|
|
226
|
+
createDispatchingEvent(
|
|
227
|
+
createPointTargetEvent(internalAbilityCastingStartEvent),
|
|
228
|
+
extractAbilityTypeId
|
|
229
|
+
)
|
|
230
|
+
)
|
|
231
|
+
rawset(
|
|
232
|
+
Unit,
|
|
233
|
+
"abilityNoTargetCastingStartEvent",
|
|
234
|
+
createDispatchingEvent(
|
|
235
|
+
createNoTargetEvent(internalAbilityCastingStartEvent),
|
|
236
|
+
extractAbilityTypeId
|
|
237
|
+
)
|
|
238
|
+
)
|
|
239
|
+
local internalAbilityCastingFinishEvent = __TS__New(UnitTriggerEvent, EVENT_PLAYER_UNIT_SPELL_CAST, collectInternalUnitAbilityEventParameters)
|
|
240
|
+
rawset(
|
|
241
|
+
Unit,
|
|
242
|
+
"abilityCastingFinishEvent",
|
|
243
|
+
createDispatchingEvent(
|
|
244
|
+
createCommonEvent(internalAbilityCastingFinishEvent),
|
|
245
|
+
extractAbilityTypeId
|
|
246
|
+
)
|
|
247
|
+
)
|
|
248
|
+
rawset(
|
|
249
|
+
Unit,
|
|
250
|
+
"abilityWidgetTargetCastingFinishEvent",
|
|
251
|
+
createDispatchingEvent(
|
|
252
|
+
createWidgetTargetEvent(internalAbilityCastingFinishEvent),
|
|
253
|
+
extractAbilityTypeId
|
|
254
|
+
)
|
|
255
|
+
)
|
|
256
|
+
rawset(
|
|
257
|
+
Unit,
|
|
258
|
+
"abilityUnitTargetCastingFinishEvent",
|
|
259
|
+
createDispatchingEvent(
|
|
260
|
+
createUnitTargetEvent(internalAbilityCastingFinishEvent),
|
|
261
|
+
extractAbilityTypeId
|
|
262
|
+
)
|
|
263
|
+
)
|
|
264
|
+
rawset(
|
|
265
|
+
Unit,
|
|
266
|
+
"abilityItemTargetCastingFinishEvent",
|
|
267
|
+
createDispatchingEvent(
|
|
268
|
+
createItemTargetEvent(internalAbilityCastingFinishEvent),
|
|
269
|
+
extractAbilityTypeId
|
|
270
|
+
)
|
|
271
|
+
)
|
|
272
|
+
rawset(
|
|
273
|
+
Unit,
|
|
274
|
+
"abilityDestructibleTargetCastingFinishEvent",
|
|
275
|
+
createDispatchingEvent(
|
|
276
|
+
createDestructibleTargetEvent(internalAbilityCastingFinishEvent),
|
|
277
|
+
extractAbilityTypeId
|
|
278
|
+
)
|
|
279
|
+
)
|
|
280
|
+
rawset(
|
|
281
|
+
Unit,
|
|
282
|
+
"abilityPointTargetCastingFinishEvent",
|
|
283
|
+
createDispatchingEvent(
|
|
284
|
+
createPointTargetEvent(internalAbilityCastingFinishEvent),
|
|
285
|
+
extractAbilityTypeId
|
|
286
|
+
)
|
|
287
|
+
)
|
|
288
|
+
rawset(
|
|
289
|
+
Unit,
|
|
290
|
+
"abilityNoTargetCastingFinishEvent",
|
|
291
|
+
createDispatchingEvent(
|
|
292
|
+
createNoTargetEvent(internalAbilityCastingFinishEvent),
|
|
293
|
+
extractAbilityTypeId
|
|
294
|
+
)
|
|
295
|
+
)
|
|
296
|
+
local internalAbilityChannelingStartEvent = __TS__New(UnitTriggerEvent, EVENT_PLAYER_UNIT_SPELL_EFFECT, collectInternalUnitAbilityEventParameters)
|
|
297
|
+
rawset(
|
|
298
|
+
Unit,
|
|
299
|
+
"abilityChannelingStartEvent",
|
|
300
|
+
createDispatchingEvent(
|
|
301
|
+
createCommonEvent(internalAbilityChannelingStartEvent),
|
|
302
|
+
extractAbilityTypeId
|
|
303
|
+
)
|
|
304
|
+
)
|
|
305
|
+
rawset(
|
|
306
|
+
Unit,
|
|
307
|
+
"abilityWidgetTargetChannelingStartEvent",
|
|
308
|
+
createDispatchingEvent(
|
|
309
|
+
createWidgetTargetEvent(internalAbilityChannelingStartEvent),
|
|
310
|
+
extractAbilityTypeId
|
|
311
|
+
)
|
|
312
|
+
)
|
|
313
|
+
rawset(
|
|
314
|
+
Unit,
|
|
315
|
+
"abilityUnitTargetChannelingStartEvent",
|
|
316
|
+
createDispatchingEvent(
|
|
317
|
+
createUnitTargetEvent(internalAbilityChannelingStartEvent),
|
|
318
|
+
extractAbilityTypeId
|
|
319
|
+
)
|
|
320
|
+
)
|
|
321
|
+
rawset(
|
|
322
|
+
Unit,
|
|
323
|
+
"abilityItemTargetChannelingStartEvent",
|
|
324
|
+
createDispatchingEvent(
|
|
325
|
+
createItemTargetEvent(internalAbilityChannelingStartEvent),
|
|
326
|
+
extractAbilityTypeId
|
|
327
|
+
)
|
|
328
|
+
)
|
|
329
|
+
rawset(
|
|
330
|
+
Unit,
|
|
331
|
+
"abilityDestructibleTargetChannelingStartEvent",
|
|
332
|
+
createDispatchingEvent(
|
|
333
|
+
createDestructibleTargetEvent(internalAbilityChannelingStartEvent),
|
|
334
|
+
extractAbilityTypeId
|
|
335
|
+
)
|
|
336
|
+
)
|
|
337
|
+
rawset(
|
|
338
|
+
Unit,
|
|
339
|
+
"abilityPointTargetChannelingStartEvent",
|
|
340
|
+
createDispatchingEvent(
|
|
341
|
+
createPointTargetEvent(internalAbilityChannelingStartEvent),
|
|
342
|
+
extractAbilityTypeId
|
|
343
|
+
)
|
|
344
|
+
)
|
|
345
|
+
rawset(
|
|
346
|
+
Unit,
|
|
347
|
+
"abilityNoTargetChannelingStartEvent",
|
|
348
|
+
createDispatchingEvent(
|
|
349
|
+
createNoTargetEvent(internalAbilityChannelingStartEvent),
|
|
350
|
+
extractAbilityTypeId
|
|
351
|
+
)
|
|
352
|
+
)
|
|
353
|
+
rawset(
|
|
354
|
+
Unit,
|
|
355
|
+
"abilityChannelingFinishEvent",
|
|
356
|
+
createDispatchingEvent(
|
|
357
|
+
__TS__New(UnitTriggerEvent, EVENT_PLAYER_UNIT_SPELL_FINISH, collectUnitAbilityEventParameters),
|
|
358
|
+
extractAbilityTypeId
|
|
359
|
+
)
|
|
360
|
+
)
|
|
361
|
+
rawset(
|
|
362
|
+
Unit,
|
|
363
|
+
"abilityStopEvent",
|
|
364
|
+
createDispatchingEvent(
|
|
365
|
+
__TS__New(UnitTriggerEvent, EVENT_PLAYER_UNIT_SPELL_ENDCAST, collectUnitAbilityEventParameters),
|
|
366
|
+
extractAbilityTypeId
|
|
367
|
+
)
|
|
368
|
+
)
|
|
369
|
+
return ____exports
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/** @noSelfInFile */
|
|
2
|
+
import { CombatClassifications } from "../../object-data/auxiliary/combat-classification";
|
|
3
|
+
declare module "../unit" {
|
|
4
|
+
interface Unit {
|
|
5
|
+
isAllowedTarget(this: Unit, source: Unit, allowedTargetCombatClassifications: CombatClassifications): boolean;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
declare module "../unit" {
|
|
9
|
+
namespace Unit {
|
|
10
|
+
function getAllowedTargetsInRange(this: void, source: Unit, allowedTargetCombatClassifications: CombatClassifications, x: number, y: number, range: number): Unit[];
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
declare module "../unit" {
|
|
14
|
+
namespace Unit {
|
|
15
|
+
function getAllowedTargetsInCollisionRange(this: void, source: Unit, allowedTargetCombatClassifications: CombatClassifications, x: number, y: number, range: number): Unit[];
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
local ____exports = {}
|
|
2
|
+
local ____combat_2Dclassification = require("engine.object-data.auxiliary.combat-classification")
|
|
3
|
+
local filterTarget = ____combat_2Dclassification.filterTarget
|
|
4
|
+
local initializeFilterTargetState = ____combat_2Dclassification.initializeFilterTargetState
|
|
5
|
+
local ____unit = require("engine.internal.unit")
|
|
6
|
+
local Unit = ____unit.Unit
|
|
7
|
+
Unit.prototype.isAllowedTarget = function(self, source, allowedTargetCombatClassifications)
|
|
8
|
+
initializeFilterTargetState(source, allowedTargetCombatClassifications)
|
|
9
|
+
return filterTarget(self)
|
|
10
|
+
end
|
|
11
|
+
Unit.getAllowedTargetsInRange = function(source, allowedTargetCombatClassifications, x, y, range)
|
|
12
|
+
initializeFilterTargetState(source, allowedTargetCombatClassifications)
|
|
13
|
+
return Unit:getInRange(x, y, range, filterTarget)
|
|
14
|
+
end
|
|
15
|
+
Unit.getAllowedTargetsInCollisionRange = function(source, allowedTargetCombatClassifications, x, y, range)
|
|
16
|
+
initializeFilterTargetState(source, allowedTargetCombatClassifications)
|
|
17
|
+
return Unit:getInCollisionRange(x, y, range, filterTarget)
|
|
18
|
+
end
|
|
19
|
+
return ____exports
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
local ____exports = {}
|
|
2
|
+
local ____unit = require("engine.internal.unit")
|
|
3
|
+
local Unit = ____unit.Unit
|
|
4
|
+
local UnitClassification = ____unit.UnitClassification
|
|
5
|
+
require("engine.internal.unit+ability")
|
|
6
|
+
local ____lua_2Dsets = require("utility.lua-sets")
|
|
7
|
+
local luaSetOf = ____lua_2Dsets.luaSetOf
|
|
8
|
+
local cannibalizeAbilityTypeIds = luaSetOf(
|
|
9
|
+
fourCC("Acan"),
|
|
10
|
+
fourCC("Acn2"),
|
|
11
|
+
fourCC("ACcn")
|
|
12
|
+
)
|
|
13
|
+
Unit.abilityUnitTargetChannelingStartEvent:addListener(
|
|
14
|
+
4,
|
|
15
|
+
function(caster, ability, target)
|
|
16
|
+
if cannibalizeAbilityTypeIds[ability.parentTypeId] ~= nil then
|
|
17
|
+
target:removeClassification(UnitClassification.TAUREN)
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
)
|
|
21
|
+
return ____exports
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/** @noSelfInFile */
|
|
2
|
+
import { Unit } from "../unit";
|
|
3
|
+
import { AbilityTypeId } from "../../object-data/entry/ability-type";
|
|
4
|
+
export type UnitBonusId<Brand extends string = any> = number & {
|
|
5
|
+
readonly __unitBonusId: unique symbol;
|
|
6
|
+
readonly __unitBonusIdBrand: Brand;
|
|
7
|
+
};
|
|
8
|
+
export type UnitArmorBonusId = UnitBonusId<"armor">;
|
|
9
|
+
export type UnitAttackSpeedFactorBonusId = UnitBonusId<"attackSpeedFactor">;
|
|
10
|
+
export type UnitMovementSpeedFactorBonusId = UnitBonusId<"movementSpeedFactor">;
|
|
11
|
+
export type UnitDamageBonusId = UnitBonusId<"damage">;
|
|
12
|
+
export type UnitReceivedDamageFactorBonusId = UnitBonusId<"receivedDamageFactor">;
|
|
13
|
+
export type UnitBonusType<Id extends UnitBonusId = UnitBonusId> = ({
|
|
14
|
+
abilityTypeId: AbilityTypeId;
|
|
15
|
+
field: jabilityintegerlevelfield;
|
|
16
|
+
integer: true;
|
|
17
|
+
} | {
|
|
18
|
+
abilityTypeId: AbilityTypeId;
|
|
19
|
+
field: jabilityreallevelfield;
|
|
20
|
+
integer: false;
|
|
21
|
+
} | {
|
|
22
|
+
abilityTypeId?: undefined;
|
|
23
|
+
valueByUnit: LuaMap<Unit, number>;
|
|
24
|
+
}) & {
|
|
25
|
+
reduce: (this: void, array: number[]) => number;
|
|
26
|
+
initialValue: number;
|
|
27
|
+
readonly __unitBonusTypeId?: Id;
|
|
28
|
+
};
|
|
29
|
+
export declare namespace UnitBonusType {
|
|
30
|
+
const ARMOR: UnitBonusType<UnitArmorBonusId>;
|
|
31
|
+
const ATTACK_SPEED_FACTOR: UnitBonusType<UnitAttackSpeedFactorBonusId>;
|
|
32
|
+
const MOVEMENT_SPEED_FACTOR: UnitBonusType<UnitAttackSpeedFactorBonusId>;
|
|
33
|
+
const DAMAGE: UnitBonusType<UnitDamageBonusId>;
|
|
34
|
+
const RECEIVED_DAMAGE_FACTOR: UnitBonusType<UnitReceivedDamageFactorBonusId>;
|
|
35
|
+
}
|
|
36
|
+
export declare const addUnitBonus: <Id extends UnitBonusId>(unit: Unit, bonusType: UnitBonusType<Id>, value: number) => Id;
|
|
37
|
+
export declare const removeUnitBonus: <Id extends UnitBonusId>(unit: Unit, bonusType: UnitBonusType<Id>, id: Id) => boolean;
|
|
38
|
+
export declare const updateUnitBonus: <Id extends UnitBonusId>(unit: Unit, bonusType: UnitBonusType<Id>, id: Id, value: number) => boolean;
|
|
39
|
+
export declare const addOrUpdateOrRemoveUnitBonus: <Id extends UnitBonusId>(unit: Unit, bonusType: UnitBonusType<Id>, id: Id | undefined, value: number) => Id | undefined;
|
|
40
|
+
export declare const getUnitBonus: <Id extends UnitBonusId>(unit: Unit, bonusType: UnitBonusType<Id>, id: Id) => number;
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
local ____exports = {}
|
|
2
|
+
local ____unit = require("engine.internal.unit")
|
|
3
|
+
local Unit = ____unit.Unit
|
|
4
|
+
local ____armor_2Dincrease = require("engine.internal.object-data.armor-increase")
|
|
5
|
+
local ARMOR_BONUS_DUMMY_ABILITY_FIELD = ____armor_2Dincrease.ARMOR_BONUS_DUMMY_ABILITY_FIELD
|
|
6
|
+
local ARMOR_BONUS_DUMMY_ABILITY_TYPE_ID = ____armor_2Dincrease.ARMOR_BONUS_DUMMY_ABILITY_TYPE_ID
|
|
7
|
+
local ____utility = require("engine.internal.utility")
|
|
8
|
+
local addInternalAbility = ____utility.addInternalAbility
|
|
9
|
+
local ____arrays = require("utility.arrays")
|
|
10
|
+
local product = ____arrays.product
|
|
11
|
+
local sum = ____arrays.sum
|
|
12
|
+
local ____auto_2Dattack_2Dspeed_2Dincrease = require("engine.internal.object-data.auto-attack-speed-increase")
|
|
13
|
+
local AUTO_ATTACK_SPEED_INCREASE_DUMMY_ABILITY_TYPE_ID = ____auto_2Dattack_2Dspeed_2Dincrease.AUTO_ATTACK_SPEED_INCREASE_DUMMY_ABILITY_TYPE_ID
|
|
14
|
+
local AUTO_ATTACK_SPEED_INCREASE_FACTOR_ABILITY_FIELD = ____auto_2Dattack_2Dspeed_2Dincrease.AUTO_ATTACK_SPEED_INCREASE_FACTOR_ABILITY_FIELD
|
|
15
|
+
local ____preconditions = require("utility.preconditions")
|
|
16
|
+
local check = ____preconditions.check
|
|
17
|
+
local checkNotNull = ____preconditions.checkNotNull
|
|
18
|
+
local ____auto_2Dattack_2Ddamage_2Dincrease = require("engine.internal.object-data.auto-attack-damage-increase")
|
|
19
|
+
local AUTO_ATTACK_DAMAGE_INCREASE_ABILITY_FIELD = ____auto_2Dattack_2Ddamage_2Dincrease.AUTO_ATTACK_DAMAGE_INCREASE_ABILITY_FIELD
|
|
20
|
+
local AUTO_ATTACK_DAMAGE_INCREASE_DUMMY_ABILITY_TYPE_ID = ____auto_2Dattack_2Ddamage_2Dincrease.AUTO_ATTACK_DAMAGE_INCREASE_DUMMY_ABILITY_TYPE_ID
|
|
21
|
+
local ____movement_2Dspeed_2Dincrease_2Dfactor = require("engine.internal.object-data.movement-speed-increase-factor")
|
|
22
|
+
local MOVEMENT_SPEED_INCREASE_FACTOR_ABILITY_FIELD = ____movement_2Dspeed_2Dincrease_2Dfactor.MOVEMENT_SPEED_INCREASE_FACTOR_ABILITY_FIELD
|
|
23
|
+
local MOVEMENT_SPEED_INCREASE_FACTOR_DUMMY_ABILITY_TYPE_ID = ____movement_2Dspeed_2Dincrease_2Dfactor.MOVEMENT_SPEED_INCREASE_FACTOR_DUMMY_ABILITY_TYPE_ID
|
|
24
|
+
local receivedDamageFactorByUnit = {}
|
|
25
|
+
____exports.UnitBonusType = {}
|
|
26
|
+
local UnitBonusType = ____exports.UnitBonusType
|
|
27
|
+
do
|
|
28
|
+
UnitBonusType.ARMOR = {
|
|
29
|
+
abilityTypeId = ARMOR_BONUS_DUMMY_ABILITY_TYPE_ID,
|
|
30
|
+
field = ARMOR_BONUS_DUMMY_ABILITY_FIELD,
|
|
31
|
+
integer = false,
|
|
32
|
+
reduce = sum,
|
|
33
|
+
initialValue = 0
|
|
34
|
+
}
|
|
35
|
+
UnitBonusType.ATTACK_SPEED_FACTOR = {
|
|
36
|
+
abilityTypeId = AUTO_ATTACK_SPEED_INCREASE_DUMMY_ABILITY_TYPE_ID,
|
|
37
|
+
field = AUTO_ATTACK_SPEED_INCREASE_FACTOR_ABILITY_FIELD,
|
|
38
|
+
integer = false,
|
|
39
|
+
reduce = sum,
|
|
40
|
+
initialValue = 0
|
|
41
|
+
}
|
|
42
|
+
UnitBonusType.MOVEMENT_SPEED_FACTOR = {
|
|
43
|
+
abilityTypeId = MOVEMENT_SPEED_INCREASE_FACTOR_DUMMY_ABILITY_TYPE_ID,
|
|
44
|
+
field = MOVEMENT_SPEED_INCREASE_FACTOR_ABILITY_FIELD,
|
|
45
|
+
integer = false,
|
|
46
|
+
reduce = sum,
|
|
47
|
+
initialValue = 0
|
|
48
|
+
}
|
|
49
|
+
UnitBonusType.DAMAGE = {
|
|
50
|
+
abilityTypeId = AUTO_ATTACK_DAMAGE_INCREASE_DUMMY_ABILITY_TYPE_ID,
|
|
51
|
+
field = AUTO_ATTACK_DAMAGE_INCREASE_ABILITY_FIELD,
|
|
52
|
+
integer = false,
|
|
53
|
+
reduce = sum,
|
|
54
|
+
initialValue = 0
|
|
55
|
+
}
|
|
56
|
+
UnitBonusType.RECEIVED_DAMAGE_FACTOR = {reduce = product, valueByUnit = receivedDamageFactorByUnit, initialValue = 1}
|
|
57
|
+
end
|
|
58
|
+
local bonusesByUnitByBonusType = {}
|
|
59
|
+
local nextId = 1
|
|
60
|
+
local function processUnitBonus(unit, bonusType, bonusesArray)
|
|
61
|
+
local unitHandle = unit.handle
|
|
62
|
+
local totalValue = bonusType.reduce(bonusesArray)
|
|
63
|
+
local abilityTypeId = bonusType.abilityTypeId
|
|
64
|
+
if abilityTypeId == nil then
|
|
65
|
+
local valueByUnit = bonusType.valueByUnit
|
|
66
|
+
if totalValue == bonusType.initialValue then
|
|
67
|
+
valueByUnit[unit] = nil
|
|
68
|
+
else
|
|
69
|
+
valueByUnit[unit] = totalValue
|
|
70
|
+
end
|
|
71
|
+
return
|
|
72
|
+
end
|
|
73
|
+
if totalValue == bonusType.initialValue then
|
|
74
|
+
UnitRemoveAbility(unitHandle, abilityTypeId)
|
|
75
|
+
return
|
|
76
|
+
end
|
|
77
|
+
local abilityHandle = checkNotNull(addInternalAbility(unitHandle, abilityTypeId))
|
|
78
|
+
check((bonusType.integer and BlzSetAbilityIntegerLevelField or BlzSetAbilityRealLevelField)(abilityHandle, bonusType.field, 0, totalValue))
|
|
79
|
+
BlzSetAbilityIntegerField(abilityHandle, ABILITY_IF_LEVELS, 2)
|
|
80
|
+
SetUnitAbilityLevel(unitHandle, abilityTypeId, 2)
|
|
81
|
+
SetUnitAbilityLevel(unitHandle, abilityTypeId, 1)
|
|
82
|
+
BlzSetAbilityIntegerField(abilityHandle, ABILITY_IF_LEVELS, 1)
|
|
83
|
+
end
|
|
84
|
+
____exports.addUnitBonus = function(unit, bonusType, value)
|
|
85
|
+
local bonusesByUnit = bonusesByUnitByBonusType[bonusType]
|
|
86
|
+
if bonusesByUnit == nil then
|
|
87
|
+
bonusesByUnit = setmetatable({}, {__mode = "k"})
|
|
88
|
+
bonusesByUnitByBonusType[bonusType] = bonusesByUnit
|
|
89
|
+
end
|
|
90
|
+
local bonuses = bonusesByUnit[unit]
|
|
91
|
+
if bonuses == nil then
|
|
92
|
+
bonuses = {array = {}, idByIndex = {}, indexById = {}}
|
|
93
|
+
bonusesByUnit[unit] = bonuses
|
|
94
|
+
end
|
|
95
|
+
local bonusesArray = bonuses.array
|
|
96
|
+
local ____nextId_0 = nextId
|
|
97
|
+
nextId = ____nextId_0 + 1
|
|
98
|
+
local id = ____nextId_0
|
|
99
|
+
local index = #bonusesArray
|
|
100
|
+
bonusesArray[index + 1] = value
|
|
101
|
+
bonuses.idByIndex[index] = id
|
|
102
|
+
bonuses.indexById[id] = index
|
|
103
|
+
processUnitBonus(unit, bonusType, bonusesArray)
|
|
104
|
+
return id
|
|
105
|
+
end
|
|
106
|
+
____exports.removeUnitBonus = function(unit, bonusType, id)
|
|
107
|
+
local bonusesByUnit = bonusesByUnitByBonusType[bonusType]
|
|
108
|
+
if bonusesByUnit == nil then
|
|
109
|
+
return false
|
|
110
|
+
end
|
|
111
|
+
local bonuses = bonusesByUnit[unit]
|
|
112
|
+
if bonuses == nil then
|
|
113
|
+
return false
|
|
114
|
+
end
|
|
115
|
+
local index = bonuses.indexById[id]
|
|
116
|
+
if index == nil then
|
|
117
|
+
return false
|
|
118
|
+
end
|
|
119
|
+
local bonusesArray = bonuses.array
|
|
120
|
+
local bonusesArrayLastIndex = #bonusesArray - 1
|
|
121
|
+
local bonusesIdByIndex = bonuses.idByIndex
|
|
122
|
+
local bonusesIndexById = bonuses.indexById
|
|
123
|
+
bonusesArray[index + 1] = bonusesArray[bonusesArrayLastIndex + 1]
|
|
124
|
+
bonusesArray[bonusesArrayLastIndex + 1] = nil
|
|
125
|
+
local lastElementId = checkNotNull(bonuses.idByIndex[bonusesArrayLastIndex])
|
|
126
|
+
bonusesIdByIndex[index] = lastElementId
|
|
127
|
+
bonusesIdByIndex[bonusesArrayLastIndex] = nil
|
|
128
|
+
bonusesIndexById[lastElementId] = index
|
|
129
|
+
bonusesIndexById[id] = nil
|
|
130
|
+
processUnitBonus(unit, bonusType, bonusesArray)
|
|
131
|
+
return true
|
|
132
|
+
end
|
|
133
|
+
____exports.updateUnitBonus = function(unit, bonusType, id, value)
|
|
134
|
+
local bonusesByUnit = bonusesByUnitByBonusType[bonusType]
|
|
135
|
+
if bonusesByUnit == nil then
|
|
136
|
+
return false
|
|
137
|
+
end
|
|
138
|
+
local bonuses = bonusesByUnit[unit]
|
|
139
|
+
if bonuses == nil then
|
|
140
|
+
return false
|
|
141
|
+
end
|
|
142
|
+
local index = bonuses.indexById[id]
|
|
143
|
+
if index == nil then
|
|
144
|
+
return false
|
|
145
|
+
end
|
|
146
|
+
local bonusesArray = bonuses.array
|
|
147
|
+
bonusesArray[index + 1] = value
|
|
148
|
+
processUnitBonus(unit, bonusType, bonusesArray)
|
|
149
|
+
return true
|
|
150
|
+
end
|
|
151
|
+
____exports.addOrUpdateOrRemoveUnitBonus = function(unit, bonusType, id, value)
|
|
152
|
+
if value == bonusType.initialValue then
|
|
153
|
+
if id == nil then
|
|
154
|
+
return nil
|
|
155
|
+
end
|
|
156
|
+
____exports.removeUnitBonus(unit, bonusType, id)
|
|
157
|
+
return nil
|
|
158
|
+
end
|
|
159
|
+
if id == nil then
|
|
160
|
+
return ____exports.addUnitBonus(unit, bonusType, value)
|
|
161
|
+
end
|
|
162
|
+
check(____exports.updateUnitBonus(unit, bonusType, id, value))
|
|
163
|
+
return id
|
|
164
|
+
end
|
|
165
|
+
____exports.getUnitBonus = function(unit, bonusType, id)
|
|
166
|
+
local bonusesByUnit = bonusesByUnitByBonusType[bonusType]
|
|
167
|
+
if bonusesByUnit == nil then
|
|
168
|
+
return bonusType.initialValue
|
|
169
|
+
end
|
|
170
|
+
local bonuses = bonusesByUnit[unit]
|
|
171
|
+
if bonuses == nil then
|
|
172
|
+
return bonusType.initialValue
|
|
173
|
+
end
|
|
174
|
+
local index = bonuses.indexById[id]
|
|
175
|
+
if index == nil then
|
|
176
|
+
return bonusType.initialValue
|
|
177
|
+
end
|
|
178
|
+
return bonuses.array[index + 1]
|
|
179
|
+
end
|
|
180
|
+
Unit.onDamage:addListener(
|
|
181
|
+
4,
|
|
182
|
+
function(source, target, event)
|
|
183
|
+
if receivedDamageFactorByUnit[target] ~= nil then
|
|
184
|
+
event.amount = event.amount * receivedDamageFactorByUnit[target]
|
|
185
|
+
end
|
|
186
|
+
end
|
|
187
|
+
)
|
|
188
|
+
return ____exports
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/** @noSelfInFile */
|
|
2
|
+
import { BuffPolarity } from "../../object-data/auxiliary/buff-polarity";
|
|
3
|
+
import { BuffResistanceType } from "../../object-data/auxiliary/buff-resistance-type";
|
|
4
|
+
declare module "../unit" {
|
|
5
|
+
interface Unit {
|
|
6
|
+
hasBuff(buffTypeId: number): boolean;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
declare module "../unit" {
|
|
10
|
+
interface Unit {
|
|
11
|
+
removeBuff(buffTypeId: number): boolean;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
declare module "../unit" {
|
|
15
|
+
interface Unit {
|
|
16
|
+
/**
|
|
17
|
+
* @param polarity The polarity of buffs to count. Default `undefined`.
|
|
18
|
+
* @param resistanceType The resistance type of buffs to count. Default `undefined`.
|
|
19
|
+
* @param includeExpirationTimers Whether to include expiration timer buffs. Default `true`.
|
|
20
|
+
* @param includeAuras Whether to remove aura buffs. Default `true`.
|
|
21
|
+
* @param autoDispel Unknown. Default `false`.
|
|
22
|
+
*/
|
|
23
|
+
countBuffs(polarity?: BuffPolarity, resistanceType?: BuffResistanceType, includeExpirationTimers?: boolean, includeAuras?: boolean, autoDispel?: boolean): number;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
declare module "../unit" {
|
|
27
|
+
interface Unit {
|
|
28
|
+
/**
|
|
29
|
+
* @param polarity The polarity of buffs to remove. Default `undefined`.
|
|
30
|
+
* @param resistanceType The resistance type of buffs to remove. Default `undefined`.
|
|
31
|
+
* @param includeExpirationTimers Whether to include expiration timer buffs. Default `true`.
|
|
32
|
+
* @param includeAuras Whether to remove aura buffs. Default `true`.
|
|
33
|
+
* @param autoDispel Unknown. Default `false`.
|
|
34
|
+
*/
|
|
35
|
+
removeBuffs(polarity?: BuffPolarity, resistanceType?: BuffResistanceType, includeExpirationTimers?: boolean, includeAuras?: boolean, autoDispel?: boolean): void;
|
|
36
|
+
removeBuffs(buffTypeIds: number[]): void;
|
|
37
|
+
}
|
|
38
|
+
}
|