@arkadiuminc/sdk
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -19,2 +19,16 @@ export interface LocalStorageContract { | ||
} | ||
export interface GameIdReaderContract { | ||
readGameId(): Promise<string>; | ||
setGameId(id: string): any; | ||
} | ||
export declare class GameIdReader implements GameIdReaderContract { | ||
private gameIdOverride; | ||
constructor(); | ||
readGameId(): Promise<string>; | ||
setGameId(id: string): void; | ||
} | ||
export declare class GameIdReaderProxy implements GameIdReaderContract { | ||
readGameId(): Promise<string>; | ||
setGameId(id: string): Promise<any>; | ||
} | ||
export declare class EnvironmentApi { | ||
@@ -24,3 +38,4 @@ localStorage: LocalStorageContract; | ||
urlParamsReader: UrlParamsReaderContract; | ||
constructor(localStorage: LocalStorageContract, cookieStorage: CookieStorageContract, urlParamsReader: UrlParamsReaderContract); | ||
gameIdReader: GameIdReaderContract; | ||
constructor(localStorage: LocalStorageContract, cookieStorage: CookieStorageContract, urlParamsReader: UrlParamsReaderContract, gameIdReader: GameIdReaderContract); | ||
static getArenaApi(): EnvironmentApi; | ||
@@ -27,0 +42,0 @@ static getGameApi(): EnvironmentApi; |
@@ -1,2 +0,2 @@ | ||
import { LocalStorageContract } from '../environment/environment.api'; | ||
import { GameIdReaderContract } from '../environment/environment.api'; | ||
import { BackendApi } from '../backend/backend.api'; | ||
@@ -8,11 +8,15 @@ export interface GameStateContract { | ||
export declare class GameStateApi { | ||
ls: LocalStorageContract; | ||
backendApi: BackendApi; | ||
constructor(backendApi: BackendApi); | ||
private ls; | ||
private backendApi; | ||
private gameIdReader; | ||
constructor(backendApi: BackendApi, gameIdReader: GameIdReaderContract); | ||
private getGameId; | ||
private packData; | ||
private unpackData; | ||
private isUserAuthorized; | ||
loadGameState(key: string): Promise<any>; | ||
loadGameState(key: string): Promise<Record<any, any> | null>; | ||
private getStorageKey; | ||
private loadData; | ||
saveGameState(key: string, state: any): Promise<void>; | ||
saveGameState(key: string, state: Record<any, any>): Promise<void>; | ||
private saveData; | ||
} | ||
@@ -19,0 +23,0 @@ export declare class GameStateApiProxy { |
{ | ||
"name": "@arkadiuminc/sdk", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "keywords": [], |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16011
280