@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.
@@ -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, ILiquidGather, ContainerSort, IItemVehicle, ItemTypeExtra } from "@wayward/game/game/item/IItem";
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
- discoverRecipe(recipeType: ItemType, crafted?: ICrafted, discoveredClientSide?: boolean): void;
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
- discoverRecipe(recipeType: ItemType, crafted: ICrafted): any;
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
- GamePickUpStillWithWater = 19,
37
- GameReleaseCreature = 20,
38
- GameUncage = 21,
39
- GameRenameGeneric = 22,
40
- GameRenameCreature = 23,
41
- GameRenameDoodad = 24,
42
- GameRenameItem = 25,
43
- GameReturnToTitleScreen = 26,
44
- GameReturnToTitleScreenChallenge = 27,
45
- GameSailAwayEnd = 28,
46
- GameSailAwayReturnable = 29,
47
- GameSaveFailure = 30,
48
- GameIslandTravelConfirmation = 31,
49
- GameWellConvert = 32,
50
- GameSolarStillWontWorkInTemperature = 33,
51
- GameSolarStillWontWorkInCave = 34,
52
- GameShipToIslandPayment = 35,
53
- GamePause = 36,
54
- GameWin = 37,
55
- GameOver = 38,
56
- GameHelp = 39,
57
- GameMultiplayerOptions = 40,
58
- GameEditBindings = 41,
59
- MenuCharacterCreationImportCharacterFailure = 42,
60
- MenuCharacterSelectionDeleteCharacter = 43,
61
- MenuGameEndGhostDeleteSave = 44,
62
- MenuGameEndWonDeleteSave = 45,
63
- MenuGameEndReturnToTitleScreen = 46,
64
- MenuGameEndReturnToTitleScreenChallengeMultiplayer = 47,
65
- MenuGameEndReturnToTitleScreenChallenge = 48,
66
- MenuGameEndReturnToTitleScreenMultiplayer = 49,
67
- MenuLoadGameDeleteSave = 50,
68
- MenuLoadGameDeleteSaves = 51,
69
- MenuLoadGameExportType = 52,
70
- MenuLoadGameImportSaveFailure = 53,
71
- MenuLoadGameMissingMod = 54,
72
- MenuLoadGameOldBuildTime = 55,
73
- MenuLoadGamePublishError = 56,
74
- MenuMainWelcomeToVersion = 57,
75
- MenuMainOldVersionWarning = 58,
76
- MenuModsConfirmPublish = 59,
77
- MenuModsConfirmPublishUpdate = 60,
78
- MenuModsModEnableMultipleLanguages = 61,
79
- MenuModsModEnableUseLanguage = 62,
80
- MenuModsPublishedReminderRequiredModsOnWorkshop = 63,
81
- MenuModsPublishError = 64,
82
- MenuModsPublishUpdateError = 65,
83
- MenuModsInfoMissingDependencies = 66,
84
- MenuModsConfirmEnableDisabledDependencies = 67,
85
- MenuModsConfirmDisableDependents = 68,
86
- MenuModsConfirmUninstallMod = 69,
87
- MenuModsUnloadableSaveGameMod = 70,
88
- MenuModsSubmenuEditInternalModsModsListChangeReload = 71,
89
- MenuMultiplayerCannotJoinFailedToLoadMods = 72,
90
- MenuMultiplayerCannotJoinMissingMods = 73,
91
- MenuNewGameTooManySaves = 74,
92
- MenuCustomGameOptionsConfirmImport = 75,
93
- MenuCustomGameOptionsImportFailure = 76,
94
- MenuMilestoneModifiersConfirmImport = 77,
95
- MenuMilestoneModifiersImportFailure = 78,
96
- MenuOptionsReloadGame = 79,
97
- MenuOptionsChangeReload = 80,
98
- MenuOptionsConfirmUnlockMilestones = 81,
99
- MenuOptionsConfirmDiscoverActions = 82,
100
- MenuOptionsConfirmUnlockRecipes = 83,
101
- MenuOptionsSaveDataClearAll = 84,
102
- MenuOptionsSaveDataClearCharacters = 85,
103
- MenuOptionsSaveDataClearHighscores = 86,
104
- MenuOptionsSaveDataClearMilestones = 87,
105
- MenuOptionsSaveDataClearOptions = 88,
106
- MenuOptionsSaveDataClearSaves = 89,
107
- MenuOptionsSaveDataClearCraftingRecipes = 90,
108
- MenuOptionsSaveDataClearBindings = 91,
109
- MenuOptionsConfirmImportGlobalData = 92,
110
- MenuPauseGhostKeepSave = 93,
111
- MenuPauseReturnToTitleScreen = 94,
112
- MenuPauseReturnToTitleScreenChallenge = 95,
113
- MenuPauseReturnToTitleScreenChallengeMultiplayer = 96,
114
- MenuPauseReturnToTitleScreenMultiplayer = 97,
115
- MultiplayerFailedToConnect = 98,
116
- MultiplayerRestartServerAfterLoadingSave = 99,
117
- MultiplayerDisconnect = 100,
118
- MultiplayerDisconnectRejoin = 101,
119
- MultiplayerServerHasUnpublishedMods = 102,
120
- SteamworksURLOpenedInBrowser = 103,
121
- SteamworksWorkshopOpenedInBrowser = 104,
122
- SteamworksModWithNameAlreadyExists = 105,
123
- SteamworksModImportSaveGameFailure = 106,
124
- SteamworksModImportedSaveGame = 107,
125
- SteamworksOpenFolderFailure = 108,
126
- SteamworksModPublishModJsonUpdateFailed = 109,
127
- SteamworksNotAvailableOnSteamDeck = 110,
128
- UiSaveDrop = 111
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 yOffset: number;
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, yOffset: number, enableAlphaMultiplcation: boolean, enforceBeginAndEnd: boolean);
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wayward/types",
3
3
  "description": "TypeScript declarations for Wayward, used for modding.",
4
- "version": "2.14.0-beta.dev.20231205.1",
4
+ "version": "2.14.0-beta.dev.20231206.1",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",