@airbreather/mod-nodejs-types 0.0.9 → 0.0.11
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/classes/Player.d.ts +7 -6
- package/classes/SpellEffectInfo.d.ts +3 -3
- package/classes/SpellImplicitTargetInfo.d.ts +2 -0
- package/classes/SpellInfo.d.ts +1 -1
- package/classes/Unit.d.ts +10 -4
- package/classes/Vehicle.d.ts +1 -1
- package/classes/WorldObject.d.ts +1 -1
- package/classes/WorldPacket.d.ts +2 -0
- package/enums/MovementFlags.d.ts +59 -0
- package/enums/VehicleFlags.d.ts +14 -0
- package/enums/index.d.ts +2 -0
- package/hooks/pet.d.ts +1 -1
- package/hooks/player.d.ts +17 -16
- package/hooks/unit.d.ts +1 -1
- package/hooks/world-object.d.ts +1 -1
- package/package.json +1 -1
- package/records/ExplicitTargetMask.d.ts +8 -0
- package/records/ImmunityInfo.d.ts +1 -1
- package/records/SpellModifier.d.ts +1 -1
- package/records/VehicleEntry.d.ts +34 -0
- package/records/index.d.ts +2 -0
package/classes/Player.d.ts
CHANGED
|
@@ -174,7 +174,7 @@ declare global {
|
|
|
174
174
|
hasKnownTaxiNode(nodeId: number): boolean;
|
|
175
175
|
isAtGroupRewardDistanceFor(target: Unit): boolean;
|
|
176
176
|
isAtLootRewardDistanceFor(target: Unit): boolean;
|
|
177
|
-
|
|
177
|
+
canEquipItemByEntry(itemId: number, slot: number, swap: boolean): boolean;
|
|
178
178
|
isDailyQuestDone(quest: Quest): boolean;
|
|
179
179
|
canSeeStartQuest(quest: Quest): boolean;
|
|
180
180
|
canInteractWithQuestGiver(target: WorldObject): boolean;
|
|
@@ -209,7 +209,7 @@ declare global {
|
|
|
209
209
|
|
|
210
210
|
sendSystemMessage(msg: string): void;
|
|
211
211
|
learnSpell(spellId: number, temporary?: boolean, learnFromSkill?: boolean): void;
|
|
212
|
-
removeSpell(spellId: number,
|
|
212
|
+
removeSpell(spellId: number, removeSpecMask?: number, onlyTemporary?: boolean): void;
|
|
213
213
|
modifyMoney(amount: number): boolean;
|
|
214
214
|
teleport(mapId: number, x: number, y: number, z: number, o: number, options?: TeleportToOptions, target?: Unit, newInstance?: boolean): boolean;
|
|
215
215
|
resurrect(restorePct?: number, applySickness?: boolean): void;
|
|
@@ -221,7 +221,7 @@ declare global {
|
|
|
221
221
|
resetTalents(noResetCost?: boolean): void;
|
|
222
222
|
talkedToCreature(entry: number, guid: ObjectGuid): void;
|
|
223
223
|
killedMonsterCredit(entry: number, guid?: ObjectGuid): void;
|
|
224
|
-
addQuest(quest: Quest, questGiver?:
|
|
224
|
+
addQuest(quest: Quest, questGiver?: ACObject): void;
|
|
225
225
|
removeQuest(questId: number): void;
|
|
226
226
|
completeQuest(questId: number): void;
|
|
227
227
|
failQuest(questId: number): void;
|
|
@@ -243,7 +243,7 @@ declare global {
|
|
|
243
243
|
advanceSkill(skill: SkillType, step: number): boolean;
|
|
244
244
|
summonPet(entry: number, x: number, y: number, z: number, o: number, petType?: PetType, duration?: Temporal.Duration, healthPct?: number): Pet | undefined;
|
|
245
245
|
createPet(entry: number, spellId?: number): Pet | undefined;
|
|
246
|
-
|
|
246
|
+
removePet(mode?: PetSaveMode, returnReagent?: boolean): void;
|
|
247
247
|
unsummonPetTemporarilyIfAny(): void;
|
|
248
248
|
resummonPetIfTemporarilyUnsummoned(): void;
|
|
249
249
|
inviteToGroup(target: Player): boolean;
|
|
@@ -287,7 +287,7 @@ declare global {
|
|
|
287
287
|
learnPetTalent(talentId: number, talentRank: number): void;
|
|
288
288
|
resetPetTalents(): void;
|
|
289
289
|
setGlyph(glyphId: number, slot: number): void;
|
|
290
|
-
completedAchievement(
|
|
290
|
+
completedAchievement(achievementId: number): void;
|
|
291
291
|
resetAchievements(): void;
|
|
292
292
|
bindToInstance(): void;
|
|
293
293
|
kickPlayer(): void;
|
|
@@ -327,12 +327,13 @@ declare global {
|
|
|
327
327
|
getPlayerSettingValue(source: string, index: number): number;
|
|
328
328
|
// this actually consumes it from the rest bonus pool
|
|
329
329
|
getXPRestBonus(xp: number): number;
|
|
330
|
-
setBindPoint(x: number, y: number, z: number, mapId: number, areaId: number):
|
|
330
|
+
setBindPoint(x: number, y: number, z: number, mapId: number, areaId: number): void;
|
|
331
331
|
setFactionForRace(race: Races): void;
|
|
332
332
|
setKnownTaxiNodes(nodes: readonly number[]): void;
|
|
333
333
|
// setReputation(faction: FactionEntry, value: number): void;
|
|
334
334
|
setRestState(triggerId: number): void;
|
|
335
335
|
updatePlayerSetting(source: string, index: number, value: number): void;
|
|
336
|
+
durabilityLoss(item: Item, amount: number): void;
|
|
336
337
|
durabilityPointLossForEquipSlot(slot: EquipmentSlots): void;
|
|
337
338
|
durabilityPointsLoss(item: Item, points: number): void;
|
|
338
339
|
sendQuestTemplate(questGiver: ObjectGuid, quest: Quest, activateAccept?: boolean): void;
|
|
@@ -17,7 +17,7 @@ declare global {
|
|
|
17
17
|
readonly mechanic: Mechanics;
|
|
18
18
|
readonly targetA: SpellImplicitTargetInfo;
|
|
19
19
|
readonly targetB: SpellImplicitTargetInfo;
|
|
20
|
-
readonly radiusEntry: SpellRadiusEntry;
|
|
20
|
+
readonly radiusEntry: SpellRadiusEntry | undefined;
|
|
21
21
|
readonly chainTarget: number;
|
|
22
22
|
readonly itemType: number; // item id
|
|
23
23
|
readonly triggerSpell: number; // spell id
|
|
@@ -34,7 +34,7 @@ declare global {
|
|
|
34
34
|
readonly providedTargetMask: SpellCastTargetFlags;
|
|
35
35
|
readonly implicitTargetType: SpellEffectImplicitTargetTypes;
|
|
36
36
|
readonly usedTargetObjectType: SpellTargetObjectTypes;
|
|
37
|
-
readonly immunityInfo: ImmunityInfo;
|
|
37
|
+
readonly immunityInfo: ImmunityInfo | undefined;
|
|
38
38
|
|
|
39
39
|
hasEffectOf(effect: SpellEffects): boolean;
|
|
40
40
|
appliesAura(aura: AuraType): boolean;
|
|
@@ -42,7 +42,7 @@ declare global {
|
|
|
42
42
|
calcBaseValue(value: number): number;
|
|
43
43
|
calcValueMultiplier(caster: Unit, spell?: Spell): number;
|
|
44
44
|
calcDamageMultiplier(caster: Unit, spell?: Spell): number;
|
|
45
|
-
calcRadius(caster
|
|
45
|
+
calcRadius(caster?: Unit, spell?: Spell): number;
|
|
46
46
|
getMissingTargetMask(srcSet?: boolean, destSet?: boolean, mask?: SpellCastTargetFlags): SpellCastTargetFlags;
|
|
47
47
|
}
|
|
48
48
|
}
|
package/classes/SpellInfo.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ type SpellFamilyFlagsMask = bigint;
|
|
|
8
8
|
declare global {
|
|
9
9
|
namespace Acore {
|
|
10
10
|
class SpellInfo {
|
|
11
|
-
static bySpellId(id: number): SpellInfo;
|
|
11
|
+
static bySpellId(id: number): SpellInfo | undefined;
|
|
12
12
|
|
|
13
13
|
readonly spellId: number;
|
|
14
14
|
readonly categoryEntry: SpellCategoryEntry | undefined;
|
package/classes/Unit.d.ts
CHANGED
|
@@ -51,6 +51,8 @@ declare global {
|
|
|
51
51
|
readonly comboPoints: number;
|
|
52
52
|
readonly attackers: Unit[];
|
|
53
53
|
readonly unorderedThreatList: ThreatReference[];
|
|
54
|
+
readonly hasIncreaseMountedFlightSpeedAura: boolean;
|
|
55
|
+
readonly hasFlyAura: boolean;
|
|
54
56
|
// FactionTemplates in the C++ template has a bunch, but there's also things like
|
|
55
57
|
// KarazhanChessGameFactions, which are different numbers from what you'd expect, and
|
|
56
58
|
// magic number 2082 which seems to show up only in a Zul'Drak encounter with Drakuru.
|
|
@@ -107,13 +109,13 @@ declare global {
|
|
|
107
109
|
dismount(): void;
|
|
108
110
|
performEmote(emote: Emote): void;
|
|
109
111
|
mount(mountDisplayId: number, vehicleId?: number, creatureEntry?: number): void;
|
|
110
|
-
stopSpellCast(
|
|
112
|
+
stopSpellCast(exceptSpellId?: number, withInstant?: boolean): void;
|
|
111
113
|
// set withDelayed to true to interrupt delayed spells too<br>
|
|
112
114
|
// delayed+channeled spells are always interrupted
|
|
113
115
|
interruptNonMeleeSpells(withDelayed: boolean, spellId?: number, withInstant?: boolean, bySelf?: boolean): void;
|
|
114
116
|
removeAllAuras(): void;
|
|
115
117
|
removeArenaAuras(): void;
|
|
116
|
-
setFacingToObject(target: WorldObject, timed?:
|
|
118
|
+
setFacingToObject(target: WorldObject, timed?: Temporal.Duration): void;
|
|
117
119
|
setInCombatWith(target: Unit, addSecondUnitSuppressed?: boolean): void;
|
|
118
120
|
clearThreatList(): void;
|
|
119
121
|
addUnitState(state: UnitState): void;
|
|
@@ -132,6 +134,9 @@ declare global {
|
|
|
132
134
|
moveFleeing(enemy: Unit, time?: number): void;
|
|
133
135
|
moveJump(x: number, y: number, z: number, velXY: number, velZ: number, id?: number, target?: Unit): void;
|
|
134
136
|
moveConfused(): void;
|
|
137
|
+
moveTargetedHome(walk?: boolean): void;
|
|
138
|
+
moveIdle(): void;
|
|
139
|
+
moveRandom(wanderDistance?: number): void;
|
|
135
140
|
clearComboPoints(): void;
|
|
136
141
|
addComboPoints(count: number): void;
|
|
137
142
|
addAura(spellId: number, target: Unit): void;
|
|
@@ -147,8 +152,8 @@ declare global {
|
|
|
147
152
|
setSpeedRate(type: UnitMoveType, speed: number): void;
|
|
148
153
|
attack(target: Unit, meleeAttack: boolean): boolean;
|
|
149
154
|
attackStop(): boolean;
|
|
150
|
-
getFlatModifierValue(stat: UnitMods, type: UnitModifierFlatType):
|
|
151
|
-
getPctModifierValue(stat: UnitMods, type: UnitModifierPctType):
|
|
155
|
+
getFlatModifierValue(stat: UnitMods, type: UnitModifierFlatType): number;
|
|
156
|
+
getPctModifierValue(stat: UnitMods, type: UnitModifierPctType): number;
|
|
152
157
|
setStatFlatModifier(stat: UnitMods, type: UnitModifierFlatType, value: number): void;
|
|
153
158
|
setStatPctModifier(stat: UnitMods, type: UnitModifierPctType, value: number): void;
|
|
154
159
|
handleStatFlatModifier(stat: UnitMods, type: UnitModifierFlatType, value: number, apply: boolean): boolean;
|
|
@@ -169,6 +174,7 @@ declare global {
|
|
|
169
174
|
buildCastSpell(spell: SpellInfo): CastSpellBuilder;
|
|
170
175
|
summonPlayer(player: Player): void
|
|
171
176
|
dealDamage(target: Unit, amount: number, type?: DamageEffectType, spellSchoolMask?: SpellSchoolMask, spellInfo?: SpellInfo, durabilityLoss?: boolean, allowGm?: boolean, spell?: Spell): number;
|
|
177
|
+
hasUnitMovementFlag(flags: MovementFlags): boolean;
|
|
172
178
|
}
|
|
173
179
|
}
|
|
174
180
|
}
|
package/classes/Vehicle.d.ts
CHANGED
package/classes/WorldObject.d.ts
CHANGED
|
@@ -26,7 +26,7 @@ declare global {
|
|
|
26
26
|
isInRangeTo(target: WorldObject, max: number, min?: number, only2d?: boolean): boolean;
|
|
27
27
|
isInFrontOf(target: WorldObject): boolean;
|
|
28
28
|
isInBackOf(target: WorldObject): boolean;
|
|
29
|
-
getRelativePoint(
|
|
29
|
+
getRelativePoint(dist: number, rad: number): { x: number; y: number; z: number; };
|
|
30
30
|
getNearObject(range: number): WorldObject | undefined;
|
|
31
31
|
getPlayersInRange(range: number): Player[];
|
|
32
32
|
getCreaturesInRange(range: number, entry?: number): Creature[];
|
package/classes/WorldPacket.d.ts
CHANGED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
declare global {
|
|
2
|
+
const enum MovementFlags {
|
|
3
|
+
MOVEMENTFLAG_NONE = 0x00000000,
|
|
4
|
+
MOVEMENTFLAG_FORWARD = 0x00000001,
|
|
5
|
+
MOVEMENTFLAG_BACKWARD = 0x00000002,
|
|
6
|
+
MOVEMENTFLAG_STRAFE_LEFT = 0x00000004,
|
|
7
|
+
MOVEMENTFLAG_STRAFE_RIGHT = 0x00000008,
|
|
8
|
+
MOVEMENTFLAG_LEFT = 0x00000010,
|
|
9
|
+
MOVEMENTFLAG_RIGHT = 0x00000020,
|
|
10
|
+
MOVEMENTFLAG_PITCH_UP = 0x00000040,
|
|
11
|
+
MOVEMENTFLAG_PITCH_DOWN = 0x00000080,
|
|
12
|
+
MOVEMENTFLAG_WALKING = 0x00000100, // Walking
|
|
13
|
+
MOVEMENTFLAG_ONTRANSPORT = 0x00000200, // Used for flying on some creatures
|
|
14
|
+
MOVEMENTFLAG_DISABLE_GRAVITY = 0x00000400, // Former MOVEMENTFLAG_LEVITATING. This is used when walking is not possible.
|
|
15
|
+
MOVEMENTFLAG_ROOT = 0x00000800, // Must not be set along with MOVEMENTFLAG_MASK_MOVING
|
|
16
|
+
MOVEMENTFLAG_FALLING = 0x00001000, // damage dealt on that type of falling
|
|
17
|
+
MOVEMENTFLAG_FALLING_FAR = 0x00002000,
|
|
18
|
+
MOVEMENTFLAG_PENDING_STOP = 0x00004000,
|
|
19
|
+
MOVEMENTFLAG_PENDING_STRAFE_STOP = 0x00008000,
|
|
20
|
+
MOVEMENTFLAG_PENDING_FORWARD = 0x00010000,
|
|
21
|
+
MOVEMENTFLAG_PENDING_BACKWARD = 0x00020000,
|
|
22
|
+
MOVEMENTFLAG_PENDING_STRAFE_LEFT = 0x00040000,
|
|
23
|
+
MOVEMENTFLAG_PENDING_STRAFE_RIGHT = 0x00080000,
|
|
24
|
+
MOVEMENTFLAG_PENDING_ROOT = 0x00100000,
|
|
25
|
+
MOVEMENTFLAG_SWIMMING = 0x00200000, // appears with fly flag also
|
|
26
|
+
MOVEMENTFLAG_ASCENDING = 0x00400000, // press "space" when flying
|
|
27
|
+
MOVEMENTFLAG_DESCENDING = 0x00800000,
|
|
28
|
+
MOVEMENTFLAG_CAN_FLY = 0x01000000, // Appears when unit can fly AND also walk
|
|
29
|
+
MOVEMENTFLAG_FLYING = 0x02000000, // unit is actually flying. pretty sure this is only used for players. creatures use disable_gravity
|
|
30
|
+
MOVEMENTFLAG_SPLINE_ELEVATION = 0x04000000, // used for flight paths
|
|
31
|
+
MOVEMENTFLAG_SPLINE_ENABLED = 0x08000000, // used for flight paths
|
|
32
|
+
MOVEMENTFLAG_WATERWALKING = 0x10000000, // prevent unit from falling through water
|
|
33
|
+
MOVEMENTFLAG_FALLING_SLOW = 0x20000000, // active rogue safe fall spell (passive)
|
|
34
|
+
MOVEMENTFLAG_HOVER = 0x40000000, // hover, cannot jump
|
|
35
|
+
|
|
36
|
+
/// @todo: Check if PITCH_UP and PITCH_DOWN really belong here..
|
|
37
|
+
MOVEMENTFLAG_MASK_MOVING =
|
|
38
|
+
MOVEMENTFLAG_FORWARD | MOVEMENTFLAG_BACKWARD | MOVEMENTFLAG_STRAFE_LEFT | MOVEMENTFLAG_STRAFE_RIGHT |
|
|
39
|
+
MOVEMENTFLAG_PITCH_UP | MOVEMENTFLAG_PITCH_DOWN | MOVEMENTFLAG_FALLING | MOVEMENTFLAG_FALLING_FAR | MOVEMENTFLAG_ASCENDING | MOVEMENTFLAG_DESCENDING |
|
|
40
|
+
MOVEMENTFLAG_SPLINE_ELEVATION,
|
|
41
|
+
|
|
42
|
+
MOVEMENTFLAG_MASK_TURNING =
|
|
43
|
+
MOVEMENTFLAG_LEFT | MOVEMENTFLAG_RIGHT,
|
|
44
|
+
|
|
45
|
+
MOVEMENTFLAG_MASK_MOVING_FLY =
|
|
46
|
+
MOVEMENTFLAG_FLYING | MOVEMENTFLAG_ASCENDING | MOVEMENTFLAG_DESCENDING,
|
|
47
|
+
|
|
48
|
+
/// @todo if needed: add more flags to this masks that are exclusive to players
|
|
49
|
+
MOVEMENTFLAG_MASK_PLAYER_ONLY =
|
|
50
|
+
MOVEMENTFLAG_FLYING,
|
|
51
|
+
|
|
52
|
+
MOVEMENTFLAG_MASK_MOVING_OR_TURN = MOVEMENTFLAG_MASK_MOVING | MOVEMENTFLAG_MASK_TURNING,
|
|
53
|
+
|
|
54
|
+
/// Movement flags that have change status opcodes associated for players
|
|
55
|
+
MOVEMENTFLAG_MASK_HAS_PLAYER_STATUS_OPCODE = MOVEMENTFLAG_DISABLE_GRAVITY | MOVEMENTFLAG_ROOT |
|
|
56
|
+
MOVEMENTFLAG_CAN_FLY | MOVEMENTFLAG_WATERWALKING | MOVEMENTFLAG_FALLING_SLOW | MOVEMENTFLAG_HOVER,
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
declare global {
|
|
2
|
+
const enum VehicleFlags {
|
|
3
|
+
VEHICLE_FLAG_NO_STRAFE = 0x00000001, // Sets MOVEFLAG2_NO_STRAFE
|
|
4
|
+
VEHICLE_FLAG_NO_JUMPING = 0x00000002, // Sets MOVEFLAG2_NO_JUMPING
|
|
5
|
+
VEHICLE_FLAG_FULLSPEEDTURNING = 0x00000004, // Sets MOVEFLAG2_FULLSPEEDTURNING
|
|
6
|
+
VEHICLE_FLAG_ALLOW_PITCHING = 0x00000010, // Sets MOVEFLAG2_ALLOW_PITCHING
|
|
7
|
+
VEHICLE_FLAG_FULLSPEEDPITCHING = 0x00000020, // Sets MOVEFLAG2_FULLSPEEDPITCHING
|
|
8
|
+
VEHICLE_FLAG_CUSTOM_PITCH = 0x00000040, // If set use pitchMin and pitchMax from DBC, otherwise pitchMin = -pi/2, pitchMax = pi/2
|
|
9
|
+
VEHICLE_FLAG_ADJUST_AIM_ANGLE = 0x00000400, // Lua_IsVehicleAimAngleAdjustable
|
|
10
|
+
VEHICLE_FLAG_ADJUST_AIM_POWER = 0x00000800, // Lua_IsVehicleAimPowerAdjustable
|
|
11
|
+
VEHICLE_FLAG_FIXED_POSITION = 0x00200000, // Used for cannons, when they should be rooted (mod_playerbots, not sure this is still valid since its only used my playerbot)
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
export {};
|
package/enums/index.d.ts
CHANGED
|
@@ -102,6 +102,7 @@ export type * from './MailCheckMask.d.ts';
|
|
|
102
102
|
export type * from './MailMessageType.d.ts';
|
|
103
103
|
export type * from './MailStationery.d.ts';
|
|
104
104
|
export type * from './Mechanics.d.ts';
|
|
105
|
+
export type * from './MovementFlags.d.ts';
|
|
105
106
|
export type * from './MovementGeneratorType.d.ts';
|
|
106
107
|
export type * from './MovementSlot.d.ts';
|
|
107
108
|
export type * from './NearObjectsMask.d.ts';
|
|
@@ -184,4 +185,5 @@ export type * from './UnitMods.d.ts';
|
|
|
184
185
|
export type * from './UnitMoveType.d.ts';
|
|
185
186
|
export type * from './UnitStandStateType.d.ts';
|
|
186
187
|
export type * from './UnitState.d.ts';
|
|
188
|
+
export type * from './VehicleFlags.d.ts';
|
|
187
189
|
export type * from './WeaponAttackType.d.ts';
|
package/hooks/pet.d.ts
CHANGED
package/hooks/player.d.ts
CHANGED
|
@@ -197,7 +197,7 @@ declare global {
|
|
|
197
197
|
};
|
|
198
198
|
['player:remove-from-battleground']: {
|
|
199
199
|
readonly player: Acore.Player;
|
|
200
|
-
bg: Acore.Battleground;
|
|
200
|
+
readonly bg: Acore.Battleground;
|
|
201
201
|
};
|
|
202
202
|
['player:achievement-complete']: {
|
|
203
203
|
readonly player: Acore.Player;
|
|
@@ -354,7 +354,7 @@ declare global {
|
|
|
354
354
|
['player:after-store-or-equip-new-item']: {
|
|
355
355
|
readonly player: Acore.Player;
|
|
356
356
|
readonly vendorSlot: number;
|
|
357
|
-
item:
|
|
357
|
+
readonly item: Acore.Item;
|
|
358
358
|
readonly count: number;
|
|
359
359
|
readonly bag: number;
|
|
360
360
|
readonly slot: number;
|
|
@@ -398,7 +398,7 @@ declare global {
|
|
|
398
398
|
};
|
|
399
399
|
['player:can-join-in-battleground-queue']: {
|
|
400
400
|
readonly player: Acore.Player;
|
|
401
|
-
readonly battlemasterGuid: ObjectGuidNative;
|
|
401
|
+
readonly battlemasterGuid: ObjectGuidNative | undefined;
|
|
402
402
|
readonly bgTypeId: BattlegroundTypeId;
|
|
403
403
|
readonly joinAsGroup: boolean;
|
|
404
404
|
err: GroupJoinBattlegroundResult;
|
|
@@ -434,6 +434,7 @@ declare global {
|
|
|
434
434
|
readonly player: Acore.Player;
|
|
435
435
|
readonly battlemasterGuid: ObjectGuidNative;
|
|
436
436
|
readonly arenaSlot: number;
|
|
437
|
+
readonly bgTypeId: number; // BattlegroundTypeId enum in native, but clearly it's not one of those.
|
|
437
438
|
readonly joinAsGroup: boolean;
|
|
438
439
|
readonly isRated: boolean;
|
|
439
440
|
err: GroupJoinBattlegroundResult;
|
|
@@ -507,7 +508,7 @@ declare global {
|
|
|
507
508
|
readonly player: Acore.Player;
|
|
508
509
|
readonly playerClass: Classes;
|
|
509
510
|
readonly context: ClassContext;
|
|
510
|
-
__return: boolean;
|
|
511
|
+
__return: boolean | undefined;
|
|
511
512
|
};
|
|
512
513
|
['player:get-max-skill-value']: {
|
|
513
514
|
readonly player: Acore.Player;
|
|
@@ -761,7 +762,7 @@ declare global {
|
|
|
761
762
|
readonly player: Acore.Player;
|
|
762
763
|
readonly roles: LfgRoles;
|
|
763
764
|
// dungeons: ReadonlySet<number>;
|
|
764
|
-
comment: string;
|
|
765
|
+
readonly comment: string;
|
|
765
766
|
__return: boolean;
|
|
766
767
|
};
|
|
767
768
|
['player:can-enter-map']: {
|
|
@@ -795,7 +796,7 @@ declare global {
|
|
|
795
796
|
};
|
|
796
797
|
['player:resurrect']: {
|
|
797
798
|
readonly player: Acore.Player;
|
|
798
|
-
restorePercent: number;
|
|
799
|
+
readonly restorePercent: number;
|
|
799
800
|
applySickness: boolean;
|
|
800
801
|
};
|
|
801
802
|
['player:before-choose-graveyard']: {
|
|
@@ -806,39 +807,39 @@ declare global {
|
|
|
806
807
|
};
|
|
807
808
|
['player:can-use-chat']: {
|
|
808
809
|
readonly player: Acore.Player;
|
|
809
|
-
type: ChatMsg;
|
|
810
|
-
lang: Language;
|
|
810
|
+
readonly type: ChatMsg;
|
|
811
|
+
readonly lang: Language;
|
|
811
812
|
msg: string;
|
|
812
813
|
__return: boolean;
|
|
813
814
|
};
|
|
814
815
|
['player:can-use-chat:player']: {
|
|
815
816
|
readonly player: Acore.Player;
|
|
816
|
-
type: ChatMsg;
|
|
817
|
-
lang: Language;
|
|
817
|
+
readonly type: ChatMsg;
|
|
818
|
+
readonly lang: Language;
|
|
818
819
|
msg: string;
|
|
819
820
|
readonly receiver: Acore.Player;
|
|
820
821
|
__return: boolean;
|
|
821
822
|
};
|
|
822
823
|
['player:can-use-chat:group']: {
|
|
823
824
|
readonly player: Acore.Player;
|
|
824
|
-
type: ChatMsg;
|
|
825
|
-
lang: Language;
|
|
825
|
+
readonly type: ChatMsg;
|
|
826
|
+
readonly lang: Language;
|
|
826
827
|
msg: string;
|
|
827
828
|
readonly group: Acore.Group;
|
|
828
829
|
__return: boolean;
|
|
829
830
|
};
|
|
830
831
|
['player:can-use-chat:guild']: {
|
|
831
832
|
readonly player: Acore.Player;
|
|
832
|
-
type: ChatMsg;
|
|
833
|
-
lang: Language;
|
|
833
|
+
readonly type: ChatMsg;
|
|
834
|
+
readonly lang: Language;
|
|
834
835
|
msg: string;
|
|
835
836
|
readonly guild: Acore.Guild;
|
|
836
837
|
__return: boolean;
|
|
837
838
|
};
|
|
838
839
|
['player:can-use-chat:channel']: {
|
|
839
840
|
readonly player: Acore.Player;
|
|
840
|
-
type: ChatMsg;
|
|
841
|
-
lang: Language;
|
|
841
|
+
readonly type: ChatMsg;
|
|
842
|
+
readonly lang: Language;
|
|
842
843
|
msg: string;
|
|
843
844
|
// readonly channel: Acore.Channel;
|
|
844
845
|
__return: boolean;
|
package/hooks/unit.d.ts
CHANGED
package/hooks/world-object.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare global {
|
|
2
2
|
interface Hooks {
|
|
3
|
-
['world-object:
|
|
3
|
+
['world-object:destroy']: { readonly obj: Acore.WorldObject; };
|
|
4
4
|
['world-object:create']: { readonly obj: Acore.WorldObject; };
|
|
5
5
|
['world-object:set-map']: {
|
|
6
6
|
readonly obj: Acore.WorldObject;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@ declare global {
|
|
|
2
2
|
interface ImmunityInfo {
|
|
3
3
|
schoolImmuneMask: SpellSchoolMask;
|
|
4
4
|
applyHarmfulAuraImmuneMask: SpellSchoolMask;
|
|
5
|
-
mechanicImmuneMask: number;
|
|
5
|
+
mechanicImmuneMask: number | bigint;
|
|
6
6
|
dispelImmuneMask: DispelType; // doesn't seem so much of a "mask", really...
|
|
7
7
|
damageSchoolMask: SpellSchoolMask;
|
|
8
8
|
auraTypeImmune: Set<AuraType>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
declare global {
|
|
2
|
+
interface VehicleEntry {
|
|
3
|
+
id: number;
|
|
4
|
+
flags: VehicleFlags;
|
|
5
|
+
turnSpeed: number;
|
|
6
|
+
pitchSpeed: number;
|
|
7
|
+
pitchMin: number;
|
|
8
|
+
pitchMax: number;
|
|
9
|
+
seatId: number[];
|
|
10
|
+
mouseLookOffsetPitch: number;
|
|
11
|
+
cameraFadeDistScalarMin: number;
|
|
12
|
+
cameraFadeDistScalarMax: number;
|
|
13
|
+
cameraPitchOffset: number;
|
|
14
|
+
facingLimitRight: number;
|
|
15
|
+
facingLimitLeft: number;
|
|
16
|
+
msslTrgtTurnLingering: number;
|
|
17
|
+
msslTrgtPitchLingering: number;
|
|
18
|
+
msslTrgtMouseLingering: number;
|
|
19
|
+
msslTrgtEndOpacity: number;
|
|
20
|
+
msslTrgtArcSpeed: number;
|
|
21
|
+
msslTrgtArcRepeat: number;
|
|
22
|
+
msslTrgtArcWidth: number;
|
|
23
|
+
msslTrgtImpactRadius: number[];
|
|
24
|
+
msslTrgtArcTexture: string;
|
|
25
|
+
msslTrgtImpactTexture: string;
|
|
26
|
+
msslTrgtImpactModel: string[];
|
|
27
|
+
cameraYawOffset: number;
|
|
28
|
+
uiLocomotionType: number;
|
|
29
|
+
msslTrgtImpactTexRadius: number;
|
|
30
|
+
uiSeatIndicatorType: number;
|
|
31
|
+
powerDisplayId: number;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
export {};
|
package/records/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export type * from './ChaseAngle.d.ts';
|
|
|
6
6
|
export type * from './ChaseRange.d.ts';
|
|
7
7
|
export type * from './CreatureModel.d.ts';
|
|
8
8
|
export type * from './CreatureMovementData.d.ts';
|
|
9
|
+
export type * from './ExplicitTargetMask.d.ts';
|
|
9
10
|
export type * from './GlyphPropertiesEntry.d.ts';
|
|
10
11
|
export type * from './GroupQueueInfo.d.ts';
|
|
11
12
|
export type * from './Homebind.d.ts';
|
|
@@ -27,3 +28,4 @@ export type * from './SpellModifier.d.ts';
|
|
|
27
28
|
export type * from './SpellRadiusEntry.d.ts';
|
|
28
29
|
export type * from './SpellRangeEntry.d.ts';
|
|
29
30
|
export type * from './SummonPropertiesEntry.d.ts';
|
|
31
|
+
export type * from './VehicleEntry.d.ts';
|