@wayward/types 2.11.5-beta.dev.20220228.1 → 2.11.5-beta.dev.20220306.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/inspection/InfoProvider.d.ts +1 -1
- package/definitions/game/game/inspection/infoProviders/LabelledValue.d.ts +1 -1
- package/definitions/game/game/inspection/inspections/MilestoneInspection.d.ts +2 -2
- package/definitions/game/ui/screen/screens/game/dialog/BookDialog.d.ts +1 -1
- package/definitions/game/utilities/game/TileHelpers.d.ts +6 -0
- package/package.json +1 -1
|
@@ -125,7 +125,7 @@ export declare class SimpleInfoProvider extends InfoProvider {
|
|
|
125
125
|
private readonly contents;
|
|
126
126
|
private childComponentClass;
|
|
127
127
|
constructor(...translations: Array<TranslationGenerator | InfoProvider>);
|
|
128
|
-
get(): (import("../../language/ITranslation").ISerializedTranslation | import("../../language/
|
|
128
|
+
get(): (import("../../language/ITranslation").ISerializedTranslation | import("../../language/impl/TranslationImpl").default | import("../../language/dictionary/UiTranslation").default | (() => import("../../language/ITranslation").ISerializedTranslation | import("../../language/impl/TranslationImpl").default | import("../../language/dictionary/UiTranslation").default | Iterable<import("../../utilities/string/Interpolator").IStringSection> | undefined) | InfoProvider)[];
|
|
129
129
|
add(...translations: Array<TranslationGenerator | InfoProvider | Falsy>): this;
|
|
130
130
|
addInfoGetter(provider: () => InfoProvider | undefined): this;
|
|
131
131
|
getClass(): string[];
|
|
@@ -36,7 +36,7 @@ export default class LabelledValue extends InfoProvider {
|
|
|
36
36
|
getClass(): string[];
|
|
37
37
|
addClasses(...classes: string[]): this;
|
|
38
38
|
private getLabel;
|
|
39
|
-
get(): (
|
|
39
|
+
get(): (import("../../../language/impl/TranslationImpl").default | UiTranslation | InfoProvider)[];
|
|
40
40
|
protected initChildTextComponent(text: TranslationGenerator): Text;
|
|
41
41
|
setDisplayMode(mode: keyof typeof LabelledValueDisplayMode): this;
|
|
42
42
|
setDisplayMode(mode: keyof typeof LabelledValueDisplayMode): this;
|
|
@@ -20,11 +20,11 @@ export default class MilestoneInspection extends Inspection<Milestone> {
|
|
|
20
20
|
static handles: (type: InspectType, value: unknown, context?: InfoProviderContext | undefined) => any;
|
|
21
21
|
static getMilestoneName(milestone: Milestone, visibility?: MilestoneVisibility): import("../../../language/impl/TranslationImpl").default;
|
|
22
22
|
static getMilestoneReadout(milestone: Milestone, name?: Translation): () => import("../../../language/impl/TranslationImpl").default;
|
|
23
|
-
static getDescription(milestone: Milestone):
|
|
23
|
+
static getDescription(milestone: Milestone): import("../../../language/impl/TranslationImpl").default | UiTranslation.GameDialogMilestonesTooltipHidden | UiTranslation.GameDialogMilestonesTooltipInvisible;
|
|
24
24
|
constructor([, milestone]: [any, Milestone], context?: InfoProviderContext);
|
|
25
25
|
getId(): string;
|
|
26
26
|
getBorder(): string;
|
|
27
|
-
get(context: InfoProviderContext): (
|
|
27
|
+
get(context: InfoProviderContext): (import("../../../language/impl/TranslationImpl").default | UiTranslation | import("game/inspection/InfoProvider").SimpleInfoProvider | CollapsableInfoProvider | UnlockableRowInfoProvider)[];
|
|
28
28
|
private getDiscovered;
|
|
29
29
|
private getDiscoveredTranslations;
|
|
30
30
|
}
|
|
@@ -16,7 +16,7 @@ export default class BookDialog extends Dialog {
|
|
|
16
16
|
private book?;
|
|
17
17
|
private readonly text;
|
|
18
18
|
constructor();
|
|
19
|
-
getName(): import("../../../../../language/ITranslation").ISerializedTranslation | import("../../../../../language/
|
|
19
|
+
getName(): import("../../../../../language/ITranslation").ISerializedTranslation | import("../../../../../language/impl/TranslationImpl").default | import("../../../../../language/dictionary/UiTranslation").default | Iterable<import("../../../../../utilities/string/Interpolator").IStringSection> | undefined;
|
|
20
20
|
openBook(item: Item): void;
|
|
21
21
|
private getText;
|
|
22
22
|
protected onInventoryItemRemove(_: any, item: Item): void;
|
|
@@ -118,5 +118,11 @@ declare module TileHelpers {
|
|
|
118
118
|
* Check if the tile is blocked (impassable terrain or doodads that cause blocked movement).
|
|
119
119
|
*/
|
|
120
120
|
function isTileBlocked(island: Island, point: IVector3): boolean;
|
|
121
|
+
/**
|
|
122
|
+
* Checks whether a player can dig at a certain location or not.
|
|
123
|
+
* @param tile of the ITile to check where to dig.
|
|
124
|
+
* @returns True if a player can dig the tile.
|
|
125
|
+
*/
|
|
126
|
+
function canDig(tile: ITile): boolean;
|
|
121
127
|
}
|
|
122
128
|
export default TileHelpers;
|
package/package.json
CHANGED