@arkadiuminc/sdk 2.78.1 → 2.78.4
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.
|
@@ -1,11 +1,21 @@
|
|
|
1
1
|
import { ObserverFn } from '../utils/observable';
|
|
2
2
|
import { IDebugMenuRuntimeDependencies } from '../debug';
|
|
3
3
|
|
|
4
|
+
export declare enum AssignMode {
|
|
5
|
+
Normal = "normal",
|
|
6
|
+
Block = "block",
|
|
7
|
+
Override = "override"
|
|
8
|
+
}
|
|
9
|
+
export declare type DebugModeOptions = {
|
|
10
|
+
assignMode: AssignMode;
|
|
11
|
+
stopPropagation?: boolean;
|
|
12
|
+
};
|
|
4
13
|
export declare class DebugProvider {
|
|
5
14
|
private static _instance;
|
|
6
15
|
private observers;
|
|
7
16
|
private isDebug;
|
|
8
17
|
private debugMenuDependencies;
|
|
18
|
+
private assignMode;
|
|
9
19
|
private constructor();
|
|
10
20
|
registerRpcHandlers(): void;
|
|
11
21
|
static get Instance(): DebugProvider;
|
|
@@ -14,9 +24,10 @@ export declare class DebugProvider {
|
|
|
14
24
|
private initDebugMode;
|
|
15
25
|
private syncWithLogger;
|
|
16
26
|
isDebugMode(): boolean;
|
|
17
|
-
setDebugMode(isEnabled: boolean): void;
|
|
27
|
+
setDebugMode(isEnabled: boolean, { assignMode, stopPropagation }?: Partial<DebugModeOptions>): void;
|
|
18
28
|
private updateDebugMode;
|
|
19
29
|
private propagateDebugMode;
|
|
30
|
+
getAssignMode(): AssignMode;
|
|
20
31
|
sendDebugEvent(type: string, ...args: any[]): void;
|
|
21
32
|
onDebugEvent(observer: ObserverFn<string>): void;
|
|
22
33
|
setDebugMenuDependencies(deps: IDebugMenuRuntimeDependencies): void;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ApiEnv } from '../features/backend/backend.api';
|
|
2
|
+
import { AssignMode } from './debug-provider';
|
|
3
|
+
|
|
4
|
+
export declare const ENV_DISCOVER_REQUEST = "arkadium:sdk:discover:env:object";
|
|
5
|
+
export declare const ENV_DISCOVER_RESULT = "arkadium:sdk:discover:env:object:result";
|
|
6
|
+
export interface EnvDiscovererResult {
|
|
7
|
+
env: ApiEnv;
|
|
8
|
+
isDebugMode: boolean;
|
|
9
|
+
debugAssignMode: AssignMode;
|
|
10
|
+
}
|
|
@@ -14,6 +14,7 @@ import { TournamentsGame } from './api/features/tournaments';
|
|
|
14
14
|
import { RecorderGame } from './api/features/recorder';
|
|
15
15
|
import { ILogger } from './api/features/logger';
|
|
16
16
|
import { ConfigGame } from './api/features/config';
|
|
17
|
+
import { EnvDiscovererResult } from './api/core/types';
|
|
17
18
|
|
|
18
19
|
export declare class ArkadiumGameSdk {
|
|
19
20
|
version: string;
|
|
@@ -69,7 +70,7 @@ declare global {
|
|
|
69
70
|
}
|
|
70
71
|
}
|
|
71
72
|
interface EnvDiscoverer {
|
|
72
|
-
discover(): Promise<
|
|
73
|
+
discover(): Promise<EnvDiscovererResult>;
|
|
73
74
|
}
|
|
74
75
|
export declare class GameApi {
|
|
75
76
|
static version: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arkadiuminc/sdk",
|
|
3
|
-
"version": "2.78.
|
|
3
|
+
"version": "2.78.4",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"main": "dist/pkg/arkadium-sdk.umd.js",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
},
|
|
17
17
|
"license": "MIT",
|
|
18
18
|
"engines": {
|
|
19
|
-
"node": "
|
|
19
|
+
"node": "^24.22.1"
|
|
20
20
|
},
|
|
21
21
|
"scripts": {
|
|
22
22
|
"preview:tsc": "tsc --project example/game/simple-game/tsconfig.json",
|