@wayward/types 2.14.4-beta.dev.20250102.1 → 2.14.4-beta.dev.20250104.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.
Files changed (24) hide show
  1. package/definitions/game/game/doodad/Doodad.d.ts +0 -2
  2. package/definitions/game/game/entity/Human.d.ts +9 -1
  3. package/definitions/game/game/entity/action/ActionExecutor.d.ts +9 -8
  4. package/definitions/game/game/inspection/infoProviders/doodad/StillWater.d.ts +3 -5
  5. package/definitions/game/game/island/automation/IAutomation.d.ts +10 -0
  6. package/definitions/game/game/tile/Tile.d.ts +9 -1
  7. package/definitions/game/game/time/TimeManager.d.ts +8 -0
  8. package/definitions/game/language/dictionary/Message.d.ts +794 -791
  9. package/definitions/game/language/dictionary/UiTranslation.d.ts +855 -853
  10. package/definitions/game/save/upgrade/UpgradeVersionRegistry.d.ts +2 -0
  11. package/definitions/game/steamworks/Steamworks.d.ts +5 -1
  12. package/definitions/game/ui/component/Component.d.ts +1 -0
  13. package/definitions/game/ui/screen/screens/game/component/InspectionsList.d.ts +0 -1
  14. package/definitions/game/ui/screen/screens/game/dialog/QuestDialog.d.ts +1 -0
  15. package/definitions/game/ui/tooltip/Tooltip.d.ts +2 -2
  16. package/definitions/game/ui/util/ComponentManipulator.d.ts +6 -5
  17. package/definitions/game/utilities/Observer.d.ts +1 -1
  18. package/definitions/game/utilities/memory/MemoryLeakDetector.d.ts +7 -1
  19. package/definitions/server/error/util/SendDiscordMessage.d.ts +19 -0
  20. package/definitions/utilities/Log.d.ts +1 -0
  21. package/definitions/utilities/Version.d.ts +3 -2
  22. package/definitions/utilities/event/EventEmitter.d.ts +13 -0
  23. package/definitions/utilities/memory/ILifetime.d.ts +5 -1
  24. package/package.json +1 -1
@@ -126,7 +126,6 @@ export default class Doodad extends EntityMovable<IDoodadDescription, DoodadType
126
126
  * Used to store protection status for built doodads
127
127
  */
128
128
  protected?: boolean;
129
- private _tileId?;
130
129
  /**
131
130
  * Separate property just for wells because isInGroup is still expensive for processWell()
132
131
  */
@@ -180,7 +179,6 @@ export default class Doodad extends EntityMovable<IDoodadDescription, DoodadType
180
179
  updateGroupCache(doodadTypeGroup: DoodadTypeGroup): boolean;
181
180
  get point(): IVector3;
182
181
  get tile(): Tile;
183
- getTileId(): number;
184
182
  /**
185
183
  * @deprecated This is the correct way to change quality, but it is not completely implemented.
186
184
  * It does not perform any required changes due to the quality change, like durability, all it does is change the quality and emit an event.
@@ -131,7 +131,10 @@ export default abstract class Human<DescriptionType = unknown, TypeType extends
131
131
  cumulativeEvilCrafting: number;
132
132
  /** @deprecated (use the entity itself) */
133
133
  readonly inventory: IContainer;
134
- private readonly privateStore;
134
+ /**
135
+ * Used for delays, which are calculated on the server
136
+ */
137
+ private nextProcessInput;
135
138
  containerType?: ContainerType;
136
139
  nextMoveTime: number;
137
140
  nextMoveDirection?: Direction.Cardinal | Direction.None;
@@ -339,6 +342,11 @@ export default abstract class Human<DescriptionType = unknown, TypeType extends
339
342
  hasDelay(): boolean;
340
343
  addDelay(delay: number, replace?: boolean, addStaminaDelay?: boolean, cap?: number): void;
341
344
  ensureDelay(delay: number): void;
345
+ /**
346
+ * Removese input processing delay (due to actions) and movement delays.
347
+ * This won't do much from clientside in a mp game since the server is in charge.
348
+ */
349
+ removeDelays(): void;
342
350
  /**
343
351
  * Gets a stamina penalty delay to be used for slowed actions and movement.
344
352
  * @param staminaToStartAddingDelayAt Stat value where delays start getting added from.
@@ -51,17 +51,18 @@ export default class ActionExecutor<A extends ActionArguments, E extends Entity,
51
51
  private executionStage;
52
52
  private shouldSkipConfirmation;
53
53
  targetTile?: Tile;
54
- private readonly privateStore;
55
- private updateTablesAndWeight;
56
- private updateWeight;
57
- private staminaReduction?;
58
- private runeChance?;
54
+ private delay?;
59
55
  private milestone?;
60
- private skillGains?;
61
- private sfx?;
62
56
  private particle?;
63
- private updateView?;
57
+ private passTurn;
58
+ private runeChance?;
59
+ private sfx?;
60
+ private skillGains?;
61
+ private staminaReduction?;
64
62
  private updateRender?;
63
+ private updateTablesAndWeight?;
64
+ private updateView?;
65
+ private updateWeight?;
65
66
  private context?;
66
67
  private readonly items;
67
68
  private itemsUsed;
@@ -10,15 +10,13 @@
10
10
  */
11
11
  import type Doodad from "@wayward/game/game/doodad/Doodad";
12
12
  import { InfoProvider } from "@wayward/game/game/inspection/InfoProvider";
13
- import type TranslationImpl from "@wayward/game/language/impl/TranslationImpl";
14
13
  export default class StillWaterInfoProvider extends InfoProvider {
15
14
  private readonly doodad;
16
15
  static get(doodad: Doodad): StillWaterInfoProvider | undefined;
17
- private message;
16
+ private readonly waterTopMessage;
17
+ private readonly waterBottomMessage;
18
18
  private constructor();
19
19
  getClass(): string[];
20
20
  hasContent(): boolean;
21
- get(): TranslationImpl;
22
- onTickEnd(): void;
23
- private getWaterInStill;
21
+ get(): InfoProvider[];
24
22
  }
@@ -12,7 +12,9 @@ import type { DoodadType, GrowingStage } from "@wayward/game/game/doodad/IDoodad
12
12
  import type { ActionType } from "@wayward/game/game/entity/action/IAction";
13
13
  import type { CreatureType } from "@wayward/game/game/entity/creature/ICreature";
14
14
  import type Human from "@wayward/game/game/entity/Human";
15
+ import type { MoveType } from "@wayward/game/game/entity/IEntity";
15
16
  import type { EquipType } from "@wayward/game/game/entity/IHuman";
17
+ import type { NPCType } from "@wayward/game/game/entity/npc/INPCs";
16
18
  import type { StatusType } from "@wayward/game/game/entity/status/IStatus";
17
19
  import type { Quality } from "@wayward/game/game/IObject";
18
20
  import type { IslandId } from "@wayward/game/game/island/IIsland";
@@ -103,6 +105,14 @@ export interface IAutomationSetupWorld {
103
105
  z?: number;
104
106
  aberrant?: true;
105
107
  }>;
108
+ npcs?: Array<{
109
+ type: NPCType;
110
+ x?: number;
111
+ y?: number;
112
+ z?: number;
113
+ inventory?: IAutomationSetupItemContainer;
114
+ moveType?: MoveType;
115
+ }>;
106
116
  }
107
117
  export interface IAutomationSetupPlayer {
108
118
  alwaysPassSkillChecks?: boolean;
@@ -23,7 +23,7 @@ import type { CreatureZone } from "@wayward/game/game/entity/creature/zone/Creat
23
23
  import type NPC from "@wayward/game/game/entity/npc/NPC";
24
24
  import type { IMessageManager } from "@wayward/game/game/entity/player/IMessageManager";
25
25
  import type Player from "@wayward/game/game/entity/player/Player";
26
- import type { IslandId } from "@wayward/game/game/island/IIsland";
26
+ import type { IslandId, IWell } from "@wayward/game/game/island/IIsland";
27
27
  import type Island from "@wayward/game/game/island/Island";
28
28
  import type { IUncastableContainer } from "@wayward/game/game/item/IItem";
29
29
  import type Item from "@wayward/game/game/item/Item";
@@ -129,6 +129,14 @@ export default class Tile implements IVector4, Partial<ITileContainer>, IFieldOf
129
129
  * Gets the primary/first blocking entity on this tile.
130
130
  */
131
131
  get entity(): Entity | undefined;
132
+ /**
133
+ * Gets well data on this tile.
134
+ */
135
+ get well(): IWell | undefined;
136
+ /**
137
+ * Sets well data on this tile.
138
+ */
139
+ set well(value: IWell);
132
140
  /**
133
141
  * Gets the primary/first blocking entity on this tile, that is a creature, NPC, or player.
134
142
  */
@@ -43,6 +43,14 @@ export default class TimeManager {
43
43
  * Returns a decimal representation of the current time. `0` is the start of the day, and `1` is the end.
44
44
  */
45
45
  getTime(tickOffset?: number): number;
46
+ /**
47
+ * Returns the amount of ticks until the time is at least the desired time amount.
48
+ */
49
+ getTicksUntilTimeIsAtLeast(desiredTime: number, tickOffset?: number): number | undefined;
50
+ /**
51
+ * Returns the amount of ticks until the time is before the desired time amount.
52
+ */
53
+ getTicksUntilTimeIsBefore(desiredTime: number, tickOffset?: number): number | undefined;
46
54
  /**
47
55
  * Returns if the given time is at day.
48
56
  * @param time The time to check, defaulting to the current time.