@wayward/types 2.14.2-beta.dev.20241218.1 → 2.14.2-beta.dev.20241220.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/Entity.d.ts +2 -2
- package/definitions/game/game/entity/EntityMovable.d.ts +2 -1
- package/definitions/game/game/inspection/InfoProvider.d.ts +1 -0
- package/definitions/game/game/inspection/InspectionsHandler.d.ts +1 -1
- package/definitions/game/language/dictionary/UiTranslation.d.ts +553 -552
- package/definitions/game/ui/screen/screens/GameScreen.d.ts +2 -0
- package/definitions/game/ui/screen/screens/game/component/InspectionsList.d.ts +4 -2
- package/definitions/game/ui/screen/screens/game/component/ItemComponent.d.ts +1 -1
- package/definitions/game/ui/screen/screens/game/dialog/EquipmentDialog.d.ts +1 -1
- package/definitions/game/ui/util/HighlightManager.d.ts +1 -1
- package/definitions/game/ui/util/IHighlight.d.ts +1 -1
- package/definitions/utilities/promise/PromiseSequence.d.ts +20 -0
- package/package.json +1 -1
- /package/definitions/utilities/{Encoding.d.ts → RunLengthEncoding.d.ts} +0 -0
@@ -96,8 +96,8 @@ export default abstract class Entity<DescriptionType = unknown, TypeType extends
|
|
96
96
|
*/
|
97
97
|
get tile(): Tile | undefined;
|
98
98
|
get tilesAround(): Tile[] | undefined;
|
99
|
-
protected setCachedTile(tile: Tile): void;
|
100
|
-
clearTileCache():
|
99
|
+
protected setCachedTile(tile: Tile | undefined): void;
|
100
|
+
clearTileCache(): Tile | undefined;
|
101
101
|
isNearby(entity: Entity | Tile, includeCurrentTile?: boolean): boolean;
|
102
102
|
/**
|
103
103
|
* Updates the world renderer & flow field state for the tile
|
@@ -22,7 +22,7 @@ import { FieldOfView } from "@wayward/game/renderer/fieldOfView/FieldOfView";
|
|
22
22
|
import type { CanASeeBType } from "@wayward/game/renderer/fieldOfView/IFieldOfView";
|
23
23
|
import type { INotificationLocation } from "@wayward/game/renderer/notifier/INotifier";
|
24
24
|
import type { Direction } from "@wayward/game/utilities/math/Direction";
|
25
|
-
import type { IVector2 } from "@wayward/game/utilities/math/IVector";
|
25
|
+
import type { IVector2, IVector3 } from "@wayward/game/utilities/math/IVector";
|
26
26
|
import Vector2 from "@wayward/game/utilities/math/Vector2";
|
27
27
|
import type { IEventEmitter } from "@wayward/utilities/event/EventEmitter";
|
28
28
|
export interface IEntityMovableEvents extends IEntityEvents {
|
@@ -107,6 +107,7 @@ export default abstract class EntityMovable<DescriptionType = unknown, TypeType
|
|
107
107
|
canSeeTile(type: CanASeeBType, tile: Tile, fieldOfView?: FieldOfView, customRadius?: number): boolean;
|
108
108
|
canSeePosition(type: CanASeeBType, islandId: IslandId, x: number, y: number, z: number, fieldOfView?: FieldOfView | undefined, customRadius?: number): boolean;
|
109
109
|
queueSoundEffectInFront(type: SfxType, delay?: number, speed?: number): void;
|
110
|
+
runWhileFacing<T>(lambda: () => T, position: IVector3, direction?: Direction.Cardinal): T;
|
110
111
|
getMovementDelay(): number;
|
111
112
|
/**
|
112
113
|
* Move the entity to the tile
|
@@ -93,6 +93,7 @@ export declare abstract class InfoProvider extends EventEmitter.Host<IInfoProvid
|
|
93
93
|
protected component?: Component;
|
94
94
|
protected context?: InfoProviderContext;
|
95
95
|
private componentClass?;
|
96
|
+
private listeningForRequestRemove?;
|
96
97
|
abstract get(context: InfoProviderContext): ArrayOr<TranslationGenerator | InfoProvider>;
|
97
98
|
abstract getClass(context: InfoProviderContext): string[];
|
98
99
|
getDefaultDisplayLevel(_context: InfoProviderContext): InfoDisplayLevel | Set<InfoDisplayLevel>;
|
@@ -32,7 +32,7 @@ export default abstract class InspectionsHandler extends EventEmitter.Host<IInsp
|
|
32
32
|
all(): IteratorObject<[InspectType, HashSet<Inspection<any>>]>;
|
33
33
|
getInspectTypes(): InspectType[];
|
34
34
|
register(): void;
|
35
|
-
deregister(): void;
|
35
|
+
deregister(isBeingRemoved?: boolean): void;
|
36
36
|
protected getInspections?(inspectType: InspectType): HashSet<Inspection<any>>;
|
37
37
|
protected createInspectionSet(...values: Array<IterableOr<Inspection<any> | undefined>>): HashSet<Inspection<any>>;
|
38
38
|
protected updateInspections(...inspectTypes: InspectType[]): void;
|