@airbreather/mod-nodejs-types 0.0.8 → 0.0.10
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/ACMap.d.ts +3 -3
- package/classes/Auction.d.ts +0 -1
- package/classes/AuctionHouse.d.ts +1 -1
- package/classes/ChatHandler.d.ts +1 -1
- package/classes/Config.d.ts +12 -12
- package/classes/CreatureTemplate.d.ts +5 -5
- package/classes/GameObject.d.ts +4 -0
- package/classes/Guild.d.ts +2 -2
- package/classes/Loot.d.ts +8 -5
- package/classes/LootStore.d.ts +0 -2
- package/classes/LootTemplate.d.ts +1 -1
- package/classes/MailDraft.d.ts +2 -2
- package/classes/Pet.d.ts +38 -1
- 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 +9 -4
- package/classes/Vehicle.d.ts +1 -1
- package/classes/WorldObject.d.ts +1 -2
- package/classes/WorldPacket.d.ts +2 -0
- package/enums/ActiveStates.d.ts +11 -0
- package/enums/HappinessState.d.ts +8 -0
- package/enums/{MailCheckedMask.d.ts → MailCheckMask.d.ts} +1 -1
- package/enums/PetSpellType.d.ts +8 -0
- package/enums/VehicleFlags.d.ts +14 -0
- package/enums/index.d.ts +5 -1
- 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/CreatureMovementData.d.ts +1 -1
- package/records/ExplicitTargetMask.d.ts +8 -0
- package/records/ImmunityInfo.d.ts +1 -1
- package/records/PetSpell.d.ts +8 -0
- package/records/SpellModifier.d.ts +1 -1
- package/records/VehicleEntry.d.ts +34 -0
- package/records/index.d.ts +3 -0
package/classes/ACMap.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
declare global {
|
|
2
2
|
namespace Acore {
|
|
3
3
|
class ACMap {
|
|
4
|
-
static nonInstancedById(id: number): ACMap;
|
|
5
|
-
static instancedById(id: number, instanceId: number): ACMap;
|
|
6
|
-
static entrancePosById(id: number): Position;
|
|
4
|
+
static nonInstancedById(id: number): ACMap | undefined;
|
|
5
|
+
static instancedById(id: number, instanceId: number): ACMap | undefined;
|
|
6
|
+
static entrancePosById(id: number): Position | undefined;
|
|
7
7
|
|
|
8
8
|
readonly mapId: number;
|
|
9
9
|
readonly instanceId: number;
|
package/classes/Auction.d.ts
CHANGED
|
@@ -26,7 +26,6 @@ declare global {
|
|
|
26
26
|
|
|
27
27
|
deleteFromDB(): void;
|
|
28
28
|
saveToDB(): void;
|
|
29
|
-
saveToDB(): void;
|
|
30
29
|
sendAuctionWonMail(sendNotification?: boolean, updateAchievementCriteria?: boolean): void;
|
|
31
30
|
sendAuctionSalePendingMail(): void;
|
|
32
31
|
sendAuctionSuccessfulMail(sendNotification?: boolean, updateAchievementCriteria?: boolean): void;
|
package/classes/ChatHandler.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ declare global {
|
|
|
5
5
|
readonly selectedPlayer: Player | undefined;
|
|
6
6
|
readonly selectedPlayerOrSelf: Player | undefined;
|
|
7
7
|
readonly selectedCreature: Creature | undefined;
|
|
8
|
-
readonly selectedUnit: Unit | undefined
|
|
8
|
+
readonly selectedUnit: Unit | undefined;
|
|
9
9
|
readonly selectedObject: WorldObject | undefined;
|
|
10
10
|
readonly isConsole: boolean;
|
|
11
11
|
readonly hasSentErrorMessage: boolean;
|
package/classes/Config.d.ts
CHANGED
|
@@ -4,18 +4,18 @@ declare global {
|
|
|
4
4
|
static getArguments(): string[];
|
|
5
5
|
static getConfigPath(): string;
|
|
6
6
|
static getFilename(): string;
|
|
7
|
-
static getKeysStartingWith(): string[];
|
|
8
|
-
static getBool(): boolean;
|
|
9
|
-
static getString(): string;
|
|
10
|
-
static getFloat(): number;
|
|
11
|
-
static getU8(): number;
|
|
12
|
-
static getI8(): number;
|
|
13
|
-
static getU16(): number;
|
|
14
|
-
static getI16(): number;
|
|
15
|
-
static getU32(): number;
|
|
16
|
-
static getI32(): number;
|
|
17
|
-
static getU64(): number | bigint;
|
|
18
|
-
static getI64(): number | bigint;
|
|
7
|
+
static getKeysStartingWith(prefix: string): string[];
|
|
8
|
+
static getBool(key: string, def?: boolean, showLogs?: boolean): boolean;
|
|
9
|
+
static getString(key: string, def?: string, showLogs?: boolean): string;
|
|
10
|
+
static getFloat(key: string, def?: number, showLogs?: boolean): number;
|
|
11
|
+
static getU8(key: string, def?: number, showLogs?: boolean): number;
|
|
12
|
+
static getI8(key: string, def?: number, showLogs?: boolean): number;
|
|
13
|
+
static getU16(key: string, def?: number, showLogs?: boolean): number;
|
|
14
|
+
static getI16(key: string, def?: number, showLogs?: boolean): number;
|
|
15
|
+
static getU32(key: string, def?: number, showLogs?: boolean): number;
|
|
16
|
+
static getI32(key: string, def?: number, showLogs?: boolean): number;
|
|
17
|
+
static getU64(key: string, def?: number | bigint, showLogs?: boolean): number | bigint;
|
|
18
|
+
static getI64(key: string, def?: number | bigint, showLogs?: boolean): number | bigint;
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
}
|
|
@@ -29,7 +29,7 @@ declare global {
|
|
|
29
29
|
readonly unitClass: CreatureClasses;
|
|
30
30
|
readonly unitFlags: UnitFlags;
|
|
31
31
|
readonly unitFlags2: UnitFlags2;
|
|
32
|
-
readonly
|
|
32
|
+
readonly dynamicFlags: UnitDynFlags;
|
|
33
33
|
readonly family: CreatureFamily;
|
|
34
34
|
readonly creatureType: CreatureType;
|
|
35
35
|
readonly creatureTypeFlags: CreatureTypeFlags;
|
|
@@ -59,10 +59,10 @@ declare global {
|
|
|
59
59
|
readonly requiredLootSkill: SkillType;
|
|
60
60
|
readonly isExotic: boolean;
|
|
61
61
|
|
|
62
|
-
getModelByIdx(idx: number): CreatureModel;
|
|
63
|
-
getRandomValidModel(): CreatureModel;
|
|
64
|
-
getFirstValidModel(): CreatureModel;
|
|
65
|
-
getModelWithDisplayId(displayId: number): CreatureModel;
|
|
62
|
+
getModelByIdx(idx: number): CreatureModel | undefined;
|
|
63
|
+
getRandomValidModel(): CreatureModel | undefined;
|
|
64
|
+
getFirstValidModel(): CreatureModel | undefined;
|
|
65
|
+
getModelWithDisplayId(displayId: number): CreatureModel | undefined;
|
|
66
66
|
getFirstInvisibleModel(): CreatureModel;
|
|
67
67
|
getFirstVisibleModel(): CreatureModel;
|
|
68
68
|
isTameable(exotic: boolean): boolean;
|
package/classes/GameObject.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ declare global {
|
|
|
18
18
|
spellId: number;
|
|
19
19
|
isSpawnedByDefault: boolean;
|
|
20
20
|
|
|
21
|
+
hasQuest(quest: Quest): boolean;
|
|
21
22
|
setLootState(lootState: LootState, unit?: Unit): void;
|
|
22
23
|
useDoorOrButton(timeToRestore?: Temporal.Duration, alternative?: boolean, user?: Unit): void;
|
|
23
24
|
despawn(): void;
|
|
@@ -26,6 +27,9 @@ declare global {
|
|
|
26
27
|
refresh(): void;
|
|
27
28
|
saveToDB(saveAddon?: boolean): void;
|
|
28
29
|
saveToDBExtra(mapId: number, spawnMask: number, phaseMask: number, saveAddon?: boolean): void;
|
|
30
|
+
delete(): void;
|
|
31
|
+
deleteFromDB(): void;
|
|
32
|
+
getFishLoot(lootOwner: Player, junk?: boolean): Loot;
|
|
29
33
|
// mod-nodejs inventions: SetRespawnTime and SetRespawnDelay names confuse me greatly. when I
|
|
30
34
|
// worked out what they were, I thought of better names and a nicer way to handle the former.
|
|
31
35
|
setTimeUntilNextRespawn(delay: Temporal.Duration): void;
|
package/classes/Guild.d.ts
CHANGED
|
@@ -7,8 +7,8 @@ declare global {
|
|
|
7
7
|
|
|
8
8
|
readonly id: number;
|
|
9
9
|
readonly leaderGuid: ObjectGuidNative;
|
|
10
|
-
readonly
|
|
11
|
-
readonly
|
|
10
|
+
readonly members: Map<number, GuildMember>;
|
|
11
|
+
readonly memberCount: number;
|
|
12
12
|
readonly totalBankMoney: number | bigint;
|
|
13
13
|
readonly createdDate: Temporal.Instant;
|
|
14
14
|
name: string;
|
package/classes/Loot.d.ts
CHANGED
|
@@ -12,15 +12,18 @@ declare global {
|
|
|
12
12
|
lootType: LootType;
|
|
13
13
|
unlootedCount: number;
|
|
14
14
|
gold: number;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
sourceWorldObjectGuid: ObjectGuidNative | undefined;
|
|
15
|
+
roundRobinPlayer: ObjectGuid | undefined;
|
|
16
|
+
lootOwnerGuid: ObjectGuid | undefined;
|
|
17
|
+
containerGuid: ObjectGuid | undefined;
|
|
18
|
+
sourceWorldObjectGuid: ObjectGuid | undefined;
|
|
20
19
|
|
|
20
|
+
getMaxSlotForPlayer(player: Player): number;
|
|
21
|
+
hasItem(itemId?: number, count?: number): boolean;
|
|
21
22
|
addItem(itemId: number, minCount: number, maxCount: number, chance: number, lootMode: LootModes, needsQuest?: boolean, allowStacking?: boolean, maxStackSize?: number): void;
|
|
23
|
+
removeItem(itemId: number, count?: number): void;
|
|
22
24
|
clear(): void;
|
|
23
25
|
generateMoney(min: number, max: number): void;
|
|
26
|
+
setItemLooted(itemId: number, count: number, looted: boolean): void;
|
|
24
27
|
addLooter(looter: ObjectGuid): void;
|
|
25
28
|
removeLooter(looter: ObjectGuid): void;
|
|
26
29
|
}
|
package/classes/LootStore.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
declare global {
|
|
2
2
|
namespace Acore {
|
|
3
3
|
class LootTemplate {
|
|
4
|
-
process(loot: Loot, lootStore: LootStore, lootMode: LootModes, player: Player, groupId?: number, isTopLevel?: boolean): void;
|
|
4
|
+
process(loot: Loot, lootStore: LootStore | LootStoreType, lootMode: LootModes, player: Player, groupId?: number, isTopLevel?: boolean): void;
|
|
5
5
|
}
|
|
6
6
|
}
|
|
7
7
|
}
|
package/classes/MailDraft.d.ts
CHANGED
|
@@ -4,10 +4,10 @@ declare global {
|
|
|
4
4
|
constructor(subject: string, text: string);
|
|
5
5
|
|
|
6
6
|
addMoney(money: number): MailDraft;
|
|
7
|
-
addCOD(
|
|
7
|
+
addCOD(cod: number): MailDraft;
|
|
8
8
|
addItem(item: Item): MailDraft;
|
|
9
9
|
createAndAddItem(entry: number, amount?: number): ObjectGuid;
|
|
10
|
-
send(receiver: ObjectGuid, sender: MailSender, checked?:
|
|
10
|
+
send(receiver: ObjectGuid, sender: MailSender, checked?: MailCheckMask, deliverDelay?: number, customExpiration?: number): void;
|
|
11
11
|
sendReturnToSender(senderAccount: number, sender: ObjectGuid, receiver: ObjectGuid): void;
|
|
12
12
|
}
|
|
13
13
|
}
|
package/classes/Pet.d.ts
CHANGED
|
@@ -8,10 +8,47 @@ declare global {
|
|
|
8
8
|
readonly hasTempSpell: boolean;
|
|
9
9
|
readonly autoSpellSize: number;
|
|
10
10
|
readonly petInfo: PetInfo;
|
|
11
|
-
readonly spells: Map<number,
|
|
11
|
+
readonly spells: Map<number, PetSpell>;
|
|
12
12
|
readonly autospells: number[];
|
|
13
13
|
readonly usedTalentCount: number;
|
|
14
14
|
readonly declinedNames: string[];
|
|
15
|
+
petType: PetType;
|
|
16
|
+
isBeingLoaded: boolean;
|
|
17
|
+
duration: Temporal.Duration;
|
|
18
|
+
freeTalentPoints: number;
|
|
19
|
+
happinessState: HappinessState;
|
|
20
|
+
auraUpdateMaskForRaid: number | bigint;
|
|
21
|
+
|
|
22
|
+
generateActionBarData(): string;
|
|
23
|
+
isPermanentPetFor(owner: Player): boolean;
|
|
24
|
+
getCurrentFoodBenefitLevel(itemLevel: number): number;
|
|
25
|
+
getAutoSpellOnPos(pos: number): number;
|
|
26
|
+
haveInDiet(item: ItemTemplate): boolean;
|
|
27
|
+
createBaseAtCreature(creature: Creature): boolean;
|
|
28
|
+
givePetXP(xp: number): void;
|
|
29
|
+
givePetLevel(level: number): void;
|
|
30
|
+
synchronizeLevelWithOwner(): void;
|
|
31
|
+
learnPetPassives(): void;
|
|
32
|
+
castWhenWillAvailable(spellId: number, target: Unit, oldTarget: ObjectGuid, isPositive?: boolean): void;
|
|
33
|
+
clearCastWhenWillAvailable(): void;
|
|
34
|
+
removeSpellCooldown(spellId: number, update: boolean): void;
|
|
35
|
+
addSpell(spellId: number, activeStates?: ActiveStates, state?: PetSpellState, type?: PetSpellType): boolean;
|
|
36
|
+
learnSpell(spellId: number): boolean;
|
|
37
|
+
learnSpellHighRank(spellId: number): void;
|
|
38
|
+
initLevelupSpellsForLevel(): void;
|
|
39
|
+
unlearnSpell(spellId: number, learnPrev: boolean, clearAb?: boolean): boolean;
|
|
40
|
+
removeSpell(spellId: number, learnPrev: boolean, clearAb?: boolean): boolean;
|
|
41
|
+
cleanupActionBar(): void;
|
|
42
|
+
initPetCreateSpells(): void;
|
|
43
|
+
resetTalents(): boolean;
|
|
44
|
+
initTalentForLevel(): void;
|
|
45
|
+
savePetToDB(mode: PetSaveMode): void;
|
|
46
|
+
loseHappiness(): void;
|
|
47
|
+
remove(mode: PetSaveMode, returnReagent?: boolean): void;
|
|
48
|
+
toggleAutocast(spellInfo: SpellInfo, apply: boolean): void;
|
|
49
|
+
castPetAuras(current: boolean): void;
|
|
50
|
+
getMaxTalentPointsForLevel(level: number): number;
|
|
51
|
+
resetAuraUpdateMaskForRaid(): void;
|
|
15
52
|
}
|
|
16
53
|
}
|
|
17
54
|
}
|
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;
|
package/classes/Vehicle.d.ts
CHANGED
package/classes/WorldObject.d.ts
CHANGED
|
@@ -26,14 +26,13 @@ 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[];
|
|
33
33
|
getGameObjectsInRange(range: number, entry?: number): GameObject[];
|
|
34
34
|
getUnitsInRange(range: number): Unit[];
|
|
35
35
|
getNearObjects(range: number, mask?: NearObjectsMask): WorldObject[];
|
|
36
|
-
getNearObjects(range: number, mask?: NearObjectsMask): WorldObject[];
|
|
37
36
|
sendMessageToSet(packet: WorldPacket, self: boolean): void;
|
|
38
37
|
sendMessageToSetInRange(packet: WorldPacket, range: number): void;
|
|
39
38
|
sendMessageToSetExceptPlayer(packet: WorldPacket, skippedReceiver: Player): void;
|
package/classes/WorldPacket.d.ts
CHANGED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare global {
|
|
2
|
+
const enum ActiveStates {
|
|
3
|
+
ACT_PASSIVE = 0x01, // 0x01 - passive
|
|
4
|
+
ACT_DISABLED = 0x81, // 0x80 - castable
|
|
5
|
+
ACT_ENABLED = 0xC1, // 0x40 | 0x80 - auto cast + castable
|
|
6
|
+
ACT_COMMAND = 0x07, // 0x01 | 0x02 | 0x04
|
|
7
|
+
ACT_REACTION = 0x06, // 0x02 | 0x04
|
|
8
|
+
ACT_DECIDE = 0x00, // custom
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
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
|
@@ -2,6 +2,7 @@ export type * from './AccountFlags.d.ts';
|
|
|
2
2
|
export type * from './AccountTypes.d.ts';
|
|
3
3
|
export type * from './AchievementFlags.d.ts';
|
|
4
4
|
export type * from './AcoreStrings.d.ts';
|
|
5
|
+
export type * from './ActiveStates.d.ts';
|
|
5
6
|
export type * from './ArenaTeamInfoType.d.ts';
|
|
6
7
|
export type * from './ArenaType.d.ts';
|
|
7
8
|
export type * from './AtLoginFlags.d.ts';
|
|
@@ -58,6 +59,7 @@ export type * from './GuildBankEventLogTypes.d.ts';
|
|
|
58
59
|
export type * from './GuildDefaultRanks.d.ts';
|
|
59
60
|
export type * from './GuildEventLogTypes.d.ts';
|
|
60
61
|
export type * from './GuildMemberFlags.d.ts';
|
|
62
|
+
export type * from './HappinessState.d.ts';
|
|
61
63
|
export type * from './HighGuid.d.ts';
|
|
62
64
|
export type * from './HolidayIds.d.ts';
|
|
63
65
|
export type * from './InventoryResult.d.ts';
|
|
@@ -96,7 +98,7 @@ export type * from './LootModes.d.ts';
|
|
|
96
98
|
export type * from './LootState.d.ts';
|
|
97
99
|
export type * from './LootStoreType.d.ts';
|
|
98
100
|
export type * from './LootType.d.ts';
|
|
99
|
-
export type * from './
|
|
101
|
+
export type * from './MailCheckMask.d.ts';
|
|
100
102
|
export type * from './MailMessageType.d.ts';
|
|
101
103
|
export type * from './MailStationery.d.ts';
|
|
102
104
|
export type * from './Mechanics.d.ts';
|
|
@@ -109,6 +111,7 @@ export type * from './OnlineState.d.ts';
|
|
|
109
111
|
export type * from './PetDiet.d.ts';
|
|
110
112
|
export type * from './PetSaveMode.d.ts';
|
|
111
113
|
export type * from './PetSpellState.d.ts';
|
|
114
|
+
export type * from './PetSpellType.d.ts';
|
|
112
115
|
export type * from './PetType.d.ts';
|
|
113
116
|
export type * from './PlayerChatTag.d.ts';
|
|
114
117
|
export type * from './PlayerFlags.d.ts';
|
|
@@ -181,4 +184,5 @@ export type * from './UnitMods.d.ts';
|
|
|
181
184
|
export type * from './UnitMoveType.d.ts';
|
|
182
185
|
export type * from './UnitStandStateType.d.ts';
|
|
183
186
|
export type * from './UnitState.d.ts';
|
|
187
|
+
export type * from './VehicleFlags.d.ts';
|
|
184
188
|
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';
|
|
@@ -17,6 +18,7 @@ export type * from './ItemStat.d.ts';
|
|
|
17
18
|
export type * from './LootItem.d.ts';
|
|
18
19
|
export type * from './ObjectGuid.d.ts';
|
|
19
20
|
export type * from './PetInfo.d.ts';
|
|
21
|
+
export type * from './PetSpell.d.ts';
|
|
20
22
|
export type * from './Position.d.ts';
|
|
21
23
|
export type * from './PvPDifficultyEntry.d.ts';
|
|
22
24
|
export type * from './SpellCastTimesEntry.d.ts';
|
|
@@ -26,3 +28,4 @@ export type * from './SpellModifier.d.ts';
|
|
|
26
28
|
export type * from './SpellRadiusEntry.d.ts';
|
|
27
29
|
export type * from './SpellRangeEntry.d.ts';
|
|
28
30
|
export type * from './SummonPropertiesEntry.d.ts';
|
|
31
|
+
export type * from './VehicleEntry.d.ts';
|