@wayward/types 2.11.2-beta.dev.20220110.1 → 2.11.3-beta.dev.20220114.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.
@@ -16,7 +16,7 @@ import type Human from "game/entity/Human";
16
16
  import type { AttackType } from "game/entity/IEntity";
17
17
  import type { ISkillEvents } from "game/entity/skill/SkillManager";
18
18
  import type { IHasImagePath, Quality } from "game/IObject";
19
- import type { BookType, ItemType } from "game/item/IItem";
19
+ import type { ItemType } from "game/item/IItem";
20
20
  import { RecipeLevel } from "game/item/IItem";
21
21
  import type Item from "game/item/Item";
22
22
  import { TempType } from "game/temperature/ITemperature";
@@ -65,7 +65,7 @@ export interface IHumanEvents extends Events<Entity>, ISkillEvents {
65
65
  * Called when a book is opened by a player
66
66
  * @param book The book that was opened
67
67
  */
68
- openBook?(book: BookType): void;
68
+ openBook?(item: Item): void;
69
69
  /**
70
70
  * Called when something is built on a tile
71
71
  * @param item The item used to build the object
@@ -158,7 +158,7 @@ export default class Player extends Human implements IUnserializedCallback {
158
158
  onNoInput(): void;
159
159
  updateTables(deferUpdate?: boolean): void;
160
160
  updateCraftTable(adjacentContainers?: IContainer[]): void;
161
- updateDismantleTable(adjacentContainers?: IContainer[]): void;
161
+ updateDismantleTable(adjacentContainers?: IContainer[], force?: boolean): void;
162
162
  updateWeight(source: string): void;
163
163
  updateTablesAndWeight(source: string, deferTableUpdates?: boolean): void;
164
164
  checkReputationMilestones(): void;
@@ -187,7 +187,7 @@ export default class Player extends Human implements IUnserializedCallback {
187
187
  passTurn(turnType?: TurnType): void;
188
188
  tick(isPassTurn?: boolean): void;
189
189
  kill(): void;
190
- respawn(): Promise<void>;
190
+ respawn(reset: boolean): Promise<void>;
191
191
  getMovementProgress(): number;
192
192
  checkUnder(inFacingDirection?: boolean, options?: ICheckUnderOptions): ICheckUnderOptions;
193
193
  hasWalkPath(): boolean;
@@ -168,5 +168,9 @@ declare module Loading {
168
168
  */
169
169
  function waitForAll(): Promise<void>;
170
170
  function progress(load: Load, progress: number): Promise<void>;
171
+ /**
172
+ * Returns true if the load is running
173
+ */
174
+ function exists(load: Load): boolean;
171
175
  }
172
176
  export default Loading;
@@ -35,6 +35,6 @@ declare module SaveLoad {
35
35
  /**
36
36
  * Called from the GameEnd menu
37
37
  */
38
- function respawnInCasualMode(): void;
38
+ function respawn(): void;
39
39
  }
40
40
  export default SaveLoad;