forked from quisquous/cactbot
-
Notifications
You must be signed in to change notification settings - Fork 75
Expand file tree
/
Copy pathdata.d.ts
More file actions
65 lines (60 loc) · 1.77 KB
/
data.d.ts
File metadata and controls
65 lines (60 loc) · 1.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
import { Lang } from '../resources/languages';
import PartyTracker from '../resources/party';
import { ConfigValue } from '../resources/user_config';
import { OopsyOptions } from '../ui/oopsyraidsy/oopsy_options';
import { SystemInfo } from './event';
import { Job, Role } from './job';
import { NetMatches } from './net_matches';
export interface BaseOptions {
ParserLanguage: Lang;
ShortLocale: Lang;
DisplayLanguage: Lang;
TextAlertsEnabled: boolean;
SoundAlertsEnabled: boolean;
SpokenAlertsEnabled: boolean;
GroupSpokenAlertsEnabled: boolean;
Skin?: string;
SystemInfo: SystemInfo;
Debug: boolean;
[key: string]: unknown;
}
export interface RaidbossData {
job: Job;
me: string;
role: Role;
party: PartyTracker;
lang: Lang;
parserLang: Lang;
displayLang: Lang;
currentHP: number;
options: BaseOptions;
inCombat: boolean;
triggerSetConfig: { [key: string]: ConfigValue };
/** @deprecated Use data.party.member instead */
ShortName: (x?: string) => string;
StopCombat: () => void;
/** @deprecated Use parseFloat instead */
ParseLocaleFloat: (string: string) => number;
CanStun: () => boolean;
CanSilence: () => boolean;
CanSleep: () => boolean;
CanCleanse: () => boolean;
CanFeint: () => boolean;
CanAddle: () => boolean;
}
export interface OopsyData {
job: Job;
me: string;
role: Role;
party: PartyTracker;
inCombat: boolean;
IsImmune: (x?: string) => boolean;
/** @deprecated Use data.party.member instead */
ShortName: (x?: string) => string;
IsPlayerId: (x?: string) => boolean;
DamageFromMatches: (matches: NetMatches['Ability']) => number;
options: OopsyOptions;
collectors?: { [mistakeId: string]: string[] };
/** @deprecated Use parseFloat instead */
ParseLocaleFloat: (string: string) => number;
}