@wayward/types 2.14.5-beta.dev.20250516.1 → 2.14.5-beta.dev.20250518.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/entity/IEntity.d.ts +0 -4
- package/definitions/game/game/entity/creature/ICreature.d.ts +2 -1
- package/definitions/game/game/entity/player/quest/requirement/helpers/IsCreatureKilledByHost.d.ts +2 -1
- package/definitions/game/game/meta/AutoSave.d.ts +5 -1
- package/definitions/game/renderer/IRenderer.d.ts +2 -1
- package/definitions/game/ui/screen/screens/game/WorldTooltipHandler.d.ts +1 -0
- package/package.json +1 -1
@@ -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
|
package/definitions/game/game/entity/player/quest/requirement/helpers/IsCreatureKilledByHost.d.ts
CHANGED
@@ -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:
|
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
|
-
|
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
|
}
|
@@ -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,6 +14,7 @@ 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;
|
18
19
|
private pendingSetInspectionTileTimeout;
|
19
20
|
private lastSetInspectionTileTime;
|
package/package.json
CHANGED