@arkadiuminc/sdk 2.63.1 → 2.65.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.
|
@@ -177,6 +177,7 @@ export declare class ConfigService {
|
|
|
177
177
|
private _platformId;
|
|
178
178
|
private _platformType;
|
|
179
179
|
private _host;
|
|
180
|
+
private _gameConfig;
|
|
180
181
|
private constructor();
|
|
181
182
|
static get Instance(): ConfigService;
|
|
182
183
|
subscribe(callback: ConfigChangeCallback): () => void;
|
|
@@ -194,4 +195,6 @@ export declare class ConfigService {
|
|
|
194
195
|
private isPlatform;
|
|
195
196
|
private isPlatformType;
|
|
196
197
|
private isGame;
|
|
198
|
+
setGameConfig(gameConfig: any): void;
|
|
199
|
+
getGameConfigProperty(property: string, defaultValue?: any): any;
|
|
197
200
|
}
|
|
@@ -21,6 +21,8 @@ export interface IHost {
|
|
|
21
21
|
getGameSDKUrl(): Promise<string>;
|
|
22
22
|
getArenaType(): Promise<ArenaType>;
|
|
23
23
|
isSubscriptionsSupported(): Promise<boolean>;
|
|
24
|
+
isEagleSupported(): Promise<boolean>;
|
|
25
|
+
isAuthSupported(): Promise<boolean>;
|
|
24
26
|
}
|
|
25
27
|
export declare type PurchaseRequest = {
|
|
26
28
|
type?: string;
|
|
@@ -37,8 +39,9 @@ declare class WebEnvironmentDetails {
|
|
|
37
39
|
clone(p: Partial<WebEnvironmentDetails>): WebEnvironmentDetails;
|
|
38
40
|
}
|
|
39
41
|
export declare type UrlState = {
|
|
40
|
-
url
|
|
42
|
+
url?: string;
|
|
41
43
|
params?: URLSearchParams;
|
|
44
|
+
hash?: string;
|
|
42
45
|
};
|
|
43
46
|
export declare type UrlStateUnsubscribeFn = () => void;
|
|
44
47
|
/** @hidden */
|
|
@@ -67,6 +70,7 @@ export declare class HostArena implements IHost {
|
|
|
67
70
|
getArenaNameSync(): string;
|
|
68
71
|
getGameSDKUrl(): Promise<string>;
|
|
69
72
|
getArenaType(): Promise<ArenaType>;
|
|
73
|
+
getArenaTypeSync(): ArenaType;
|
|
70
74
|
getGameDimensions(): Promise<{
|
|
71
75
|
width: number;
|
|
72
76
|
height: number;
|
|
@@ -75,6 +79,8 @@ export declare class HostArena implements IHost {
|
|
|
75
79
|
private updateUrlState;
|
|
76
80
|
subscribeToUrlStateChange(observer: ObserverFn<UrlState | undefined>): UrlStateUnsubscribeFn;
|
|
77
81
|
isSubscriptionsSupported(): Promise<boolean>;
|
|
82
|
+
isEagleSupported(): Promise<boolean>;
|
|
83
|
+
isAuthSupported(): Promise<boolean>;
|
|
78
84
|
}
|
|
79
85
|
export declare class HostGame implements IHost {
|
|
80
86
|
private rpcProvider;
|
|
@@ -107,5 +113,7 @@ export declare class HostGame implements IHost {
|
|
|
107
113
|
private updateUrlState;
|
|
108
114
|
subscribeToUrlStateChange(observer: ObserverFn<UrlState | undefined>): UrlStateUnsubscribeFn;
|
|
109
115
|
isSubscriptionsSupported(): Promise<boolean>;
|
|
116
|
+
isEagleSupported(): Promise<boolean>;
|
|
117
|
+
isAuthSupported(): Promise<boolean>;
|
|
110
118
|
}
|
|
111
119
|
export {};
|
|
@@ -14,6 +14,7 @@ import { LeaderboardArena } from './api/features/leaderboard';
|
|
|
14
14
|
import { FriendsArena } from './api/features/friends';
|
|
15
15
|
import { NotificationsArena } from './api/features/notifications';
|
|
16
16
|
import { ChatArena } from './api/features/chat';
|
|
17
|
+
import { ConfigService } from './api/core/config-service';
|
|
17
18
|
import { RatingsArena } from './api/features/ratings';
|
|
18
19
|
import { TournamentsArena } from './api/features/tournaments';
|
|
19
20
|
import { RecorderArena } from './api/features/recorder';
|
|
@@ -45,6 +46,7 @@ export declare class ArkadiumArenaSdk {
|
|
|
45
46
|
private gamePingListener;
|
|
46
47
|
$pingNotification: Observable<number>;
|
|
47
48
|
version: string;
|
|
49
|
+
config: ConfigService;
|
|
48
50
|
constructor(backendApi: Backend, host: HostArena, lifecycle: GameLifecycleArena, ads: AdsArena, auth: AuthArena, analytics: AnalyticsApiContract, timeoutTester: TimeoutTesterContract, persistence: PersistenceArena, wallet: WalletArena, debug: DebugProviderArena, supportV1: SupportV1, leaderboard: LeaderboardArena, friends: FriendsArena, notifications: NotificationsArena, chats: ChatArena, ratings: RatingsArena, tournaments: TournamentsArena, recorder: RecorderArena);
|
|
49
51
|
setEnv(e: ApiEnv): void;
|
|
50
52
|
initialize(env: ApiEnv, isGameSide: boolean, sessionStorage?: SessionStorageType | null): Promise<void>;
|