@wayward/types 2.14.0-beta.dev.20231205.1 → 2.14.0-beta.dev.20231206.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/doodad/Doodad.d.ts +3 -3
- package/definitions/game/game/entity/Human.d.ts +2 -1
- package/definitions/game/game/entity/IHuman.d.ts +1 -1
- package/definitions/game/game/meta/prompt/IPrompt.d.ts +94 -93
- package/definitions/game/game/meta/prompt/PromptDescriptions.d.ts +1 -0
- package/definitions/game/renderer/platform/webgl/SpriteBatchWebGlBase.d.ts +2 -2
- package/package.json +1 -1
|
@@ -12,8 +12,7 @@ import { TileUpdateType } from "@wayward/game/game/IGame";
|
|
|
12
12
|
import type { IObject } from "@wayward/game/game/IObject";
|
|
13
13
|
import { Quality } from "@wayward/game/game/IObject";
|
|
14
14
|
import type { DisplayableDoodadType, DoodadTypeExtra, DoorOrientation, IDoodadDescription, IDoodadOptions, IHasBuilder, IHasWater } from "@wayward/game/game/doodad/IDoodad";
|
|
15
|
-
import { DoodadTag } from "@wayward/game/game/doodad/IDoodad";
|
|
16
|
-
import { DoodadType, DoodadTypeGroup, GrowingStage } from "@wayward/game/game/doodad/IDoodad";
|
|
15
|
+
import { DoodadTag, DoodadType, DoodadTypeGroup, GrowingStage } from "@wayward/game/game/doodad/IDoodad";
|
|
17
16
|
import type { IEntityMovableEvents } from "@wayward/game/game/entity/EntityMovable";
|
|
18
17
|
import EntityMovable from "@wayward/game/game/entity/EntityMovable";
|
|
19
18
|
import type Human from "@wayward/game/game/entity/Human";
|
|
@@ -28,7 +27,7 @@ import type NPC from "@wayward/game/game/entity/npc/NPC";
|
|
|
28
27
|
import type Player from "@wayward/game/game/entity/player/Player";
|
|
29
28
|
import type { IWell } from "@wayward/game/game/island/IIsland";
|
|
30
29
|
import { LiquidType } from "@wayward/game/game/island/IIsland";
|
|
31
|
-
import type { DisplayableItemType, IContainer,
|
|
30
|
+
import type { ContainerSort, DisplayableItemType, IContainer, IItemVehicle, ILiquidGather, ItemTypeExtra } from "@wayward/game/game/item/IItem";
|
|
32
31
|
import { ItemType } from "@wayward/game/game/item/IItem";
|
|
33
32
|
import type Item from "@wayward/game/game/item/Item";
|
|
34
33
|
import type { IHasMagic } from "@wayward/game/game/magic/MagicalPropertyManager";
|
|
@@ -78,6 +77,7 @@ export interface IDoodadEvents extends IEntityMovableEvents {
|
|
|
78
77
|
transformed(newType: DoodadType, oldType: DoodadType): any;
|
|
79
78
|
durabilityChange(durability: number, oldDurability: number): any;
|
|
80
79
|
durabilityMaxChange(durability: number, oldDurability: number): any;
|
|
80
|
+
revertToItem(item: Item): any;
|
|
81
81
|
}
|
|
82
82
|
export default class Doodad extends EntityMovable<IDoodadDescription, DoodadType, ReferenceType.Doodad, DoodadTag> implements IUnserializedCallback, IObject<DoodadType>, IDoodadOptions, Partial<IContainer>, IHasInsulation, IHasBuilder, IHasMagic {
|
|
83
83
|
static is(value: any): value is Doodad;
|
|
@@ -314,7 +314,8 @@ export default abstract class Human<TypeType extends number = number, EntityRefe
|
|
|
314
314
|
calculateEquipmentStats(): void;
|
|
315
315
|
private recalculateInsulation;
|
|
316
316
|
private getEquipmentInsulation;
|
|
317
|
-
|
|
317
|
+
discoverRecipes(recipes: Array<[recipeType: ItemType, crafted: ICrafted]>, discoveredClientSide?: boolean): void;
|
|
318
|
+
discoverRecipe(recipeType: ItemType, crafted?: ICrafted, discoveredClientSide?: boolean, emit?: boolean): void;
|
|
318
319
|
incrementIslandTickCount(): void;
|
|
319
320
|
protected onPostMove(lastTile: Tile, tile: Tile): void;
|
|
320
321
|
passTurn(turnType?: TurnTypeFlag): void;
|
|
@@ -280,7 +280,7 @@ export interface IHumanEvents extends Events<EntityWithStats>, ISkillEvents {
|
|
|
280
280
|
* Luck is a multiplier applied to some chance calculations. 1 is default, 0.5 would mean chances are halved, 2 would mean chances are doubled, etc.
|
|
281
281
|
*/
|
|
282
282
|
getLuckMultiplier(multiplier: number): number;
|
|
283
|
-
|
|
283
|
+
discoverRecipes(recipes: Array<[recipeType: ItemType, crafted: ICrafted]>): any;
|
|
284
284
|
undiscoverRecipes(): any;
|
|
285
285
|
}
|
|
286
286
|
export interface IHairstyleDescription extends IModdable, IHasImagePath {
|
|
@@ -33,99 +33,100 @@ export declare enum Prompt {
|
|
|
33
33
|
GameLoadFailure = 16,
|
|
34
34
|
GameNoHealingRequired = 17,
|
|
35
35
|
GameNoSaveOnDeath = 18,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
36
|
+
GamePickUpDoodadWillBeDestroyed = 19,
|
|
37
|
+
GamePickUpStillWithWater = 20,
|
|
38
|
+
GameReleaseCreature = 21,
|
|
39
|
+
GameUncage = 22,
|
|
40
|
+
GameRenameGeneric = 23,
|
|
41
|
+
GameRenameCreature = 24,
|
|
42
|
+
GameRenameDoodad = 25,
|
|
43
|
+
GameRenameItem = 26,
|
|
44
|
+
GameReturnToTitleScreen = 27,
|
|
45
|
+
GameReturnToTitleScreenChallenge = 28,
|
|
46
|
+
GameSailAwayEnd = 29,
|
|
47
|
+
GameSailAwayReturnable = 30,
|
|
48
|
+
GameSaveFailure = 31,
|
|
49
|
+
GameIslandTravelConfirmation = 32,
|
|
50
|
+
GameWellConvert = 33,
|
|
51
|
+
GameSolarStillWontWorkInTemperature = 34,
|
|
52
|
+
GameSolarStillWontWorkInCave = 35,
|
|
53
|
+
GameShipToIslandPayment = 36,
|
|
54
|
+
GamePause = 37,
|
|
55
|
+
GameWin = 38,
|
|
56
|
+
GameOver = 39,
|
|
57
|
+
GameHelp = 40,
|
|
58
|
+
GameMultiplayerOptions = 41,
|
|
59
|
+
GameEditBindings = 42,
|
|
60
|
+
MenuCharacterCreationImportCharacterFailure = 43,
|
|
61
|
+
MenuCharacterSelectionDeleteCharacter = 44,
|
|
62
|
+
MenuGameEndGhostDeleteSave = 45,
|
|
63
|
+
MenuGameEndWonDeleteSave = 46,
|
|
64
|
+
MenuGameEndReturnToTitleScreen = 47,
|
|
65
|
+
MenuGameEndReturnToTitleScreenChallengeMultiplayer = 48,
|
|
66
|
+
MenuGameEndReturnToTitleScreenChallenge = 49,
|
|
67
|
+
MenuGameEndReturnToTitleScreenMultiplayer = 50,
|
|
68
|
+
MenuLoadGameDeleteSave = 51,
|
|
69
|
+
MenuLoadGameDeleteSaves = 52,
|
|
70
|
+
MenuLoadGameExportType = 53,
|
|
71
|
+
MenuLoadGameImportSaveFailure = 54,
|
|
72
|
+
MenuLoadGameMissingMod = 55,
|
|
73
|
+
MenuLoadGameOldBuildTime = 56,
|
|
74
|
+
MenuLoadGamePublishError = 57,
|
|
75
|
+
MenuMainWelcomeToVersion = 58,
|
|
76
|
+
MenuMainOldVersionWarning = 59,
|
|
77
|
+
MenuModsConfirmPublish = 60,
|
|
78
|
+
MenuModsConfirmPublishUpdate = 61,
|
|
79
|
+
MenuModsModEnableMultipleLanguages = 62,
|
|
80
|
+
MenuModsModEnableUseLanguage = 63,
|
|
81
|
+
MenuModsPublishedReminderRequiredModsOnWorkshop = 64,
|
|
82
|
+
MenuModsPublishError = 65,
|
|
83
|
+
MenuModsPublishUpdateError = 66,
|
|
84
|
+
MenuModsInfoMissingDependencies = 67,
|
|
85
|
+
MenuModsConfirmEnableDisabledDependencies = 68,
|
|
86
|
+
MenuModsConfirmDisableDependents = 69,
|
|
87
|
+
MenuModsConfirmUninstallMod = 70,
|
|
88
|
+
MenuModsUnloadableSaveGameMod = 71,
|
|
89
|
+
MenuModsSubmenuEditInternalModsModsListChangeReload = 72,
|
|
90
|
+
MenuMultiplayerCannotJoinFailedToLoadMods = 73,
|
|
91
|
+
MenuMultiplayerCannotJoinMissingMods = 74,
|
|
92
|
+
MenuNewGameTooManySaves = 75,
|
|
93
|
+
MenuCustomGameOptionsConfirmImport = 76,
|
|
94
|
+
MenuCustomGameOptionsImportFailure = 77,
|
|
95
|
+
MenuMilestoneModifiersConfirmImport = 78,
|
|
96
|
+
MenuMilestoneModifiersImportFailure = 79,
|
|
97
|
+
MenuOptionsReloadGame = 80,
|
|
98
|
+
MenuOptionsChangeReload = 81,
|
|
99
|
+
MenuOptionsConfirmUnlockMilestones = 82,
|
|
100
|
+
MenuOptionsConfirmDiscoverActions = 83,
|
|
101
|
+
MenuOptionsConfirmUnlockRecipes = 84,
|
|
102
|
+
MenuOptionsSaveDataClearAll = 85,
|
|
103
|
+
MenuOptionsSaveDataClearCharacters = 86,
|
|
104
|
+
MenuOptionsSaveDataClearHighscores = 87,
|
|
105
|
+
MenuOptionsSaveDataClearMilestones = 88,
|
|
106
|
+
MenuOptionsSaveDataClearOptions = 89,
|
|
107
|
+
MenuOptionsSaveDataClearSaves = 90,
|
|
108
|
+
MenuOptionsSaveDataClearCraftingRecipes = 91,
|
|
109
|
+
MenuOptionsSaveDataClearBindings = 92,
|
|
110
|
+
MenuOptionsConfirmImportGlobalData = 93,
|
|
111
|
+
MenuPauseGhostKeepSave = 94,
|
|
112
|
+
MenuPauseReturnToTitleScreen = 95,
|
|
113
|
+
MenuPauseReturnToTitleScreenChallenge = 96,
|
|
114
|
+
MenuPauseReturnToTitleScreenChallengeMultiplayer = 97,
|
|
115
|
+
MenuPauseReturnToTitleScreenMultiplayer = 98,
|
|
116
|
+
MultiplayerFailedToConnect = 99,
|
|
117
|
+
MultiplayerRestartServerAfterLoadingSave = 100,
|
|
118
|
+
MultiplayerDisconnect = 101,
|
|
119
|
+
MultiplayerDisconnectRejoin = 102,
|
|
120
|
+
MultiplayerServerHasUnpublishedMods = 103,
|
|
121
|
+
SteamworksURLOpenedInBrowser = 104,
|
|
122
|
+
SteamworksWorkshopOpenedInBrowser = 105,
|
|
123
|
+
SteamworksModWithNameAlreadyExists = 106,
|
|
124
|
+
SteamworksModImportSaveGameFailure = 107,
|
|
125
|
+
SteamworksModImportedSaveGame = 108,
|
|
126
|
+
SteamworksOpenFolderFailure = 109,
|
|
127
|
+
SteamworksModPublishModJsonUpdateFailed = 110,
|
|
128
|
+
SteamworksNotAvailableOnSteamDeck = 111,
|
|
129
|
+
UiSaveDrop = 112
|
|
129
130
|
}
|
|
130
131
|
export declare enum PromptType {
|
|
131
132
|
Info = 0,
|
|
@@ -40,6 +40,7 @@ export declare const promptGameItemsMayBeDestroyedOnUse: import("@wayward/game/g
|
|
|
40
40
|
export declare const promptGameLoadFailure: import("@wayward/game/game/meta/prompt/IPrompt").IPromptInfoDescription<[]>;
|
|
41
41
|
export declare const promptGameNoHealingRequired: import("@wayward/game/game/meta/prompt/IPrompt").IPromptConfirmDescription<[]>;
|
|
42
42
|
export declare const promptGameNoSaveOnDeath: import("@wayward/game/game/meta/prompt/IPrompt").IPromptInfoDescription<[]>;
|
|
43
|
+
export declare const promptGamePickUpDoodadWillBeDestroyed: import("@wayward/game/game/meta/prompt/IPrompt").IPromptConfirmDescription<[doodad: Text]>;
|
|
43
44
|
export declare const promptGamePickUpStillWithWater: import("@wayward/game/game/meta/prompt/IPrompt").IPromptConfirmDescription<[dripstoneOrStill: Text]>;
|
|
44
45
|
export declare const promptGameReleaseCreature: import("@wayward/game/game/meta/prompt/IPrompt").IPromptConfirmDescription<[creatureName: Text]>;
|
|
45
46
|
export declare const promptGameUncage: import("@wayward/game/game/meta/prompt/IPrompt").IPromptConfirmDescription<[creatureName: Text]>;
|
|
@@ -22,7 +22,7 @@ export declare abstract class SpriteBatchWebGlBase implements ISpriteBatch {
|
|
|
22
22
|
protected readonly context: WebGlRendererContext;
|
|
23
23
|
readonly capacity: number;
|
|
24
24
|
protected readonly depthOffset: number;
|
|
25
|
-
protected readonly
|
|
25
|
+
protected readonly yRenderOffset: number;
|
|
26
26
|
protected readonly enableAlphaMultiplcation: boolean;
|
|
27
27
|
protected readonly enforceBeginAndEnd: boolean;
|
|
28
28
|
protected readonly shaderProgram: WebGlCompiledProgram;
|
|
@@ -37,7 +37,7 @@ export declare abstract class SpriteBatchWebGlBase implements ISpriteBatch {
|
|
|
37
37
|
protected begun: boolean;
|
|
38
38
|
protected _setup: boolean;
|
|
39
39
|
static initializePrograms(webGlContext: WebGlContext): Promise<void>;
|
|
40
|
-
constructor(context: WebGlRendererContext, capacity: number, depthOffset: number,
|
|
40
|
+
constructor(context: WebGlRendererContext, capacity: number, depthOffset: number, yRenderOffset: number, enableAlphaMultiplcation: boolean, enforceBeginAndEnd: boolean);
|
|
41
41
|
abstract setup(): void;
|
|
42
42
|
protected abstract bindBuffers(): void;
|
|
43
43
|
abstract render(x: number, y: number, tileScale: number, viewportWidth: number, viewportHeight: number): void;
|
package/package.json
CHANGED