warscript 0.0.1-dev.404878c
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/binaryreader.d.ts +20 -0
- package/binaryreader.lua +50 -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/mapbounds.d.ts +8 -0
- package/core/mapbounds.lua +12 -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 +140 -0
- package/core/types/frame.lua +882 -0
- package/core/types/game.d.ts +8 -0
- package/core/types/game.lua +41 -0
- package/core/types/group.d.ts +22 -0
- package/core/types/group.lua +94 -0
- package/core/types/handle.d.ts +48 -0
- package/core/types/handle.lua +169 -0
- package/core/types/image.d.ts +30 -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 +233 -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 +24 -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 +116 -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 +12 -0
- package/engine/behaviour/ability/apply-unit-behavior.lua +36 -0
- package/engine/behaviour/ability/damage.d.ts +25 -0
- package/engine/behaviour/ability/damage.lua +75 -0
- package/engine/behaviour/ability/heal.d.ts +16 -0
- package/engine/behaviour/ability/heal.lua +35 -0
- package/engine/behaviour/ability/instant-impact.d.ts +6 -0
- package/engine/behaviour/ability/instant-impact.lua +25 -0
- package/engine/behaviour/ability.d.ts +40 -0
- package/engine/behaviour/ability.lua +175 -0
- package/engine/behaviour/unit/stun-immunity.d.ts +19 -0
- package/engine/behaviour/unit/stun-immunity.lua +67 -0
- package/engine/behaviour/unit.d.ts +20 -0
- package/engine/behaviour/unit.lua +75 -0
- package/engine/buff.d.ts +221 -0
- package/engine/buff.lua +1093 -0
- package/engine/constants.d.ts +7 -0
- package/engine/constants.lua +8 -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 +4 -0
- package/engine/internal/mechanics/ability-duration.lua +11 -0
- package/engine/internal/mechanics/area-damage.d.ts +2 -0
- package/engine/internal/mechanics/area-damage.lua +33 -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 +41 -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/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 +102 -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 +312 -0
- package/engine/internal/unit.lua +2430 -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 +15 -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 +46 -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 +21 -0
- package/engine/object-data/entry/ability-type/blank-configurable.lua +249 -0
- package/engine/object-data/entry/ability-type/blank-passive.d.ts +7 -0
- package/engine/object-data/entry/ability-type/blank-passive.lua +28 -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 +48 -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/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 +1058 -0
- package/engine/object-data/entry/buff-type/applicable.d.ts +16 -0
- package/engine/object-data/entry/buff-type/applicable.lua +377 -0
- package/engine/object-data/entry/buff-type/blank.d.ts +8 -0
- package/engine/object-data/entry/buff-type/blank.lua +17 -0
- package/engine/object-data/entry/buff-type.d.ts +64 -0
- package/engine/object-data/entry/buff-type.lua +316 -0
- package/engine/object-data/entry/destructible-type.d.ts +21 -0
- package/engine/object-data/entry/destructible-type.lua +83 -0
- package/engine/object-data/entry/item-type/blank.d.ts +8 -0
- package/engine/object-data/entry/item-type/blank.lua +21 -0
- package/engine/object-data/entry/item-type.d.ts +49 -0
- package/engine/object-data/entry/item-type.lua +259 -0
- package/engine/object-data/entry/lightning-type.d.ts +37 -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 +218 -0
- package/engine/object-data/entry/unit-type.lua +1306 -0
- package/engine/object-data/entry/upgrade/blank.d.ts +8 -0
- package/engine/object-data/entry/upgrade/blank.lua +22 -0
- package/engine/object-data/entry/upgrade.d.ts +59 -0
- package/engine/object-data/entry/upgrade.lua +238 -0
- package/engine/object-data/entry.d.ts +80 -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 +115 -0
- package/engine/object-field/ability.lua +471 -0
- package/engine/object-field/unit.d.ts +15 -0
- package/engine/object-field/unit.lua +49 -0
- package/engine/object-field.d.ts +84 -0
- package/engine/object-field.lua +444 -0
- package/engine/random.d.ts +10 -0
- package/engine/random.lua +9 -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 +63 -0
- package/engine/standard/entries/unit-type.lua +63 -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 +20 -0
- package/engine/unit.lua +31 -0
- package/event.d.ts +53 -0
- package/event.lua +269 -0
- package/exception.d.ts +17 -0
- package/exception.lua +53 -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 +159 -0
- package/index.d.ts +8 -0
- package/index.lua +9 -0
- package/lualib_bundle.lua +2629 -0
- package/math/vec2.d.ts +18 -0
- package/math/vec2.lua +42 -0
- package/math.d.ts +39 -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 +710 -0
- package/objutil/ability.lua +3781 -0
- package/objutil/buff.d.ts +110 -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 +43 -0
- package/objutil/object.lua +213 -0
- package/objutil/unit.d.ts +134 -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 +47 -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/string.d.ts +106 -0
- package/string.lua +34 -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 +29 -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 +57 -0
- package/utility/arrays.lua +369 -0
- package/utility/base64.d.ts +23 -0
- package/utility/base64.lua +177 -0
- package/utility/bit-set.d.ts +18 -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 +181 -0
- package/utility/lua-maps.d.ts +6 -0
- package/utility/lua-maps.lua +25 -0
- package/utility/lua-sets.d.ts +6 -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,1058 @@
|
|
|
1
|
+
local ____lualib = require("lualib_bundle")
|
|
2
|
+
local __TS__Class = ____lualib.__TS__Class
|
|
3
|
+
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
4
|
+
local __TS__New = ____lualib.__TS__New
|
|
5
|
+
local __TS__SetDescriptor = ____lualib.__TS__SetDescriptor
|
|
6
|
+
local ____exports = {}
|
|
7
|
+
local ____unit = require("engine.internal.unit")
|
|
8
|
+
local Unit = ____unit.Unit
|
|
9
|
+
local ____timer = require("core.types.timer")
|
|
10
|
+
local Timer = ____timer.Timer
|
|
11
|
+
local ____effect = require("core.types.effect")
|
|
12
|
+
local Effect = ____effect.Effect
|
|
13
|
+
local ____lua_2Dmaps = require("utility.lua-maps")
|
|
14
|
+
local mapValues = ____lua_2Dmaps.mapValues
|
|
15
|
+
local ____arrays = require("utility.arrays")
|
|
16
|
+
local array = ____arrays.array
|
|
17
|
+
local map = ____arrays.map
|
|
18
|
+
local mapIndexed = ____arrays.mapIndexed
|
|
19
|
+
local ____attachment_2Dpreset = require("engine.object-data.auxiliary.attachment-preset")
|
|
20
|
+
local extractAttachmentPresetInputModelPath = ____attachment_2Dpreset.extractAttachmentPresetInputModelPath
|
|
21
|
+
local extractAttachmentPresetInputNodeFQN = ____attachment_2Dpreset.extractAttachmentPresetInputNodeFQN
|
|
22
|
+
local toAttachmentPreset = ____attachment_2Dpreset.toAttachmentPreset
|
|
23
|
+
local ____combat_2Dclassification = require("engine.object-data.auxiliary.combat-classification")
|
|
24
|
+
local combatClassificationsToStringArray = ____combat_2Dclassification.combatClassificationsToStringArray
|
|
25
|
+
local stringArrayToCombatClassifications = ____combat_2Dclassification.stringArrayToCombatClassifications
|
|
26
|
+
local ____tech_2Dtree_2Ddependency = require("engine.object-data.auxiliary.tech-tree-dependency")
|
|
27
|
+
local extractTechTreeDependencyInputLevel = ____tech_2Dtree_2Ddependency.extractTechTreeDependencyInputLevel
|
|
28
|
+
local extractTechTreeDependencyInputObjectDataEntryId = ____tech_2Dtree_2Ddependency.extractTechTreeDependencyInputObjectDataEntryId
|
|
29
|
+
local ____entry = require("engine.object-data.entry")
|
|
30
|
+
local extractObjectDataEntryLevelFieldValue = ____entry.extractObjectDataEntryLevelFieldValue
|
|
31
|
+
local ObjectDataEntry = ____entry.ObjectDataEntry
|
|
32
|
+
local ____object_2Ddata_2Dentry_2Did_2Dgenerator = require("engine.object-data.utility.object-data-entry-id-generator")
|
|
33
|
+
local ObjectDataEntryIdGenerator = ____object_2Ddata_2Dentry_2Did_2Dgenerator.ObjectDataEntryIdGenerator
|
|
34
|
+
local ____upgrade = require("engine.object-data.entry.upgrade")
|
|
35
|
+
local Upgrade = ____upgrade.Upgrade
|
|
36
|
+
local castAnimationFQNByAbilityTypeId = {}
|
|
37
|
+
local isButtonVisibleFalseAbilityTypes = {}
|
|
38
|
+
local casterCastingEffectPresetsByAbilityTypeId = {}
|
|
39
|
+
local casterChannelingEffectPresetsByAbilityTypeId = {}
|
|
40
|
+
local targetCastingEffectPresetsByAbilityTypeId = {}
|
|
41
|
+
____exports.AbilityType = __TS__Class()
|
|
42
|
+
local AbilityType = ____exports.AbilityType
|
|
43
|
+
AbilityType.name = "AbilityType"
|
|
44
|
+
__TS__ClassExtends(AbilityType, ObjectDataEntry)
|
|
45
|
+
function AbilityType.prototype.____constructor(self, ...)
|
|
46
|
+
ObjectDataEntry.prototype.____constructor(self, ...)
|
|
47
|
+
self._isButtonVisible = true
|
|
48
|
+
end
|
|
49
|
+
function AbilityType.generateId(self)
|
|
50
|
+
return self.idGenerator:next()
|
|
51
|
+
end
|
|
52
|
+
function AbilityType.getObjectData(self, map)
|
|
53
|
+
return map.objects.ability
|
|
54
|
+
end
|
|
55
|
+
AbilityType.idGenerator = __TS__New(
|
|
56
|
+
ObjectDataEntryIdGenerator,
|
|
57
|
+
fourCC("A000")
|
|
58
|
+
)
|
|
59
|
+
__TS__SetDescriptor(
|
|
60
|
+
AbilityType.prototype,
|
|
61
|
+
"channelingAnimation",
|
|
62
|
+
{
|
|
63
|
+
get = function(self)
|
|
64
|
+
return self:getStringsField("aani")
|
|
65
|
+
end,
|
|
66
|
+
set = function(self, animations)
|
|
67
|
+
self:setStringsField("aani", animations)
|
|
68
|
+
end
|
|
69
|
+
},
|
|
70
|
+
true
|
|
71
|
+
)
|
|
72
|
+
__TS__SetDescriptor(
|
|
73
|
+
AbilityType.prototype,
|
|
74
|
+
"areaEffectModelPaths",
|
|
75
|
+
{
|
|
76
|
+
get = function(self)
|
|
77
|
+
return self:getStringsField("aaea")
|
|
78
|
+
end,
|
|
79
|
+
set = function(self, areaEffectModelPaths)
|
|
80
|
+
self:setStringsField("aaea", areaEffectModelPaths)
|
|
81
|
+
end
|
|
82
|
+
},
|
|
83
|
+
true
|
|
84
|
+
)
|
|
85
|
+
__TS__SetDescriptor(
|
|
86
|
+
AbilityType.prototype,
|
|
87
|
+
"buttonPositionX",
|
|
88
|
+
{
|
|
89
|
+
get = function(self)
|
|
90
|
+
return self:getNumberField("abpx")
|
|
91
|
+
end,
|
|
92
|
+
set = function(self, buttonPositionX)
|
|
93
|
+
self:setNumberField("abpx", buttonPositionX)
|
|
94
|
+
end
|
|
95
|
+
},
|
|
96
|
+
true
|
|
97
|
+
)
|
|
98
|
+
__TS__SetDescriptor(
|
|
99
|
+
AbilityType.prototype,
|
|
100
|
+
"buttonPositionY",
|
|
101
|
+
{
|
|
102
|
+
get = function(self)
|
|
103
|
+
return self:getNumberField("abpy")
|
|
104
|
+
end,
|
|
105
|
+
set = function(self, buttonPositionY)
|
|
106
|
+
self:setNumberField("abpy", buttonPositionY)
|
|
107
|
+
end
|
|
108
|
+
},
|
|
109
|
+
true
|
|
110
|
+
)
|
|
111
|
+
__TS__SetDescriptor(
|
|
112
|
+
AbilityType.prototype,
|
|
113
|
+
"casterCastingEffectPresets",
|
|
114
|
+
{
|
|
115
|
+
get = function(self)
|
|
116
|
+
return casterCastingEffectPresetsByAbilityTypeId[self.id] or ({})
|
|
117
|
+
end,
|
|
118
|
+
set = function(self, casterCastingEffectPresets)
|
|
119
|
+
casterCastingEffectPresetsByAbilityTypeId[self.id] = map(casterCastingEffectPresets, toAttachmentPreset)
|
|
120
|
+
end
|
|
121
|
+
},
|
|
122
|
+
true
|
|
123
|
+
)
|
|
124
|
+
__TS__SetDescriptor(
|
|
125
|
+
AbilityType.prototype,
|
|
126
|
+
"casterChannelingEffectPresets",
|
|
127
|
+
{
|
|
128
|
+
get = function(self)
|
|
129
|
+
return casterChannelingEffectPresetsByAbilityTypeId[self.id] or ({})
|
|
130
|
+
end,
|
|
131
|
+
set = function(self, casterChannelingEffectPresets)
|
|
132
|
+
casterChannelingEffectPresetsByAbilityTypeId[self.id] = map(casterChannelingEffectPresets, toAttachmentPreset)
|
|
133
|
+
end
|
|
134
|
+
},
|
|
135
|
+
true
|
|
136
|
+
)
|
|
137
|
+
__TS__SetDescriptor(
|
|
138
|
+
AbilityType.prototype,
|
|
139
|
+
"casterAttachmentPresets",
|
|
140
|
+
{
|
|
141
|
+
get = function(self)
|
|
142
|
+
return self:getAttachmentPresetListField("acat", {"acap", "aca1"})
|
|
143
|
+
end,
|
|
144
|
+
set = function(self, casterAttachmentPresets)
|
|
145
|
+
self:setAttachmentPresetListField("acat", {"acap", "aca1"}, "acac", casterAttachmentPresets)
|
|
146
|
+
end
|
|
147
|
+
},
|
|
148
|
+
true
|
|
149
|
+
)
|
|
150
|
+
__TS__SetDescriptor(
|
|
151
|
+
AbilityType.prototype,
|
|
152
|
+
"effectModelPaths",
|
|
153
|
+
{
|
|
154
|
+
get = function(self)
|
|
155
|
+
return self:getStringsField("aeat")
|
|
156
|
+
end,
|
|
157
|
+
set = function(self, effectModelPaths)
|
|
158
|
+
self:setStringsField("aeat", effectModelPaths)
|
|
159
|
+
end
|
|
160
|
+
},
|
|
161
|
+
true
|
|
162
|
+
)
|
|
163
|
+
__TS__SetDescriptor(
|
|
164
|
+
AbilityType.prototype,
|
|
165
|
+
"iconPath",
|
|
166
|
+
{
|
|
167
|
+
get = function(self)
|
|
168
|
+
return self:getStringField("aart")
|
|
169
|
+
end,
|
|
170
|
+
set = function(self, iconPath)
|
|
171
|
+
self:setStringField("aart", iconPath)
|
|
172
|
+
end
|
|
173
|
+
},
|
|
174
|
+
true
|
|
175
|
+
)
|
|
176
|
+
__TS__SetDescriptor(
|
|
177
|
+
AbilityType.prototype,
|
|
178
|
+
"iconPathSD",
|
|
179
|
+
{
|
|
180
|
+
get = function(self)
|
|
181
|
+
return self:getStringField("aart:sd")
|
|
182
|
+
end,
|
|
183
|
+
set = function(self, iconPathSD)
|
|
184
|
+
self:setStringField("aart:sd", iconPathSD)
|
|
185
|
+
end
|
|
186
|
+
},
|
|
187
|
+
true
|
|
188
|
+
)
|
|
189
|
+
__TS__SetDescriptor(
|
|
190
|
+
AbilityType.prototype,
|
|
191
|
+
"iconPathHD",
|
|
192
|
+
{
|
|
193
|
+
get = function(self)
|
|
194
|
+
return self:getStringField("aart:hd")
|
|
195
|
+
end,
|
|
196
|
+
set = function(self, iconPathHD)
|
|
197
|
+
self:setStringField("aart:hd", iconPathHD)
|
|
198
|
+
end
|
|
199
|
+
},
|
|
200
|
+
true
|
|
201
|
+
)
|
|
202
|
+
__TS__SetDescriptor(
|
|
203
|
+
AbilityType.prototype,
|
|
204
|
+
"isButtonVisible",
|
|
205
|
+
{
|
|
206
|
+
get = function(self)
|
|
207
|
+
return self._isButtonVisible
|
|
208
|
+
end,
|
|
209
|
+
set = function(self, isButtonVisible)
|
|
210
|
+
if isButtonVisible then
|
|
211
|
+
isButtonVisibleFalseAbilityTypes[self] = nil
|
|
212
|
+
else
|
|
213
|
+
isButtonVisibleFalseAbilityTypes[self] = true
|
|
214
|
+
end
|
|
215
|
+
self._isButtonVisible = isButtonVisible
|
|
216
|
+
end
|
|
217
|
+
},
|
|
218
|
+
true
|
|
219
|
+
)
|
|
220
|
+
__TS__SetDescriptor(
|
|
221
|
+
AbilityType.prototype,
|
|
222
|
+
"isMissileHoming",
|
|
223
|
+
{
|
|
224
|
+
get = function(self)
|
|
225
|
+
return self:getBooleanField("amho")
|
|
226
|
+
end,
|
|
227
|
+
set = function(self, isMissileHoming)
|
|
228
|
+
self:setBooleanField("amho", isMissileHoming)
|
|
229
|
+
end
|
|
230
|
+
},
|
|
231
|
+
true
|
|
232
|
+
)
|
|
233
|
+
__TS__SetDescriptor(
|
|
234
|
+
AbilityType.prototype,
|
|
235
|
+
"learnButtonPositionX",
|
|
236
|
+
{
|
|
237
|
+
get = function(self)
|
|
238
|
+
return self:getNumberField("arpx")
|
|
239
|
+
end,
|
|
240
|
+
set = function(self, buttonPositionX)
|
|
241
|
+
self:setNumberField("arpx", buttonPositionX)
|
|
242
|
+
end
|
|
243
|
+
},
|
|
244
|
+
true
|
|
245
|
+
)
|
|
246
|
+
__TS__SetDescriptor(
|
|
247
|
+
AbilityType.prototype,
|
|
248
|
+
"learnButtonPositionY",
|
|
249
|
+
{
|
|
250
|
+
get = function(self)
|
|
251
|
+
return self:getNumberField("arpy")
|
|
252
|
+
end,
|
|
253
|
+
set = function(self, buttonPositionY)
|
|
254
|
+
self:setNumberField("arpy", buttonPositionY)
|
|
255
|
+
end
|
|
256
|
+
},
|
|
257
|
+
true
|
|
258
|
+
)
|
|
259
|
+
__TS__SetDescriptor(
|
|
260
|
+
AbilityType.prototype,
|
|
261
|
+
"learnIconPath",
|
|
262
|
+
{
|
|
263
|
+
get = function(self)
|
|
264
|
+
return self:getStringField("arar")
|
|
265
|
+
end,
|
|
266
|
+
set = function(self, learnIconPath)
|
|
267
|
+
self:setStringField("arar", learnIconPath)
|
|
268
|
+
end
|
|
269
|
+
},
|
|
270
|
+
true
|
|
271
|
+
)
|
|
272
|
+
__TS__SetDescriptor(
|
|
273
|
+
AbilityType.prototype,
|
|
274
|
+
"lightningTypeIds",
|
|
275
|
+
{
|
|
276
|
+
get = function(self)
|
|
277
|
+
return self:getObjectDataEntryIdsField("alig")
|
|
278
|
+
end,
|
|
279
|
+
set = function(self, lightningTypeIds)
|
|
280
|
+
self:setObjectDataEntryIdsField("alig", lightningTypeIds)
|
|
281
|
+
end
|
|
282
|
+
},
|
|
283
|
+
true
|
|
284
|
+
)
|
|
285
|
+
__TS__SetDescriptor(
|
|
286
|
+
AbilityType.prototype,
|
|
287
|
+
"missileModelPath",
|
|
288
|
+
{
|
|
289
|
+
get = function(self)
|
|
290
|
+
return self:getStringField("amat")
|
|
291
|
+
end,
|
|
292
|
+
set = function(self, missileModelPath)
|
|
293
|
+
self:setStringField("amat", missileModelPath)
|
|
294
|
+
end
|
|
295
|
+
},
|
|
296
|
+
true
|
|
297
|
+
)
|
|
298
|
+
__TS__SetDescriptor(
|
|
299
|
+
AbilityType.prototype,
|
|
300
|
+
"missileModelPathSD",
|
|
301
|
+
{
|
|
302
|
+
get = function(self)
|
|
303
|
+
return self:getStringField("amat:sd")
|
|
304
|
+
end,
|
|
305
|
+
set = function(self, missileModelPathSD)
|
|
306
|
+
self:setStringField("amat:sd", missileModelPathSD)
|
|
307
|
+
end
|
|
308
|
+
},
|
|
309
|
+
true
|
|
310
|
+
)
|
|
311
|
+
__TS__SetDescriptor(
|
|
312
|
+
AbilityType.prototype,
|
|
313
|
+
"missileModelPathHD",
|
|
314
|
+
{
|
|
315
|
+
get = function(self)
|
|
316
|
+
return self:getStringField("amat:hd")
|
|
317
|
+
end,
|
|
318
|
+
set = function(self, missileModelPathHD)
|
|
319
|
+
self:setStringField("amat:hd", missileModelPathHD)
|
|
320
|
+
end
|
|
321
|
+
},
|
|
322
|
+
true
|
|
323
|
+
)
|
|
324
|
+
__TS__SetDescriptor(
|
|
325
|
+
AbilityType.prototype,
|
|
326
|
+
"missileMovementArc",
|
|
327
|
+
{
|
|
328
|
+
get = function(self)
|
|
329
|
+
return self:getNumberField("amac")
|
|
330
|
+
end,
|
|
331
|
+
set = function(self, missileMovementArc)
|
|
332
|
+
self:setNumberField("amac", missileMovementArc)
|
|
333
|
+
end
|
|
334
|
+
},
|
|
335
|
+
true
|
|
336
|
+
)
|
|
337
|
+
__TS__SetDescriptor(
|
|
338
|
+
AbilityType.prototype,
|
|
339
|
+
"missileMovementSpeed",
|
|
340
|
+
{
|
|
341
|
+
get = function(self)
|
|
342
|
+
return self:getNumberField("amsp")
|
|
343
|
+
end,
|
|
344
|
+
set = function(self, missileMovementSpeed)
|
|
345
|
+
self:setNumberField("amsp", missileMovementSpeed)
|
|
346
|
+
end
|
|
347
|
+
},
|
|
348
|
+
true
|
|
349
|
+
)
|
|
350
|
+
__TS__SetDescriptor(
|
|
351
|
+
AbilityType.prototype,
|
|
352
|
+
"specialAttachmentPreset",
|
|
353
|
+
{
|
|
354
|
+
get = function(self)
|
|
355
|
+
return self:getAttachmentPresetField("asat", "aspt")
|
|
356
|
+
end,
|
|
357
|
+
set = function(self, specialAttachmentPreset)
|
|
358
|
+
self:setAttachmentPresetField("asat", "aspt", specialAttachmentPreset)
|
|
359
|
+
end
|
|
360
|
+
},
|
|
361
|
+
true
|
|
362
|
+
)
|
|
363
|
+
__TS__SetDescriptor(
|
|
364
|
+
AbilityType.prototype,
|
|
365
|
+
"targetCastingEffectPresets",
|
|
366
|
+
{
|
|
367
|
+
get = function(self)
|
|
368
|
+
return targetCastingEffectPresetsByAbilityTypeId[self.id] or ({})
|
|
369
|
+
end,
|
|
370
|
+
set = function(self, targetCastingEffectPresets)
|
|
371
|
+
targetCastingEffectPresetsByAbilityTypeId[self.id] = map(targetCastingEffectPresets, toAttachmentPreset)
|
|
372
|
+
end
|
|
373
|
+
},
|
|
374
|
+
true
|
|
375
|
+
)
|
|
376
|
+
__TS__SetDescriptor(
|
|
377
|
+
AbilityType.prototype,
|
|
378
|
+
"targetEffectPresets",
|
|
379
|
+
{
|
|
380
|
+
get = function(self)
|
|
381
|
+
return self:getAttachmentPresetListField(
|
|
382
|
+
"atat",
|
|
383
|
+
array(
|
|
384
|
+
6,
|
|
385
|
+
function(i) return "ata" .. tostring(i) end
|
|
386
|
+
)
|
|
387
|
+
)
|
|
388
|
+
end,
|
|
389
|
+
set = function(self, targetEffectPresets)
|
|
390
|
+
self:setAttachmentPresetListField(
|
|
391
|
+
"atat",
|
|
392
|
+
array(
|
|
393
|
+
6,
|
|
394
|
+
function(i) return "ata" .. tostring(i) end
|
|
395
|
+
),
|
|
396
|
+
"atac",
|
|
397
|
+
targetEffectPresets
|
|
398
|
+
)
|
|
399
|
+
end
|
|
400
|
+
},
|
|
401
|
+
true
|
|
402
|
+
)
|
|
403
|
+
__TS__SetDescriptor(
|
|
404
|
+
AbilityType.prototype,
|
|
405
|
+
"targetEffectPresetsSD",
|
|
406
|
+
{
|
|
407
|
+
get = function(self)
|
|
408
|
+
return self:getAttachmentPresetListField(
|
|
409
|
+
"atat:sd",
|
|
410
|
+
array(
|
|
411
|
+
6,
|
|
412
|
+
function(i) return ("ata" .. tostring(i)) .. ":sd" end
|
|
413
|
+
)
|
|
414
|
+
)
|
|
415
|
+
end,
|
|
416
|
+
set = function(self, targetEffectPresetsSD)
|
|
417
|
+
self:setAttachmentPresetListField(
|
|
418
|
+
"atat:sd",
|
|
419
|
+
array(
|
|
420
|
+
6,
|
|
421
|
+
function(i) return ("ata" .. tostring(i)) .. ":sd" end
|
|
422
|
+
),
|
|
423
|
+
"atac:sd",
|
|
424
|
+
targetEffectPresetsSD
|
|
425
|
+
)
|
|
426
|
+
end
|
|
427
|
+
},
|
|
428
|
+
true
|
|
429
|
+
)
|
|
430
|
+
__TS__SetDescriptor(
|
|
431
|
+
AbilityType.prototype,
|
|
432
|
+
"targetEffectPresetsHD",
|
|
433
|
+
{
|
|
434
|
+
get = function(self)
|
|
435
|
+
return self:getAttachmentPresetListField(
|
|
436
|
+
"atat:hd",
|
|
437
|
+
array(
|
|
438
|
+
6,
|
|
439
|
+
function(i) return ("ata" .. tostring(i)) .. ":hd" end
|
|
440
|
+
)
|
|
441
|
+
)
|
|
442
|
+
end,
|
|
443
|
+
set = function(self, targetEffectPresetsHD)
|
|
444
|
+
self:setAttachmentPresetListField(
|
|
445
|
+
"atat:hd",
|
|
446
|
+
array(
|
|
447
|
+
6,
|
|
448
|
+
function(i) return ("ata" .. tostring(i)) .. ":hd" end
|
|
449
|
+
),
|
|
450
|
+
"atac:hd",
|
|
451
|
+
targetEffectPresetsHD
|
|
452
|
+
)
|
|
453
|
+
end
|
|
454
|
+
},
|
|
455
|
+
true
|
|
456
|
+
)
|
|
457
|
+
__TS__SetDescriptor(
|
|
458
|
+
AbilityType.prototype,
|
|
459
|
+
"turnOffButtonPositionX",
|
|
460
|
+
{
|
|
461
|
+
get = function(self)
|
|
462
|
+
return self:getNumberField("aubx")
|
|
463
|
+
end,
|
|
464
|
+
set = function(self, buttonPositionX)
|
|
465
|
+
self:setNumberField("aubx", buttonPositionX)
|
|
466
|
+
end
|
|
467
|
+
},
|
|
468
|
+
true
|
|
469
|
+
)
|
|
470
|
+
__TS__SetDescriptor(
|
|
471
|
+
AbilityType.prototype,
|
|
472
|
+
"turnOffButtonPositionY",
|
|
473
|
+
{
|
|
474
|
+
get = function(self)
|
|
475
|
+
return self:getNumberField("auby")
|
|
476
|
+
end,
|
|
477
|
+
set = function(self, buttonPositionY)
|
|
478
|
+
self:setNumberField("auby", buttonPositionY)
|
|
479
|
+
end
|
|
480
|
+
},
|
|
481
|
+
true
|
|
482
|
+
)
|
|
483
|
+
__TS__SetDescriptor(
|
|
484
|
+
AbilityType.prototype,
|
|
485
|
+
"turnOffIconPath",
|
|
486
|
+
{
|
|
487
|
+
get = function(self)
|
|
488
|
+
return self:getStringField("auar")
|
|
489
|
+
end,
|
|
490
|
+
set = function(self, turnOffIconPath)
|
|
491
|
+
self:setStringField("auar", turnOffIconPath)
|
|
492
|
+
end
|
|
493
|
+
},
|
|
494
|
+
true
|
|
495
|
+
)
|
|
496
|
+
__TS__SetDescriptor(
|
|
497
|
+
AbilityType.prototype,
|
|
498
|
+
"shouldCheckTechTreeDependencies",
|
|
499
|
+
{
|
|
500
|
+
get = function(self)
|
|
501
|
+
return self:getBooleanField("achd")
|
|
502
|
+
end,
|
|
503
|
+
set = function(self, shouldCheckTechTreeDependencies)
|
|
504
|
+
self:setBooleanField("achd", shouldCheckTechTreeDependencies)
|
|
505
|
+
end
|
|
506
|
+
},
|
|
507
|
+
true
|
|
508
|
+
)
|
|
509
|
+
__TS__SetDescriptor(
|
|
510
|
+
AbilityType.prototype,
|
|
511
|
+
"techTreeDependencies",
|
|
512
|
+
{
|
|
513
|
+
get = function(self)
|
|
514
|
+
local techTreeDependencyIds = self:getObjectDataEntryIdsField("areq")
|
|
515
|
+
local techTreeDependencyInternalLevels = self:getNumbersField("arqa")
|
|
516
|
+
return mapIndexed(
|
|
517
|
+
techTreeDependencyIds,
|
|
518
|
+
function(index, techTreeDependencyId)
|
|
519
|
+
local techTreeDependencyInternalLevel = techTreeDependencyInternalLevels[index + 1] or 1
|
|
520
|
+
if #Upgrade:getAllIdsByBaseIds(techTreeDependencyId) ~= 0 then
|
|
521
|
+
return {upgradeId = techTreeDependencyId, level = techTreeDependencyInternalLevel - 1}
|
|
522
|
+
else
|
|
523
|
+
return {unitTypeId = techTreeDependencyId}
|
|
524
|
+
end
|
|
525
|
+
end
|
|
526
|
+
)
|
|
527
|
+
end,
|
|
528
|
+
set = function(self, techTreeDependencies)
|
|
529
|
+
local techTreeDependencyIds = map(techTreeDependencies, extractTechTreeDependencyInputObjectDataEntryId)
|
|
530
|
+
local techTreeDependencyInternalLevels = map(
|
|
531
|
+
map(techTreeDependencies, extractTechTreeDependencyInputLevel),
|
|
532
|
+
function(techTreeDependencyLevel) return techTreeDependencyLevel + 1 end
|
|
533
|
+
)
|
|
534
|
+
self:setObjectDataEntryIdsField("areq", techTreeDependencyIds)
|
|
535
|
+
self:setNumbersField("arqa", techTreeDependencyInternalLevels)
|
|
536
|
+
end
|
|
537
|
+
},
|
|
538
|
+
true
|
|
539
|
+
)
|
|
540
|
+
__TS__SetDescriptor(
|
|
541
|
+
AbilityType.prototype,
|
|
542
|
+
"activateOrderTypeStringId",
|
|
543
|
+
{
|
|
544
|
+
get = function(self)
|
|
545
|
+
return self:getStringField("aoro")
|
|
546
|
+
end,
|
|
547
|
+
set = function(self, activateOrderTypeStringId)
|
|
548
|
+
self:setStringField("aoro", activateOrderTypeStringId)
|
|
549
|
+
end
|
|
550
|
+
},
|
|
551
|
+
true
|
|
552
|
+
)
|
|
553
|
+
__TS__SetDescriptor(
|
|
554
|
+
AbilityType.prototype,
|
|
555
|
+
"deactivateOrderTypeStringId",
|
|
556
|
+
{
|
|
557
|
+
get = function(self)
|
|
558
|
+
return self:getStringField("aoro")
|
|
559
|
+
end,
|
|
560
|
+
set = function(self, deactivateOrderTypeStringId)
|
|
561
|
+
self:setStringField("aorf", deactivateOrderTypeStringId)
|
|
562
|
+
end
|
|
563
|
+
},
|
|
564
|
+
true
|
|
565
|
+
)
|
|
566
|
+
__TS__SetDescriptor(
|
|
567
|
+
AbilityType.prototype,
|
|
568
|
+
"hotkey",
|
|
569
|
+
{
|
|
570
|
+
get = function(self)
|
|
571
|
+
return self:getStringField("ahky")
|
|
572
|
+
end,
|
|
573
|
+
set = function(self, hotkey)
|
|
574
|
+
self:setStringField("ahky", hotkey)
|
|
575
|
+
end
|
|
576
|
+
},
|
|
577
|
+
true
|
|
578
|
+
)
|
|
579
|
+
__TS__SetDescriptor(
|
|
580
|
+
AbilityType.prototype,
|
|
581
|
+
"learnHotkey",
|
|
582
|
+
{
|
|
583
|
+
get = function(self)
|
|
584
|
+
return self:getStringField("arhk")
|
|
585
|
+
end,
|
|
586
|
+
set = function(self, learnHotkey)
|
|
587
|
+
self:setStringField("arhk", learnHotkey)
|
|
588
|
+
end
|
|
589
|
+
},
|
|
590
|
+
true
|
|
591
|
+
)
|
|
592
|
+
__TS__SetDescriptor(
|
|
593
|
+
AbilityType.prototype,
|
|
594
|
+
"learnTooltipText",
|
|
595
|
+
{
|
|
596
|
+
get = function(self)
|
|
597
|
+
return self:getStringField("aret")
|
|
598
|
+
end,
|
|
599
|
+
set = function(self, learnTooltipText)
|
|
600
|
+
self:setStringField("aret", learnTooltipText)
|
|
601
|
+
end
|
|
602
|
+
},
|
|
603
|
+
true
|
|
604
|
+
)
|
|
605
|
+
__TS__SetDescriptor(
|
|
606
|
+
AbilityType.prototype,
|
|
607
|
+
"learnTooltipExtendedText",
|
|
608
|
+
{
|
|
609
|
+
get = function(self)
|
|
610
|
+
return self:getStringField("arut")
|
|
611
|
+
end,
|
|
612
|
+
set = function(self, learnTooltipExtendedText)
|
|
613
|
+
self:setStringField("arut", learnTooltipExtendedText)
|
|
614
|
+
end
|
|
615
|
+
},
|
|
616
|
+
true
|
|
617
|
+
)
|
|
618
|
+
__TS__SetDescriptor(
|
|
619
|
+
AbilityType.prototype,
|
|
620
|
+
"name",
|
|
621
|
+
{
|
|
622
|
+
get = function(self)
|
|
623
|
+
return self:getStringField("anam")
|
|
624
|
+
end,
|
|
625
|
+
set = function(self, name)
|
|
626
|
+
self:setStringField("anam", name)
|
|
627
|
+
end
|
|
628
|
+
},
|
|
629
|
+
true
|
|
630
|
+
)
|
|
631
|
+
__TS__SetDescriptor(
|
|
632
|
+
AbilityType.prototype,
|
|
633
|
+
"orderTypeStringId",
|
|
634
|
+
{
|
|
635
|
+
get = function(self)
|
|
636
|
+
return self:getStringField("aord")
|
|
637
|
+
end,
|
|
638
|
+
set = function(self, orderTypeStringId)
|
|
639
|
+
self:setStringField("aord", orderTypeStringId)
|
|
640
|
+
end
|
|
641
|
+
},
|
|
642
|
+
true
|
|
643
|
+
)
|
|
644
|
+
__TS__SetDescriptor(
|
|
645
|
+
AbilityType.prototype,
|
|
646
|
+
"tooltipText",
|
|
647
|
+
{
|
|
648
|
+
get = function(self)
|
|
649
|
+
return self:getStringLevelField("atp1")
|
|
650
|
+
end,
|
|
651
|
+
set = function(self, tooltipText)
|
|
652
|
+
self:setStringLevelField("atp1", tooltipText)
|
|
653
|
+
end
|
|
654
|
+
},
|
|
655
|
+
true
|
|
656
|
+
)
|
|
657
|
+
__TS__SetDescriptor(
|
|
658
|
+
AbilityType.prototype,
|
|
659
|
+
"tooltipExtendedText",
|
|
660
|
+
{
|
|
661
|
+
get = function(self)
|
|
662
|
+
return self:getStringLevelField("aub1")
|
|
663
|
+
end,
|
|
664
|
+
set = function(self, tooltipExtendedText)
|
|
665
|
+
self:setStringLevelField("aub1", tooltipExtendedText)
|
|
666
|
+
end
|
|
667
|
+
},
|
|
668
|
+
true
|
|
669
|
+
)
|
|
670
|
+
__TS__SetDescriptor(
|
|
671
|
+
AbilityType.prototype,
|
|
672
|
+
"turnOffHotkey",
|
|
673
|
+
{
|
|
674
|
+
get = function(self)
|
|
675
|
+
return self:getStringField("auhk")
|
|
676
|
+
end,
|
|
677
|
+
set = function(self, turnOffHotkey)
|
|
678
|
+
self:setStringField("auhk", turnOffHotkey)
|
|
679
|
+
end
|
|
680
|
+
},
|
|
681
|
+
true
|
|
682
|
+
)
|
|
683
|
+
__TS__SetDescriptor(
|
|
684
|
+
AbilityType.prototype,
|
|
685
|
+
"turnOffOrderTypeStringId",
|
|
686
|
+
{
|
|
687
|
+
get = function(self)
|
|
688
|
+
return self:getStringField("aoru")
|
|
689
|
+
end,
|
|
690
|
+
set = function(self, turnOffOrderTypeStringId)
|
|
691
|
+
self:setStringField("aoru", turnOffOrderTypeStringId)
|
|
692
|
+
end
|
|
693
|
+
},
|
|
694
|
+
true
|
|
695
|
+
)
|
|
696
|
+
__TS__SetDescriptor(
|
|
697
|
+
AbilityType.prototype,
|
|
698
|
+
"turnOffTooltipText",
|
|
699
|
+
{
|
|
700
|
+
get = function(self)
|
|
701
|
+
return self:getStringLevelField("aut1")
|
|
702
|
+
end,
|
|
703
|
+
set = function(self, turnOffTooltipText)
|
|
704
|
+
self:setStringLevelField("aut1", turnOffTooltipText)
|
|
705
|
+
end
|
|
706
|
+
},
|
|
707
|
+
true
|
|
708
|
+
)
|
|
709
|
+
__TS__SetDescriptor(
|
|
710
|
+
AbilityType.prototype,
|
|
711
|
+
"turnOffTooltipExtendedText",
|
|
712
|
+
{
|
|
713
|
+
get = function(self)
|
|
714
|
+
return self:getStringLevelField("auu1")
|
|
715
|
+
end,
|
|
716
|
+
set = function(self, turnOffTooltipExtendedText)
|
|
717
|
+
self:setStringLevelField("auu1", turnOffTooltipExtendedText)
|
|
718
|
+
end
|
|
719
|
+
},
|
|
720
|
+
true
|
|
721
|
+
)
|
|
722
|
+
__TS__SetDescriptor(
|
|
723
|
+
AbilityType.prototype,
|
|
724
|
+
"soundPresetName",
|
|
725
|
+
{
|
|
726
|
+
get = function(self)
|
|
727
|
+
return self:getStringField("aefs")
|
|
728
|
+
end,
|
|
729
|
+
set = function(self, soundPresetName)
|
|
730
|
+
self:setStringField("aefs", soundPresetName)
|
|
731
|
+
end
|
|
732
|
+
},
|
|
733
|
+
true
|
|
734
|
+
)
|
|
735
|
+
__TS__SetDescriptor(
|
|
736
|
+
AbilityType.prototype,
|
|
737
|
+
"loopingSoundPresetName",
|
|
738
|
+
{
|
|
739
|
+
get = function(self)
|
|
740
|
+
return self:getStringField("aefl")
|
|
741
|
+
end,
|
|
742
|
+
set = function(self, loopingSoundPresetName)
|
|
743
|
+
self:setStringField("aefl", loopingSoundPresetName)
|
|
744
|
+
end
|
|
745
|
+
},
|
|
746
|
+
true
|
|
747
|
+
)
|
|
748
|
+
__TS__SetDescriptor(
|
|
749
|
+
AbilityType.prototype,
|
|
750
|
+
"allowedTargetCombatClassifications",
|
|
751
|
+
{
|
|
752
|
+
get = function(self)
|
|
753
|
+
return map(
|
|
754
|
+
self:getStringsLevelField("atar"),
|
|
755
|
+
stringArrayToCombatClassifications
|
|
756
|
+
)
|
|
757
|
+
end,
|
|
758
|
+
set = function(self, allowedTargetCombatClassifications)
|
|
759
|
+
self:setStringsLevelField(
|
|
760
|
+
"atar",
|
|
761
|
+
function(level, currentValue) return combatClassificationsToStringArray(extractObjectDataEntryLevelFieldValue(
|
|
762
|
+
allowedTargetCombatClassifications,
|
|
763
|
+
level,
|
|
764
|
+
stringArrayToCombatClassifications(currentValue)
|
|
765
|
+
)) end
|
|
766
|
+
)
|
|
767
|
+
end
|
|
768
|
+
},
|
|
769
|
+
true
|
|
770
|
+
)
|
|
771
|
+
__TS__SetDescriptor(
|
|
772
|
+
AbilityType.prototype,
|
|
773
|
+
"areaOfEffect",
|
|
774
|
+
{
|
|
775
|
+
get = function(self)
|
|
776
|
+
return self:getNumberLevelField("aare")
|
|
777
|
+
end,
|
|
778
|
+
set = function(self, areaOfEffect)
|
|
779
|
+
self:setNumberLevelField("aare", areaOfEffect)
|
|
780
|
+
end
|
|
781
|
+
},
|
|
782
|
+
true
|
|
783
|
+
)
|
|
784
|
+
__TS__SetDescriptor(
|
|
785
|
+
AbilityType.prototype,
|
|
786
|
+
"buffDuration",
|
|
787
|
+
{
|
|
788
|
+
get = function(self)
|
|
789
|
+
return self:getNumberLevelField("adur")
|
|
790
|
+
end,
|
|
791
|
+
set = function(self, buffDuration)
|
|
792
|
+
self:setNumberLevelField("adur", buffDuration)
|
|
793
|
+
end
|
|
794
|
+
},
|
|
795
|
+
true
|
|
796
|
+
)
|
|
797
|
+
__TS__SetDescriptor(
|
|
798
|
+
AbilityType.prototype,
|
|
799
|
+
"buffTypeIds",
|
|
800
|
+
{
|
|
801
|
+
get = function(self)
|
|
802
|
+
return self:getObjectDataEntryIdsLevelField("abuf")
|
|
803
|
+
end,
|
|
804
|
+
set = function(self, buffTypeIds)
|
|
805
|
+
self:setObjectDataEntryIdsLevelField("abuf", buffTypeIds)
|
|
806
|
+
end
|
|
807
|
+
},
|
|
808
|
+
true
|
|
809
|
+
)
|
|
810
|
+
__TS__SetDescriptor(
|
|
811
|
+
AbilityType.prototype,
|
|
812
|
+
"castRange",
|
|
813
|
+
{
|
|
814
|
+
get = function(self)
|
|
815
|
+
return self:getNumberLevelField("aran")
|
|
816
|
+
end,
|
|
817
|
+
set = function(self, castRange)
|
|
818
|
+
self:setNumberLevelField("aran", castRange)
|
|
819
|
+
end
|
|
820
|
+
},
|
|
821
|
+
true
|
|
822
|
+
)
|
|
823
|
+
__TS__SetDescriptor(
|
|
824
|
+
AbilityType.prototype,
|
|
825
|
+
"castingDuration",
|
|
826
|
+
{
|
|
827
|
+
get = function(self)
|
|
828
|
+
return self:getNumberLevelField("acas")
|
|
829
|
+
end,
|
|
830
|
+
set = function(self, castingDuration)
|
|
831
|
+
self:setNumberLevelField("acas", castingDuration)
|
|
832
|
+
end
|
|
833
|
+
},
|
|
834
|
+
true
|
|
835
|
+
)
|
|
836
|
+
__TS__SetDescriptor(
|
|
837
|
+
AbilityType.prototype,
|
|
838
|
+
"cooldown",
|
|
839
|
+
{
|
|
840
|
+
get = function(self)
|
|
841
|
+
return self:getNumberLevelField("acdn")
|
|
842
|
+
end,
|
|
843
|
+
set = function(self, cooldown)
|
|
844
|
+
self:setNumberLevelField("acdn", cooldown)
|
|
845
|
+
end
|
|
846
|
+
},
|
|
847
|
+
true
|
|
848
|
+
)
|
|
849
|
+
__TS__SetDescriptor(
|
|
850
|
+
AbilityType.prototype,
|
|
851
|
+
"effectBuffTypeIds",
|
|
852
|
+
{
|
|
853
|
+
get = function(self)
|
|
854
|
+
return self:getObjectDataEntryIdsLevelField("aeff")
|
|
855
|
+
end,
|
|
856
|
+
set = function(self, effectBuffTypeIds)
|
|
857
|
+
self:setObjectDataEntryIdsLevelField("aeff", effectBuffTypeIds)
|
|
858
|
+
end
|
|
859
|
+
},
|
|
860
|
+
true
|
|
861
|
+
)
|
|
862
|
+
__TS__SetDescriptor(
|
|
863
|
+
AbilityType.prototype,
|
|
864
|
+
"heroBuffDuration",
|
|
865
|
+
{
|
|
866
|
+
get = function(self)
|
|
867
|
+
return self:getNumberLevelField("ahdu")
|
|
868
|
+
end,
|
|
869
|
+
set = function(self, heroBuffDuration)
|
|
870
|
+
self:setNumberLevelField("ahdu", heroBuffDuration)
|
|
871
|
+
end
|
|
872
|
+
},
|
|
873
|
+
true
|
|
874
|
+
)
|
|
875
|
+
__TS__SetDescriptor(
|
|
876
|
+
AbilityType.prototype,
|
|
877
|
+
"learnLevelMinimum",
|
|
878
|
+
{
|
|
879
|
+
get = function(self)
|
|
880
|
+
return self:getNumberField("arlv")
|
|
881
|
+
end,
|
|
882
|
+
set = function(self, learnLevelMinimum)
|
|
883
|
+
self:setNumberField("arlv", learnLevelMinimum)
|
|
884
|
+
end
|
|
885
|
+
},
|
|
886
|
+
true
|
|
887
|
+
)
|
|
888
|
+
__TS__SetDescriptor(
|
|
889
|
+
AbilityType.prototype,
|
|
890
|
+
"learnLevelStep",
|
|
891
|
+
{
|
|
892
|
+
get = function(self)
|
|
893
|
+
return self:getNumberField("alsk")
|
|
894
|
+
end,
|
|
895
|
+
set = function(self, learnLevelStep)
|
|
896
|
+
self:setNumberField("alsk", learnLevelStep)
|
|
897
|
+
end
|
|
898
|
+
},
|
|
899
|
+
true
|
|
900
|
+
)
|
|
901
|
+
__TS__SetDescriptor(
|
|
902
|
+
AbilityType.prototype,
|
|
903
|
+
"levelCount",
|
|
904
|
+
{
|
|
905
|
+
get = function(self)
|
|
906
|
+
return self:getNumberField("alev")
|
|
907
|
+
end,
|
|
908
|
+
set = function(self, levelCount)
|
|
909
|
+
self:setNumberField("alev", levelCount)
|
|
910
|
+
end
|
|
911
|
+
},
|
|
912
|
+
true
|
|
913
|
+
)
|
|
914
|
+
__TS__SetDescriptor(
|
|
915
|
+
AbilityType.prototype,
|
|
916
|
+
"manaCost",
|
|
917
|
+
{
|
|
918
|
+
get = function(self)
|
|
919
|
+
return self:getNumberLevelField("amcs")
|
|
920
|
+
end,
|
|
921
|
+
set = function(self, manaCost)
|
|
922
|
+
self:setNumberLevelField("amcs", manaCost)
|
|
923
|
+
end
|
|
924
|
+
},
|
|
925
|
+
true
|
|
926
|
+
)
|
|
927
|
+
__TS__SetDescriptor(
|
|
928
|
+
AbilityType.prototype,
|
|
929
|
+
"race",
|
|
930
|
+
{
|
|
931
|
+
get = function(self)
|
|
932
|
+
return self:getStringField("arac")
|
|
933
|
+
end,
|
|
934
|
+
set = function(self, race)
|
|
935
|
+
self:setStringField("arac", race)
|
|
936
|
+
end
|
|
937
|
+
},
|
|
938
|
+
true
|
|
939
|
+
)
|
|
940
|
+
__TS__SetDescriptor(
|
|
941
|
+
AbilityType.prototype,
|
|
942
|
+
"spellStealPriority",
|
|
943
|
+
{
|
|
944
|
+
get = function(self)
|
|
945
|
+
return self:getNumberLevelField("apri")
|
|
946
|
+
end,
|
|
947
|
+
set = function(self, spellStealPriority)
|
|
948
|
+
self:setNumberLevelField("apri", spellStealPriority)
|
|
949
|
+
end
|
|
950
|
+
},
|
|
951
|
+
true
|
|
952
|
+
)
|
|
953
|
+
local _ = postcompile(function()
|
|
954
|
+
for abilityType in pairs(isButtonVisibleFalseAbilityTypes) do
|
|
955
|
+
abilityType.hotkey = ""
|
|
956
|
+
abilityType.buttonPositionX = 0
|
|
957
|
+
abilityType.buttonPositionY = -11
|
|
958
|
+
end
|
|
959
|
+
end)
|
|
960
|
+
for abilityTypeId, animationFQN in pairs(postcompile(function() return castAnimationFQNByAbilityTypeId end)) do
|
|
961
|
+
Unit.abilityCastingStartEvent[abilityTypeId]:addListener(
|
|
962
|
+
4,
|
|
963
|
+
function(caster, ability)
|
|
964
|
+
if ability:getField(ABILITY_RLF_CASTING_TIME) ~= 0 then
|
|
965
|
+
Timer:run(function()
|
|
966
|
+
caster:playAnimation(animationFQN)
|
|
967
|
+
end)
|
|
968
|
+
end
|
|
969
|
+
end
|
|
970
|
+
)
|
|
971
|
+
end
|
|
972
|
+
local casterCastingEffectModelPathsByAbilityTypeId = postcompile(function()
|
|
973
|
+
return mapValues(
|
|
974
|
+
casterCastingEffectPresetsByAbilityTypeId,
|
|
975
|
+
function(casterCastingEffectPresets) return map(casterCastingEffectPresets, extractAttachmentPresetInputModelPath) end
|
|
976
|
+
)
|
|
977
|
+
end)
|
|
978
|
+
local casterCastingEffectAttachmentPointsByAbilityTypeId = postcompile(function()
|
|
979
|
+
return mapValues(
|
|
980
|
+
casterCastingEffectPresetsByAbilityTypeId,
|
|
981
|
+
function(casterCastingEffectPresets) return map(casterCastingEffectPresets, extractAttachmentPresetInputNodeFQN) end
|
|
982
|
+
)
|
|
983
|
+
end)
|
|
984
|
+
local casterCastingEffectsByCaster = {}
|
|
985
|
+
local function handleAbilityCastingStartEvent(caster, ability)
|
|
986
|
+
local effectModelPaths = casterCastingEffectModelPathsByAbilityTypeId[ability.typeId]
|
|
987
|
+
local attachmentPoints = casterCastingEffectAttachmentPointsByAbilityTypeId[ability.typeId]
|
|
988
|
+
local effects = {}
|
|
989
|
+
if effectModelPaths ~= nil then
|
|
990
|
+
for i = 1, #effectModelPaths do
|
|
991
|
+
local effectModelPath = effectModelPaths[i]
|
|
992
|
+
local attachmentPoint = attachmentPoints and attachmentPoints[i]
|
|
993
|
+
if attachmentPoint == nil or attachmentPoint == "" then
|
|
994
|
+
attachmentPoint = "origin"
|
|
995
|
+
end
|
|
996
|
+
effects[i] = Effect:createTarget(effectModelPath, caster, attachmentPoint)
|
|
997
|
+
end
|
|
998
|
+
end
|
|
999
|
+
casterCastingEffectsByCaster[caster] = effects
|
|
1000
|
+
end
|
|
1001
|
+
local function handleAbilityStopEvent(caster)
|
|
1002
|
+
local effects = casterCastingEffectsByCaster[caster]
|
|
1003
|
+
if effects ~= nil then
|
|
1004
|
+
for i = 1, #effects do
|
|
1005
|
+
effects[i]:destroy()
|
|
1006
|
+
end
|
|
1007
|
+
casterCastingEffectsByCaster[caster] = nil
|
|
1008
|
+
end
|
|
1009
|
+
end
|
|
1010
|
+
for abilityTypeId in pairs(casterCastingEffectModelPathsByAbilityTypeId) do
|
|
1011
|
+
Unit.abilityCastingStartEvent[abilityTypeId]:addListener(4, handleAbilityCastingStartEvent)
|
|
1012
|
+
Unit.abilityChannelingStartEvent[abilityTypeId]:addListener(4, handleAbilityStopEvent)
|
|
1013
|
+
Unit.abilityStopEvent[abilityTypeId]:addListener(4, handleAbilityStopEvent)
|
|
1014
|
+
end
|
|
1015
|
+
local casterChannelingEffectModelPathsByAbilityTypeId = postcompile(function()
|
|
1016
|
+
return mapValues(
|
|
1017
|
+
casterChannelingEffectPresetsByAbilityTypeId,
|
|
1018
|
+
function(casterChannelingEffectPresets) return map(casterChannelingEffectPresets, extractAttachmentPresetInputModelPath) end
|
|
1019
|
+
)
|
|
1020
|
+
end)
|
|
1021
|
+
local casterChannelingEffectAttachmentPointsByAbilityTypeId = postcompile(function()
|
|
1022
|
+
return mapValues(
|
|
1023
|
+
casterChannelingEffectPresetsByAbilityTypeId,
|
|
1024
|
+
function(casterChannelingEffectPresets) return map(casterChannelingEffectPresets, extractAttachmentPresetInputNodeFQN) end
|
|
1025
|
+
)
|
|
1026
|
+
end)
|
|
1027
|
+
local casterChannelingEffectsByCaster = {}
|
|
1028
|
+
local function handleAbilityChannelingStartEvent(caster, ability)
|
|
1029
|
+
local effectModelPaths = casterChannelingEffectModelPathsByAbilityTypeId[ability.typeId]
|
|
1030
|
+
local attachmentPoints = casterChannelingEffectAttachmentPointsByAbilityTypeId[ability.typeId]
|
|
1031
|
+
local effects = {}
|
|
1032
|
+
if effectModelPaths ~= nil then
|
|
1033
|
+
for i = 1, #effectModelPaths do
|
|
1034
|
+
local effectModelPath = effectModelPaths[i]
|
|
1035
|
+
local attachmentPoint = attachmentPoints and attachmentPoints[i]
|
|
1036
|
+
if attachmentPoint == nil or attachmentPoint == "" then
|
|
1037
|
+
attachmentPoint = "origin"
|
|
1038
|
+
end
|
|
1039
|
+
effects[i] = Effect:createTarget(effectModelPath, caster, attachmentPoint)
|
|
1040
|
+
end
|
|
1041
|
+
end
|
|
1042
|
+
casterChannelingEffectsByCaster[caster] = effects
|
|
1043
|
+
end
|
|
1044
|
+
local function handleAbilityStopEventV2(caster)
|
|
1045
|
+
local effects = casterChannelingEffectsByCaster[caster]
|
|
1046
|
+
if effects ~= nil then
|
|
1047
|
+
for i = 1, #effects do
|
|
1048
|
+
effects[i]:destroy()
|
|
1049
|
+
end
|
|
1050
|
+
casterChannelingEffectsByCaster[caster] = nil
|
|
1051
|
+
end
|
|
1052
|
+
end
|
|
1053
|
+
for abilityTypeId in pairs(casterChannelingEffectModelPathsByAbilityTypeId) do
|
|
1054
|
+
Unit.abilityChannelingStartEvent[abilityTypeId]:addListener(4, handleAbilityChannelingStartEvent)
|
|
1055
|
+
Unit.abilityChannelingFinishEvent[abilityTypeId]:addListener(4, handleAbilityStopEventV2)
|
|
1056
|
+
Unit.abilityStopEvent[abilityTypeId]:addListener(4, handleAbilityStopEventV2)
|
|
1057
|
+
end
|
|
1058
|
+
return ____exports
|