@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.
Files changed (285) hide show
  1. package/acore.d.ts +35 -0
  2. package/classes/ACMap.d.ts +29 -0
  3. package/classes/ACObject.d.ts +33 -0
  4. package/classes/Auction.d.ts +39 -0
  5. package/classes/AuctionHouse.d.ts +18 -0
  6. package/classes/Aura.d.ts +25 -0
  7. package/classes/AuraApplication.d.ts +21 -0
  8. package/classes/AuraEffect.d.ts +45 -0
  9. package/classes/Battleground.d.ts +16 -0
  10. package/classes/BattlegroundQueue.d.ts +12 -0
  11. package/classes/ByteBuffer.d.ts +34 -0
  12. package/classes/CastSpellBuilder.d.ts +41 -0
  13. package/classes/ChatCommandBuilder.d.ts +13 -0
  14. package/classes/ChatHandler.d.ts +23 -0
  15. package/classes/Condition.d.ts +29 -0
  16. package/classes/ConditionSourceInfo.d.ts +15 -0
  17. package/classes/Config.d.ts +22 -0
  18. package/classes/Corpse.d.ts +14 -0
  19. package/classes/Creature.d.ts +82 -0
  20. package/classes/CreatureTemplate.d.ts +73 -0
  21. package/classes/DynamicObject.d.ts +23 -0
  22. package/classes/Field.d.ts +23 -0
  23. package/classes/GameObject.d.ts +36 -0
  24. package/classes/GmTicket.d.ts +24 -0
  25. package/classes/Group.d.ts +28 -0
  26. package/classes/Guardian.d.ts +7 -0
  27. package/classes/Guild.d.ts +28 -0
  28. package/classes/GuildMember.d.ts +25 -0
  29. package/classes/Item.d.ts +41 -0
  30. package/classes/ItemTemplate.d.ts +123 -0
  31. package/classes/Loot.d.ts +29 -0
  32. package/classes/LootStore.d.ts +16 -0
  33. package/classes/LootTemplate.d.ts +8 -0
  34. package/classes/MailDraft.d.ts +15 -0
  35. package/classes/MailSender.d.ts +24 -0
  36. package/classes/Minion.d.ts +12 -0
  37. package/classes/Pet.d.ts +18 -0
  38. package/classes/Player.d.ts +156 -0
  39. package/classes/QueryResult.d.ts +14 -0
  40. package/classes/Quest.d.ts +21 -0
  41. package/classes/Roll.d.ts +14 -0
  42. package/classes/Spell.d.ts +18 -0
  43. package/classes/SpellChainNode.d.ts +7 -0
  44. package/classes/SpellEffectInfo.d.ts +50 -0
  45. package/classes/SpellImplicitTargetInfo.d.ts +15 -0
  46. package/classes/SpellInfo.d.ts +200 -0
  47. package/classes/TempSummon.d.ts +15 -0
  48. package/classes/ThreatReference.d.ts +24 -0
  49. package/classes/Transport.d.ts +13 -0
  50. package/classes/Unit.d.ts +173 -0
  51. package/classes/Vehicle.d.ts +15 -0
  52. package/classes/WorldObject.d.ts +51 -0
  53. package/classes/WorldPacket.d.ts +8 -0
  54. package/classes/index.d.ts +52 -0
  55. package/enums/AURA_FLAGS.d.ts +20 -0
  56. package/enums/AccountFlags.d.ts +39 -0
  57. package/enums/AccountTypes.d.ts +10 -0
  58. package/enums/AchievementFlags.d.ts +15 -0
  59. package/enums/AcoreStrings.d.ts +1507 -0
  60. package/enums/ArenaTeamInfoType.d.ts +14 -0
  61. package/enums/ArenaType.d.ts +9 -0
  62. package/enums/AuctionHouseId.d.ts +8 -0
  63. package/enums/AuraRemoveMode.d.ts +11 -0
  64. package/enums/AuraStateType.d.ts +33 -0
  65. package/enums/AuraType.d.ts +323 -0
  66. package/enums/BAG_FAMILY_MASK.d.ts +21 -0
  67. package/enums/BattlegroundDesertionType.d.ts +14 -0
  68. package/enums/BattlegroundQueueGroupTypes.d.ts +13 -0
  69. package/enums/BattlegroundTypeId.d.ts +20 -0
  70. package/enums/CharterTypes.d.ts +9 -0
  71. package/enums/ChatMsg.d.ts +58 -0
  72. package/enums/ClassContext.d.ts +24 -0
  73. package/enums/Classes.d.ts +18 -0
  74. package/enums/ConditionSourceType.d.ts +37 -0
  75. package/enums/ConditionTypes.d.ts +67 -0
  76. package/enums/CorpseType.d.ts +8 -0
  77. package/enums/CreatureChaseMovementType.d.ts +10 -0
  78. package/enums/CreatureClasses.d.ts +11 -0
  79. package/enums/CreatureEliteType.d.ts +11 -0
  80. package/enums/CreatureFamily.d.ts +47 -0
  81. package/enums/CreatureFlagsExtra.d.ts +40 -0
  82. package/enums/CreatureFlightMovementType.d.ts +10 -0
  83. package/enums/CreatureGroundMovementType.d.ts +10 -0
  84. package/enums/CreatureRandomMovementType.d.ts +10 -0
  85. package/enums/CreatureType.d.ts +35 -0
  86. package/enums/CreatureTypeFlags.d.ts +37 -0
  87. package/enums/CurrentSpellTypes.d.ts +9 -0
  88. package/enums/DamageEffectType.d.ts +11 -0
  89. package/enums/DatabaseFieldTypes.d.ts +15 -0
  90. package/enums/Db.d.ts +9 -0
  91. package/enums/DeathState.d.ts +10 -0
  92. package/enums/Difficulty.d.ts +15 -0
  93. package/enums/DispelType.d.ts +34 -0
  94. package/enums/DuelCompleteType.d.ts +8 -0
  95. package/enums/Emote.d.ts +181 -0
  96. package/enums/EnchantmentSlot.d.ts +21 -0
  97. package/enums/EvadeReason.d.ts +10 -0
  98. package/enums/Expansions.d.ts +9 -0
  99. package/enums/GMTicketEscalationStatus.d.ts +14 -0
  100. package/enums/GOState.d.ts +9 -0
  101. package/enums/Gender.d.ts +8 -0
  102. package/enums/GossipAction.d.ts +18 -0
  103. package/enums/GossipSender.d.ts +15 -0
  104. package/enums/GroupJoinBattlegroundResult.d.ts +22 -0
  105. package/enums/GroupMemberFlags.d.ts +8 -0
  106. package/enums/GroupType.d.ts +14 -0
  107. package/enums/GuildBankEventLogTypes.d.ts +14 -0
  108. package/enums/GuildDefaultRanks.d.ts +13 -0
  109. package/enums/GuildEventLogTypes.d.ts +11 -0
  110. package/enums/GuildMemberFlags.d.ts +10 -0
  111. package/enums/HighGuid.d.ts +18 -0
  112. package/enums/HolidayIds.d.ts +34 -0
  113. package/enums/InventoryResult.d.ts +94 -0
  114. package/enums/InventoryType.d.ts +66 -0
  115. package/enums/ItemBondingType.d.ts +11 -0
  116. package/enums/ItemClass.d.ts +22 -0
  117. package/enums/ItemFlags.d.ts +37 -0
  118. package/enums/ItemFlags2.d.ts +37 -0
  119. package/enums/ItemFlagsCustom.d.ts +8 -0
  120. package/enums/ItemModType.d.ts +49 -0
  121. package/enums/ItemQualities.d.ts +13 -0
  122. package/enums/ItemSpelltriggerType.d.ts +17 -0
  123. package/enums/ItemSubclass.d.ts +42 -0
  124. package/enums/ItemSubclassArmor.d.ts +30 -0
  125. package/enums/ItemSubclassConsumable.d.ts +26 -0
  126. package/enums/ItemSubclassContainer.d.ts +26 -0
  127. package/enums/ItemSubclassGem.d.ts +26 -0
  128. package/enums/ItemSubclassGeneric.d.ts +10 -0
  129. package/enums/ItemSubclassGlyph.d.ts +28 -0
  130. package/enums/ItemSubclassJunk.d.ts +20 -0
  131. package/enums/ItemSubclassKey.d.ts +12 -0
  132. package/enums/ItemSubclassMoney.d.ts +10 -0
  133. package/enums/ItemSubclassPermanent.d.ts +10 -0
  134. package/enums/ItemSubclassProjectile.d.ts +18 -0
  135. package/enums/ItemSubclassQuest.d.ts +10 -0
  136. package/enums/ItemSubclassQuiver.d.ts +16 -0
  137. package/enums/ItemSubclassReagent.d.ts +10 -0
  138. package/enums/ItemSubclassRecipe.d.ts +30 -0
  139. package/enums/ItemSubclassTradeGoods.d.ts +40 -0
  140. package/enums/ItemSubclassWeapon.d.ts +50 -0
  141. package/enums/Language.d.ts +24 -0
  142. package/enums/LfgRoles.d.ts +10 -0
  143. package/enums/LocaleConstant.d.ts +14 -0
  144. package/enums/LogLevel.d.ts +12 -0
  145. package/enums/LootModes.d.ts +12 -0
  146. package/enums/LootState.d.ts +13 -0
  147. package/enums/LootStoreType.d.ts +19 -0
  148. package/enums/LootType.d.ts +19 -0
  149. package/enums/MailCheckedMask.d.ts +11 -0
  150. package/enums/MailMessageType.d.ts +10 -0
  151. package/enums/MailStationery.d.ts +13 -0
  152. package/enums/Mechanics.d.ts +44 -0
  153. package/enums/MovementGeneratorType.d.ts +27 -0
  154. package/enums/MovementSlot.d.ts +8 -0
  155. package/enums/NPCFlags.d.ts +35 -0
  156. package/enums/NearObjectsMask.d.ts +9 -0
  157. package/enums/OBJECT_UPDATE_TYPE.d.ts +11 -0
  158. package/enums/OnlineState.d.ts +8 -0
  159. package/enums/PetDiet.d.ts +14 -0
  160. package/enums/PetSpellState.d.ts +9 -0
  161. package/enums/PetType.d.ts +8 -0
  162. package/enums/PlayerChatTag.d.ts +11 -0
  163. package/enums/PlayerXPSource.d.ts +11 -0
  164. package/enums/Powers.d.ts +15 -0
  165. package/enums/ProcFlags.d.ts +93 -0
  166. package/enums/ProcFlagsHit.d.ts +21 -0
  167. package/enums/QuestStatus.d.ts +12 -0
  168. package/enums/QuestTypes.d.ts +17 -0
  169. package/enums/Races.d.ts +28 -0
  170. package/enums/ReactStates.d.ts +8 -0
  171. package/enums/RemoveMethod.d.ts +9 -0
  172. package/enums/ReputationRank.d.ts +13 -0
  173. package/enums/ReputationSource.d.ts +12 -0
  174. package/enums/RollMask.d.ts +12 -0
  175. package/enums/RollVote.d.ts +11 -0
  176. package/enums/ServerSideVisibilityType.d.ts +9 -0
  177. package/enums/ShapeshiftForm.d.ts +37 -0
  178. package/enums/SheathState.d.ts +9 -0
  179. package/enums/ShutdownMask.d.ts +8 -0
  180. package/enums/SkillType.d.ts +157 -0
  181. package/enums/SocketColor.d.ts +9 -0
  182. package/enums/SpellAttributes.d.ts +317 -0
  183. package/enums/SpellAuraInterruptFlags.d.ts +36 -0
  184. package/enums/SpellCastResult.d.ts +195 -0
  185. package/enums/SpellCastTargetFlags.d.ts +33 -0
  186. package/enums/SpellCategoryFlags.d.ts +7 -0
  187. package/enums/SpellDmgClass.d.ts +9 -0
  188. package/enums/SpellEffIndex.d.ts +14 -0
  189. package/enums/SpellEffectImplicitTargetTypes.d.ts +8 -0
  190. package/enums/SpellEffects.d.ts +170 -0
  191. package/enums/SpellFacingFlags.d.ts +6 -0
  192. package/enums/SpellFamilyFlag.d.ts +46 -0
  193. package/enums/SpellFamilyNames.d.ts +23 -0
  194. package/enums/SpellImmuneBlockType.d.ts +7 -0
  195. package/enums/SpellImmunity.d.ts +17 -0
  196. package/enums/SpellInterruptFlags.d.ts +11 -0
  197. package/enums/SpellModOp.d.ts +36 -0
  198. package/enums/SpellModType.d.ts +8 -0
  199. package/enums/SpellPreventionType.d.ts +8 -0
  200. package/enums/SpellRangeFlag.d.ts +8 -0
  201. package/enums/SpellSchoolMask.d.ts +25 -0
  202. package/enums/SpellSchools.d.ts +12 -0
  203. package/enums/SpellSpecificType.d.ts +28 -0
  204. package/enums/SpellTargetCheckTypes.d.ts +14 -0
  205. package/enums/SpellTargetDirectionTypes.d.ts +16 -0
  206. package/enums/SpellTargetObjectTypes.d.ts +17 -0
  207. package/enums/SpellTargetReferenceTypes.d.ts +11 -0
  208. package/enums/SpellTargetSelectionCategories.d.ts +12 -0
  209. package/enums/SpellValueMod.d.ts +16 -0
  210. package/enums/Stats.d.ts +10 -0
  211. package/enums/SummonCategory.d.ts +12 -0
  212. package/enums/SummonPropFlags.d.ts +23 -0
  213. package/enums/SummonType.d.ts +18 -0
  214. package/enums/TargetIcon.d.ts +14 -0
  215. package/enums/Targets.d.ts +112 -0
  216. package/enums/TauntState.d.ts +8 -0
  217. package/enums/TeamId.d.ts +8 -0
  218. package/enums/TeleportToOptions.d.ts +13 -0
  219. package/enums/TempSummonType.d.ts +15 -0
  220. package/enums/TextEmote.d.ts +258 -0
  221. package/enums/TriggerCastFlags.d.ts +27 -0
  222. package/enums/TypeId.d.ts +13 -0
  223. package/enums/UnitDynFlags.d.ts +14 -0
  224. package/enums/UnitFlags.d.ts +38 -0
  225. package/enums/UnitFlags2.d.ts +25 -0
  226. package/enums/UnitModifierFlatType.d.ts +8 -0
  227. package/enums/UnitModifierPctType.d.ts +8 -0
  228. package/enums/UnitMods.d.ts +38 -0
  229. package/enums/UnitMoveType.d.ts +14 -0
  230. package/enums/UnitStandStateType.d.ts +16 -0
  231. package/enums/UnitState.d.ts +60 -0
  232. package/enums/WeaponAttackType.d.ts +8 -0
  233. package/enums/index.d.ts +177 -0
  234. package/hooks/account.d.ts +19 -0
  235. package/hooks/auction.d.ts +67 -0
  236. package/hooks/battleground-queue.d.ts +88 -0
  237. package/hooks/battleground.d.ts +33 -0
  238. package/hooks/creature.d.ts +58 -0
  239. package/hooks/game-object.d.ts +68 -0
  240. package/hooks/group.d.ts +39 -0
  241. package/hooks/guild.d.ts +138 -0
  242. package/hooks/index.d.ts +20 -0
  243. package/hooks/item.d.ts +40 -0
  244. package/hooks/loot.d.ts +9 -0
  245. package/hooks/map.d.ts +30 -0
  246. package/hooks/misc.d.ts +54 -0
  247. package/hooks/nodejs.d.ts +7 -0
  248. package/hooks/pet.d.ts +30 -0
  249. package/hooks/player.d.ts +966 -0
  250. package/hooks/spell.d.ts +82 -0
  251. package/hooks/ticket.d.ts +10 -0
  252. package/hooks/unit.d.ts +116 -0
  253. package/hooks/vehicle.d.ts +21 -0
  254. package/hooks/world-object.d.ts +16 -0
  255. package/hooks/world.d.ts +7 -0
  256. package/package.json +37 -0
  257. package/records/AchievementEntry.d.ts +14 -0
  258. package/records/BattlegroundScore.d.ts +58 -0
  259. package/records/Box.d.ts +6 -0
  260. package/records/ChaseAngle.d.ts +7 -0
  261. package/records/ChaseRange.d.ts +8 -0
  262. package/records/CreatureModel.d.ts +8 -0
  263. package/records/CreatureMovementData.d.ts +12 -0
  264. package/records/GlyphPropertiesEntry.d.ts +9 -0
  265. package/records/GroupMember.d.ts +9 -0
  266. package/records/GroupQueueInfo.d.ts +22 -0
  267. package/records/Homebind.d.ts +10 -0
  268. package/records/ImmunityInfo.d.ts +12 -0
  269. package/records/ItemDamage.d.ts +8 -0
  270. package/records/ItemSocket.d.ts +7 -0
  271. package/records/ItemSpell.d.ts +12 -0
  272. package/records/ItemStat.d.ts +7 -0
  273. package/records/LootItem.d.ts +12 -0
  274. package/records/ObjectGuid.d.ts +10 -0
  275. package/records/PetInfo.d.ts +20 -0
  276. package/records/Position.d.ts +9 -0
  277. package/records/PvPDifficultyEntry.d.ts +10 -0
  278. package/records/SpellCastTimesEntry.d.ts +7 -0
  279. package/records/SpellCategoryEntry.d.ts +7 -0
  280. package/records/SpellDurationEntry.d.ts +7 -0
  281. package/records/SpellModifier.d.ts +11 -0
  282. package/records/SpellRadiusEntry.d.ts +9 -0
  283. package/records/SpellRangeEntry.d.ts +11 -0
  284. package/records/SummonPropertiesEntry.d.ts +11 -0
  285. 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,8 @@
1
+ declare global {
2
+ const enum UnitModifierFlatType {
3
+ BASE_VALUE = 0,
4
+ TOTAL_VALUE = 1,
5
+ MODIFIER_TYPE_FLAT_END = 3,
6
+ }
7
+ }
8
+ export {};
@@ -0,0 +1,8 @@
1
+ declare global {
2
+ const enum UnitModifierPctType {
3
+ BASE_PCT = 0,
4
+ TOTAL_PCT = 1,
5
+ MODIFIER_TYPE_PCT_END = 2,
6
+ }
7
+ }
8
+ 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,14 @@
1
+ declare global {
2
+ const enum UnitMoveType {
3
+ MOVE_WALK = 0,
4
+ MOVE_RUN = 1,
5
+ MOVE_RUN_BACK = 2,
6
+ MOVE_SWIM = 3,
7
+ MOVE_SWIM_BACK = 4,
8
+ MOVE_TURN_RATE = 5,
9
+ MOVE_FLIGHT = 6,
10
+ MOVE_FLIGHT_BACK = 7,
11
+ MOVE_PITCH_RATE = 8,
12
+ }
13
+ }
14
+ 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 {};
@@ -0,0 +1,8 @@
1
+ declare global {
2
+ const enum WeaponAttackType {
3
+ BASE_ATTACK = 0,
4
+ OFF_ATTACK = 1,
5
+ RANGED_ATTACK = 2,
6
+ }
7
+ }
8
+ export {};
@@ -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 {};