@airbreather/mod-nodejs-types 0.0.13 → 0.0.14
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/Channel.d.ts +46 -0
- package/classes/index.d.ts +1 -0
- package/enums/ChannelFlags.d.ts +19 -0
- package/enums/index.d.ts +1 -0
- package/hooks/player.d.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
declare global {
|
|
2
|
+
namespace Acore {
|
|
3
|
+
class Channel {
|
|
4
|
+
static byName(teamId: TeamId, name: string): Channel | undefined;
|
|
5
|
+
|
|
6
|
+
constructor(name: string, channelId: number, channelDBId: number, teamId?: TeamId, announce?: boolean, ownership?: boolean);
|
|
7
|
+
|
|
8
|
+
readonly name: string;
|
|
9
|
+
readonly channelId: number;
|
|
10
|
+
readonly channelDBId: number;
|
|
11
|
+
readonly isConstant: boolean;
|
|
12
|
+
readonly isAnnounce: boolean;
|
|
13
|
+
readonly isLFG: boolean;
|
|
14
|
+
readonly numPlayers: number;
|
|
15
|
+
readonly flags: ChannelFlags;
|
|
16
|
+
password: string;
|
|
17
|
+
|
|
18
|
+
hasFlag(flag: ChannelFlags): boolean;
|
|
19
|
+
joinChannel(player: Player, pass: string): void;
|
|
20
|
+
leaveChannel(player: Player, send?: boolean): void;
|
|
21
|
+
kick(player: Player, badName: string): void;
|
|
22
|
+
ban(player: Player, badName: string): void;
|
|
23
|
+
addBan(guid: ObjectGuid, time: Temporal.Instant): void;
|
|
24
|
+
unBan(player: Player, badName: string): void;
|
|
25
|
+
unBanById(guid: ObjectGuid): void;
|
|
26
|
+
changePassword(player: Player, pass: string): void;
|
|
27
|
+
setModerator(player: Player, newName: string): void;
|
|
28
|
+
unsetModerator(player: Player, newName: string): void;
|
|
29
|
+
setMute(player: Player, newName: string): void;
|
|
30
|
+
unsetMute(player: Player, newName: string): void;
|
|
31
|
+
list(player: Player): void;
|
|
32
|
+
announce(player: Player): void;
|
|
33
|
+
say(guid: ObjectGuid, what: string, lang: Language): void;
|
|
34
|
+
invite(player: Player, newName: string): void;
|
|
35
|
+
voice(guid1: ObjectGuid, guid2: ObjectGuid): void;
|
|
36
|
+
deVoice(guid1: ObjectGuid, guid2: ObjectGuid): void;
|
|
37
|
+
joinNotify(player: Player): void;
|
|
38
|
+
leaveNotify(player: Player): void;
|
|
39
|
+
flagsNotify(player: Player): void;
|
|
40
|
+
toggleModeration(player: Player): void;
|
|
41
|
+
addWatching(player: Player): void;
|
|
42
|
+
removeWatching(player: Player): void;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
export {};
|
package/classes/index.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export type * from './BattlegroundQueue.d.ts';
|
|
|
9
9
|
export type * from './Battleground.d.ts';
|
|
10
10
|
export type * from './ByteBuffer.d.ts';
|
|
11
11
|
export type * from './CastSpellBuilder.d.ts';
|
|
12
|
+
export type * from './Channel.d.ts';
|
|
12
13
|
export type * from './ChatCommandBuilder.d.ts';
|
|
13
14
|
export type * from './ChatHandler.d.ts';
|
|
14
15
|
export type * from './Condition.d.ts';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
declare global {
|
|
2
|
+
const enum ChannelFlags {
|
|
3
|
+
CHANNEL_FLAG_NONE = 0x00,
|
|
4
|
+
CHANNEL_FLAG_CUSTOM = 0x01,
|
|
5
|
+
// 0x02
|
|
6
|
+
CHANNEL_FLAG_TRADE = 0x04,
|
|
7
|
+
CHANNEL_FLAG_NOT_LFG = 0x08,
|
|
8
|
+
CHANNEL_FLAG_GENERAL = 0x10,
|
|
9
|
+
CHANNEL_FLAG_CITY = 0x20,
|
|
10
|
+
CHANNEL_FLAG_LFG = 0x40,
|
|
11
|
+
CHANNEL_FLAG_VOICE = 0x80,
|
|
12
|
+
// General 0x18 = 0x10 | 0x08
|
|
13
|
+
// Trade 0x3C = 0x20 | 0x10 | 0x08 | 0x04
|
|
14
|
+
// LocalDefence 0x18 = 0x10 | 0x08
|
|
15
|
+
// GuildRecruitment 0x38 = 0x20 | 0x10 | 0x08
|
|
16
|
+
// LookingForGroup 0x50 = 0x40 | 0x10
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
export {};
|
package/enums/index.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export type * from './BAG_FAMILY_MASK.d.ts';
|
|
|
15
15
|
export type * from './BattlegroundDesertionType.d.ts';
|
|
16
16
|
export type * from './BattlegroundQueueGroupTypes.d.ts';
|
|
17
17
|
export type * from './BattlegroundTypeId.d.ts';
|
|
18
|
+
export type * from './ChannelFlags.d.ts';
|
|
18
19
|
export type * from './CharterTypes.d.ts';
|
|
19
20
|
export type * from './ChatMsg.d.ts';
|
|
20
21
|
export type * from './ClassContext.d.ts';
|
package/hooks/player.d.ts
CHANGED