@overlayed/app 1.3.15 → 1.5.0
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/dist/index.d.mts +34 -11
- package/dist/index.mjs +10 -10
- package/dist/native-interface/build/overlayed_injector_x64.exe +0 -0
- package/dist/native-interface/build/overlayed_injector_x86.exe +0 -0
- package/dist/native-interface/build/overlayed_native_interface_x64.node +0 -0
- package/dist/native-interface/dist/index.mjs +2 -2
- package/dist/native-interface/dist/types.d.mts +37 -50
- package/dist/native-interface/dist/types.d.mts.map +1 -1
- package/dist/sand.d.ts +1423 -0
- package/dist/sand.js +1 -0
- package/dist/siege.d.ts +16 -16
- package/dist/universal.d.ts +39 -9
- package/package.json +13 -7
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -2,7 +2,7 @@ import { createRequire } from "node:module";
|
|
|
2
2
|
|
|
3
3
|
//#region index.ts
|
|
4
4
|
const require = createRequire(import.meta.url);
|
|
5
|
-
const { PipeEventServer, PipeEventClient, PipeEventBase,
|
|
5
|
+
const { PipeEventServer, PipeEventClient, PipeEventBase, GameMonitor, GameInstance, HardwareInterface } = require("@overlayed/app/dist/native-interface/build/overlayed_native_interface_x64.node");
|
|
6
6
|
let AccessLevel = /* @__PURE__ */ function(AccessLevel$1) {
|
|
7
7
|
AccessLevel$1[AccessLevel$1["Default"] = 0] = "Default";
|
|
8
8
|
AccessLevel$1[AccessLevel$1["Global"] = 1] = "Global";
|
|
@@ -15,4 +15,4 @@ let InjectionMethod = /* @__PURE__ */ function(InjectionMethod$1) {
|
|
|
15
15
|
}({});
|
|
16
16
|
|
|
17
17
|
//#endregion
|
|
18
|
-
export { AccessLevel, HardwareInterface, InjectionMethod, PipeEventBase, PipeEventClient, PipeEventServer
|
|
18
|
+
export { AccessLevel, GameInstance, GameMonitor, HardwareInterface, InjectionMethod, PipeEventBase, PipeEventClient, PipeEventServer };
|
|
@@ -10,68 +10,55 @@ declare const enum InjectionMethod {
|
|
|
10
10
|
}
|
|
11
11
|
//#endregion
|
|
12
12
|
//#region types.d.ts
|
|
13
|
-
declare class
|
|
14
|
-
constructor(
|
|
13
|
+
declare class GameInstance {
|
|
14
|
+
private constructor();
|
|
15
15
|
injectDll(path: string, injector: string, options?: {
|
|
16
16
|
method?: InjectionMethod;
|
|
17
|
-
|
|
18
|
-
//attemptRate?: number;
|
|
19
|
-
//windowPollRate?: number;
|
|
20
|
-
//windowWaitTimeout?: number;
|
|
21
|
-
//processHandlePollRate?: number;
|
|
22
|
-
//processHandleTimeout?: number;
|
|
23
|
-
//notifyWaitTimeout?: number;
|
|
24
|
-
}): Promise<void>; // defaults: { method: InjectionMethod.windowsHook, maxAttemptCount: 10, attemptRate: 500, windowPollRate: 100, windowWaitTimeout: 4294967295, processHandlePollRate: 1000, processHandleTimeout: 4294967295, notifyWaitTimeout: 3000 }, all times are declared in miliseconds
|
|
17
|
+
}): Promise<void>; // defaults: { method: InjectionMethod.windowsHook }
|
|
25
18
|
|
|
26
|
-
readonly
|
|
27
|
-
readonly
|
|
28
|
-
readonly
|
|
29
|
-
readonly
|
|
30
|
-
readonly
|
|
31
|
-
readonly
|
|
19
|
+
readonly identifier: string;
|
|
20
|
+
readonly modules: string[];
|
|
21
|
+
readonly allowDllInjections: boolean;
|
|
22
|
+
readonly hasRenderSupport: boolean;
|
|
23
|
+
readonly injectionDelayMs: number;
|
|
24
|
+
readonly processId: number;
|
|
25
|
+
readonly executableName: string;
|
|
26
|
+
readonly executablePath?: string;
|
|
32
27
|
readonly is32Bit?: boolean;
|
|
33
|
-
readonly exitCode?: number;
|
|
34
28
|
readonly isElevated?: boolean;
|
|
35
|
-
|
|
29
|
+
readonly hasElevationMismatch?: boolean;
|
|
36
30
|
}
|
|
37
|
-
declare class
|
|
38
|
-
constructor(
|
|
39
|
-
pollRate?: number;
|
|
40
|
-
}); // default: { pollRate: 1000 }; pollRate - integer in miliseconds
|
|
31
|
+
declare class GameMonitor {
|
|
32
|
+
constructor(); // the monitored games come from the raven config, fetched and registered natively
|
|
41
33
|
|
|
42
|
-
wipeProcesses(): void;
|
|
43
|
-
isProcessRegistered(name: string): boolean;
|
|
44
|
-
registerProcess(name: string): void;
|
|
45
|
-
unRegisterProcess(name: string): void;
|
|
46
34
|
eventNames(): string[];
|
|
47
35
|
getMaxListeners(): number;
|
|
48
36
|
removeAllListeners(): this;
|
|
49
|
-
listeners(eventName: "
|
|
50
|
-
rawListeners(eventName: "
|
|
51
|
-
listenerCount(eventName: "
|
|
52
|
-
on(eventName: "
|
|
53
|
-
once(eventName: "
|
|
54
|
-
addListener(eventName: "
|
|
55
|
-
prependListener(eventName: "
|
|
56
|
-
prependOnceListener(eventName: "
|
|
57
|
-
off(eventName: "
|
|
58
|
-
removeListener(eventName: "
|
|
59
|
-
removeAllListeners(eventName: "
|
|
60
|
-
listeners(eventName: "
|
|
61
|
-
rawListeners(eventName: "
|
|
62
|
-
listenerCount(eventName: "
|
|
63
|
-
on(eventName: "
|
|
64
|
-
once(eventName: "
|
|
65
|
-
addListener(eventName: "
|
|
66
|
-
prependListener(eventName: "
|
|
67
|
-
prependOnceListener(eventName: "
|
|
68
|
-
off(eventName: "
|
|
69
|
-
removeListener(eventName: "
|
|
70
|
-
removeAllListeners(eventName: "
|
|
37
|
+
listeners(eventName: "launch"): Function[];
|
|
38
|
+
rawListeners(eventName: "launch"): Function[];
|
|
39
|
+
listenerCount(eventName: "launch", listener?: (game: GameInstance) => void): number;
|
|
40
|
+
on(eventName: "launch", listener: (game: GameInstance) => void): this;
|
|
41
|
+
once(eventName: "launch", listener: (game: GameInstance) => void): this;
|
|
42
|
+
addListener(eventName: "launch", listener: (game: GameInstance) => void): this;
|
|
43
|
+
prependListener(eventName: "launch", listener: (game: GameInstance) => void): this;
|
|
44
|
+
prependOnceListener(eventName: "launch", listener: (game: GameInstance) => void): this;
|
|
45
|
+
off(eventName: "launch", listener: (game: GameInstance) => void): this;
|
|
46
|
+
removeListener(eventName: "launch", listener: (game: GameInstance) => void): this;
|
|
47
|
+
removeAllListeners(eventName: "launch"): this;
|
|
48
|
+
listeners(eventName: "close"): Function[];
|
|
49
|
+
rawListeners(eventName: "close"): Function[];
|
|
50
|
+
listenerCount(eventName: "close", listener?: (game: GameInstance) => void): number;
|
|
51
|
+
on(eventName: "close", listener: (game: GameInstance) => void): this;
|
|
52
|
+
once(eventName: "close", listener: (game: GameInstance) => void): this;
|
|
53
|
+
addListener(eventName: "close", listener: (game: GameInstance) => void): this;
|
|
54
|
+
prependListener(eventName: "close", listener: (game: GameInstance) => void): this;
|
|
55
|
+
prependOnceListener(eventName: "close", listener: (game: GameInstance) => void): this;
|
|
56
|
+
off(eventName: "close", listener: (game: GameInstance) => void): this;
|
|
57
|
+
removeListener(eventName: "close", listener: (game: GameInstance) => void): this;
|
|
58
|
+
removeAllListeners(eventName: "close"): this;
|
|
71
59
|
}
|
|
72
60
|
declare class PipeEventBase {
|
|
73
61
|
isConnected(): boolean;
|
|
74
|
-
dispatch(event: string): void;
|
|
75
62
|
eventNames(): string[];
|
|
76
63
|
getMaxListeners(): number;
|
|
77
64
|
removeAllListeners(): this;
|
|
@@ -133,5 +120,5 @@ declare class HardwareInterface {
|
|
|
133
120
|
static generateUniqueIdentifier(): string; // results in a uuid version 4
|
|
134
121
|
}
|
|
135
122
|
//#endregion
|
|
136
|
-
export { HardwareInterface, PipeEventBase, PipeEventClient, PipeEventServer
|
|
123
|
+
export { GameInstance, GameMonitor, HardwareInterface, PipeEventBase, PipeEventClient, PipeEventServer };
|
|
137
124
|
//# sourceMappingURL=types.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.mts","names":["AccessLevel","InjectionMethod","
|
|
1
|
+
{"version":3,"file":"types.d.mts","names":["AccessLevel","InjectionMethod","GameInstance","Promise","GameMonitor","Function","PipeEventBase","PipeEventServer","PipeEventClient","HardwareInterface"],"sources":["../index.ts","../types.d.ts"],"sourcesContent":["/// <reference types=\"node\" />\n\nimport type { AccessLevel, InjectionMethod } from \".\";\n\nexport class GameInstance {\n\tprivate constructor();\n\n\tinjectDll(\n\t\tpath: string,\n\t\tinjector: string,\n\t\toptions?: {\n\t\t\tmethod?: InjectionMethod;\n\t\t},\n\t): Promise<void>; // defaults: { method: InjectionMethod.windowsHook }\n\n\treadonly identifier: string;\n\treadonly modules: string[];\n\n\treadonly allowDllInjections: boolean;\n\treadonly hasRenderSupport: boolean;\n\n\treadonly injectionDelayMs: number;\n\n\treadonly processId: number;\n\n\treadonly executableName: string;\n\treadonly executablePath?: string;\n\n\treadonly is32Bit?: boolean;\n\treadonly isElevated?: boolean;\n\treadonly hasElevationMismatch?: boolean;\n}\n\nexport class GameMonitor {\n\tconstructor(); // the monitored games come from the raven config, fetched and registered natively\n\n\teventNames(): string[];\n\tgetMaxListeners(): number;\n\tremoveAllListeners(): this;\n\n\tlisteners(eventName: \"launch\"): Function[];\n\trawListeners(eventName: \"launch\"): Function[];\n\tlistenerCount(eventName: \"launch\", listener?: (game: GameInstance) => void): number;\n\n\ton(eventName: \"launch\", listener: (game: GameInstance) => void): this;\n\tonce(eventName: \"launch\", listener: (game: GameInstance) => void): this;\n\taddListener(eventName: \"launch\", listener: (game: GameInstance) => void): this;\n\tprependListener(eventName: \"launch\", listener: (game: GameInstance) => void): this;\n\tprependOnceListener(eventName: \"launch\", listener: (game: GameInstance) => void): this;\n\n\toff(eventName: \"launch\", listener: (game: GameInstance) => void): this;\n\tremoveListener(eventName: \"launch\", listener: (game: GameInstance) => void): this;\n\tremoveAllListeners(eventName: \"launch\"): this;\n\n\tlisteners(eventName: \"close\"): Function[];\n\trawListeners(eventName: \"close\"): Function[];\n\tlistenerCount(eventName: \"close\", listener?: (game: GameInstance) => void): number;\n\n\ton(eventName: \"close\", listener: (game: GameInstance) => void): this;\n\tonce(eventName: \"close\", listener: (game: GameInstance) => void): this;\n\taddListener(eventName: \"close\", listener: (game: GameInstance) => void): this;\n\tprependListener(eventName: \"close\", listener: (game: GameInstance) => void): this;\n\tprependOnceListener(eventName: \"close\", listener: (game: GameInstance) => void): this;\n\n\toff(eventName: \"close\", listener: (game: GameInstance) => void): this;\n\tremoveListener(eventName: \"close\", listener: (game: GameInstance) => void): this;\n\tremoveAllListeners(eventName: \"close\"): this;\n}\n\nexport class PipeEventBase {\n\tisConnected(): boolean;\n\n\teventNames(): string[];\n\tgetMaxListeners(): number;\n\tremoveAllListeners(): this;\n\n\tlisteners(eventName: \"event\"): Function[];\n\trawListeners(eventName: \"event\"): Function[];\n\tlistenerCount(eventName: \"event\", listener?: (event: string) => void): number;\n\n\ton(eventName: \"event\", listener: (event: string) => void): this;\n\tonce(eventName: \"event\", listener: (event: string) => void): this;\n\taddListener(eventName: \"event\", listener: (event: string) => void): this;\n\tprependListener(eventName: \"event\", listener: (event: string) => void): this;\n\tprependOnceListener(eventName: \"event\", listener: (event: string) => void): this;\n\n\toff(eventName: \"event\", listener: (event: string) => void): this;\n\tremoveListener(eventName: \"event\", listener: (event: string) => void): this;\n\tremoveAllListeners(eventName: \"event\"): this;\n\n\tlisteners(eventName: \"connected\"): Function[];\n\trawListeners(eventName: \"connected\"): Function[];\n\tlistenerCount(eventName: \"connected\", listener?: () => void): number;\n\n\ton(eventName: \"connected\", listener: () => void): this;\n\tonce(eventName: \"connected\", listener: () => void): this;\n\taddListener(eventName: \"connected\", listener: () => void): this;\n\tprependListener(eventName: \"connected\", listener: () => void): this;\n\tprependOnceListener(eventName: \"connected\", listener: () => void): this;\n\n\toff(eventName: \"connected\", listener: () => void): this;\n\tremoveListener(eventName: \"connected\", listener: () => void): this;\n\tremoveAllListeners(eventName: \"connected\"): this;\n\n\tlisteners(eventName: \"disconnected\"): Function[];\n\trawListeners(eventName: \"disconnected\"): Function[];\n\tlistenerCount(eventName: \"disconnected\", listener?: () => void): number;\n\n\ton(eventName: \"disconnected\", listener: () => void): this;\n\tonce(eventName: \"disconnected\", listener: () => void): this;\n\taddListener(eventName: \"disconnected\", listener: () => void): this;\n\tprependListener(eventName: \"disconnected\", listener: () => void): this;\n\tprependOnceListener(eventName: \"disconnected\", listener: () => void): this;\n\n\toff(eventName: \"disconnected\", listener: () => void): this;\n\tremoveListener(eventName: \"disconnected\", listener: () => void): this;\n\tremoveAllListeners(eventName: \"disconnected\"): this;\n\n\tlisteners(eventName: \"error\"): Function[];\n\trawListeners(eventName: \"error\"): Function[];\n\tlistenerCount(eventName: \"error\", listener?: () => void): number;\n\n\ton(eventName: \"error\", listener: () => void): this;\n\tonce(eventName: \"error\", listener: () => void): this;\n\taddListener(eventName: \"error\", listener: () => void): this;\n\tprependListener(eventName: \"error\", listener: () => void): this;\n\tprependOnceListener(eventName: \"error\", listener: () => void): this;\n\n\toff(eventName: \"error\", listener: () => void): this;\n\tremoveListener(eventName: \"error\", listener: () => void): this;\n\tremoveAllListeners(eventName: \"error\"): this;\n}\n\nexport class PipeEventServer extends PipeEventBase {\n\tconstructor(name: string, options?: { clientCount?: number; access?: AccessLevel }); // default: { clientCount: 1, access: AccessLevel.Default };\n}\n\nexport class PipeEventClient extends PipeEventBase {\n\tconstructor(name: string, options?: {}); // default: {};\n}\n\nexport class HardwareInterface {\n\tstatic generateUniqueIdentifier(): string; // results in a uuid version 4\n}\n"],"mappings":";;AAYkB,mBAAA,WAAA;EAMA,OAAA,GAAA,CAAA;;;;ACdLE,mBDcK,eAAA;ECeLE,WAAAA,GAAW,CAAA;;;;cA7BXF,YAAAA;;EA6Bb,SAAaE,CAOoBC,IAAAA,EAAAA,MAAAA,EACGA,QAAAA,EAAAA,MAAAA,EACkBH,OAGVA,CAHUA,EAAAA;IAEZA,MAAAA,CAAAA,EAjC9BD,eAiC8BC;EACEA,CAAAA,CACOA,EAjC/CC,OAiC+CD,CAAAA,IAAAA,CAAAA,CAAAA,CAAAA;;EAEQA,SAAAA,UAAAA,EAAAA,MAAAA;EAEhBA,SAAAA,OAAAA,EAAAA,MAAAA,EAAAA;EAIXG,SAAAA,kBAAAA,EAAAA,OAAAA;EACGA,SAAAA,gBAAAA,EA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