@airbreather/mod-nodejs-types 0.0.11 → 0.0.13
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/ObjectMgr.d.ts +13 -0
- package/classes/VendorItem.d.ts +15 -0
- package/classes/VendorItemData.d.ts +26 -0
- package/classes/index.d.ts +3 -0
- package/package.json +1 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare global {
|
|
2
|
+
namespace Acore {
|
|
3
|
+
class ObjectMgr {
|
|
4
|
+
private constructor();
|
|
5
|
+
|
|
6
|
+
static getNpcVendorItemList(vendor: number): ReadonlyVendorItemData | undefined;
|
|
7
|
+
static setNpcVendorItemList(vendor: number, data: VendorItemData, persist?: boolean): void;
|
|
8
|
+
static addVendorItem(vendor: number, item: number, maxCount: number, incrTime: Temporal.Duration, extendedCost: number, persist?: boolean): void;
|
|
9
|
+
static removeVendorItem(vendor: number, item: number, persist?: boolean): void;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare global {
|
|
2
|
+
namespace Acore {
|
|
3
|
+
class VendorItem {
|
|
4
|
+
constructor(item: number, maxCount: number, incrTime: Temporal.Duration, extendedCost: number);
|
|
5
|
+
|
|
6
|
+
item: number;
|
|
7
|
+
maxCount: number;
|
|
8
|
+
incrTime: Temporal.Duration;
|
|
9
|
+
extendedCost: number;
|
|
10
|
+
|
|
11
|
+
isGoldRequired(proto: ItemTemplate): boolean;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
declare global {
|
|
2
|
+
namespace Acore {
|
|
3
|
+
class VendorItemData {
|
|
4
|
+
constructor();
|
|
5
|
+
|
|
6
|
+
readonly empty: boolean;
|
|
7
|
+
readonly itemCount: number;
|
|
8
|
+
readonly items: readonly VendorItem[];
|
|
9
|
+
|
|
10
|
+
clone(): VendorItemData;
|
|
11
|
+
append(vendorItem: VendorItem): void;
|
|
12
|
+
addItem(item: number, maxCount: number, incrTime: Temporal.Duration, extendedCost: number): void;
|
|
13
|
+
removeItem(item: number): boolean;
|
|
14
|
+
findItemCostPair(item: number, extendedCost: number): VendorItem | undefined;
|
|
15
|
+
clear(): void;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
type ReadonlyVendorItemData = Omit<VendorItemData,
|
|
19
|
+
| 'append'
|
|
20
|
+
| 'addItem'
|
|
21
|
+
| 'removeItem'
|
|
22
|
+
| 'clear'
|
|
23
|
+
>;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
export {};
|
package/classes/index.d.ts
CHANGED
|
@@ -33,6 +33,7 @@ export type * from './LootTemplate.d.ts';
|
|
|
33
33
|
export type * from './MailDraft.d.ts';
|
|
34
34
|
export type * from './MailSender.d.ts';
|
|
35
35
|
export type * from './Minion.d.ts';
|
|
36
|
+
export type * from './ObjectMgr.d.ts';
|
|
36
37
|
export type * from './Pet.d.ts';
|
|
37
38
|
export type * from './Player.d.ts';
|
|
38
39
|
export type * from './QueryResult.d.ts';
|
|
@@ -48,5 +49,7 @@ export type * from './ThreatReference.d.ts';
|
|
|
48
49
|
export type * from './Transport.d.ts';
|
|
49
50
|
export type * from './Unit.d.ts';
|
|
50
51
|
export type * from './Vehicle.d.ts';
|
|
52
|
+
export type * from './VendorItem.d.ts';
|
|
53
|
+
export type * from './VendorItemData.d.ts';
|
|
51
54
|
export type * from './WorldObject.d.ts';
|
|
52
55
|
export type * from './WorldPacket.d.ts';
|