@wayward/types 2.11.2-beta.dev.20220109.2 → 2.11.3-beta.dev.20220112.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.
- package/definitions/game/game/entity/player/Player.d.ts +1 -1
- package/definitions/game/game/meta/SaveLoad.d.ts +1 -1
- package/definitions/game/language/dictionary/UiTranslation.d.ts +764 -763
- package/definitions/game/multiplayer/IMultiplayer.d.ts +3 -2
- package/definitions/game/multiplayer/Multiplayer.d.ts +1 -0
- package/definitions/game/multiplayer/networking/SteamNetworkConnection.d.ts +1 -1
- package/definitions/game/renderer/world/WorldLayerRenderer.d.ts +1 -0
- package/definitions/game/renderer/world/WorldRenderer.d.ts +1 -0
- package/definitions/game/save/clientStore/clientData/ExploredMap.d.ts +1 -0
- package/definitions/game/ui/screen/screens/menu/menus/GameEndMenu.d.ts +1 -3
- package/definitions/game/ui/screen/screens/menu/menus/newgame/TabMultiplayer.d.ts +1 -1
- package/definitions/game/ui/screen/screens/menu/menus/pause/MultiplayerOptionsMenu.d.ts +1 -1
- package/definitions/game/utilities/Log.d.ts +24 -23
- package/definitions/hosts/shared/globals.d.ts +1 -1
- package/package.json +1 -1
|
@@ -113,7 +113,7 @@ export declare type PacketTarget = Array<Player | IConnection> | Player | IConne
|
|
|
113
113
|
export interface IMultiplayerOptions {
|
|
114
114
|
lobbyType: LobbyType;
|
|
115
115
|
pvp: boolean;
|
|
116
|
-
|
|
116
|
+
allowHardcoreRespawns: boolean;
|
|
117
117
|
turnMode: TurnMode;
|
|
118
118
|
maxPlayers: number;
|
|
119
119
|
tickSpeed: number;
|
|
@@ -141,7 +141,8 @@ export interface IMultiplayerNetworkingOptions {
|
|
|
141
141
|
connectionTimeout: number;
|
|
142
142
|
keepAliveInterval: number;
|
|
143
143
|
keepAliveTimeout: number;
|
|
144
|
-
|
|
144
|
+
steamNetworkingConnectionWebRTCFallbackInitialTimeout: number;
|
|
145
|
+
steamNetworkingConnectionWebRTCFallbackDownloadingTimeout: number;
|
|
145
146
|
}
|
|
146
147
|
export declare type ServerInfo = string | IMatchmakingInfo;
|
|
147
148
|
export declare enum PacketAcceptType {
|
|
@@ -148,6 +148,7 @@ export default class Multiplayer extends EventEmitter.Host<IMultiplayerEvents> {
|
|
|
148
148
|
private addDefaultSyncChecks;
|
|
149
149
|
private getPacketSyncChecks;
|
|
150
150
|
private clearJoinServerRetryTimeout;
|
|
151
|
+
createOrExtendSteamNetworkConnectionWebRTCFallbackTimer(timeoutTime: number): void;
|
|
151
152
|
clearSteamNetworkConnectionWebRTCFallbackTimer(): void;
|
|
152
153
|
private startMatchmakingServer;
|
|
153
154
|
private stopMatchmakingServer;
|
|
@@ -18,7 +18,7 @@ export declare class SteamNetworkConnection extends Connection {
|
|
|
18
18
|
private readonly onConnected?;
|
|
19
19
|
private readonly connectGlobalMatchmakingServer?;
|
|
20
20
|
name: string;
|
|
21
|
-
readonly maxMessageSize =
|
|
21
|
+
readonly maxMessageSize = 65536;
|
|
22
22
|
private _processIntervalId;
|
|
23
23
|
private _checkSessionStateIntervalId;
|
|
24
24
|
constructor(steamNetworking: ISteamworksNetworking, hostSteamId: string, matchmakingInfo: IMatchmakingInfo | undefined, matchmakingIdentifier: string, onData: (data: ArrayBuffer) => void, onConnected?: ((matchmakingInfo: IMatchmakingInfo) => void) | undefined, connectGlobalMatchmakingServer?: (() => void) | undefined);
|
|
@@ -54,6 +54,7 @@ export default class WorldLayerRenderer extends EventEmitter.Host<IWorldLayerRen
|
|
|
54
54
|
delete(): void;
|
|
55
55
|
private deleteTileLayers;
|
|
56
56
|
reset(): void;
|
|
57
|
+
refreshExploredMap(): void;
|
|
57
58
|
setWorldLayer(worldLayer: WorldLayer): void;
|
|
58
59
|
addTileLayer(tileLayer: TileLayer): void;
|
|
59
60
|
updateAll(): void;
|
|
@@ -161,6 +161,7 @@ export default class WorldRenderer extends EventEmitter.Host<IWorldRendererEvent
|
|
|
161
161
|
load(island: Island): void;
|
|
162
162
|
update(timeStamp: number): void;
|
|
163
163
|
updateAllTiles(): void;
|
|
164
|
+
refreshExploredMap(): void;
|
|
164
165
|
initializeSpriteBatch(layer: SpriteBatchLayer): void;
|
|
165
166
|
private setResources;
|
|
166
167
|
getPixelSize(): number;
|
|
@@ -18,5 +18,6 @@ export default class ExploredMapClientData implements IPreSerializeCallback {
|
|
|
18
18
|
exploredMapEncodedData: Map<string, Record<number, number[]>>;
|
|
19
19
|
private readonly exploredMaps;
|
|
20
20
|
preSerializeObject(): void;
|
|
21
|
+
clear(): void;
|
|
21
22
|
getExploreMap(island: Island, z: number): ExploreMap;
|
|
22
23
|
}
|
|
@@ -18,7 +18,6 @@ export interface IGameEndData {
|
|
|
18
18
|
export default class GameEndMenu extends Menu {
|
|
19
19
|
private readonly highscore;
|
|
20
20
|
private readonly respawnButton;
|
|
21
|
-
private readonly rejoinAsNewPlayerButton;
|
|
22
21
|
private gameEndData;
|
|
23
22
|
constructor();
|
|
24
23
|
setGameEndData(gameEndData: IGameEndData): this;
|
|
@@ -27,8 +26,7 @@ export default class GameEndMenu extends Menu {
|
|
|
27
26
|
private getTagline;
|
|
28
27
|
private getContinueButtonText;
|
|
29
28
|
private continue;
|
|
30
|
-
private
|
|
31
|
-
private rejoinAsNewPlayer;
|
|
29
|
+
private respawn;
|
|
32
30
|
private exitToMenu;
|
|
33
31
|
private share;
|
|
34
32
|
}
|
|
@@ -22,7 +22,7 @@ export default class TabMultiplayer extends Tab {
|
|
|
22
22
|
readonly choiceLobbyPrivate: Choice<undefined>;
|
|
23
23
|
readonly lobbyType: ChoiceList<Choice<string | number | undefined>, false>;
|
|
24
24
|
readonly inputPVP: CheckButton;
|
|
25
|
-
readonly
|
|
25
|
+
readonly inputAllowHardcoreRespawns: CheckButton;
|
|
26
26
|
readonly maxPlayersRow: RangeRow;
|
|
27
27
|
readonly tickSpeedRow: RangeRow;
|
|
28
28
|
private readonly menuRef;
|
|
@@ -23,7 +23,7 @@ export default class MultiplayerOptionsMenu extends Menu {
|
|
|
23
23
|
private readonly steamRelayNetworkSpacer;
|
|
24
24
|
private readonly webRTCSpacer;
|
|
25
25
|
private readonly pvp;
|
|
26
|
-
private readonly
|
|
26
|
+
private readonly allowHardcoreRespawns;
|
|
27
27
|
private readonly maxPlayers;
|
|
28
28
|
private readonly descriptionInput;
|
|
29
29
|
private readonly messageOfTheDayInput;
|
|
@@ -59,29 +59,30 @@ export declare enum LogSource {
|
|
|
59
59
|
Renderer = 46,
|
|
60
60
|
ReplayManager = 47,
|
|
61
61
|
ResourceLoader = 48,
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
62
|
+
SaveLoad = 49,
|
|
63
|
+
SaveManager = 50,
|
|
64
|
+
Serializer = 51,
|
|
65
|
+
Shaders = 52,
|
|
66
|
+
SoundEffect = 53,
|
|
67
|
+
SpritePack = 54,
|
|
68
|
+
SshCommandManager = 55,
|
|
69
|
+
SshServer = 56,
|
|
70
|
+
Steamworks = 57,
|
|
71
|
+
StringTokenizer = 58,
|
|
72
|
+
TemperatureManager = 59,
|
|
73
|
+
TileEventManager = 60,
|
|
74
|
+
TileUpdate = 61,
|
|
75
|
+
Timer = 62,
|
|
76
|
+
Trello = 63,
|
|
77
|
+
Ui = 64,
|
|
78
|
+
Utilities = 65,
|
|
79
|
+
WebAssembly = 66,
|
|
80
|
+
WebGlContext = 67,
|
|
81
|
+
WebRTCConnection = 68,
|
|
82
|
+
WebSocketConnection = 69,
|
|
83
|
+
World = 70,
|
|
84
|
+
WorldLayerRenderer = 71,
|
|
85
|
+
WorldRenderer = 72
|
|
85
86
|
}
|
|
86
87
|
export declare enum LogLineType {
|
|
87
88
|
Debug = 0,
|
|
@@ -8,6 +8,6 @@
|
|
|
8
8
|
* Wayward is a copyrighted and licensed work. Modification and/or distribution of any source files is prohibited. If you wish to modify the game in any way, please refer to the modding guide:
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
|
-
export declare const gameVersionStage = "beta", gameVersionMajor = 2, gameVersionMinor = 11, gameVersionPatch =
|
|
11
|
+
export declare const gameVersionStage = "beta", gameVersionMajor = 2, gameVersionMinor = 11, gameVersionPatch = 3, gameVersionName = "Horizons";
|
|
12
12
|
export declare const gameVersion: string;
|
|
13
13
|
export declare function registerGlobals(globalObject: any): void;
|
package/package.json
CHANGED