warscript 0.0.1-dev.aefeacb → 0.0.1-dev.b1ce140
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/attributes.d.ts +6 -0
- package/attributes.lua +17 -1
- package/core/dummy.lua +4 -2
- package/core/types/effect.d.ts +12 -4
- package/core/types/effect.lua +67 -104
- package/core/types/frame.d.ts +1 -0
- package/core/types/frame.lua +136 -58
- package/core/types/handle.lua +9 -9
- package/core/types/item.d.ts +1 -0
- package/core/types/item.lua +1 -0
- package/core/types/player.d.ts +18 -1
- package/core/types/player.lua +76 -26
- package/core/types/playerCamera.d.ts +2 -0
- package/core/types/playerCamera.lua +123 -5
- package/core/types/playerColor.lua +4 -3
- package/core/types/sound.d.ts +18 -26
- package/core/types/sound.lua +99 -53
- package/core/types/tileCell.d.ts +11 -1
- package/core/types/tileCell.lua +97 -0
- package/core/types/timer.d.ts +9 -8
- package/core/types/timer.lua +45 -23
- package/core/types/unit.d.ts +5 -0
- package/core/types/unit.lua +5 -0
- package/core/util.d.ts +3 -1
- package/core/util.lua +109 -3
- package/decl/native.d.ts +1718 -964
- package/destroyable.d.ts +1 -0
- package/destroyable.lua +9 -0
- package/engine/behavior.d.ts +14 -1
- package/engine/behavior.lua +230 -70
- package/engine/behaviour/ability/apply-buff.lua +5 -5
- package/engine/behaviour/ability/apply-unit-behavior.lua +6 -0
- package/engine/behaviour/ability/damage.d.ts +13 -3
- package/engine/behaviour/ability/damage.lua +41 -49
- package/engine/behaviour/ability/emulate-impact.d.ts +1 -1
- package/engine/behaviour/ability/emulate-impact.lua +23 -7
- package/engine/behaviour/ability/on-command-impact.d.ts +1 -0
- package/engine/behaviour/ability/on-command-impact.lua +1 -0
- package/engine/behaviour/ability/remove-buffs.d.ts +9 -0
- package/engine/behaviour/ability/remove-buffs.lua +21 -0
- package/engine/behaviour/ability/restore-mana.d.ts +1 -1
- package/engine/behaviour/ability/restore-mana.lua +6 -6
- package/engine/behaviour/ability.d.ts +17 -6
- package/engine/behaviour/ability.lua +81 -21
- package/engine/behaviour/unit/stun-immunity.d.ts +12 -6
- package/engine/behaviour/unit/stun-immunity.lua +57 -31
- package/engine/behaviour/unit.d.ts +41 -2
- package/engine/behaviour/unit.lua +270 -6
- package/engine/buff.d.ts +79 -27
- package/engine/buff.lua +454 -186
- package/engine/index.d.ts +2 -1
- package/engine/internal/ability.d.ts +11 -1
- package/engine/internal/ability.lua +104 -44
- package/engine/internal/item/ability.lua +63 -11
- package/engine/internal/item/fields.d.ts +12 -0
- package/engine/internal/item/fields.lua +33 -0
- package/engine/internal/item/owner-cache.d.ts +5 -0
- package/engine/internal/item/owner-cache.lua +4 -0
- package/engine/internal/item+owner.d.ts +2 -0
- package/engine/internal/item+owner.lua +37 -8
- package/engine/internal/item.d.ts +32 -16
- package/engine/internal/item.lua +257 -82
- package/engine/internal/mechanics/ability-duration.lua +1 -1
- package/engine/internal/mechanics/cast-ability.lua +6 -3
- package/engine/internal/misc/damage-metadata-by-target.lua +5 -0
- package/engine/internal/misc/frame-coordinates.d.ts +2 -0
- package/engine/internal/misc/frame-coordinates.lua +21 -0
- package/engine/internal/misc/get-terrain-z.d.ts +2 -0
- package/engine/internal/misc/get-terrain-z.lua +11 -0
- package/engine/internal/misc/player-local-handle.d.ts +2 -0
- package/engine/internal/misc/player-local-handle.lua +5 -0
- package/engine/internal/misc/unit-ability-level-natives.d.ts +2 -0
- package/engine/internal/misc/unit-ability-level-natives.lua +12 -0
- package/engine/internal/object-data/armor-bonus.d.ts +2 -0
- package/engine/internal/object-data/attribute-bonus.lua +2 -2
- package/engine/internal/object-data/health-bonus.d.ts +2 -0
- package/engine/internal/object-data/health-bonus.lua +16 -0
- package/engine/internal/object-data/health-regeneration-rate-increase.d.ts +2 -0
- package/engine/internal/object-data/health-regeneration-rate-increase.lua +48 -0
- package/engine/internal/object-data/mana-bonus.d.ts +2 -0
- package/engine/internal/object-data/mana-bonus.lua +16 -0
- package/engine/internal/object-data/mana-regeneration-rate-increase-factor.d.ts +2 -0
- package/engine/internal/object-data/mana-regeneration-rate-increase-factor.lua +16 -0
- package/engine/internal/unit/ability.d.ts +35 -0
- package/engine/internal/unit/ability.lua +113 -12
- package/engine/internal/unit/add-item-to-slot-init.lua +3 -14
- package/engine/internal/unit/add-item-to-slot.lua +53 -12
- package/engine/internal/unit/allowed-targets.d.ts +1 -1
- package/engine/internal/unit/allowed-targets.lua +9 -1
- package/engine/internal/unit/appearance.d.ts +15 -0
- package/engine/internal/unit/appearance.lua +85 -0
- package/engine/internal/unit/attributes.d.ts +17 -0
- package/engine/internal/unit/attributes.lua +46 -0
- package/engine/internal/unit/bonus.d.ts +14 -0
- package/engine/internal/unit/bonus.lua +102 -8
- package/engine/internal/unit/buff.d.ts +2 -2
- package/engine/internal/unit/buff.lua +34 -19
- package/engine/internal/unit/equipment-inventory.d.ts +44 -0
- package/engine/internal/unit/equipment-inventory.lua +233 -0
- package/engine/internal/unit/expiration-timer.lua +1 -1
- package/engine/internal/unit/extended-inventory.d.ts +25 -0
- package/engine/internal/unit/extended-inventory.lua +99 -0
- package/engine/internal/unit/fly-height.d.ts +7 -0
- package/engine/internal/unit/fly-height.lua +20 -0
- package/engine/internal/unit/ignore-events-items.lua +10 -1
- package/engine/internal/unit/interrupts.d.ts +12 -0
- package/engine/internal/unit/interrupts.lua +28 -0
- package/engine/internal/unit/{item.d.ts → inventory.d.ts} +7 -3
- package/engine/internal/unit/inventory.lua +87 -0
- package/engine/internal/unit/item-container.d.ts +25 -0
- package/engine/internal/unit/item-container.lua +11 -0
- package/engine/internal/unit/item-order-events.d.ts +17 -0
- package/engine/internal/unit/item-order-events.lua +67 -0
- package/engine/internal/unit/item-slot.d.ts +27 -0
- package/engine/internal/unit/item-slot.lua +92 -0
- package/engine/internal/unit/main-selected.lua +12 -27
- package/engine/internal/unit/order.d.ts +20 -0
- package/engine/internal/unit/order.lua +136 -0
- package/engine/internal/unit/pseudo-passive-abilities.d.ts +2 -0
- package/engine/internal/unit/pseudo-passive-abilities.lua +11 -0
- package/engine/internal/unit/range-event.d.ts +12 -0
- package/engine/internal/unit/range-event.lua +90 -0
- package/engine/internal/unit/scale.d.ts +7 -0
- package/engine/internal/unit/scale.lua +20 -0
- package/engine/internal/unit+ability.d.ts +2 -1
- package/engine/internal/unit+ability.lua +73 -3
- package/engine/internal/unit+bonus.lua +3 -3
- package/engine/internal/unit+damage.d.ts +11 -11
- package/engine/internal/unit+damage.lua +43 -14
- package/engine/internal/unit+rally.lua +9 -31
- package/engine/internal/unit+spellSteal.lua +1 -2
- package/engine/internal/unit-missile-data.lua +58 -32
- package/engine/internal/unit-missile-launch.lua +65 -27
- package/engine/internal/unit.d.ts +43 -33
- package/engine/internal/unit.lua +391 -323
- package/engine/local-client.d.ts +28 -0
- package/engine/local-client.lua +324 -54
- package/engine/object-data/auxiliary/armor-type.d.ts +11 -0
- package/engine/object-data/auxiliary/armor-type.lua +46 -0
- package/engine/object-data/auxiliary/attachment-preset.d.ts +7 -2
- package/engine/object-data/auxiliary/attachment-preset.lua +4 -3
- package/engine/object-data/auxiliary/attack-type.d.ts +7 -8
- package/engine/object-data/auxiliary/attack-type.lua +42 -0
- package/engine/object-data/auxiliary/equipment-slot.d.ts +12 -0
- package/engine/object-data/auxiliary/equipment-slot.lua +2 -0
- package/engine/object-data/auxiliary/equipment-type.d.ts +12 -0
- package/engine/object-data/auxiliary/equipment-type.lua +26 -0
- package/engine/object-data/auxiliary/health-regeneration-type.d.ts +8 -0
- package/engine/object-data/auxiliary/health-regeneration-type.lua +2 -0
- package/engine/object-data/auxiliary/item-class.d.ts +11 -0
- package/engine/object-data/auxiliary/item-class.lua +2 -0
- package/engine/object-data/auxiliary/item-tag.d.ts +12 -0
- package/engine/object-data/auxiliary/item-tag.lua +2 -0
- package/engine/object-data/auxiliary/movement-type.d.ts +7 -7
- package/engine/object-data/auxiliary/movement-type.lua +22 -0
- package/engine/object-data/auxiliary/order-type.d.ts +939 -0
- package/engine/object-data/auxiliary/order-type.lua +2 -0
- package/engine/object-data/auxiliary/sound-eax.d.ts +10 -0
- package/engine/object-data/auxiliary/sound-eax.lua +2 -0
- package/engine/object-data/auxiliary/sound-set-name.d.ts +14 -3
- package/engine/object-data/auxiliary/unit-attribute.d.ts +6 -0
- package/engine/object-data/auxiliary/unit-attribute.lua +9 -0
- package/engine/object-data/entry/ability-type/apprehend.d.ts +22 -0
- package/engine/object-data/entry/ability-type/apprehend.lua +66 -0
- package/engine/object-data/entry/ability-type/armor-bonus.d.ts +8 -0
- package/engine/object-data/entry/ability-type/{armor-increase.lua → armor-bonus.lua} +9 -9
- package/engine/object-data/entry/ability-type/aura-of-blight.d.ts +13 -0
- package/engine/object-data/entry/ability-type/aura-of-blight.lua +39 -0
- package/engine/object-data/entry/ability-type/banshee.d.ts +8 -0
- package/engine/object-data/entry/ability-type/banshee.lua +13 -0
- package/engine/object-data/entry/ability-type/banshees-wail-damage-amp.d.ts +12 -0
- package/engine/object-data/entry/ability-type/banshees-wail-damage-amp.lua +27 -0
- package/engine/object-data/entry/ability-type/banshees-wail.d.ts +31 -0
- package/engine/object-data/entry/ability-type/banshees-wail.lua +117 -0
- package/engine/object-data/entry/ability-type/battering-ram.d.ts +33 -0
- package/engine/object-data/entry/ability-type/battering-ram.lua +130 -0
- package/engine/object-data/entry/ability-type/berserk.d.ts +2 -0
- package/engine/object-data/entry/ability-type/berserk.lua +13 -0
- package/engine/object-data/entry/ability-type/blank-configurable.d.ts +3 -0
- package/engine/object-data/entry/ability-type/blank-configurable.lua +30 -0
- package/engine/object-data/entry/ability-type/carrion-swarm.d.ts +14 -0
- package/engine/object-data/entry/ability-type/carrion-swarm.lua +65 -0
- package/engine/object-data/entry/ability-type/cleansing-fire.d.ts +27 -0
- package/engine/object-data/entry/ability-type/cleansing-fire.lua +104 -0
- package/engine/object-data/entry/ability-type/consecration.d.ts +15 -0
- package/engine/object-data/entry/ability-type/consecration.lua +52 -0
- package/engine/object-data/entry/ability-type/cooldown-reduction.d.ts +12 -0
- package/engine/object-data/entry/ability-type/cooldown-reduction.lua +39 -0
- package/engine/object-data/entry/ability-type/critical-strike-system.d.ts +18 -0
- package/engine/object-data/entry/ability-type/critical-strike-system.lua +65 -0
- package/engine/object-data/entry/ability-type/curse.lua +2 -2
- package/engine/object-data/entry/ability-type/deathseeker-arrows.d.ts +21 -0
- package/engine/object-data/entry/ability-type/deathseeker-arrows.lua +78 -0
- package/engine/object-data/entry/ability-type/ensnare.d.ts +12 -0
- package/engine/object-data/entry/ability-type/ensnare.lua +52 -0
- package/engine/object-data/entry/ability-type/equipment-inventory-interface.d.ts +8 -0
- package/engine/object-data/entry/ability-type/equipment-inventory-interface.lua +13 -0
- package/engine/object-data/entry/ability-type/equipment-inventory.d.ts +13 -0
- package/engine/object-data/entry/ability-type/equipment-inventory.lua +27 -0
- package/engine/object-data/entry/ability-type/equipment.d.ts +13 -0
- package/engine/object-data/entry/ability-type/equipment.lua +27 -0
- package/engine/object-data/entry/ability-type/grant-talent-point.d.ts +8 -0
- package/engine/object-data/entry/ability-type/grant-talent-point.lua +13 -0
- package/engine/object-data/entry/ability-type/grim-conviction.d.ts +36 -0
- package/engine/object-data/entry/ability-type/grim-conviction.lua +131 -0
- package/engine/object-data/entry/ability-type/grit.d.ts +18 -0
- package/engine/object-data/entry/ability-type/grit.lua +65 -0
- package/engine/object-data/entry/ability-type/guiding-hand.d.ts +27 -0
- package/engine/object-data/entry/ability-type/guiding-hand.lua +104 -0
- package/engine/object-data/entry/ability-type/headsplitter.d.ts +27 -0
- package/engine/object-data/entry/ability-type/headsplitter.lua +104 -0
- package/engine/object-data/entry/ability-type/{armor-increase.d.ts → healing-modifier.d.ts} +4 -3
- package/engine/object-data/entry/ability-type/healing-modifier.lua +26 -0
- package/engine/object-data/entry/ability-type/healing-ward-aura.d.ts +13 -0
- package/engine/object-data/entry/ability-type/healing-ward-aura.lua +39 -0
- package/engine/object-data/entry/ability-type/health-bonus.d.ts +8 -0
- package/engine/object-data/entry/ability-type/health-bonus.lua +26 -0
- package/engine/object-data/entry/ability-type/heroic-slash.d.ts +18 -0
- package/engine/object-data/entry/ability-type/heroic-slash.lua +65 -0
- package/engine/object-data/entry/ability-type/holy-wrath.d.ts +30 -0
- package/engine/object-data/entry/ability-type/holy-wrath.lua +117 -0
- package/engine/object-data/entry/ability-type/inspire-courage.d.ts +18 -0
- package/engine/object-data/entry/ability-type/inspire-courage.lua +65 -0
- package/engine/object-data/entry/ability-type/item-life-regeneration.d.ts +10 -0
- package/engine/object-data/entry/ability-type/item-life-regeneration.lua +26 -0
- package/engine/object-data/entry/ability-type/lights-mercy.d.ts +27 -0
- package/engine/object-data/entry/ability-type/lights-mercy.lua +104 -0
- package/engine/object-data/entry/ability-type/mana-bonus.d.ts +8 -0
- package/engine/object-data/entry/ability-type/mana-bonus.lua +26 -0
- package/engine/object-data/entry/ability-type/mana-efficiency.d.ts +12 -0
- package/engine/object-data/entry/ability-type/mana-efficiency.lua +39 -0
- package/engine/object-data/entry/ability-type/mana-regeneration.d.ts +8 -0
- package/engine/object-data/entry/ability-type/mana-regeneration.lua +26 -0
- package/engine/object-data/entry/ability-type/mind-control.d.ts +21 -0
- package/engine/object-data/entry/ability-type/mind-control.lua +78 -0
- package/engine/object-data/entry/ability-type/on-attack-cast-spell.d.ts +21 -0
- package/engine/object-data/entry/ability-type/on-attack-cast-spell.lua +52 -0
- package/engine/object-data/entry/ability-type/on-basic-attack-cast-spell.d.ts +19 -0
- package/engine/object-data/entry/ability-type/on-basic-attack-cast-spell.lua +65 -0
- package/engine/object-data/entry/ability-type/on-hit-cast-spell.d.ts +15 -0
- package/engine/object-data/entry/ability-type/on-hit-cast-spell.lua +26 -0
- package/engine/object-data/entry/ability-type/on-magic-attack-cast-spell.d.ts +6 -0
- package/engine/object-data/entry/ability-type/on-magic-attack-cast-spell.lua +12 -0
- package/engine/object-data/entry/ability-type/permanent-invisibility.d.ts +8 -0
- package/engine/object-data/entry/ability-type/permanent-invisibility.lua +26 -0
- package/engine/object-data/entry/ability-type/phase-shift.d.ts +10 -0
- package/engine/object-data/entry/ability-type/phase-shift.lua +39 -0
- package/engine/object-data/entry/ability-type/provoke.d.ts +21 -0
- package/engine/object-data/entry/ability-type/provoke.lua +66 -0
- package/engine/object-data/entry/ability-type/raise-dead.d.ts +17 -0
- package/engine/object-data/entry/ability-type/raise-dead.lua +78 -0
- package/engine/object-data/entry/ability-type/raise-the-banner.d.ts +9 -0
- package/engine/object-data/entry/ability-type/raise-the-banner.lua +26 -0
- package/engine/object-data/entry/ability-type/reincarnation.d.ts +8 -0
- package/engine/object-data/entry/ability-type/reincarnation.lua +26 -0
- package/engine/object-data/entry/ability-type/resolve.d.ts +12 -0
- package/engine/object-data/entry/ability-type/resolve.lua +39 -0
- package/engine/object-data/entry/ability-type/righteous-fury.d.ts +33 -0
- package/engine/object-data/entry/ability-type/righteous-fury.lua +130 -0
- package/engine/object-data/entry/ability-type/sacred-aura.d.ts +27 -0
- package/engine/object-data/entry/ability-type/sacred-aura.lua +104 -0
- package/engine/object-data/entry/ability-type/shock-wave.d.ts +4 -0
- package/engine/object-data/entry/ability-type/shock-wave.lua +26 -0
- package/engine/object-data/entry/ability-type/slow-poison.d.ts +10 -0
- package/engine/object-data/entry/ability-type/slow-poison.lua +58 -0
- package/engine/object-data/entry/ability-type/soul-lantern.d.ts +30 -0
- package/engine/object-data/entry/ability-type/soul-lantern.lua +117 -0
- package/engine/object-data/entry/ability-type/spell-amp.d.ts +15 -0
- package/engine/object-data/entry/ability-type/spell-amp.lua +52 -0
- package/engine/object-data/entry/ability-type/spell-critical-strike.d.ts +12 -0
- package/engine/object-data/entry/ability-type/spell-critical-strike.lua +39 -0
- package/engine/object-data/entry/ability-type/spell-vamp.d.ts +12 -0
- package/engine/object-data/entry/ability-type/spell-vamp.lua +39 -0
- package/engine/object-data/entry/ability-type/stackable-evasion.d.ts +9 -0
- package/engine/object-data/entry/ability-type/stackable-evasion.lua +13 -0
- package/engine/object-data/entry/ability-type/stackable-hardened-skin.d.ts +21 -0
- package/engine/object-data/entry/ability-type/stackable-hardened-skin.lua +78 -0
- package/engine/object-data/entry/ability-type/stackable-life-steal.d.ts +9 -0
- package/engine/object-data/entry/ability-type/stackable-life-steal.lua +26 -0
- package/engine/object-data/entry/ability-type/stackable-spell-damage-reduction.d.ts +9 -0
- package/engine/object-data/entry/ability-type/stackable-spell-damage-reduction.lua +13 -0
- package/engine/object-data/entry/ability-type/stackable-thorn-shield.d.ts +9 -0
- package/engine/object-data/entry/ability-type/stackable-thorn-shield.lua +13 -0
- package/engine/object-data/entry/ability-type/stat-details.d.ts +12 -0
- package/engine/object-data/entry/ability-type/stat-details.lua +27 -0
- package/engine/object-data/entry/ability-type/surge-of-light.d.ts +33 -0
- package/engine/object-data/entry/ability-type/surge-of-light.lua +130 -0
- package/engine/object-data/entry/ability-type/sweeping-strike.d.ts +57 -0
- package/engine/object-data/entry/ability-type/sweeping-strike.lua +234 -0
- package/engine/object-data/entry/ability-type/talents.d.ts +12 -0
- package/engine/object-data/entry/ability-type/talents.lua +27 -0
- package/engine/object-data/entry/ability-type/unyielding-guard.d.ts +30 -0
- package/engine/object-data/entry/ability-type/unyielding-guard.lua +117 -0
- package/engine/object-data/entry/ability-type/valiant-charge.d.ts +27 -0
- package/engine/object-data/entry/ability-type/valiant-charge.lua +104 -0
- package/engine/object-data/entry/ability-type/warcry.d.ts +9 -0
- package/engine/object-data/entry/ability-type/warcry.lua +26 -0
- package/engine/object-data/entry/ability-type/web.d.ts +12 -0
- package/engine/object-data/entry/ability-type/web.lua +52 -0
- package/engine/object-data/entry/ability-type/withering-fire.d.ts +21 -0
- package/engine/object-data/entry/ability-type/withering-fire.lua +78 -0
- package/engine/object-data/entry/ability-type.d.ts +29 -14
- package/engine/object-data/entry/ability-type.lua +256 -17
- package/engine/object-data/entry/buff-type/applicable.lua +113 -104
- package/engine/object-data/entry/buff-type.d.ts +10 -12
- package/engine/object-data/entry/buff-type.lua +37 -27
- package/engine/object-data/entry/destructible-type.d.ts +32 -2
- package/engine/object-data/entry/destructible-type.lua +181 -0
- package/engine/object-data/entry/item-type.d.ts +18 -3
- package/engine/object-data/entry/item-type.lua +84 -0
- package/engine/object-data/entry/lightning-type.d.ts +6 -8
- package/engine/object-data/entry/lightning-type.lua +1 -1
- package/engine/object-data/entry/sound-preset.d.ts +19 -2
- package/engine/object-data/entry/sound-preset.lua +104 -0
- package/engine/object-data/entry/unit-type.d.ts +64 -6
- package/engine/object-data/entry/unit-type.lua +531 -85
- package/engine/object-data/entry/upgrade.d.ts +2 -2
- package/engine/object-data/entry.d.ts +6 -1
- package/engine/object-data/entry.lua +8 -0
- package/engine/object-field/ability.d.ts +4 -4
- package/engine/object-field/ability.lua +9 -8
- package/engine/object-field/item.d.ts +22 -0
- package/engine/object-field/item.lua +118 -0
- package/engine/object-field/unit.d.ts +72 -3
- package/engine/object-field/unit.lua +268 -7
- package/engine/object-field.d.ts +26 -7
- package/engine/object-field.lua +360 -119
- package/engine/random.d.ts +10 -0
- package/engine/random.lua +21 -0
- package/engine/standard/entries/ability-type.d.ts +3102 -7
- package/engine/standard/entries/ability-type.lua +0 -6
- package/engine/standard/entries/buff-type.d.ts +3 -0
- package/engine/standard/entries/buff-type.lua +3 -0
- package/engine/standard/entries/item-type.d.ts +1299 -0
- package/engine/standard/entries/item-type.lua +2 -0
- package/engine/standard/entries/lightning-type.d.ts +42 -15
- package/engine/standard/entries/lightning-type.lua +0 -14
- package/engine/standard/entries/unit-type.d.ts +5 -0
- package/engine/standard/entries/unit-type.lua +5 -0
- package/engine/standard/fields/ability.d.ts +2 -2
- package/engine/standard/fields/ability.lua +2 -2
- package/engine/standard/fields/item.d.ts +4 -0
- package/engine/standard/fields/item.lua +6 -0
- package/engine/standard/fields/unit.d.ts +12 -0
- package/engine/standard/fields/unit.lua +20 -0
- package/engine/synchronization.d.ts +11 -0
- package/engine/synchronization.lua +77 -0
- package/engine/text-tag.d.ts +36 -2
- package/engine/text-tag.lua +250 -10
- package/engine/unit.d.ts +11 -1
- package/engine/unit.lua +11 -1
- package/event.d.ts +1 -1
- package/lualib_bundle.lua +1 -1
- package/math.d.ts +2 -0
- package/math.lua +14 -0
- package/net/socket.lua +1 -1
- package/network.lua +25 -1
- package/objutil/buff.lua +12 -11
- package/objutil/object.lua +1 -1
- package/operation.d.ts +8 -1
- package/operation.lua +38 -18
- package/package.json +3 -23
- package/patch-lua.lua +15 -0
- package/patch-lualib.lua +1 -1
- package/utility/arrays.d.ts +2 -0
- package/utility/arrays.lua +11 -0
- package/utility/callback-array.d.ts +17 -0
- package/utility/callback-array.lua +61 -0
- package/utility/functions.d.ts +8 -0
- package/utility/functions.lua +13 -0
- package/utility/linked-map.d.ts +35 -0
- package/utility/linked-map.lua +107 -0
- package/utility/linked-set.d.ts +5 -1
- package/utility/linked-set.lua +49 -1
- package/utility/lua-maps.d.ts +15 -2
- package/utility/lua-maps.lua +53 -2
- package/utility/lua-sets.d.ts +2 -0
- package/utility/lua-sets.lua +7 -0
- package/utility/random.d.ts +102 -0
- package/utility/random.lua +273 -0
- package/utility/records.lua +20 -1
- package/utility/types.d.ts +3 -0
- package/utility/unordered-map.d.ts +27 -0
- package/utility/unordered-map.lua +99 -0
- package/core/types/order.d.ts +0 -25
- package/core/types/order.lua +0 -55
- package/engine/internal/unit/item.lua +0 -78
- /package/engine/internal/{object-data/armor-increase.d.ts → misc/damage-metadata-by-target.d.ts} +0 -0
- /package/engine/internal/object-data/{armor-increase.lua → armor-bonus.lua} +0 -0
- /package/engine/object-data/entry/ability-type/{attribute-increase.d.ts → attribute-bonus.d.ts} +0 -0
- /package/engine/object-data/entry/ability-type/{attribute-increase.lua → attribute-bonus.lua} +0 -0
|
@@ -3,12 +3,16 @@ import { TupleOf } from "../../../utility/types";
|
|
|
3
3
|
import { AttachmentPreset, AttachmentPresetInput } from "../auxiliary/attachment-preset";
|
|
4
4
|
import { Race } from "../auxiliary/race";
|
|
5
5
|
import { SoundPresetName } from "../auxiliary/sound-preset-name";
|
|
6
|
-
import { ObjectDataEntry,
|
|
6
|
+
import { ObjectDataEntry, ObjectDataEntryConstructor, CustomObjectDataEntryId } from "../entry";
|
|
7
7
|
import { LightningTypeId } from "./lightning-type";
|
|
8
|
-
export type BuffTypeId =
|
|
8
|
+
export type BuffTypeId = CustomObjectDataEntryId & number & {
|
|
9
9
|
readonly __buffTypeId: unique symbol;
|
|
10
10
|
};
|
|
11
|
+
export type StandardBuffTypeId = BuffTypeId & {
|
|
12
|
+
readonly __standardBuffTypeId: unique symbol;
|
|
13
|
+
};
|
|
11
14
|
export declare abstract class BuffType<Id extends BuffTypeId = BuffTypeId> extends ObjectDataEntry<Id> {
|
|
15
|
+
static readonly [id: StandardBuffTypeId]: ObjectDataEntryConstructor<BuffType>;
|
|
12
16
|
private static readonly idGenerator;
|
|
13
17
|
protected static generateId(): number;
|
|
14
18
|
protected static getObjectData(map: WarMap): WarObjects;
|
|
@@ -20,6 +24,8 @@ export declare abstract class BuffType<Id extends BuffTypeId = BuffTypeId> exten
|
|
|
20
24
|
set iconPathSD(iconPathSD: string);
|
|
21
25
|
get iconPathHD(): string;
|
|
22
26
|
set iconPathHD(iconPathHD: string);
|
|
27
|
+
get iconPathDE(): string;
|
|
28
|
+
set iconPathDE(iconPathDE: string);
|
|
23
29
|
get isMissileHoming(): boolean;
|
|
24
30
|
set isMissileHoming(isMissileHoming: boolean);
|
|
25
31
|
get lightningTypeIds(): LightningTypeId[];
|
|
@@ -30,6 +36,8 @@ export declare abstract class BuffType<Id extends BuffTypeId = BuffTypeId> exten
|
|
|
30
36
|
set missileModelPathSD(missileModelPathSD: string);
|
|
31
37
|
get missileModelPathHD(): string;
|
|
32
38
|
set missileModelPathHD(missileModelPathHD: string);
|
|
39
|
+
get missileModelPathDE(): string;
|
|
40
|
+
set missileModelPathDE(missileModelPathDE: string);
|
|
33
41
|
get missileMovementArc(): number;
|
|
34
42
|
set missileMovementArc(missileMovementArc: number);
|
|
35
43
|
get missileMovementSpeed(): number;
|
|
@@ -51,13 +59,3 @@ export declare abstract class BuffType<Id extends BuffTypeId = BuffTypeId> exten
|
|
|
51
59
|
get tooltipExtendedText(): string;
|
|
52
60
|
set tooltipExtendedText(tooltipText: string);
|
|
53
61
|
}
|
|
54
|
-
declare const AvatarBuffType_base: typeof BuffType;
|
|
55
|
-
export declare class AvatarBuffType extends AvatarBuffType_base {
|
|
56
|
-
}
|
|
57
|
-
declare const DevotionAuraBuffType_base: typeof BuffType;
|
|
58
|
-
export declare class DevotionAuraBuffType extends DevotionAuraBuffType_base {
|
|
59
|
-
}
|
|
60
|
-
declare const DivineShieldBuffType_base: typeof BuffType;
|
|
61
|
-
export declare class DivineShieldBuffType extends DivineShieldBuffType_base {
|
|
62
|
-
}
|
|
63
|
-
export {};
|
|
@@ -6,6 +6,8 @@ local __TS__SetDescriptor = ____lualib.__TS__SetDescriptor
|
|
|
6
6
|
local ____exports = {}
|
|
7
7
|
local ____arrays = require("utility.arrays")
|
|
8
8
|
local array = ____arrays.array
|
|
9
|
+
local ____reflection = require("utility.reflection")
|
|
10
|
+
local implementReadonlyNumberIndexSupplier = ____reflection.implementReadonlyNumberIndexSupplier
|
|
9
11
|
local ____entry = require("engine.object-data.entry")
|
|
10
12
|
local ObjectDataEntry = ____entry.ObjectDataEntry
|
|
11
13
|
local ____object_2Ddata_2Dentry_2Did_2Dgenerator = require("engine.object-data.utility.object-data-entry-id-generator")
|
|
@@ -76,6 +78,19 @@ __TS__SetDescriptor(
|
|
|
76
78
|
},
|
|
77
79
|
true
|
|
78
80
|
)
|
|
81
|
+
__TS__SetDescriptor(
|
|
82
|
+
BuffType.prototype,
|
|
83
|
+
"iconPathDE",
|
|
84
|
+
{
|
|
85
|
+
get = function(self)
|
|
86
|
+
return self:getStringField("fart:de")
|
|
87
|
+
end,
|
|
88
|
+
set = function(self, iconPathDE)
|
|
89
|
+
self:setStringField("fart:de", iconPathDE)
|
|
90
|
+
end
|
|
91
|
+
},
|
|
92
|
+
true
|
|
93
|
+
)
|
|
79
94
|
__TS__SetDescriptor(
|
|
80
95
|
BuffType.prototype,
|
|
81
96
|
"isMissileHoming",
|
|
@@ -141,6 +156,19 @@ __TS__SetDescriptor(
|
|
|
141
156
|
},
|
|
142
157
|
true
|
|
143
158
|
)
|
|
159
|
+
__TS__SetDescriptor(
|
|
160
|
+
BuffType.prototype,
|
|
161
|
+
"missileModelPathDE",
|
|
162
|
+
{
|
|
163
|
+
get = function(self)
|
|
164
|
+
return self:getStringField("fmat:de")
|
|
165
|
+
end,
|
|
166
|
+
set = function(self, missileModelPathDE)
|
|
167
|
+
self:setStringField("fmat:de", missileModelPathDE)
|
|
168
|
+
end
|
|
169
|
+
},
|
|
170
|
+
true
|
|
171
|
+
)
|
|
144
172
|
__TS__SetDescriptor(
|
|
145
173
|
BuffType.prototype,
|
|
146
174
|
"missileMovementArc",
|
|
@@ -285,32 +313,14 @@ __TS__SetDescriptor(
|
|
|
285
313
|
},
|
|
286
314
|
true
|
|
287
315
|
)
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
AvatarBuffType.name = "AvatarBuffType"
|
|
298
|
-
__TS__ClassExtends(
|
|
299
|
-
AvatarBuffType,
|
|
300
|
-
makeBaseBuffType(fourCC("BHav"))
|
|
301
|
-
)
|
|
302
|
-
____exports.DevotionAuraBuffType = __TS__Class()
|
|
303
|
-
local DevotionAuraBuffType = ____exports.DevotionAuraBuffType
|
|
304
|
-
DevotionAuraBuffType.name = "DevotionAuraBuffType"
|
|
305
|
-
__TS__ClassExtends(
|
|
306
|
-
DevotionAuraBuffType,
|
|
307
|
-
makeBaseBuffType(fourCC("BHad"))
|
|
308
|
-
)
|
|
309
|
-
____exports.DivineShieldBuffType = __TS__Class()
|
|
310
|
-
local DivineShieldBuffType = ____exports.DivineShieldBuffType
|
|
311
|
-
DivineShieldBuffType.name = "DivineShieldBuffType"
|
|
312
|
-
__TS__ClassExtends(
|
|
313
|
-
DivineShieldBuffType,
|
|
314
|
-
makeBaseBuffType(fourCC("BHds"))
|
|
316
|
+
implementReadonlyNumberIndexSupplier(
|
|
317
|
+
____exports.BuffType,
|
|
318
|
+
function(id)
|
|
319
|
+
local ____class_0 = __TS__Class()
|
|
320
|
+
____class_0.name = ____class_0.name
|
|
321
|
+
__TS__ClassExtends(____class_0, ____exports.BuffType)
|
|
322
|
+
____class_0.BASE_ID = id
|
|
323
|
+
return ____class_0
|
|
324
|
+
end
|
|
315
325
|
)
|
|
316
326
|
return ____exports
|
|
@@ -1,20 +1,50 @@
|
|
|
1
1
|
/** @noSelfInFile */
|
|
2
2
|
import { ArmorSoundType } from "../auxiliary/armor-sound-type";
|
|
3
3
|
import { CombatClassifications } from "../auxiliary/combat-classification";
|
|
4
|
-
import { ObjectDataEntry,
|
|
5
|
-
export type DestructibleTypeId =
|
|
4
|
+
import { ObjectDataEntry, ObjectDataEntryConstructor, CustomObjectDataEntryId } from "../entry";
|
|
5
|
+
export type DestructibleTypeId = CustomObjectDataEntryId & number & {
|
|
6
6
|
readonly __destructibleTypeId: unique symbol;
|
|
7
7
|
};
|
|
8
|
+
export type StandardDestructibleTypeId = DestructibleTypeId & {
|
|
9
|
+
readonly __standardDestructibleTypeId: unique symbol;
|
|
10
|
+
};
|
|
8
11
|
export declare abstract class DestructibleType extends ObjectDataEntry<DestructibleTypeId> {
|
|
12
|
+
static readonly [id: StandardDestructibleTypeId]: ObjectDataEntryConstructor<DestructibleType>;
|
|
9
13
|
private static readonly idGenerator;
|
|
10
14
|
protected static generateId(): number;
|
|
11
15
|
protected static getObjectData(map: WarMap): WarObjects;
|
|
16
|
+
get fixedFacing(): number;
|
|
17
|
+
set fixedFacing(fixedFacing: number);
|
|
18
|
+
get flyOverHeight(): number;
|
|
19
|
+
set flyOverHeight(flyOverHeight: number);
|
|
20
|
+
get modelPath(): string;
|
|
21
|
+
set modelPath(modelPath: string);
|
|
22
|
+
get modelPathSD(): string;
|
|
23
|
+
set modelPathSD(modelPathSD: string);
|
|
24
|
+
get modelPathHD(): string;
|
|
25
|
+
set modelPathHD(modelPathHD: string);
|
|
26
|
+
get modelPathDE(): string;
|
|
27
|
+
set modelPathDE(modelPathDE: string);
|
|
28
|
+
get occlusionHeight(): number;
|
|
29
|
+
set occlusionHeight(occlusionHeight: number);
|
|
12
30
|
get armorSoundType(): ArmorSoundType;
|
|
13
31
|
set armorSoundType(armorSoundType: ArmorSoundType);
|
|
14
32
|
get armorSoundTypeSD(): ArmorSoundType;
|
|
15
33
|
set armorSoundTypeSD(armorSoundTypeSD: ArmorSoundType);
|
|
16
34
|
get armorSoundTypeHD(): ArmorSoundType;
|
|
17
35
|
set armorSoundTypeHD(armorSoundTypeHD: ArmorSoundType);
|
|
36
|
+
get armorSoundTypeDE(): ArmorSoundType;
|
|
37
|
+
set armorSoundTypeDE(armorSoundTypeDE: ArmorSoundType);
|
|
18
38
|
get combatClassifications(): CombatClassifications;
|
|
19
39
|
set combatClassifications(combatClassifications: CombatClassifications);
|
|
40
|
+
get cliffHeight(): number;
|
|
41
|
+
set cliffHeight(cliffHeight: number);
|
|
42
|
+
get isWalkable(): boolean;
|
|
43
|
+
set isWalkable(isWalkable: boolean);
|
|
44
|
+
get pathingTexturePath(): string;
|
|
45
|
+
set pathingTexturePath(pathingTexturePath: string);
|
|
46
|
+
get deadPathingTexturePath(): string;
|
|
47
|
+
set deadPathingTexturePath(deadPathingTexturePath: string);
|
|
48
|
+
get name(): string;
|
|
49
|
+
set name(name: string);
|
|
20
50
|
}
|
|
@@ -11,6 +11,8 @@ local ____entry = require("engine.object-data.entry")
|
|
|
11
11
|
local ObjectDataEntry = ____entry.ObjectDataEntry
|
|
12
12
|
local ____object_2Ddata_2Dentry_2Did_2Dgenerator = require("engine.object-data.utility.object-data-entry-id-generator")
|
|
13
13
|
local ObjectDataEntryIdGenerator = ____object_2Ddata_2Dentry_2Did_2Dgenerator.ObjectDataEntryIdGenerator
|
|
14
|
+
local ____reflection = require("utility.reflection")
|
|
15
|
+
local implementReadonlyNumberIndexSupplier = ____reflection.implementReadonlyNumberIndexSupplier
|
|
14
16
|
____exports.DestructibleType = __TS__Class()
|
|
15
17
|
local DestructibleType = ____exports.DestructibleType
|
|
16
18
|
DestructibleType.name = "DestructibleType"
|
|
@@ -25,6 +27,97 @@ DestructibleType.idGenerator = __TS__New(
|
|
|
25
27
|
ObjectDataEntryIdGenerator,
|
|
26
28
|
fourCC("D000")
|
|
27
29
|
)
|
|
30
|
+
__TS__SetDescriptor(
|
|
31
|
+
DestructibleType.prototype,
|
|
32
|
+
"fixedFacing",
|
|
33
|
+
{
|
|
34
|
+
get = function(self)
|
|
35
|
+
return self:getNumberField("bfxr")
|
|
36
|
+
end,
|
|
37
|
+
set = function(self, fixedFacing)
|
|
38
|
+
self:setNumberField("bfxr", fixedFacing)
|
|
39
|
+
end
|
|
40
|
+
},
|
|
41
|
+
true
|
|
42
|
+
)
|
|
43
|
+
__TS__SetDescriptor(
|
|
44
|
+
DestructibleType.prototype,
|
|
45
|
+
"flyOverHeight",
|
|
46
|
+
{
|
|
47
|
+
get = function(self)
|
|
48
|
+
return self:getNumberField("bflh")
|
|
49
|
+
end,
|
|
50
|
+
set = function(self, flyOverHeight)
|
|
51
|
+
self:setNumberField("bflh", flyOverHeight)
|
|
52
|
+
end
|
|
53
|
+
},
|
|
54
|
+
true
|
|
55
|
+
)
|
|
56
|
+
__TS__SetDescriptor(
|
|
57
|
+
DestructibleType.prototype,
|
|
58
|
+
"modelPath",
|
|
59
|
+
{
|
|
60
|
+
get = function(self)
|
|
61
|
+
return self:getStringField("bfil")
|
|
62
|
+
end,
|
|
63
|
+
set = function(self, modelPath)
|
|
64
|
+
self:setStringField("bfil", modelPath)
|
|
65
|
+
end
|
|
66
|
+
},
|
|
67
|
+
true
|
|
68
|
+
)
|
|
69
|
+
__TS__SetDescriptor(
|
|
70
|
+
DestructibleType.prototype,
|
|
71
|
+
"modelPathSD",
|
|
72
|
+
{
|
|
73
|
+
get = function(self)
|
|
74
|
+
return self:getStringField("bfil:sd")
|
|
75
|
+
end,
|
|
76
|
+
set = function(self, modelPathSD)
|
|
77
|
+
self:setStringField("bfil:sd", modelPathSD)
|
|
78
|
+
end
|
|
79
|
+
},
|
|
80
|
+
true
|
|
81
|
+
)
|
|
82
|
+
__TS__SetDescriptor(
|
|
83
|
+
DestructibleType.prototype,
|
|
84
|
+
"modelPathHD",
|
|
85
|
+
{
|
|
86
|
+
get = function(self)
|
|
87
|
+
return self:getStringField("bfil:hd")
|
|
88
|
+
end,
|
|
89
|
+
set = function(self, modelPathHD)
|
|
90
|
+
self:setStringField("bfil:hd", modelPathHD)
|
|
91
|
+
end
|
|
92
|
+
},
|
|
93
|
+
true
|
|
94
|
+
)
|
|
95
|
+
__TS__SetDescriptor(
|
|
96
|
+
DestructibleType.prototype,
|
|
97
|
+
"modelPathDE",
|
|
98
|
+
{
|
|
99
|
+
get = function(self)
|
|
100
|
+
return self:getStringField("bfil:de")
|
|
101
|
+
end,
|
|
102
|
+
set = function(self, modelPathDE)
|
|
103
|
+
self:setStringField("bfil:de", modelPathDE)
|
|
104
|
+
end
|
|
105
|
+
},
|
|
106
|
+
true
|
|
107
|
+
)
|
|
108
|
+
__TS__SetDescriptor(
|
|
109
|
+
DestructibleType.prototype,
|
|
110
|
+
"occlusionHeight",
|
|
111
|
+
{
|
|
112
|
+
get = function(self)
|
|
113
|
+
return self:getNumberField("boch")
|
|
114
|
+
end,
|
|
115
|
+
set = function(self, occlusionHeight)
|
|
116
|
+
self:setNumberField("boch", occlusionHeight)
|
|
117
|
+
end
|
|
118
|
+
},
|
|
119
|
+
true
|
|
120
|
+
)
|
|
28
121
|
__TS__SetDescriptor(
|
|
29
122
|
DestructibleType.prototype,
|
|
30
123
|
"armorSoundType",
|
|
@@ -64,6 +157,19 @@ __TS__SetDescriptor(
|
|
|
64
157
|
},
|
|
65
158
|
true
|
|
66
159
|
)
|
|
160
|
+
__TS__SetDescriptor(
|
|
161
|
+
DestructibleType.prototype,
|
|
162
|
+
"armorSoundTypeDE",
|
|
163
|
+
{
|
|
164
|
+
get = function(self)
|
|
165
|
+
return self:getStringField("barm:de")
|
|
166
|
+
end,
|
|
167
|
+
set = function(self, armorSoundTypeDE)
|
|
168
|
+
self:setStringField("barm:de", armorSoundTypeDE)
|
|
169
|
+
end
|
|
170
|
+
},
|
|
171
|
+
true
|
|
172
|
+
)
|
|
67
173
|
__TS__SetDescriptor(
|
|
68
174
|
DestructibleType.prototype,
|
|
69
175
|
"combatClassifications",
|
|
@@ -80,4 +186,79 @@ __TS__SetDescriptor(
|
|
|
80
186
|
},
|
|
81
187
|
true
|
|
82
188
|
)
|
|
189
|
+
__TS__SetDescriptor(
|
|
190
|
+
DestructibleType.prototype,
|
|
191
|
+
"cliffHeight",
|
|
192
|
+
{
|
|
193
|
+
get = function(self)
|
|
194
|
+
return self:getNumberField("bclh")
|
|
195
|
+
end,
|
|
196
|
+
set = function(self, cliffHeight)
|
|
197
|
+
self:setNumberField("bclh", cliffHeight)
|
|
198
|
+
end
|
|
199
|
+
},
|
|
200
|
+
true
|
|
201
|
+
)
|
|
202
|
+
__TS__SetDescriptor(
|
|
203
|
+
DestructibleType.prototype,
|
|
204
|
+
"isWalkable",
|
|
205
|
+
{
|
|
206
|
+
get = function(self)
|
|
207
|
+
return self:getBooleanField("bwal")
|
|
208
|
+
end,
|
|
209
|
+
set = function(self, isWalkable)
|
|
210
|
+
self:setBooleanField("bwal", isWalkable)
|
|
211
|
+
end
|
|
212
|
+
},
|
|
213
|
+
true
|
|
214
|
+
)
|
|
215
|
+
__TS__SetDescriptor(
|
|
216
|
+
DestructibleType.prototype,
|
|
217
|
+
"pathingTexturePath",
|
|
218
|
+
{
|
|
219
|
+
get = function(self)
|
|
220
|
+
return self:getStringField("bptx")
|
|
221
|
+
end,
|
|
222
|
+
set = function(self, pathingTexturePath)
|
|
223
|
+
self:setStringField("bptx", pathingTexturePath)
|
|
224
|
+
end
|
|
225
|
+
},
|
|
226
|
+
true
|
|
227
|
+
)
|
|
228
|
+
__TS__SetDescriptor(
|
|
229
|
+
DestructibleType.prototype,
|
|
230
|
+
"deadPathingTexturePath",
|
|
231
|
+
{
|
|
232
|
+
get = function(self)
|
|
233
|
+
return self:getStringField("bptd")
|
|
234
|
+
end,
|
|
235
|
+
set = function(self, deadPathingTexturePath)
|
|
236
|
+
self:setStringField("bptd", deadPathingTexturePath)
|
|
237
|
+
end
|
|
238
|
+
},
|
|
239
|
+
true
|
|
240
|
+
)
|
|
241
|
+
__TS__SetDescriptor(
|
|
242
|
+
DestructibleType.prototype,
|
|
243
|
+
"name",
|
|
244
|
+
{
|
|
245
|
+
get = function(self)
|
|
246
|
+
return self:getStringField("bnam")
|
|
247
|
+
end,
|
|
248
|
+
set = function(self, name)
|
|
249
|
+
self:setStringField("bnam", name)
|
|
250
|
+
end
|
|
251
|
+
},
|
|
252
|
+
true
|
|
253
|
+
)
|
|
254
|
+
implementReadonlyNumberIndexSupplier(
|
|
255
|
+
____exports.DestructibleType,
|
|
256
|
+
function(id)
|
|
257
|
+
local ____class_0 = __TS__Class()
|
|
258
|
+
____class_0.name = ____class_0.name
|
|
259
|
+
__TS__ClassExtends(____class_0, ____exports.DestructibleType)
|
|
260
|
+
____class_0.BASE_ID = id
|
|
261
|
+
return ____class_0
|
|
262
|
+
end
|
|
263
|
+
)
|
|
83
264
|
return ____exports
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
/** @noSelfInFile */
|
|
2
2
|
import { ArmorSoundType } from "../auxiliary/armor-sound-type";
|
|
3
|
-
import {
|
|
3
|
+
import { EquipmentType } from "../auxiliary/equipment-type";
|
|
4
|
+
import { ItemClass } from "../auxiliary/item-class";
|
|
5
|
+
import { ObjectDataEntry, CustomObjectDataEntryId } from "../entry";
|
|
4
6
|
import type { AbilityTypeId } from "./ability-type";
|
|
5
|
-
|
|
7
|
+
import { StandardItemTypeId } from "../../standard/entries/item-type";
|
|
8
|
+
export type ItemTypeId = (CustomObjectDataEntryId & number & {
|
|
6
9
|
readonly __itemTypeId: unique symbol;
|
|
7
|
-
};
|
|
10
|
+
}) | StandardItemTypeId;
|
|
8
11
|
export declare class ItemType extends ObjectDataEntry<ItemTypeId> {
|
|
9
12
|
private static readonly idGenerator;
|
|
10
13
|
protected static generateId(): number;
|
|
@@ -17,24 +20,32 @@ export declare class ItemType extends ObjectDataEntry<ItemTypeId> {
|
|
|
17
20
|
set iconPathSD(iconPathSD: string);
|
|
18
21
|
get iconPathHD(): string;
|
|
19
22
|
set iconPathHD(iconPathHD: string);
|
|
23
|
+
get iconPathDE(): string;
|
|
24
|
+
set iconPathDE(iconPathDE: string);
|
|
20
25
|
get modelPath(): string;
|
|
21
26
|
set modelPath(modelPath: string);
|
|
22
27
|
get modelPathSD(): string;
|
|
23
28
|
set modelPathSD(modelPathSD: string);
|
|
24
29
|
get modelPathHD(): string;
|
|
25
30
|
set modelPathHD(modelPathHD: string);
|
|
31
|
+
get modelPathDE(): string;
|
|
32
|
+
set modelPathDE(modelPathDE: string);
|
|
26
33
|
get scale(): number;
|
|
27
34
|
set scale(scale: number);
|
|
28
35
|
get scaleSD(): number;
|
|
29
36
|
set scaleSD(scaleSD: number);
|
|
30
37
|
get scaleHD(): number;
|
|
31
38
|
set scaleHD(scaleHD: number);
|
|
39
|
+
get scaleDE(): number;
|
|
40
|
+
set scaleDE(scaleDE: number);
|
|
32
41
|
get armorSoundType(): ArmorSoundType;
|
|
33
42
|
set armorSoundType(armorSoundType: ArmorSoundType);
|
|
34
43
|
get armorSoundTypeSD(): ArmorSoundType;
|
|
35
44
|
set armorSoundTypeSD(armorSoundTypeSD: ArmorSoundType);
|
|
36
45
|
get armorSoundTypeHD(): ArmorSoundType;
|
|
37
46
|
set armorSoundTypeHD(armorSoundTypeHD: ArmorSoundType);
|
|
47
|
+
get armorSoundTypeDE(): ArmorSoundType;
|
|
48
|
+
set armorSoundTypeDE(armorSoundTypeDE: ArmorSoundType);
|
|
38
49
|
get description(): string;
|
|
39
50
|
set description(description: string);
|
|
40
51
|
get hotkey(): string;
|
|
@@ -51,6 +62,10 @@ export declare class ItemType extends ObjectDataEntry<ItemTypeId> {
|
|
|
51
62
|
set goldCost(goldCost: number);
|
|
52
63
|
get lumberCost(): number;
|
|
53
64
|
set lumberCost(lumberCost: number);
|
|
65
|
+
get itemClass(): ItemClass;
|
|
66
|
+
set itemClass(itemClass: ItemClass);
|
|
67
|
+
get equipmentType(): EquipmentType;
|
|
68
|
+
set equipmentType(equipmentType: EquipmentType);
|
|
54
69
|
get activelyUsed(): boolean;
|
|
55
70
|
set activelyUsed(activelyUsed: boolean);
|
|
56
71
|
get perishable(): boolean;
|
|
@@ -4,6 +4,9 @@ local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
|
4
4
|
local __TS__New = ____lualib.__TS__New
|
|
5
5
|
local __TS__SetDescriptor = ____lualib.__TS__SetDescriptor
|
|
6
6
|
local ____exports = {}
|
|
7
|
+
local ____equipment_2Dtype = require("engine.object-data.auxiliary.equipment-type")
|
|
8
|
+
local equipmentTypeToString = ____equipment_2Dtype.equipmentTypeToString
|
|
9
|
+
local stringToEquipmentType = ____equipment_2Dtype.stringToEquipmentType
|
|
7
10
|
local ____entry = require("engine.object-data.entry")
|
|
8
11
|
local ObjectDataEntry = ____entry.ObjectDataEntry
|
|
9
12
|
local ____object_2Ddata_2Dentry_2Did_2Dgenerator = require("engine.object-data.utility.object-data-entry-id-generator")
|
|
@@ -74,6 +77,19 @@ __TS__SetDescriptor(
|
|
|
74
77
|
},
|
|
75
78
|
true
|
|
76
79
|
)
|
|
80
|
+
__TS__SetDescriptor(
|
|
81
|
+
ItemType.prototype,
|
|
82
|
+
"iconPathDE",
|
|
83
|
+
{
|
|
84
|
+
get = function(self)
|
|
85
|
+
return self:getStringField("iico:de")
|
|
86
|
+
end,
|
|
87
|
+
set = function(self, iconPathDE)
|
|
88
|
+
self:setStringField("iico:de", iconPathDE)
|
|
89
|
+
end
|
|
90
|
+
},
|
|
91
|
+
true
|
|
92
|
+
)
|
|
77
93
|
__TS__SetDescriptor(
|
|
78
94
|
ItemType.prototype,
|
|
79
95
|
"modelPath",
|
|
@@ -113,6 +129,19 @@ __TS__SetDescriptor(
|
|
|
113
129
|
},
|
|
114
130
|
true
|
|
115
131
|
)
|
|
132
|
+
__TS__SetDescriptor(
|
|
133
|
+
ItemType.prototype,
|
|
134
|
+
"modelPathDE",
|
|
135
|
+
{
|
|
136
|
+
get = function(self)
|
|
137
|
+
return self:getStringField("ifil:de")
|
|
138
|
+
end,
|
|
139
|
+
set = function(self, modelPathDE)
|
|
140
|
+
self:setStringField("ifil:de", modelPathDE)
|
|
141
|
+
end
|
|
142
|
+
},
|
|
143
|
+
true
|
|
144
|
+
)
|
|
116
145
|
__TS__SetDescriptor(
|
|
117
146
|
ItemType.prototype,
|
|
118
147
|
"scale",
|
|
@@ -152,6 +181,19 @@ __TS__SetDescriptor(
|
|
|
152
181
|
},
|
|
153
182
|
true
|
|
154
183
|
)
|
|
184
|
+
__TS__SetDescriptor(
|
|
185
|
+
ItemType.prototype,
|
|
186
|
+
"scaleDE",
|
|
187
|
+
{
|
|
188
|
+
get = function(self)
|
|
189
|
+
return self:getNumberField("isca:de")
|
|
190
|
+
end,
|
|
191
|
+
set = function(self, scaleDE)
|
|
192
|
+
self:setNumberField("isca:de", scaleDE)
|
|
193
|
+
end
|
|
194
|
+
},
|
|
195
|
+
true
|
|
196
|
+
)
|
|
155
197
|
__TS__SetDescriptor(
|
|
156
198
|
ItemType.prototype,
|
|
157
199
|
"armorSoundType",
|
|
@@ -191,6 +233,19 @@ __TS__SetDescriptor(
|
|
|
191
233
|
},
|
|
192
234
|
true
|
|
193
235
|
)
|
|
236
|
+
__TS__SetDescriptor(
|
|
237
|
+
ItemType.prototype,
|
|
238
|
+
"armorSoundTypeDE",
|
|
239
|
+
{
|
|
240
|
+
get = function(self)
|
|
241
|
+
return self:getStringField("iarm:de")
|
|
242
|
+
end,
|
|
243
|
+
set = function(self, armorSoundTypeDE)
|
|
244
|
+
self:setStringField("iarm:de", armorSoundTypeDE)
|
|
245
|
+
end
|
|
246
|
+
},
|
|
247
|
+
true
|
|
248
|
+
)
|
|
194
249
|
__TS__SetDescriptor(
|
|
195
250
|
ItemType.prototype,
|
|
196
251
|
"description",
|
|
@@ -295,6 +350,35 @@ __TS__SetDescriptor(
|
|
|
295
350
|
},
|
|
296
351
|
true
|
|
297
352
|
)
|
|
353
|
+
__TS__SetDescriptor(
|
|
354
|
+
ItemType.prototype,
|
|
355
|
+
"itemClass",
|
|
356
|
+
{
|
|
357
|
+
get = function(self)
|
|
358
|
+
return self:getStringField("icla")
|
|
359
|
+
end,
|
|
360
|
+
set = function(self, itemClass)
|
|
361
|
+
self:setStringField("icla", itemClass)
|
|
362
|
+
end
|
|
363
|
+
},
|
|
364
|
+
true
|
|
365
|
+
)
|
|
366
|
+
__TS__SetDescriptor(
|
|
367
|
+
ItemType.prototype,
|
|
368
|
+
"equipmentType",
|
|
369
|
+
{
|
|
370
|
+
get = function(self)
|
|
371
|
+
return stringToEquipmentType(self:getStringField("iequ"))
|
|
372
|
+
end,
|
|
373
|
+
set = function(self, equipmentType)
|
|
374
|
+
self:setStringField(
|
|
375
|
+
"iequ",
|
|
376
|
+
equipmentTypeToString(equipmentType)
|
|
377
|
+
)
|
|
378
|
+
end
|
|
379
|
+
},
|
|
380
|
+
true
|
|
381
|
+
)
|
|
298
382
|
__TS__SetDescriptor(
|
|
299
383
|
ItemType.prototype,
|
|
300
384
|
"activelyUsed",
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
/** @noSelfInFile */
|
|
2
|
-
import { ObjectDataEntry, ObjectDataEntryConstructor,
|
|
2
|
+
import { ObjectDataEntry, ObjectDataEntryConstructor, CustomObjectDataEntryId } from "../entry";
|
|
3
3
|
import { Color } from "../../../core/types/color";
|
|
4
|
-
|
|
4
|
+
import { StandardLightningTypeId } from "../../standard/entries/lightning-type";
|
|
5
|
+
export type LightningTypeId = (CustomObjectDataEntryId & number & {
|
|
5
6
|
readonly __lightningTypeId: unique symbol;
|
|
6
|
-
};
|
|
7
|
-
export type StandardLightningTypeId = LightningTypeId & {
|
|
8
|
-
readonly __standardLightningTypeId: unique symbol;
|
|
9
|
-
};
|
|
7
|
+
}) | StandardLightningTypeId;
|
|
10
8
|
export declare class LightningType extends ObjectDataEntry<LightningTypeId> {
|
|
11
|
-
static readonly [id:
|
|
12
|
-
static readonly BASE_ID
|
|
9
|
+
static readonly [id: number]: ObjectDataEntryConstructor<LightningType>;
|
|
10
|
+
static readonly BASE_ID = StandardLightningTypeId.INIT;
|
|
13
11
|
private static readonly idGenerator;
|
|
14
12
|
protected static generateId(): number;
|
|
15
13
|
protected static getObjectData(map: WarMap): WarObjects;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/** @noSelfInFile */
|
|
2
|
-
import { ObjectDataEntry,
|
|
3
|
-
|
|
2
|
+
import { ObjectDataEntry, CustomObjectDataEntryId } from "../entry";
|
|
3
|
+
import { SoundEax } from "../auxiliary/sound-eax";
|
|
4
|
+
export type SoundPresetId = CustomObjectDataEntryId & string & {
|
|
4
5
|
readonly __soundPresetId: unique symbol;
|
|
5
6
|
};
|
|
6
7
|
export type StandardSoundPresetId = SoundPresetId & {
|
|
@@ -13,4 +14,20 @@ export declare class SoundPreset extends ObjectDataEntry<SoundPresetId> {
|
|
|
13
14
|
protected static getObjectData(map: WarMap): WarObjects;
|
|
14
15
|
get filePaths(): string[];
|
|
15
16
|
set filePaths(filePaths: string[]);
|
|
17
|
+
get volume(): number;
|
|
18
|
+
set volume(volume: number);
|
|
19
|
+
get pitch(): number;
|
|
20
|
+
set pitch(pitch: number);
|
|
21
|
+
get priority(): number;
|
|
22
|
+
set priority(priority: number);
|
|
23
|
+
get channel(): number;
|
|
24
|
+
set channel(channel: number);
|
|
25
|
+
get minimumDistance(): number;
|
|
26
|
+
set minimumDistance(minimumDistance: number);
|
|
27
|
+
get maximumDistance(): number;
|
|
28
|
+
set maximumDistance(maximumDistance: number);
|
|
29
|
+
get distanceCutoff(): number;
|
|
30
|
+
set distanceCutoff(distanceCutoff: number);
|
|
31
|
+
get eax(): SoundEax;
|
|
32
|
+
set eax(eax: SoundEax);
|
|
16
33
|
}
|