@wayward/types 2.11.1-beta.dev.20211227.1 → 2.11.1-beta.dev.20211231.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/IGlobal.d.ts +0 -1
- package/definitions/game/game/Game.d.ts +2 -1
- package/definitions/game/game/doodad/DoodadManager.d.ts +5 -2
- package/definitions/game/game/entity/action/actions/Navigate.d.ts +1 -0
- package/definitions/game/game/island/Island.d.ts +6 -0
- package/definitions/game/game/item/IItem.d.ts +8 -1
- package/definitions/game/game/meta/Loading.d.ts +11 -6
- package/definitions/game/language/dictionary/UiTranslation.d.ts +623 -621
- package/definitions/game/multiplayer/IMultiplayer.d.ts +5 -5
- package/definitions/game/multiplayer/Multiplayer.d.ts +8 -1
- package/definitions/game/multiplayer/networking/Connection.d.ts +2 -2
- package/definitions/game/multiplayer/networking/IConnection.d.ts +1 -0
- package/definitions/game/multiplayer/packets/IPacket.d.ts +2 -1
- package/definitions/game/multiplayer/packets/Packet.d.ts +4 -2
- package/definitions/game/multiplayer/packets/client/AddPlayerPacket.d.ts +1 -0
- package/definitions/game/multiplayer/packets/client/CaughtUpPacket.d.ts +1 -0
- package/definitions/game/multiplayer/packets/client/ClearSyncPacketWaitingPacket.d.ts +1 -0
- package/definitions/game/multiplayer/packets/client/DisplayInterruptPacket.d.ts +1 -0
- package/definitions/game/multiplayer/packets/client/EmitPlayerEventPacket.d.ts +1 -0
- package/definitions/game/multiplayer/packets/client/HideLoadingScreenPacket.d.ts +1 -0
- package/definitions/game/multiplayer/packets/client/LoadIslandPacket.d.ts +1 -0
- package/definitions/game/multiplayer/packets/client/PausePacket.d.ts +1 -0
- package/definitions/game/multiplayer/packets/client/PongPacket.d.ts +1 -0
- package/definitions/game/multiplayer/packets/client/ReadyPlayerPacket.d.ts +1 -0
- package/definitions/game/multiplayer/packets/client/RemovePlayerPacket.d.ts +1 -0
- package/definitions/game/multiplayer/packets/client/SendMessagePacket.d.ts +1 -0
- package/definitions/game/multiplayer/packets/client/SetPlayerZPacket.d.ts +1 -0
- package/definitions/game/multiplayer/packets/client/ShowLoadingScreenPacket.d.ts +1 -0
- package/definitions/game/multiplayer/packets/client/SynchronizeGameStatePacket.d.ts +1 -0
- package/definitions/game/multiplayer/packets/client/SynchronizeStatesPacket.d.ts +1 -0
- package/definitions/game/multiplayer/packets/client/WorldPacket.d.ts +1 -0
- package/definitions/game/multiplayer/packets/server/AddMessageHistoryPacket.d.ts +1 -0
- package/definitions/game/multiplayer/packets/server/ConnectPacket.d.ts +1 -0
- package/definitions/game/multiplayer/packets/server/ConnectedPacket.d.ts +1 -0
- package/definitions/game/multiplayer/packets/server/DesyncPacket.d.ts +1 -0
- package/definitions/game/multiplayer/packets/server/KeepAlivePacket.d.ts +1 -0
- package/definitions/game/multiplayer/packets/server/LogsPacket.d.ts +1 -0
- package/definitions/game/multiplayer/packets/server/PingPacket.d.ts +1 -0
- package/definitions/game/multiplayer/packets/server/ReadyPacket.d.ts +1 -0
- package/definitions/game/multiplayer/packets/server/UiDataUpdatePacket.d.ts +1 -0
- package/definitions/game/multiplayer/packets/server/UpdateDialogInfoPacket.d.ts +1 -0
- package/definitions/game/multiplayer/packets/server/UpdateQuickSlotInfoPacket.d.ts +1 -0
- package/definitions/game/multiplayer/packets/shared/ChatMessagePacket.d.ts +1 -0
- package/definitions/game/multiplayer/packets/shared/DisconnectPacket.d.ts +1 -0
- package/definitions/game/multiplayer/packets/shared/DiscoverRecipePacket.d.ts +1 -0
- package/definitions/game/multiplayer/packets/shared/MarkAsExploredPacket.d.ts +1 -0
- package/definitions/game/multiplayer/packets/shared/UpdateMovementIntentPacket.d.ts +1 -0
- package/definitions/game/multiplayer/packets/shared/UpdateMultiplayerOptionsPacket.d.ts +1 -0
- package/definitions/game/multiplayer/packets/shared/UpdateWalkPathPacket.d.ts +1 -0
- package/definitions/game/ui/component/dropdown/EnumDropdown.d.ts +2 -1
- package/definitions/game/ui/component/dropdown/PlayerDropdown.d.ts +6 -5
- package/definitions/game/utilities/Log.d.ts +44 -43
- package/definitions/game/utilities/random/Random.d.ts +0 -1
- package/definitions/hosts/shared/globals.d.ts +2 -0
- package/definitions/test/core/applicationDom.d.ts +1 -1
- package/definitions/test/core/applicationInteractions.d.ts +19 -7
- package/definitions/test/core/applicationManager.d.ts +2 -2
- package/definitions/test/interfaces.d.ts +6 -2
- package/package.json +3 -1
|
@@ -61,7 +61,6 @@ declare global {
|
|
|
61
61
|
let saveManager: SaveManager;
|
|
62
62
|
let steamworks: Steamworks;
|
|
63
63
|
let ui: Ui;
|
|
64
|
-
const gc: ((options?: any) => Promise<void> | void) | undefined;
|
|
65
64
|
const gameVersion: string;
|
|
66
65
|
const gameVersionStage: string;
|
|
67
66
|
const gameVersionMajor: number;
|
|
@@ -165,7 +165,8 @@ export declare class Game extends EventEmitter.Host<IGameEvents> {
|
|
|
165
165
|
* This method should be able to be called multiple times in a row and nothing unexpected should occur.
|
|
166
166
|
* @param saveType Saves the game with the specified save type. Set to false to not save. Defaults to BackToMainMenu.
|
|
167
167
|
* @param shouldDisconnect Marks if the game should disconnect from multiplayer. Defaults to true.
|
|
168
|
+
* @param hasDisconnected Marks if the game just disconnected from multiplayer. Defaults to false.
|
|
168
169
|
*/
|
|
169
|
-
reset(saveType?: SaveType | false, shouldDisconnect?: boolean): Promise<void>;
|
|
170
|
+
reset(saveType?: SaveType | false, shouldDisconnect?: boolean, hasDisconnected?: boolean): Promise<void>;
|
|
170
171
|
fastForwardIsland(island: Island, ticks: number, multiplayerLoadingDescription?: MultiplayerLoadingDescription): Promise<void>;
|
|
171
172
|
}
|
|
@@ -39,10 +39,10 @@ export interface IDoodadManagerEvents {
|
|
|
39
39
|
remove(doodad: Doodad): any;
|
|
40
40
|
}
|
|
41
41
|
export default class DoodadManager extends ObjectManager<Doodad, IDoodadManagerEvents> {
|
|
42
|
-
private readonly scarecrows;
|
|
43
42
|
private static cachedBestDoodadForTier;
|
|
44
43
|
private static cachedGroups;
|
|
45
44
|
private static cachedDoodadSpawns;
|
|
45
|
+
private readonly scarecrows;
|
|
46
46
|
static getBestDoodadForTier(doodad: DoodadType | DoodadTypeGroup): DoodadType | undefined;
|
|
47
47
|
static generateLookups(): void;
|
|
48
48
|
static isGroup(doodadType: DoodadType | DoodadTypeGroup): doodadType is DoodadTypeGroup;
|
|
@@ -50,7 +50,10 @@ export default class DoodadManager extends ObjectManager<Doodad, IDoodadManagerE
|
|
|
50
50
|
static getGroupDoodads(doodadGroup: DoodadTypeGroup): Set<DoodadType>;
|
|
51
51
|
static getDoodadTypeGroupName(doodadType: DoodadType | DoodadTypeGroup, article?: boolean, count?: number): Translation;
|
|
52
52
|
delete(): void;
|
|
53
|
-
|
|
53
|
+
/**
|
|
54
|
+
* Note: This can be called multiple times in the same game depending on loading/unloading of islands
|
|
55
|
+
*/
|
|
56
|
+
load(hasLoadedBefore: boolean): void;
|
|
54
57
|
isGroup(doodadType: DoodadType | DoodadTypeGroup): doodadType is DoodadTypeGroup;
|
|
55
58
|
isInGroup(doodadType: DoodadType, doodadGroup: DoodadTypeGroup | DoodadType): boolean;
|
|
56
59
|
getBestDoodadForTier(doodad: DoodadType | DoodadTypeGroup): DoodadType | undefined;
|
|
@@ -12,3 +12,4 @@ import { Action } from "game/entity/action/Action";
|
|
|
12
12
|
import { ActionArgument } from "game/entity/action/IAction";
|
|
13
13
|
declare const _default: Action<[[ActionArgument.ItemInventory, ActionArgument.Undefined]], import("../../player/Player").default, void, [(import("../../../item/Item").default | undefined)?]>;
|
|
14
14
|
export default _default;
|
|
15
|
+
export declare function getCoordinatesTranslationArgs(x: number, y: number): any[];
|
|
@@ -86,6 +86,11 @@ export default class Island extends EventEmitter.Host<IIslandEvents> implements
|
|
|
86
86
|
loadCount: number;
|
|
87
87
|
seeds: ISeeds;
|
|
88
88
|
readonly seededRandom: Random<SeededGenerator>;
|
|
89
|
+
/**
|
|
90
|
+
* Random for milestone modifiers. You should only use the one in the default island
|
|
91
|
+
* todo: remove since this is no longer used
|
|
92
|
+
*/
|
|
93
|
+
readonly seededMilestoneModifiersRandom: Random<SeededGenerator>;
|
|
89
94
|
/**
|
|
90
95
|
* Set of players on this island
|
|
91
96
|
*/
|
|
@@ -106,6 +111,7 @@ export default class Island extends EventEmitter.Host<IIslandEvents> implements
|
|
|
106
111
|
get id(): `${number},${number}`;
|
|
107
112
|
get biome(): import("game/biome/IBiome").IBiomeDescription;
|
|
108
113
|
get isLoaded(): boolean;
|
|
114
|
+
get hasLoadedItemReferences(): boolean;
|
|
109
115
|
get isLocalIsland(): boolean;
|
|
110
116
|
get world(): World;
|
|
111
117
|
/**
|
|
@@ -184,6 +184,10 @@ export interface IItemDescription extends IObjectDescription, IModdable, ITemper
|
|
|
184
184
|
plural?: string;
|
|
185
185
|
hideHelmet?: boolean;
|
|
186
186
|
worth?: number;
|
|
187
|
+
/**
|
|
188
|
+
* Array of items that the item is "made from" in cases where we can't use the disassembly items to burn into.
|
|
189
|
+
* All items in array are required to have onBurn set in their description to function properly.
|
|
190
|
+
*/
|
|
187
191
|
burnsLike?: ItemType[];
|
|
188
192
|
spawnableTiles?: TileGroup;
|
|
189
193
|
gather?: ILiquid;
|
|
@@ -279,10 +283,13 @@ export interface IMoveToTileOptions {
|
|
|
279
283
|
fromPoint?: IVector3;
|
|
280
284
|
toPoint: IVector3;
|
|
281
285
|
toContainer?: IContainer;
|
|
286
|
+
beforeMovement?: IMoveToTileBeforeMovementOptions;
|
|
282
287
|
afterMovement?: IMoveToTileAfterMovementOptions;
|
|
283
288
|
}
|
|
284
|
-
export interface
|
|
289
|
+
export interface IMoveToTileBeforeMovementOptions {
|
|
285
290
|
remove?: boolean;
|
|
291
|
+
}
|
|
292
|
+
export interface IMoveToTileAfterMovementOptions {
|
|
286
293
|
soundEffect?: SfxType;
|
|
287
294
|
particles?: IRGB;
|
|
288
295
|
}
|
|
@@ -128,17 +128,19 @@ declare module Loading {
|
|
|
128
128
|
*/
|
|
129
129
|
progress(load: Load, progress: number): any;
|
|
130
130
|
/**
|
|
131
|
-
* Emitted when a
|
|
131
|
+
* Emitted when a load has finished loading.
|
|
132
|
+
* Either this or "cancel" will be called when a load is done
|
|
132
133
|
*/
|
|
133
134
|
step(...loaded: Load[]): any;
|
|
134
135
|
/**
|
|
135
|
-
* Emitted when
|
|
136
|
+
* Emitted when a load has been cancelled.
|
|
137
|
+
* Either this or "step"" will be called when a load is done
|
|
136
138
|
*/
|
|
137
|
-
|
|
139
|
+
cancel(load: Load): any;
|
|
138
140
|
/**
|
|
139
|
-
* Emitted when
|
|
141
|
+
* Emitted when all things have finished loading
|
|
140
142
|
*/
|
|
141
|
-
|
|
143
|
+
end(...loaded: Load[]): any;
|
|
142
144
|
}
|
|
143
145
|
const currently: Map<Load, any[]>;
|
|
144
146
|
class Events extends EventEmitter.Host<ILoadingEvents> {
|
|
@@ -161,7 +163,10 @@ declare module Loading {
|
|
|
161
163
|
* Returns a promise that will resolve when the load is complete, and reject if the load is cancelled.
|
|
162
164
|
*/
|
|
163
165
|
function waitFor(load: Load): Promise<void>;
|
|
166
|
+
/**
|
|
167
|
+
* Returns a promise that will resolve when all running loads are complete.
|
|
168
|
+
*/
|
|
169
|
+
function waitForAll(): Promise<void>;
|
|
164
170
|
function progress(load: Load, progress: number): Promise<void>;
|
|
165
|
-
function done(): Promise<void>;
|
|
166
171
|
}
|
|
167
172
|
export default Loading;
|