@cybermp/client-types 1.2.1 → 1.2.2
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/out/precomputed/game.d.ts +16 -0
- package/package.json +1 -1
|
@@ -28,8 +28,21 @@ interface ObserveFunction {
|
|
|
28
28
|
): void;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
+
interface TweakDB {
|
|
32
|
+
getRecords<T = any>(str: string): T[];
|
|
33
|
+
getRecord<T = any>(str: string): T;
|
|
34
|
+
query(str: string): string[];
|
|
35
|
+
getFlat<T = any>(str: string): T;
|
|
36
|
+
setFlats(str: string, arr: any[]): boolean;
|
|
37
|
+
setFlat(str: string, obj: any): boolean;
|
|
38
|
+
setFlatNoUpdate(str: string, obj: any): boolean;
|
|
39
|
+
updateRecord(str: string): boolean;
|
|
40
|
+
createRecord(key: string, value: string): boolean;
|
|
41
|
+
}
|
|
42
|
+
|
|
31
43
|
declare interface MpGamePrecomputed {
|
|
32
44
|
CyberMP: CyberMP;
|
|
45
|
+
TweakDB: TweakDB;
|
|
33
46
|
|
|
34
47
|
/**
|
|
35
48
|
* Method to retrieve input events.
|
|
@@ -132,6 +145,9 @@ declare interface MpGamePrecomputed {
|
|
|
132
145
|
*/
|
|
133
146
|
observeRaw: ObserveFunction;
|
|
134
147
|
|
|
148
|
+
toVariant<R = {}>(obj: any, str: string): R;
|
|
149
|
+
fromVariant<R = any>(obj: any): R;
|
|
150
|
+
|
|
135
151
|
isBlackScreenStarted(): boolean;
|
|
136
152
|
|
|
137
153
|
isBlackScreenEnded(): boolean;
|