playroomkit
Advanced tools
Comparing version 0.0.46 to 0.0.47
{ | ||
"name": "playroomkit", | ||
"version": "0.0.46", | ||
"version": "0.0.47", | ||
"homepage": "https://joinplayroom.com", | ||
@@ -5,0 +5,0 @@ "main": "./multiplayer.mjs", |
@@ -92,3 +92,6 @@ export interface InitOptions { | ||
export declare function getRoomCode(): string | undefined; | ||
export declare function insertCoin(options?: InitOptions): Promise<void>; | ||
export declare function insertCoin( | ||
options?: InitOptions, | ||
callbackOnLaunch?: () => void | ||
): Promise<void>; | ||
export declare function getState(key: string): any; | ||
@@ -107,6 +110,10 @@ export declare function setState( | ||
export declare function me(): PlayerState; | ||
export declare function waitForState<T>(stateKey: string): Promise<T>; | ||
export declare function waitForState<T>( | ||
stateKey: string, | ||
callbackOnState?: (stateValue: T) => void | ||
): Promise<T>; | ||
export declare function waitForPlayerState<T>( | ||
player: PlayerState, | ||
stateKey: string | ||
stateKey: string, | ||
callbackOnState?: (stateValue: T) => void | ||
): Promise<T>; | ||
@@ -113,0 +120,0 @@ export declare class Joystick { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
2085985
33041