@wayward/types 2.11.5-beta.dev.20220306.1 → 2.11.5-beta.dev.20220306.2
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.
- package/definitions/game/game/item/IItem.d.ts +3 -2
- package/definitions/game/game/meta/prompt/IPrompt.d.ts +2 -1
- package/definitions/game/game/meta/prompt/PromptDescriptions.d.ts +2 -1
- package/definitions/game/steamworks/Steamworks.d.ts +6 -0
- package/definitions/hosts/shared/interfaces.d.ts +5 -0
- package/package.json +1 -1
|
@@ -121,7 +121,8 @@ export declare enum Prompt {
|
|
|
121
121
|
SteamworksModImportedSaveGame = 103,
|
|
122
122
|
SteamworksOpenFolderFailure = 104,
|
|
123
123
|
SteamworksModPublishModJsonUpdateFailed = 105,
|
|
124
|
-
|
|
124
|
+
SteamworksNotAvailableOnSteamDeck = 106,
|
|
125
|
+
UiSaveDrop = 107
|
|
125
126
|
}
|
|
126
127
|
export declare enum PromptType {
|
|
127
128
|
Info = 0,
|
|
@@ -123,8 +123,9 @@ declare const promptDescriptions: {
|
|
|
123
123
|
102: import("game/meta/prompt/IPrompt").IPromptInfoDescription<[modName: string]>;
|
|
124
124
|
103: import("game/meta/prompt/IPrompt").IPromptInfoDescription<[modName: string]>;
|
|
125
125
|
104: import("game/meta/prompt/IPrompt").IPromptInfoDescription<[]>;
|
|
126
|
+
106: import("game/meta/prompt/IPrompt").IPromptInfoDescription<[]>;
|
|
126
127
|
105: import("game/meta/prompt/IPrompt").IPromptInfoDescription<[error: string | undefined, publishedFileId: string]>;
|
|
127
|
-
|
|
128
|
+
107: import("game/meta/prompt/IPrompt").IPromptChoiceDescription<any[], never[]>;
|
|
128
129
|
};
|
|
129
130
|
declare const _default: Record<Prompt, PromptDescription<any[]>>;
|
|
130
131
|
export default _default;
|
|
@@ -18,6 +18,9 @@ export default class Steamworks extends EventEmitter.Host<ISteamworksEvents> {
|
|
|
18
18
|
private betaName;
|
|
19
19
|
private buildTime;
|
|
20
20
|
private overlayWorks;
|
|
21
|
+
private runningOnSteamDeck;
|
|
22
|
+
private floatingTextInputFocused;
|
|
23
|
+
private floatingTextInputBlurTime;
|
|
21
24
|
private initializingMods;
|
|
22
25
|
private logsPath;
|
|
23
26
|
private backupsPath;
|
|
@@ -43,6 +46,7 @@ export default class Steamworks extends EventEmitter.Host<ISteamworksEvents> {
|
|
|
43
46
|
private _isTraceRecording;
|
|
44
47
|
private _intervalIds;
|
|
45
48
|
get isGameOverlayActive(): boolean;
|
|
49
|
+
get isRunningOnSteamDeck(): boolean;
|
|
46
50
|
isElectron(): boolean;
|
|
47
51
|
reload(): Promise<void>;
|
|
48
52
|
openGpuInfoWindow(): void;
|
|
@@ -126,6 +130,8 @@ export default class Steamworks extends EventEmitter.Host<ISteamworksEvents> {
|
|
|
126
130
|
protected onGlobalSlotLoaded(): void;
|
|
127
131
|
writeBackup(slot: number, data: Uint8Array): Promise<string | undefined>;
|
|
128
132
|
private _writeBackupFile;
|
|
133
|
+
onInputFocus(inputElement: HTMLElement): void;
|
|
134
|
+
private onFloatingGamepadTextInputDismissed;
|
|
129
135
|
setupMultiplayerLog(): void;
|
|
130
136
|
getMultiplayerLogs(): string;
|
|
131
137
|
multiplayerLog(...args: any[]): void;
|
|
@@ -89,6 +89,11 @@ export interface ISteamworks {
|
|
|
89
89
|
getFileCount(): number;
|
|
90
90
|
getFileNameAndSize(index: number): IRemoteFile;
|
|
91
91
|
deleteRemoteFile(name: string): void;
|
|
92
|
+
getCurrentBatteryPower(): number;
|
|
93
|
+
isSteamRunningOnSteamDeck(): boolean;
|
|
94
|
+
showFloatingGamepadTextInput(nTextFieldXPosition: number, nTextFieldYPosition: number, nTextFieldWidth: number, nTextFieldHeight: number): boolean;
|
|
95
|
+
dismissFloatingGamepadTextInput(): boolean;
|
|
96
|
+
setFloatingGamepadTextInputDismissedCallback(cb: () => void): void;
|
|
92
97
|
}
|
|
93
98
|
export interface ISteamworksNetworking {
|
|
94
99
|
initRelayNetworkAccess(): undefined;
|
package/package.json
CHANGED