-
Notifications
You must be signed in to change notification settings - Fork 15
/
index.d.ts
65 lines (60 loc) · 1.62 KB
/
index.d.ts
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
declare module "@floh22/farsight" {
export interface GameObject {
name: string;
displayName: string;
networkId: number;
objectIndex: number;
position: [number, number, number];
team: number;
isAlive: boolean;
health: number;
maxHealth: number;
mana: number;
maxMana: number;
}
export interface Snapshot {
gameTime: number;
nextDragonType: string;
champions: GameObject[];
jungle: GameObject[];
turrets: GameObject[];
inhibitors: GameObject[];
other: GameObject[];
}
export interface Offsets {
gameTime: number;
objectManager: number;
objectMapCount: number;
objectMapRoot: number;
objectMapNodeNetId: number;
objectMapNodeObject: number;
heroList: number;
minionList: number;
turretList: number;
inhibitorList: number;
objIndex: number;
objTeam: number;
objNetworkID: number;
objPosition: number;
objHealth: number;
objMaxHealth: number;
objMana: number;
objMaxMana: number;
objName: number;
objLvl: number;
objExperience: number;
objCurrentGold: number;
objTotalGold: number;
objDisplayName: number;
objDisplayNameLength: number;
}
export function connectToLeague(): Promise<boolean>
export function disconnectFromLeague(): boolean
export function makeSnapshot(): Snapshot
export function setOffsets(offsets: Offsets): boolean
export function isReady(): boolean
export function setChampionNames(champions: string[]): boolean
export function setVersion(version: string): void
export let autoImportChampions: boolean
export let autoImportOffsets: boolean
}