@arkadiuminc/sdk
Advanced tools
Comparing version 2.15.1 to 2.16.0
@@ -11,6 +11,8 @@ import { RpcProvider } from '../../core/rpc'; | ||
GAME_PAUSE = 7, | ||
GAME_RESUME = 8 | ||
GAME_RESUME = 8, | ||
GEMS_UPDATE = 9 | ||
} | ||
declare type LifecycleFn = (event: LifecycleEvent, payload?: any) => void; | ||
export interface GameLifecycleContract { | ||
subscribe(fn: LifecycleFn): void; | ||
onTestReady(): Promise<void>; | ||
@@ -24,3 +26,3 @@ onPauseReady(): Promise<void>; | ||
onGameEnd(): Promise<void>; | ||
subscribe(fn: LifecycleFn): void; | ||
onGemsUpdate(): Promise<void>; | ||
} | ||
@@ -33,2 +35,3 @@ /** @hidden */ | ||
private processLifecycleEvent; | ||
subscribe(cb: LifecycleFn): void; | ||
onTestReady(): Promise<void>; | ||
@@ -39,6 +42,6 @@ onGameStart(): Promise<void>; | ||
onGameEnd(): Promise<void>; | ||
subscribe(cb: LifecycleFn): void; | ||
onGamePause(): Promise<void>; | ||
onGameResume(): Promise<void>; | ||
onPauseReady(): Promise<void>; | ||
onGemsUpdate(): Promise<void>; | ||
} | ||
@@ -61,3 +64,4 @@ export declare class GameLifecycleProxy implements GameLifecycleContract { | ||
onPauseReady(): Promise<void>; | ||
onGemsUpdate(): Promise<void>; | ||
} | ||
export {}; |
import { ApiEnv, Backend } from '../backend/backend.api'; | ||
import { GameLifecycleContract } from '../game-lifecycle/game-lifecycle.api'; | ||
@@ -10,6 +11,7 @@ export interface Wallet { | ||
private backendApi; | ||
private lifecycle; | ||
private virtualItemsApi; | ||
private virtualItemGateway; | ||
private currencySku; | ||
constructor(backendApi: Backend); | ||
constructor(backendApi: Backend, lifecycle: GameLifecycleContract); | ||
init(env: ApiEnv): Promise<void>; | ||
@@ -16,0 +18,0 @@ /** |
{ | ||
"name": "@arkadiuminc/sdk", | ||
"version": "2.15.1", | ||
"version": "2.16.0", | ||
"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
46131
1068
13
3