@airbreather/mod-nodejs-types 0.0.1
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/acore.d.ts +35 -0
- package/classes/ACMap.d.ts +29 -0
- package/classes/ACObject.d.ts +33 -0
- package/classes/Auction.d.ts +39 -0
- package/classes/AuctionHouse.d.ts +18 -0
- package/classes/Aura.d.ts +25 -0
- package/classes/AuraApplication.d.ts +21 -0
- package/classes/AuraEffect.d.ts +45 -0
- package/classes/Battleground.d.ts +16 -0
- package/classes/BattlegroundQueue.d.ts +12 -0
- package/classes/ByteBuffer.d.ts +34 -0
- package/classes/CastSpellBuilder.d.ts +41 -0
- package/classes/ChatCommandBuilder.d.ts +13 -0
- package/classes/ChatHandler.d.ts +23 -0
- package/classes/Condition.d.ts +29 -0
- package/classes/ConditionSourceInfo.d.ts +15 -0
- package/classes/Config.d.ts +22 -0
- package/classes/Corpse.d.ts +14 -0
- package/classes/Creature.d.ts +82 -0
- package/classes/CreatureTemplate.d.ts +73 -0
- package/classes/DynamicObject.d.ts +23 -0
- package/classes/Field.d.ts +23 -0
- package/classes/GameObject.d.ts +36 -0
- package/classes/GmTicket.d.ts +24 -0
- package/classes/Group.d.ts +28 -0
- package/classes/Guardian.d.ts +7 -0
- package/classes/Guild.d.ts +28 -0
- package/classes/GuildMember.d.ts +25 -0
- package/classes/Item.d.ts +41 -0
- package/classes/ItemTemplate.d.ts +123 -0
- package/classes/Loot.d.ts +29 -0
- package/classes/LootStore.d.ts +16 -0
- package/classes/LootTemplate.d.ts +8 -0
- package/classes/MailDraft.d.ts +15 -0
- package/classes/MailSender.d.ts +24 -0
- package/classes/Minion.d.ts +12 -0
- package/classes/Pet.d.ts +18 -0
- package/classes/Player.d.ts +156 -0
- package/classes/QueryResult.d.ts +14 -0
- package/classes/Quest.d.ts +21 -0
- package/classes/Roll.d.ts +14 -0
- package/classes/Spell.d.ts +18 -0
- package/classes/SpellChainNode.d.ts +7 -0
- package/classes/SpellEffectInfo.d.ts +50 -0
- package/classes/SpellImplicitTargetInfo.d.ts +15 -0
- package/classes/SpellInfo.d.ts +200 -0
- package/classes/TempSummon.d.ts +15 -0
- package/classes/ThreatReference.d.ts +24 -0
- package/classes/Transport.d.ts +13 -0
- package/classes/Unit.d.ts +173 -0
- package/classes/Vehicle.d.ts +15 -0
- package/classes/WorldObject.d.ts +51 -0
- package/classes/WorldPacket.d.ts +8 -0
- package/classes/index.d.ts +52 -0
- package/enums/AURA_FLAGS.d.ts +20 -0
- package/enums/AccountFlags.d.ts +39 -0
- package/enums/AccountTypes.d.ts +10 -0
- package/enums/AchievementFlags.d.ts +15 -0
- package/enums/AcoreStrings.d.ts +1507 -0
- package/enums/ArenaTeamInfoType.d.ts +14 -0
- package/enums/ArenaType.d.ts +9 -0
- package/enums/AuctionHouseId.d.ts +8 -0
- package/enums/AuraRemoveMode.d.ts +11 -0
- package/enums/AuraStateType.d.ts +33 -0
- package/enums/AuraType.d.ts +323 -0
- package/enums/BAG_FAMILY_MASK.d.ts +21 -0
- package/enums/BattlegroundDesertionType.d.ts +14 -0
- package/enums/BattlegroundQueueGroupTypes.d.ts +13 -0
- package/enums/BattlegroundTypeId.d.ts +20 -0
- package/enums/CharterTypes.d.ts +9 -0
- package/enums/ChatMsg.d.ts +58 -0
- package/enums/ClassContext.d.ts +24 -0
- package/enums/Classes.d.ts +18 -0
- package/enums/ConditionSourceType.d.ts +37 -0
- package/enums/ConditionTypes.d.ts +67 -0
- package/enums/CorpseType.d.ts +8 -0
- package/enums/CreatureChaseMovementType.d.ts +10 -0
- package/enums/CreatureClasses.d.ts +11 -0
- package/enums/CreatureEliteType.d.ts +11 -0
- package/enums/CreatureFamily.d.ts +47 -0
- package/enums/CreatureFlagsExtra.d.ts +40 -0
- package/enums/CreatureFlightMovementType.d.ts +10 -0
- package/enums/CreatureGroundMovementType.d.ts +10 -0
- package/enums/CreatureRandomMovementType.d.ts +10 -0
- package/enums/CreatureType.d.ts +35 -0
- package/enums/CreatureTypeFlags.d.ts +37 -0
- package/enums/CurrentSpellTypes.d.ts +9 -0
- package/enums/DamageEffectType.d.ts +11 -0
- package/enums/DatabaseFieldTypes.d.ts +15 -0
- package/enums/Db.d.ts +9 -0
- package/enums/DeathState.d.ts +10 -0
- package/enums/Difficulty.d.ts +15 -0
- package/enums/DispelType.d.ts +34 -0
- package/enums/DuelCompleteType.d.ts +8 -0
- package/enums/Emote.d.ts +181 -0
- package/enums/EnchantmentSlot.d.ts +21 -0
- package/enums/EvadeReason.d.ts +10 -0
- package/enums/Expansions.d.ts +9 -0
- package/enums/GMTicketEscalationStatus.d.ts +14 -0
- package/enums/GOState.d.ts +9 -0
- package/enums/Gender.d.ts +8 -0
- package/enums/GossipAction.d.ts +18 -0
- package/enums/GossipSender.d.ts +15 -0
- package/enums/GroupJoinBattlegroundResult.d.ts +22 -0
- package/enums/GroupMemberFlags.d.ts +8 -0
- package/enums/GroupType.d.ts +14 -0
- package/enums/GuildBankEventLogTypes.d.ts +14 -0
- package/enums/GuildDefaultRanks.d.ts +13 -0
- package/enums/GuildEventLogTypes.d.ts +11 -0
- package/enums/GuildMemberFlags.d.ts +10 -0
- package/enums/HighGuid.d.ts +18 -0
- package/enums/HolidayIds.d.ts +34 -0
- package/enums/InventoryResult.d.ts +94 -0
- package/enums/InventoryType.d.ts +66 -0
- package/enums/ItemBondingType.d.ts +11 -0
- package/enums/ItemClass.d.ts +22 -0
- package/enums/ItemFlags.d.ts +37 -0
- package/enums/ItemFlags2.d.ts +37 -0
- package/enums/ItemFlagsCustom.d.ts +8 -0
- package/enums/ItemModType.d.ts +49 -0
- package/enums/ItemQualities.d.ts +13 -0
- package/enums/ItemSpelltriggerType.d.ts +17 -0
- package/enums/ItemSubclass.d.ts +42 -0
- package/enums/ItemSubclassArmor.d.ts +30 -0
- package/enums/ItemSubclassConsumable.d.ts +26 -0
- package/enums/ItemSubclassContainer.d.ts +26 -0
- package/enums/ItemSubclassGem.d.ts +26 -0
- package/enums/ItemSubclassGeneric.d.ts +10 -0
- package/enums/ItemSubclassGlyph.d.ts +28 -0
- package/enums/ItemSubclassJunk.d.ts +20 -0
- package/enums/ItemSubclassKey.d.ts +12 -0
- package/enums/ItemSubclassMoney.d.ts +10 -0
- package/enums/ItemSubclassPermanent.d.ts +10 -0
- package/enums/ItemSubclassProjectile.d.ts +18 -0
- package/enums/ItemSubclassQuest.d.ts +10 -0
- package/enums/ItemSubclassQuiver.d.ts +16 -0
- package/enums/ItemSubclassReagent.d.ts +10 -0
- package/enums/ItemSubclassRecipe.d.ts +30 -0
- package/enums/ItemSubclassTradeGoods.d.ts +40 -0
- package/enums/ItemSubclassWeapon.d.ts +50 -0
- package/enums/Language.d.ts +24 -0
- package/enums/LfgRoles.d.ts +10 -0
- package/enums/LocaleConstant.d.ts +14 -0
- package/enums/LogLevel.d.ts +12 -0
- package/enums/LootModes.d.ts +12 -0
- package/enums/LootState.d.ts +13 -0
- package/enums/LootStoreType.d.ts +19 -0
- package/enums/LootType.d.ts +19 -0
- package/enums/MailCheckedMask.d.ts +11 -0
- package/enums/MailMessageType.d.ts +10 -0
- package/enums/MailStationery.d.ts +13 -0
- package/enums/Mechanics.d.ts +44 -0
- package/enums/MovementGeneratorType.d.ts +27 -0
- package/enums/MovementSlot.d.ts +8 -0
- package/enums/NPCFlags.d.ts +35 -0
- package/enums/NearObjectsMask.d.ts +9 -0
- package/enums/OBJECT_UPDATE_TYPE.d.ts +11 -0
- package/enums/OnlineState.d.ts +8 -0
- package/enums/PetDiet.d.ts +14 -0
- package/enums/PetSpellState.d.ts +9 -0
- package/enums/PetType.d.ts +8 -0
- package/enums/PlayerChatTag.d.ts +11 -0
- package/enums/PlayerXPSource.d.ts +11 -0
- package/enums/Powers.d.ts +15 -0
- package/enums/ProcFlags.d.ts +93 -0
- package/enums/ProcFlagsHit.d.ts +21 -0
- package/enums/QuestStatus.d.ts +12 -0
- package/enums/QuestTypes.d.ts +17 -0
- package/enums/Races.d.ts +28 -0
- package/enums/ReactStates.d.ts +8 -0
- package/enums/RemoveMethod.d.ts +9 -0
- package/enums/ReputationRank.d.ts +13 -0
- package/enums/ReputationSource.d.ts +12 -0
- package/enums/RollMask.d.ts +12 -0
- package/enums/RollVote.d.ts +11 -0
- package/enums/ServerSideVisibilityType.d.ts +9 -0
- package/enums/ShapeshiftForm.d.ts +37 -0
- package/enums/SheathState.d.ts +9 -0
- package/enums/ShutdownMask.d.ts +8 -0
- package/enums/SkillType.d.ts +157 -0
- package/enums/SocketColor.d.ts +9 -0
- package/enums/SpellAttributes.d.ts +317 -0
- package/enums/SpellAuraInterruptFlags.d.ts +36 -0
- package/enums/SpellCastResult.d.ts +195 -0
- package/enums/SpellCastTargetFlags.d.ts +33 -0
- package/enums/SpellCategoryFlags.d.ts +7 -0
- package/enums/SpellDmgClass.d.ts +9 -0
- package/enums/SpellEffIndex.d.ts +14 -0
- package/enums/SpellEffectImplicitTargetTypes.d.ts +8 -0
- package/enums/SpellEffects.d.ts +170 -0
- package/enums/SpellFacingFlags.d.ts +6 -0
- package/enums/SpellFamilyFlag.d.ts +46 -0
- package/enums/SpellFamilyNames.d.ts +23 -0
- package/enums/SpellImmuneBlockType.d.ts +7 -0
- package/enums/SpellImmunity.d.ts +17 -0
- package/enums/SpellInterruptFlags.d.ts +11 -0
- package/enums/SpellModOp.d.ts +36 -0
- package/enums/SpellModType.d.ts +8 -0
- package/enums/SpellPreventionType.d.ts +8 -0
- package/enums/SpellRangeFlag.d.ts +8 -0
- package/enums/SpellSchoolMask.d.ts +25 -0
- package/enums/SpellSchools.d.ts +12 -0
- package/enums/SpellSpecificType.d.ts +28 -0
- package/enums/SpellTargetCheckTypes.d.ts +14 -0
- package/enums/SpellTargetDirectionTypes.d.ts +16 -0
- package/enums/SpellTargetObjectTypes.d.ts +17 -0
- package/enums/SpellTargetReferenceTypes.d.ts +11 -0
- package/enums/SpellTargetSelectionCategories.d.ts +12 -0
- package/enums/SpellValueMod.d.ts +16 -0
- package/enums/Stats.d.ts +10 -0
- package/enums/SummonCategory.d.ts +12 -0
- package/enums/SummonPropFlags.d.ts +23 -0
- package/enums/SummonType.d.ts +18 -0
- package/enums/TargetIcon.d.ts +14 -0
- package/enums/Targets.d.ts +112 -0
- package/enums/TauntState.d.ts +8 -0
- package/enums/TeamId.d.ts +8 -0
- package/enums/TeleportToOptions.d.ts +13 -0
- package/enums/TempSummonType.d.ts +15 -0
- package/enums/TextEmote.d.ts +258 -0
- package/enums/TriggerCastFlags.d.ts +27 -0
- package/enums/TypeId.d.ts +13 -0
- package/enums/UnitDynFlags.d.ts +14 -0
- package/enums/UnitFlags.d.ts +38 -0
- package/enums/UnitFlags2.d.ts +25 -0
- package/enums/UnitModifierFlatType.d.ts +8 -0
- package/enums/UnitModifierPctType.d.ts +8 -0
- package/enums/UnitMods.d.ts +38 -0
- package/enums/UnitMoveType.d.ts +14 -0
- package/enums/UnitStandStateType.d.ts +16 -0
- package/enums/UnitState.d.ts +60 -0
- package/enums/WeaponAttackType.d.ts +8 -0
- package/enums/index.d.ts +177 -0
- package/hooks/account.d.ts +19 -0
- package/hooks/auction.d.ts +67 -0
- package/hooks/battleground-queue.d.ts +88 -0
- package/hooks/battleground.d.ts +33 -0
- package/hooks/creature.d.ts +58 -0
- package/hooks/game-object.d.ts +68 -0
- package/hooks/group.d.ts +39 -0
- package/hooks/guild.d.ts +138 -0
- package/hooks/index.d.ts +20 -0
- package/hooks/item.d.ts +40 -0
- package/hooks/loot.d.ts +9 -0
- package/hooks/map.d.ts +30 -0
- package/hooks/misc.d.ts +54 -0
- package/hooks/nodejs.d.ts +7 -0
- package/hooks/pet.d.ts +30 -0
- package/hooks/player.d.ts +966 -0
- package/hooks/spell.d.ts +82 -0
- package/hooks/ticket.d.ts +10 -0
- package/hooks/unit.d.ts +116 -0
- package/hooks/vehicle.d.ts +21 -0
- package/hooks/world-object.d.ts +16 -0
- package/hooks/world.d.ts +7 -0
- package/package.json +37 -0
- package/records/AchievementEntry.d.ts +14 -0
- package/records/BattlegroundScore.d.ts +58 -0
- package/records/Box.d.ts +6 -0
- package/records/ChaseAngle.d.ts +7 -0
- package/records/ChaseRange.d.ts +8 -0
- package/records/CreatureModel.d.ts +8 -0
- package/records/CreatureMovementData.d.ts +12 -0
- package/records/GlyphPropertiesEntry.d.ts +9 -0
- package/records/GroupMember.d.ts +9 -0
- package/records/GroupQueueInfo.d.ts +22 -0
- package/records/Homebind.d.ts +10 -0
- package/records/ImmunityInfo.d.ts +12 -0
- package/records/ItemDamage.d.ts +8 -0
- package/records/ItemSocket.d.ts +7 -0
- package/records/ItemSpell.d.ts +12 -0
- package/records/ItemStat.d.ts +7 -0
- package/records/LootItem.d.ts +12 -0
- package/records/ObjectGuid.d.ts +10 -0
- package/records/PetInfo.d.ts +20 -0
- package/records/Position.d.ts +9 -0
- package/records/PvPDifficultyEntry.d.ts +10 -0
- package/records/SpellCastTimesEntry.d.ts +7 -0
- package/records/SpellCategoryEntry.d.ts +7 -0
- package/records/SpellDurationEntry.d.ts +7 -0
- package/records/SpellModifier.d.ts +11 -0
- package/records/SpellRadiusEntry.d.ts +9 -0
- package/records/SpellRangeEntry.d.ts +11 -0
- package/records/SummonPropertiesEntry.d.ts +11 -0
- package/records/index.d.ts +27 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
declare global {
|
|
2
|
+
const enum UnitDynFlags {
|
|
3
|
+
UNIT_DYNFLAG_NONE = 0x0000,
|
|
4
|
+
UNIT_DYNFLAG_LOOTABLE = 0x0001,
|
|
5
|
+
UNIT_DYNFLAG_TRACK_UNIT = 0x0002,
|
|
6
|
+
UNIT_DYNFLAG_TAPPED = 0x0004, // Lua_UnitIsTapped
|
|
7
|
+
UNIT_DYNFLAG_TAPPED_BY_PLAYER = 0x0008, // Lua_UnitIsTappedByPlayer
|
|
8
|
+
UNIT_DYNFLAG_SPECIALINFO = 0x0010,
|
|
9
|
+
UNIT_DYNFLAG_DEAD = 0x0020,
|
|
10
|
+
UNIT_DYNFLAG_REFER_A_FRIEND = 0x0040,
|
|
11
|
+
UNIT_DYNFLAG_TAPPED_BY_ALL_THREAT_LIST = 0x0080, // Lua_UnitIsTappedByAllThreatList
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
declare global {
|
|
2
|
+
const enum UnitFlags {
|
|
3
|
+
UNIT_FLAG_NONE = 0x00000000,
|
|
4
|
+
UNIT_FLAG_SERVER_CONTROLLED = 0x00000001, // set only when unit movement is controlled by server - by SPLINE/MONSTER_MOVE packets, together with UNIT_FLAG_STUNNED; only set to units controlled by client; client function CGUnit_C::IsClientControlled returns false when set for owner
|
|
5
|
+
UNIT_FLAG_NON_ATTACKABLE = 0x00000002, // not attackable
|
|
6
|
+
UNIT_FLAG_DISABLE_MOVE = 0x00000004,
|
|
7
|
+
UNIT_FLAG_PLAYER_CONTROLLED = 0x00000008, // controlled by player, use _IMMUNE_TO_PC instead of _IMMUNE_TO_NPC
|
|
8
|
+
UNIT_FLAG_RENAME = 0x00000010,
|
|
9
|
+
UNIT_FLAG_PREPARATION = 0x00000020, // don't take reagents for spells with SPELL_ATTR5_NO_REAGENT_COST_WITH_AURA
|
|
10
|
+
UNIT_FLAG_UNK_6 = 0x00000040,
|
|
11
|
+
UNIT_FLAG_NOT_ATTACKABLE_1 = 0x00000080, // ?? (UNIT_FLAG_PLAYER_CONTROLLED | UNIT_FLAG_NOT_ATTACKABLE_1) is NON_PVP_ATTACKABLE
|
|
12
|
+
UNIT_FLAG_IMMUNE_TO_PC = 0x00000100, // disables combat/assistance with PlayerCharacters (PC) - see Unit::_IsValidAttackTarget, Unit::_IsValidAssistTarget
|
|
13
|
+
UNIT_FLAG_IMMUNE_TO_NPC = 0x00000200, // disables combat/assistance with NonPlayerCharacters (NPC) - see Unit::_IsValidAttackTarget, Unit::_IsValidAssistTarget
|
|
14
|
+
UNIT_FLAG_LOOTING = 0x00000400, // loot animation
|
|
15
|
+
UNIT_FLAG_PET_IN_COMBAT = 0x00000800, // in combat?, 2.0.8
|
|
16
|
+
UNIT_FLAG_PVP = 0x00001000, // changed in 3.0.3
|
|
17
|
+
UNIT_FLAG_SILENCED = 0x00002000, // silenced, 2.1.1
|
|
18
|
+
UNIT_FLAG_CANNOT_SWIM = 0x00004000, // 2.0.8
|
|
19
|
+
UNIT_FLAG_SWIMMING = 0x00008000, // shows swim animation in water
|
|
20
|
+
UNIT_FLAG_NON_ATTACKABLE_2 = 0x00010000, // removes attackable icon, if on yourself, cannot assist self but can cast TARGET_SELF spells - added by SPELL_AURA_MOD_UNATTACKABLE
|
|
21
|
+
UNIT_FLAG_PACIFIED = 0x00020000, // 3.0.3 ok
|
|
22
|
+
UNIT_FLAG_STUNNED = 0x00040000, // 3.0.3 ok
|
|
23
|
+
UNIT_FLAG_IN_COMBAT = 0x00080000,
|
|
24
|
+
UNIT_FLAG_TAXI_FLIGHT = 0x00100000, // disable casting at client side spell not allowed by taxi flight (mounted?), probably used with 0x4 flag
|
|
25
|
+
UNIT_FLAG_DISARMED = 0x00200000, // 3.0.3, disable melee spells casting..., "Required melee weapon" added to melee spells tooltip.
|
|
26
|
+
UNIT_FLAG_CONFUSED = 0x00400000,
|
|
27
|
+
UNIT_FLAG_FLEEING = 0x00800000,
|
|
28
|
+
UNIT_FLAG_POSSESSED = 0x01000000, // under direct client control by a player (possess or vehicle)
|
|
29
|
+
UNIT_FLAG_NOT_SELECTABLE = 0x02000000,
|
|
30
|
+
UNIT_FLAG_SKINNABLE = 0x04000000,
|
|
31
|
+
UNIT_FLAG_MOUNT = 0x08000000,
|
|
32
|
+
UNIT_FLAG_UNK_28 = 0x10000000,
|
|
33
|
+
UNIT_FLAG_PREVENT_EMOTES_FROM_CHAT_TEXT = 0x20000000, // Prevent automatically playing emotes from parsing chat text, for example "lol" in /say, ending message with ? or !, or using /yell
|
|
34
|
+
UNIT_FLAG_SHEATHE = 0x40000000,
|
|
35
|
+
UNIT_FLAG_IMMUNE = 0x80000000, // Immune to damage
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
declare global {
|
|
2
|
+
const enum UnitFlags2 {
|
|
3
|
+
UNIT_FLAG2_NONE = 0x00000000,
|
|
4
|
+
UNIT_FLAG2_FEIGN_DEATH = 0x00000001,
|
|
5
|
+
UNIT_FLAG2_HIDE_BODY = 0x00000002, // Hide unit model (show only player equip)
|
|
6
|
+
UNIT_FLAG2_IGNORE_REPUTATION = 0x00000004,
|
|
7
|
+
UNIT_FLAG2_COMPREHEND_LANG = 0x00000008,
|
|
8
|
+
UNIT_FLAG2_MIRROR_IMAGE = 0x00000010,
|
|
9
|
+
UNIT_FLAG2_DO_NOT_FADE_IN = 0x00000020, // Unit model instantly appears when summoned (does not fade in)
|
|
10
|
+
UNIT_FLAG2_FORCE_MOVEMENT = 0x00000040,
|
|
11
|
+
UNIT_FLAG2_DISARM_OFFHAND = 0x00000080,
|
|
12
|
+
UNIT_FLAG2_DISABLE_PRED_STATS = 0x00000100, // Player has disabled predicted stats (Used by raid frames)
|
|
13
|
+
UNIT_FLAG2_DISARM_RANGED = 0x00000400, // this does not disable ranged weapon display (maybe additional flag needed?)
|
|
14
|
+
UNIT_FLAG2_REGENERATE_POWER = 0x00000800,
|
|
15
|
+
UNIT_FLAG2_RESTRICT_PARTY_INTERACTION = 0x00001000, // Restrict interaction to party or raid
|
|
16
|
+
UNIT_FLAG2_PREVENT_SPELL_CLICK = 0x00002000, // Prevent spellclick
|
|
17
|
+
UNIT_FLAG2_ALLOW_ENEMY_INTERACT = 0x00004000,
|
|
18
|
+
UNIT_FLAG2_CANNOT_TURN = 0x00008000,
|
|
19
|
+
UNIT_FLAG2_UNK2 = 0x00010000,
|
|
20
|
+
UNIT_FLAG2_PLAY_DEATH_ANIM = 0x00020000, // Plays special death animation upon death
|
|
21
|
+
UNIT_FLAG2_ALLOW_CHEAT_SPELLS = 0x00040000, // Allows casting spells with AttributesEx7 & SPELL_ATTR7_DEBUG_SPELL
|
|
22
|
+
UNIT_FLAG2_UNUSED_6 = 0x01000000,
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
declare global {
|
|
2
|
+
const enum UnitMods {
|
|
3
|
+
UNIT_MOD_STAT_STRENGTH, // UNIT_MOD_STAT_STRENGTH..UNIT_MOD_STAT_SPIRIT must be in existed order, it's accessed by index values of Stats enum.
|
|
4
|
+
UNIT_MOD_STAT_AGILITY,
|
|
5
|
+
UNIT_MOD_STAT_STAMINA,
|
|
6
|
+
UNIT_MOD_STAT_INTELLECT,
|
|
7
|
+
UNIT_MOD_STAT_SPIRIT,
|
|
8
|
+
UNIT_MOD_HEALTH,
|
|
9
|
+
UNIT_MOD_MANA, // UNIT_MOD_MANA..UNIT_MOD_RUNIC_POWER must be in existed order, it's accessed by index values of Powers enum.
|
|
10
|
+
UNIT_MOD_RAGE,
|
|
11
|
+
UNIT_MOD_FOCUS,
|
|
12
|
+
UNIT_MOD_ENERGY,
|
|
13
|
+
UNIT_MOD_HAPPINESS,
|
|
14
|
+
UNIT_MOD_RUNE,
|
|
15
|
+
UNIT_MOD_RUNIC_POWER,
|
|
16
|
+
UNIT_MOD_ARMOR, // UNIT_MOD_ARMOR..UNIT_MOD_RESISTANCE_ARCANE must be in existed order, it's accessed by index values of SpellSchools enum.
|
|
17
|
+
UNIT_MOD_RESISTANCE_HOLY,
|
|
18
|
+
UNIT_MOD_RESISTANCE_FIRE,
|
|
19
|
+
UNIT_MOD_RESISTANCE_NATURE,
|
|
20
|
+
UNIT_MOD_RESISTANCE_FROST,
|
|
21
|
+
UNIT_MOD_RESISTANCE_SHADOW,
|
|
22
|
+
UNIT_MOD_RESISTANCE_ARCANE,
|
|
23
|
+
UNIT_MOD_ATTACK_POWER,
|
|
24
|
+
UNIT_MOD_ATTACK_POWER_RANGED,
|
|
25
|
+
UNIT_MOD_DAMAGE_MAINHAND,
|
|
26
|
+
UNIT_MOD_DAMAGE_OFFHAND,
|
|
27
|
+
UNIT_MOD_DAMAGE_RANGED,
|
|
28
|
+
UNIT_MOD_END,
|
|
29
|
+
// synonyms
|
|
30
|
+
UNIT_MOD_STAT_START = UNIT_MOD_STAT_STRENGTH,
|
|
31
|
+
UNIT_MOD_STAT_END = UNIT_MOD_STAT_SPIRIT + 1,
|
|
32
|
+
UNIT_MOD_RESISTANCE_START = UNIT_MOD_ARMOR,
|
|
33
|
+
UNIT_MOD_RESISTANCE_END = UNIT_MOD_RESISTANCE_ARCANE + 1,
|
|
34
|
+
UNIT_MOD_POWER_START = UNIT_MOD_MANA,
|
|
35
|
+
UNIT_MOD_POWER_END = UNIT_MOD_RUNIC_POWER + 1,
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare global {
|
|
2
|
+
// byte value (UNIT_FIELD_BYTES_1, 0)
|
|
3
|
+
const enum UnitStandStateType {
|
|
4
|
+
UNIT_STAND_STATE_STAND = 0,
|
|
5
|
+
UNIT_STAND_STATE_SIT = 1,
|
|
6
|
+
UNIT_STAND_STATE_SIT_CHAIR = 2,
|
|
7
|
+
UNIT_STAND_STATE_SLEEP = 3,
|
|
8
|
+
UNIT_STAND_STATE_SIT_LOW_CHAIR = 4,
|
|
9
|
+
UNIT_STAND_STATE_SIT_MEDIUM_CHAIR = 5,
|
|
10
|
+
UNIT_STAND_STATE_SIT_HIGH_CHAIR = 6,
|
|
11
|
+
UNIT_STAND_STATE_DEAD = 7,
|
|
12
|
+
UNIT_STAND_STATE_KNEEL = 8,
|
|
13
|
+
UNIT_STAND_STATE_SUBMERGED = 9,
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
declare global {
|
|
2
|
+
const enum UnitState {
|
|
3
|
+
UNIT_STATE_DIED = 0x00000001, // player has fake death aura
|
|
4
|
+
UNIT_STATE_MELEE_ATTACKING = 0x00000002, // player is melee attacking someone
|
|
5
|
+
UNIT_STATE_CHARMED = 0x00000004, // having any kind of charm aura on self
|
|
6
|
+
UNIT_STATE_STUNNED = 0x00000008,
|
|
7
|
+
UNIT_STATE_ROAMING = 0x00000010,
|
|
8
|
+
UNIT_STATE_CHASE = 0x00000020,
|
|
9
|
+
//UNIT_STATE_SEARCHING = 0x00000040,
|
|
10
|
+
UNIT_STATE_FLEEING = 0x00000080,
|
|
11
|
+
UNIT_STATE_IN_FLIGHT = 0x00000100, // player is in flight mode
|
|
12
|
+
UNIT_STATE_FOLLOW = 0x00000200,
|
|
13
|
+
UNIT_STATE_ROOT = 0x00000400,
|
|
14
|
+
UNIT_STATE_CONFUSED = 0x00000800,
|
|
15
|
+
UNIT_STATE_DISTRACTED = 0x00001000,
|
|
16
|
+
UNIT_STATE_ISOLATED = 0x00002000, // area auras do not affect other players
|
|
17
|
+
UNIT_STATE_ATTACK_PLAYER = 0x00004000,
|
|
18
|
+
UNIT_STATE_CASTING = 0x00008000,
|
|
19
|
+
UNIT_STATE_POSSESSED = 0x00010000,
|
|
20
|
+
UNIT_STATE_CHARGING = 0x00020000,
|
|
21
|
+
UNIT_STATE_JUMPING = 0x00040000,
|
|
22
|
+
UNIT_STATE_MOVE = 0x00100000,
|
|
23
|
+
UNIT_STATE_ROTATING = 0x00200000,
|
|
24
|
+
UNIT_STATE_EVADE = 0x00400000,
|
|
25
|
+
UNIT_STATE_ROAMING_MOVE = 0x00800000,
|
|
26
|
+
UNIT_STATE_CONFUSED_MOVE = 0x01000000,
|
|
27
|
+
UNIT_STATE_FLEEING_MOVE = 0x02000000,
|
|
28
|
+
UNIT_STATE_CHASE_MOVE = 0x04000000,
|
|
29
|
+
UNIT_STATE_FOLLOW_MOVE = 0x08000000,
|
|
30
|
+
UNIT_STATE_IGNORE_PATHFINDING = 0x10000000, // do not use pathfinding in any MovementGenerator
|
|
31
|
+
UNIT_STATE_NO_ENVIRONMENT_UPD = 0x20000000,
|
|
32
|
+
|
|
33
|
+
// serverside region
|
|
34
|
+
UNIT_STATE_NO_COMBAT_MOVEMENT = 0x40000000, // should not be changed outside the core and should be placed at the end
|
|
35
|
+
UNIT_STATE_LOGOUT_TIMER = 0x80000000, // Unit is logging out
|
|
36
|
+
|
|
37
|
+
UNIT_STATE_ALL_STATE_SUPPORTED = UNIT_STATE_DIED | UNIT_STATE_MELEE_ATTACKING | UNIT_STATE_CHARMED | UNIT_STATE_STUNNED | UNIT_STATE_ROAMING | UNIT_STATE_CHASE
|
|
38
|
+
| UNIT_STATE_FLEEING | UNIT_STATE_IN_FLIGHT | UNIT_STATE_FOLLOW | UNIT_STATE_ROOT | UNIT_STATE_CONFUSED
|
|
39
|
+
| UNIT_STATE_DISTRACTED | UNIT_STATE_ISOLATED | UNIT_STATE_ATTACK_PLAYER | UNIT_STATE_CASTING
|
|
40
|
+
| UNIT_STATE_POSSESSED | UNIT_STATE_CHARGING | UNIT_STATE_JUMPING | UNIT_STATE_MOVE | UNIT_STATE_ROTATING
|
|
41
|
+
| UNIT_STATE_EVADE | UNIT_STATE_ROAMING_MOVE | UNIT_STATE_CONFUSED_MOVE | UNIT_STATE_FLEEING_MOVE
|
|
42
|
+
| UNIT_STATE_CHASE_MOVE | UNIT_STATE_FOLLOW_MOVE | UNIT_STATE_IGNORE_PATHFINDING | UNIT_STATE_NO_ENVIRONMENT_UPD,
|
|
43
|
+
|
|
44
|
+
UNIT_STATE_UNATTACKABLE = UNIT_STATE_IN_FLIGHT,
|
|
45
|
+
|
|
46
|
+
// for real move using movegen check and stop (except unstoppable flight)
|
|
47
|
+
UNIT_STATE_MOVING = UNIT_STATE_ROAMING_MOVE | UNIT_STATE_CONFUSED_MOVE | UNIT_STATE_FLEEING_MOVE | UNIT_STATE_CHASE_MOVE | UNIT_STATE_FOLLOW_MOVE,
|
|
48
|
+
UNIT_STATE_CONTROLLED = (UNIT_STATE_CONFUSED | UNIT_STATE_STUNNED | UNIT_STATE_FLEEING),
|
|
49
|
+
UNIT_STATE_LOST_CONTROL = (UNIT_STATE_CONTROLLED | UNIT_STATE_JUMPING | UNIT_STATE_CHARGING),
|
|
50
|
+
UNIT_STATE_SIGHTLESS = (UNIT_STATE_LOST_CONTROL | UNIT_STATE_EVADE),
|
|
51
|
+
UNIT_STATE_CANNOT_AUTOATTACK = (UNIT_STATE_LOST_CONTROL | UNIT_STATE_CASTING),
|
|
52
|
+
UNIT_STATE_CANNOT_TURN = (UNIT_STATE_LOST_CONTROL | UNIT_STATE_ROTATING | UNIT_STATE_ROOT),
|
|
53
|
+
|
|
54
|
+
// stay by different reasons
|
|
55
|
+
UNIT_STATE_NOT_MOVE = UNIT_STATE_ROOT | UNIT_STATE_STUNNED | UNIT_STATE_DIED | UNIT_STATE_DISTRACTED,
|
|
56
|
+
UNIT_STATE_IGNORE_ANTISPEEDHACK = UNIT_STATE_FLEEING | UNIT_STATE_CONFUSED | UNIT_STATE_CHARGING | UNIT_STATE_DISTRACTED | UNIT_STATE_POSSESSED,
|
|
57
|
+
UNIT_STATE_ALL_STATE = 0xffffffff, //(UNIT_STATE_STOPPED | UNIT_STATE_MOVING | UNIT_STATE_IN_COMBAT | UNIT_STATE_IN_FLIGHT)
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
export {};
|
package/enums/index.d.ts
ADDED
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
export * from './AccountFlags';
|
|
2
|
+
export * from './AccountTypes';
|
|
3
|
+
export * from './AchievementFlags';
|
|
4
|
+
export * from './AcoreStrings';
|
|
5
|
+
export * from './ArenaTeamInfoType';
|
|
6
|
+
export * from './ArenaType';
|
|
7
|
+
export * from './AuctionHouseId';
|
|
8
|
+
export * from './AURA_FLAGS';
|
|
9
|
+
export * from './AuraRemoveMode';
|
|
10
|
+
export * from './AuraStateType';
|
|
11
|
+
export * from './AuraType';
|
|
12
|
+
export * from './BAG_FAMILY_MASK';
|
|
13
|
+
export * from './BattlegroundDesertionType';
|
|
14
|
+
export * from './BattlegroundQueueGroupTypes';
|
|
15
|
+
export * from './BattlegroundTypeId';
|
|
16
|
+
export * from './CharterTypes';
|
|
17
|
+
export * from './ChatMsg';
|
|
18
|
+
export * from './ClassContext';
|
|
19
|
+
export * from './Classes';
|
|
20
|
+
export * from './ConditionSourceType';
|
|
21
|
+
export * from './ConditionTypes';
|
|
22
|
+
export * from './CorpseType';
|
|
23
|
+
export * from './CreatureChaseMovementType';
|
|
24
|
+
export * from './CreatureClasses';
|
|
25
|
+
export * from './CreatureEliteType';
|
|
26
|
+
export * from './CreatureFamily';
|
|
27
|
+
export * from './CreatureFlagsExtra';
|
|
28
|
+
export * from './CreatureFlightMovementType';
|
|
29
|
+
export * from './CreatureGroundMovementType';
|
|
30
|
+
export * from './CreatureRandomMovementType';
|
|
31
|
+
export * from './CreatureType';
|
|
32
|
+
export * from './CreatureTypeFlags';
|
|
33
|
+
export * from './CurrentSpellTypes';
|
|
34
|
+
export * from './DamageEffectType';
|
|
35
|
+
export * from './DatabaseFieldTypes';
|
|
36
|
+
export * from './Db';
|
|
37
|
+
export * from './DeathState';
|
|
38
|
+
export * from './Difficulty';
|
|
39
|
+
export * from './DispelType';
|
|
40
|
+
export * from './DuelCompleteType';
|
|
41
|
+
export * from './Emote';
|
|
42
|
+
export * from './EvadeReason';
|
|
43
|
+
export * from './Expansions';
|
|
44
|
+
export * from './Gender';
|
|
45
|
+
export * from './GMTicketEscalationStatus';
|
|
46
|
+
export * from './GossipAction';
|
|
47
|
+
export * from './GossipSender';
|
|
48
|
+
export * from './GOState';
|
|
49
|
+
export * from './GroupJoinBattlegroundResult';
|
|
50
|
+
export * from './GroupMemberFlags';
|
|
51
|
+
export * from './GroupType';
|
|
52
|
+
export * from './GuildBankEventLogTypes';
|
|
53
|
+
export * from './GuildDefaultRanks';
|
|
54
|
+
export * from './GuildEventLogTypes';
|
|
55
|
+
export * from './GuildMemberFlags';
|
|
56
|
+
export * from './HighGuid';
|
|
57
|
+
export * from './HolidayIds';
|
|
58
|
+
export * from './InventoryResult';
|
|
59
|
+
export * from './InventoryType';
|
|
60
|
+
export * from './ItemBondingType';
|
|
61
|
+
export * from './ItemClass';
|
|
62
|
+
export * from './ItemFlags';
|
|
63
|
+
export * from './ItemFlags2';
|
|
64
|
+
export * from './ItemFlagsCustom';
|
|
65
|
+
export * from './ItemModType';
|
|
66
|
+
export * from './ItemQualities';
|
|
67
|
+
export * from './ItemSpelltriggerType';
|
|
68
|
+
export * from './ItemSubclass';
|
|
69
|
+
export * from './ItemSubclassArmor';
|
|
70
|
+
export * from './ItemSubclassConsumable';
|
|
71
|
+
export * from './ItemSubclassContainer';
|
|
72
|
+
export * from './ItemSubclassGem';
|
|
73
|
+
export * from './ItemSubclassGeneric';
|
|
74
|
+
export * from './ItemSubclassGlyph';
|
|
75
|
+
export * from './ItemSubclassJunk';
|
|
76
|
+
export * from './ItemSubclassKey';
|
|
77
|
+
export * from './ItemSubclassMoney';
|
|
78
|
+
export * from './ItemSubclassPermanent';
|
|
79
|
+
export * from './ItemSubclassProjectile';
|
|
80
|
+
export * from './ItemSubclassQuest';
|
|
81
|
+
export * from './ItemSubclassQuiver';
|
|
82
|
+
export * from './ItemSubclassReagent';
|
|
83
|
+
export * from './ItemSubclassRecipe';
|
|
84
|
+
export * from './ItemSubclassTradeGoods';
|
|
85
|
+
export * from './ItemSubclassWeapon';
|
|
86
|
+
export * from './Language';
|
|
87
|
+
export * from './LfgRoles';
|
|
88
|
+
export * from './LocaleConstant';
|
|
89
|
+
export * from './LogLevel';
|
|
90
|
+
export * from './LootModes';
|
|
91
|
+
export * from './LootState';
|
|
92
|
+
export * from './LootStoreType';
|
|
93
|
+
export * from './LootType';
|
|
94
|
+
export * from './MailCheckedMask';
|
|
95
|
+
export * from './MailMessageType';
|
|
96
|
+
export * from './MailStationery';
|
|
97
|
+
export * from './Mechanics';
|
|
98
|
+
export * from './MovementGeneratorType';
|
|
99
|
+
export * from './MovementSlot';
|
|
100
|
+
export * from './NearObjectsMask';
|
|
101
|
+
export * from './NPCFlags';
|
|
102
|
+
export * from './OBJECT_UPDATE_TYPE';
|
|
103
|
+
export * from './OnlineState';
|
|
104
|
+
export * from './PetDiet';
|
|
105
|
+
export * from './PetSpellState';
|
|
106
|
+
export * from './PetType';
|
|
107
|
+
export * from './PlayerChatTag';
|
|
108
|
+
export * from './PlayerXPSource';
|
|
109
|
+
export * from './Powers';
|
|
110
|
+
export * from './ProcFlags';
|
|
111
|
+
export * from './ProcFlagsHit';
|
|
112
|
+
export * from './QuestStatus';
|
|
113
|
+
export * from './QuestTypes';
|
|
114
|
+
export * from './Races';
|
|
115
|
+
export * from './ReactStates';
|
|
116
|
+
export * from './RemoveMethod';
|
|
117
|
+
export * from './ReputationRank';
|
|
118
|
+
export * from './ReputationSource';
|
|
119
|
+
export * from './RollMask';
|
|
120
|
+
export * from './RollVote';
|
|
121
|
+
export * from './ServerSideVisibilityType';
|
|
122
|
+
export * from './ShapeshiftForm';
|
|
123
|
+
export * from './SheathState';
|
|
124
|
+
export * from './ShutdownMask';
|
|
125
|
+
export * from './SkillType';
|
|
126
|
+
export * from './SocketColor';
|
|
127
|
+
export * from './SpellAttributes';
|
|
128
|
+
export * from './SpellAuraInterruptFlags';
|
|
129
|
+
export * from './SpellCastResult';
|
|
130
|
+
export * from './SpellCastTargetFlags';
|
|
131
|
+
export * from './SpellCategoryFlags';
|
|
132
|
+
export * from './SpellDmgClass';
|
|
133
|
+
export * from './SpellEffectImplicitTargetTypes';
|
|
134
|
+
export * from './SpellEffects';
|
|
135
|
+
export * from './SpellEffIndex';
|
|
136
|
+
export * from './SpellFacingFlags';
|
|
137
|
+
export * from './SpellFamilyFlag';
|
|
138
|
+
export * from './SpellFamilyNames';
|
|
139
|
+
export * from './SpellImmuneBlockType';
|
|
140
|
+
export * from './SpellImmunity';
|
|
141
|
+
export * from './SpellInterruptFlags';
|
|
142
|
+
export * from './SpellModOp';
|
|
143
|
+
export * from './SpellModType';
|
|
144
|
+
export * from './SpellPreventionType';
|
|
145
|
+
export * from './SpellRangeFlag';
|
|
146
|
+
export * from './SpellSchoolMask';
|
|
147
|
+
export * from './SpellSchools';
|
|
148
|
+
export * from './SpellSpecificType';
|
|
149
|
+
export * from './SpellTargetCheckTypes';
|
|
150
|
+
export * from './SpellTargetDirectionTypes';
|
|
151
|
+
export * from './SpellTargetObjectTypes';
|
|
152
|
+
export * from './SpellTargetReferenceTypes';
|
|
153
|
+
export * from './SpellTargetSelectionCategories';
|
|
154
|
+
export * from './SpellValueMod';
|
|
155
|
+
export * from './Stats';
|
|
156
|
+
export * from './SummonCategory';
|
|
157
|
+
export * from './SummonPropFlags';
|
|
158
|
+
export * from './SummonType';
|
|
159
|
+
export * from './TargetIcon';
|
|
160
|
+
export * from './Targets';
|
|
161
|
+
export * from './TauntState';
|
|
162
|
+
export * from './TeamId';
|
|
163
|
+
export * from './TeleportToOptions';
|
|
164
|
+
export * from './TempSummonType';
|
|
165
|
+
export * from './TextEmote';
|
|
166
|
+
export * from './TriggerCastFlags';
|
|
167
|
+
export * from './TypeId';
|
|
168
|
+
export * from './UnitDynFlags';
|
|
169
|
+
export * from './UnitFlags';
|
|
170
|
+
export * from './UnitFlags2';
|
|
171
|
+
export * from './UnitModifierFlatType';
|
|
172
|
+
export * from './UnitModifierPctType';
|
|
173
|
+
export * from './UnitMods';
|
|
174
|
+
export * from './UnitMoveType';
|
|
175
|
+
export * from './UnitStandStateType';
|
|
176
|
+
export * from './UnitState';
|
|
177
|
+
export * from './WeaponAttackType';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
declare global {
|
|
2
|
+
interface Hooks {
|
|
3
|
+
['account:login']: { readonly accountId: number; };
|
|
4
|
+
['account:before-delete']: { readonly accountId: number; };
|
|
5
|
+
['account:last-ip-update']: { readonly accountId: number; readonly ip: string; };
|
|
6
|
+
['account:failed-login']: { readonly accountId: number; };
|
|
7
|
+
['account:email-change']: { readonly accountId: number; };
|
|
8
|
+
['account:failed-email-change']: { readonly accountId: number; };
|
|
9
|
+
['account:password-change']: { readonly accountId: number; };
|
|
10
|
+
['account:failed-password-change']: { readonly accountId: number; };
|
|
11
|
+
['account:can-create-character']: {
|
|
12
|
+
readonly accountId: number;
|
|
13
|
+
readonly race: Races;
|
|
14
|
+
readonly clazz: Classes;
|
|
15
|
+
__return: boolean;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
declare global {
|
|
2
|
+
interface Hooks {
|
|
3
|
+
['auction:add-auction']: {
|
|
4
|
+
readonly ah: Acore.AuctionHouse;
|
|
5
|
+
readonly auction: Acore.Auction;
|
|
6
|
+
};
|
|
7
|
+
['auction:remove-auction']: {
|
|
8
|
+
readonly ah: Acore.AuctionHouse;
|
|
9
|
+
readonly auction: Acore.Auction;
|
|
10
|
+
};
|
|
11
|
+
['auction:successful']: {
|
|
12
|
+
readonly ah: Acore.AuctionHouse;
|
|
13
|
+
readonly auction: Acore.Auction;
|
|
14
|
+
};
|
|
15
|
+
['auction:expire']: {
|
|
16
|
+
readonly ah: Acore.AuctionHouse;
|
|
17
|
+
readonly auction: Acore.Auction;
|
|
18
|
+
};
|
|
19
|
+
['auction:before-send-auction-won-mail']: {
|
|
20
|
+
readonly auction: Acore.Auction;
|
|
21
|
+
readonly bidder: Acore.Player | undefined;
|
|
22
|
+
bidderAccId: number;
|
|
23
|
+
sendNotification: boolean;
|
|
24
|
+
updateAchievementCriteria: boolean;
|
|
25
|
+
sendMail: boolean;
|
|
26
|
+
};
|
|
27
|
+
['auction:before-send-auction-sale-pending-mail']: {
|
|
28
|
+
readonly auction: Acore.Auction;
|
|
29
|
+
readonly owner: Acore.Player | undefined;
|
|
30
|
+
ownerAccId: number;
|
|
31
|
+
sendMail: boolean;
|
|
32
|
+
};
|
|
33
|
+
['auction:before-send-auction-successful-mail']: {
|
|
34
|
+
readonly auction: Acore.Auction;
|
|
35
|
+
readonly owner: Acore.Player | undefined;
|
|
36
|
+
ownerAccId: number;
|
|
37
|
+
profit: number;
|
|
38
|
+
sendNotification: boolean;
|
|
39
|
+
updateAchievementCriteria: boolean;
|
|
40
|
+
sendMail: boolean;
|
|
41
|
+
};
|
|
42
|
+
['auction:before-send-auction-expired-mail']: {
|
|
43
|
+
readonly auction: Acore.Auction;
|
|
44
|
+
readonly owner: Acore.Player | undefined;
|
|
45
|
+
ownerAccId: number;
|
|
46
|
+
sendNotification: boolean;
|
|
47
|
+
sendMail: boolean;
|
|
48
|
+
};
|
|
49
|
+
['auction:before-send-auction-outbidded-mail']: {
|
|
50
|
+
readonly auction: Acore.Auction;
|
|
51
|
+
readonly oldBidder: Acore.Player | undefined;
|
|
52
|
+
oldBidderAccId: number;
|
|
53
|
+
readonly newBidder: Acore.Player; // can't be offline, they just placed the bid!
|
|
54
|
+
newPrice: number;
|
|
55
|
+
sendNotification: boolean;
|
|
56
|
+
sendMail: boolean;
|
|
57
|
+
};
|
|
58
|
+
['auction:before-send-auction-cancelled-to-bidder-mail']: {
|
|
59
|
+
readonly auction: Acore.Auction;
|
|
60
|
+
readonly bidder: Acore.Player | undefined;
|
|
61
|
+
bidderAccId: number;
|
|
62
|
+
sendMail: boolean;
|
|
63
|
+
};
|
|
64
|
+
['auction:before-update']: object;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
export {};
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
declare global {
|
|
2
|
+
interface Hooks {
|
|
3
|
+
['battleground-queue:update']: {
|
|
4
|
+
readonly queue: Acore.BattlegroundQueue;
|
|
5
|
+
readonly diff: Temporal.Duration;
|
|
6
|
+
readonly bgTypeId: BattlegroundTypeId;
|
|
7
|
+
readonly bracketId: number;
|
|
8
|
+
readonly arenaType: ArenaType;
|
|
9
|
+
readonly isRated: boolean;
|
|
10
|
+
readonly arenaRating: number;
|
|
11
|
+
};
|
|
12
|
+
['battleground-queue:update-validity']: {
|
|
13
|
+
readonly queue: Acore.BattlegroundQueue;
|
|
14
|
+
readonly diff: Temporal.Duration;
|
|
15
|
+
readonly bgTypeId: BattlegroundTypeId;
|
|
16
|
+
readonly bracketId: number;
|
|
17
|
+
readonly arenaType: ArenaType;
|
|
18
|
+
readonly isRated: boolean;
|
|
19
|
+
readonly arenaRating: number;
|
|
20
|
+
__return: boolean;
|
|
21
|
+
};
|
|
22
|
+
['battleground-queue:add-group']: {
|
|
23
|
+
readonly queue: Acore.BattlegroundQueue;
|
|
24
|
+
readonly gInfo: GroupQueueInfo;
|
|
25
|
+
index: number;
|
|
26
|
+
readonly leader: Acore.Player;
|
|
27
|
+
readonly group: Acore.Group;
|
|
28
|
+
readonly bgTypeId: BattlegroundTypeId;
|
|
29
|
+
readonly bracketEntry: PvPDifficultyEntry;
|
|
30
|
+
readonly arenaType: ArenaType;
|
|
31
|
+
readonly isRated: boolean;
|
|
32
|
+
readonly isPremade: boolean;
|
|
33
|
+
readonly arenaRating: number;
|
|
34
|
+
readonly matchmakerRating: number;
|
|
35
|
+
readonly arenaTeamId: number;
|
|
36
|
+
readonly opponentsArenaTeamId: number;
|
|
37
|
+
};
|
|
38
|
+
['battleground-queue:can-fill-players']: {
|
|
39
|
+
readonly queue: Acore.BattlegroundQueue;
|
|
40
|
+
readonly bg: Acore.Battleground;
|
|
41
|
+
readonly bracketId: number;
|
|
42
|
+
__return: boolean;
|
|
43
|
+
};
|
|
44
|
+
['battleground-queue:is-check-normal-match']: {
|
|
45
|
+
readonly queue: Acore.BattlegroundQueue;
|
|
46
|
+
readonly bgTemplate: Acore.Battleground;
|
|
47
|
+
readonly bracketId: number;
|
|
48
|
+
readonly minPlayers: number;
|
|
49
|
+
readonly maxPlayers: number;
|
|
50
|
+
__return: boolean;
|
|
51
|
+
};
|
|
52
|
+
['battleground-queue:can-send-message']: {
|
|
53
|
+
readonly queue: Acore.BattlegroundQueue;
|
|
54
|
+
readonly leader: Acore.Player;
|
|
55
|
+
readonly bg: Acore.Battleground;
|
|
56
|
+
readonly bracketEntry: PvPDifficultyEntry;
|
|
57
|
+
__return: boolean;
|
|
58
|
+
};
|
|
59
|
+
['battleground-queue:before-send-join-message-arena']: {
|
|
60
|
+
readonly queue: Acore.BattlegroundQueue;
|
|
61
|
+
readonly leader: Acore.Player;
|
|
62
|
+
readonly gInfo: GroupQueueInfo;
|
|
63
|
+
readonly bracketEntry: PvPDifficultyEntry;
|
|
64
|
+
readonly isRated: boolean;
|
|
65
|
+
__return: boolean;
|
|
66
|
+
};
|
|
67
|
+
['battleground-queue:before-send-exit-message-arena']: {
|
|
68
|
+
readonly queue: Acore.BattlegroundQueue;
|
|
69
|
+
readonly gInfo: GroupQueueInfo;
|
|
70
|
+
__return: boolean;
|
|
71
|
+
};
|
|
72
|
+
['battleground-queue:can-add-group-to-matching-pool']: {
|
|
73
|
+
readonly queue: Acore.BattlegroundQueue;
|
|
74
|
+
readonly gInfo: GroupQueueInfo;
|
|
75
|
+
readonly poolPlayerCount: number;
|
|
76
|
+
readonly bg: Acore.Battleground;
|
|
77
|
+
readonly bracketId: number;
|
|
78
|
+
__return: boolean;
|
|
79
|
+
};
|
|
80
|
+
['battleground-queue:get-player-matchmaking-rating']: {
|
|
81
|
+
readonly playerGuid: ObjectGuidNative;
|
|
82
|
+
readonly bgTypeId: BattlegroundTypeId;
|
|
83
|
+
outRating: number;
|
|
84
|
+
__return: boolean;
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
declare global {
|
|
2
|
+
interface Hooks {
|
|
3
|
+
['battleground:start']: { readonly bg: Acore.Battleground; };
|
|
4
|
+
['battleground:end']: {
|
|
5
|
+
readonly bg: Acore.Battleground;
|
|
6
|
+
readonly winnerTeam: TeamId;
|
|
7
|
+
};
|
|
8
|
+
['battleground:create']: { readonly bg: Acore.Battleground; };
|
|
9
|
+
['battleground:destroy']: { readonly bg: Acore.Battleground; };
|
|
10
|
+
['battleground:end-reward']: {
|
|
11
|
+
readonly bg: Acore.Battleground;
|
|
12
|
+
readonly player: Acore.Player;
|
|
13
|
+
readonly winnerTeamId: TeamId;
|
|
14
|
+
};
|
|
15
|
+
['battleground:update']: {
|
|
16
|
+
readonly bg: Acore.Battleground;
|
|
17
|
+
readonly diff: Temporal.Duration;
|
|
18
|
+
};
|
|
19
|
+
['battleground:add-player']: {
|
|
20
|
+
readonly bg: Acore.Battleground;
|
|
21
|
+
readonly player: Acore.Player;
|
|
22
|
+
};
|
|
23
|
+
['battleground:before-add-player']: {
|
|
24
|
+
readonly bg: Acore.Battleground;
|
|
25
|
+
readonly player: Acore.Player;
|
|
26
|
+
};
|
|
27
|
+
['battleground:remove-player-at-leave']: {
|
|
28
|
+
readonly bg: Acore.Battleground;
|
|
29
|
+
readonly player: Acore.Player;
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
export {};
|