@wayward/types 2.14.0-beta.dev.20241121.1 → 2.14.0-beta.dev.20241123.1
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.
|
@@ -28,6 +28,7 @@ export default class Steamworks extends EventEmitter.Host<ISteamworksEvents> {
|
|
|
28
28
|
private _build;
|
|
29
29
|
private overlayWorks;
|
|
30
30
|
private runningOnSteamDeck;
|
|
31
|
+
private runningOnSteamDeckDesktop;
|
|
31
32
|
private runningOnBatteryPower;
|
|
32
33
|
private floatingTextInputFocused;
|
|
33
34
|
private floatingTextInputBlurTime;
|
|
@@ -64,6 +65,7 @@ export default class Steamworks extends EventEmitter.Host<ISteamworksEvents> {
|
|
|
64
65
|
constructor(game: Game);
|
|
65
66
|
get isGameOverlayActive(): boolean;
|
|
66
67
|
get isRunningOnSteamDeck(): boolean;
|
|
68
|
+
get isRunningOnSteamDeckDesktop(): boolean;
|
|
67
69
|
get isRunningOnBatteryPower(): boolean;
|
|
68
70
|
get isLowPowerMode(): boolean;
|
|
69
71
|
isElectron(): boolean;
|
|
@@ -70,6 +70,7 @@ export declare class Ui extends EventEmitter.Host<IUiEvents> {
|
|
|
70
70
|
* @param elements The elements to refresh translations inside
|
|
71
71
|
*/
|
|
72
72
|
refreshTranslations(...elements: Array<HTMLElement | Component | undefined>): void;
|
|
73
|
+
isFullscreen(): boolean;
|
|
73
74
|
storeElements(owner: Component, ...components: Component[]): void;
|
|
74
75
|
/**
|
|
75
76
|
* Registers an object as a "data host", which allows its fields to be saved to `saveData` or `saveDataGlobal`
|
|
@@ -71,6 +71,10 @@ export default class ApplicationInteractions {
|
|
|
71
71
|
setNewGameSeed(seed: string | number): Promise<void>;
|
|
72
72
|
setMultiplayerIdentifier(identifier: string): Promise<void>;
|
|
73
73
|
private importGame;
|
|
74
|
+
/**
|
|
75
|
+
* Executes a ascend/descend action
|
|
76
|
+
*/
|
|
77
|
+
ascendDescend(): Promise<void>;
|
|
74
78
|
/**
|
|
75
79
|
* Executes a Move action
|
|
76
80
|
* @param direction Direction to move. Direction.None to Idle
|
|
@@ -74,8 +74,8 @@ export declare class ApplicationManager {
|
|
|
74
74
|
randomMovement(count: number): Promise<void>;
|
|
75
75
|
moveToTowardsIsland(app: Application, direction: Direction.Cardinal, recoverStats?: boolean): Promise<void>;
|
|
76
76
|
recoverStats(app: Application): Promise<void>;
|
|
77
|
-
|
|
78
|
-
moveInDirection(app: Application, direction: Direction.Cardinal, steps?: number): Promise<void>;
|
|
77
|
+
ascendDesend(app: Application): Promise<void>;
|
|
78
|
+
moveInDirection(app: Application, direction: Direction.Cardinal | Direction.None, steps?: number): Promise<void>;
|
|
79
79
|
executeAndWaitForNextTick(app: Application, executor: () => Promise<void>): Promise<void>;
|
|
80
80
|
waitForClientConsistency(): Promise<void>;
|
|
81
81
|
createInteraction(application: Application): ApplicationInteraction;
|
package/package.json
CHANGED