@wayward/types 2.14.5-beta.dev.20250516.1 → 2.14.5-beta.dev.20250520.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.
@@ -27,10 +27,6 @@ import type TileEvent from "@wayward/game/game/tile/TileEvent";
27
27
  import type { Direction } from "@wayward/game/utilities/math/Direction";
28
28
  import type { IEventSubscriberEvents } from "@wayward/utilities/event/EventEmitter";
29
29
  export interface IEntityEvents extends IEventSubscriberEvents {
30
- /**
31
- * Called when an entity is killed by another entity.
32
- */
33
- kill?(attacker: Entity | Doodad): void;
34
30
  /**
35
31
  * Called when the entity is created in the game
36
32
  * Also called for players that "rejoin" the game
@@ -452,8 +452,9 @@ export interface ICreatureEvents extends IEntityWithStatsEvents, IEntityAiEvents
452
452
  tame?(owner: Human): void;
453
453
  /**
454
454
  * Called when a creature dies
455
+ * @param attacker The attacker who killed the creature
455
456
  */
456
- die?(): void;
457
+ die?(attacker: Human | Creature | Doodad | undefined): void;
457
458
  /**
458
459
  * Called when a creature is damaged
459
460
  * @param damageInfo The damage info object
@@ -11,5 +11,6 @@
11
11
  import Doodad from "@wayward/game/game/doodad/Doodad";
12
12
  import type Creature from "@wayward/game/game/entity/creature/Creature";
13
13
  import type Entity from "@wayward/game/game/entity/Entity";
14
+ import type Human from "@wayward/game/game/entity/Human";
14
15
  import type Player from "@wayward/game/game/entity/player/Player";
15
- export default function isCreatureKilledByHost(host: Player, attacker: Entity | Doodad, target: Entity): target is Creature;
16
+ export default function isCreatureKilledByHost(host: Player, attacker: Human | Creature | Doodad | undefined, target: Entity): target is Creature;
@@ -19,6 +19,10 @@ export declare class AutoSave {
19
19
  reset(): void;
20
20
  process(): Promise<void>;
21
21
  translateLastSave(): TranslationImpl;
22
- private isTime;
22
+ /**
23
+ * Check if the game should be saved now based on the auto save mode and timer.
24
+ * @returns true if the game should be saved now
25
+ */
26
+ private isTimeToSave;
23
27
  private isWithinRestThreshold;
24
28
  }
@@ -65,6 +65,10 @@ export interface IMakeCaveOptions {
65
65
  * The range of tiles outward to check for another cave so we don't create them too close together.
66
66
  */
67
67
  rangeCheck?: number;
68
+ /**
69
+ * If set to true, we won't check for passable terrain adjacent to the cave (this doesn't count water).
70
+ */
71
+ disablePassableCheck?: boolean;
68
72
  }
69
73
  /**
70
74
  * Tile class
@@ -128,7 +128,8 @@ export declare enum RenderSource {
128
128
  StartGame = 63,
129
129
  Steamworks = 64,
130
130
  Thumbnail = 65,
131
- WorldLayerRendererFlush = 66
131
+ WorldLayerRendererFlush = 66,
132
+ WorldTooltipHover = 67
132
133
  }
133
134
  export declare function calculateAmbientLightLevel(origin: IFieldOfViewOrigin, z: number): number;
134
135
  export declare const ZOOM_LEVEL_MIN = 1;
@@ -14,7 +14,9 @@ import InspectionsTooltipHandler from "@wayward/game/ui/screen/screens/game/Insp
14
14
  import type Vector2 from "@wayward/game/utilities/math/Vector2";
15
15
  export default class WorldTooltipHandler extends InspectionsTooltipHandler<TileInspectionsList> {
16
16
  private currentInspectionTile;
17
+ private currentOverlayInfo;
17
18
  private nextInspectionTile;
19
+ private lastCursorTile;
18
20
  private pendingSetInspectionTileTimeout;
19
21
  private lastSetInspectionTileTime;
20
22
  protected initializeHints(hints: InspectionTooltipHints): void;
@@ -22,5 +24,6 @@ export default class WorldTooltipHandler extends InspectionsTooltipHandler<TileI
22
24
  protected initializeInspections(): TileInspectionsList | undefined;
23
25
  protected onUpdateTooltipPosition(position: Vector2): void;
24
26
  private setInspectionTile;
27
+ private renderWorldCursor;
25
28
  protected updatePosition(): void;
26
29
  }
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.5-beta.dev.20250516.1",
4
+ "version": "2.14.5-beta.dev.20250520.1",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",