@wayward/types 2.13.3-beta.dev.20230622.1 → 2.13.3-beta.dev.20230623.2
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/action/actions/TestDepth.d.ts +0 -2
- package/definitions/game/game/entity/action/usable/IUsableAction.d.ts +4 -0
- package/definitions/game/game/entity/action/usable/UsableAction.d.ts +1 -0
- package/definitions/game/game/entity/action/usable/UsableActionTranslator.d.ts +6 -2
- package/definitions/game/game/inspection/IInspection.d.ts +2 -1
- package/definitions/game/game/inspection/InfoProviderContext.d.ts +9 -4
- package/definitions/game/game/inspection/infoProviders/LabelledValue.d.ts +3 -1
- package/definitions/game/game/inspection/infoProviders/Uses.d.ts +8 -5
- package/definitions/game/game/inspection/infoProviders/item/ItemProtected.d.ts +3 -1
- package/definitions/game/game/inspection/infoProviders/item/ItemUses.d.ts +18 -3
- package/definitions/game/game/inspection/inspections/ActionInspection.d.ts +9 -9
- package/definitions/game/game/meta/prompt/IPrompt.d.ts +10 -9
- package/definitions/game/game/meta/prompt/PromptDescriptions.d.ts +1 -0
- package/definitions/game/game/reference/IReferenceManager.d.ts +2 -5
- package/definitions/game/game/reference/ReferenceManager.d.ts +4 -3
- package/definitions/game/language/Dictionary.d.ts +112 -111
- package/definitions/game/language/DictionaryMap.d.ts +221 -219
- package/definitions/game/language/dictionary/UiTranslation.d.ts +732 -731
- package/definitions/game/language/english/ui/ActionSlotItemMethods.d.ts +13 -0
- package/definitions/game/language/segment/TooltipSegment.d.ts +1 -1
- package/definitions/game/mod/ModManager.d.ts +3 -1
- package/definitions/game/multiplayer/Multiplayer.d.ts +2 -0
- package/definitions/game/renderer/particle/IParticle.d.ts +1 -3
- package/definitions/game/steamworks/Steamworks.d.ts +2 -1
- package/definitions/game/ui/Ui.d.ts +1 -0
- package/definitions/game/ui/screen/screens/game/static/ActionBar.d.ts +2 -0
- package/definitions/game/ui/screen/screens/game/static/actions/ActionSlotTooltip.d.ts +1 -1
- package/definitions/game/ui/screen/screens/game/static/actions/ActionsDrawer.d.ts +2 -7
- package/definitions/game/ui/screen/screens/game/static/actions/IActionBar.d.ts +25 -0
- package/definitions/game/ui/screen/screens/game/static/actions/IActionsDrawer.d.ts +6 -0
- package/definitions/game/ui/tooltip/TooltipManager.d.ts +1 -0
- package/definitions/game/ui/util/Misc.d.ts +4 -2
- package/package.json +1 -1
|
@@ -12,11 +12,9 @@ import type Doodad from "game/doodad/Doodad";
|
|
|
12
12
|
import { Action } from "game/entity/action/Action";
|
|
13
13
|
import type { IActionUsable } from "game/entity/action/IAction";
|
|
14
14
|
import { ActionArgument } from "game/entity/action/IAction";
|
|
15
|
-
import type { ITerrainDescription } from "game/tile/ITerrain";
|
|
16
15
|
import type Tile from "game/tile/Tile";
|
|
17
16
|
export interface ITestDepthCanUse extends IActionUsable {
|
|
18
17
|
doodad: Doodad;
|
|
19
|
-
terrainDescription: ITerrainDescription;
|
|
20
18
|
tile: Tile;
|
|
21
19
|
}
|
|
22
20
|
declare const _default: Action<[[ActionArgument.ItemInventory, ActionArgument.Undefined]], import("../../Human").default<number>, void, ITestDepthCanUse, [(import("../../../item/Item").default | undefined)?]>;
|
|
@@ -184,6 +184,10 @@ export interface IUsableActionDefinitionBase<REQUIREMENTS extends IUsableActionR
|
|
|
184
184
|
bindable?: Bindable | ((using: IUsableActionUsing<REQUIREMENTS>) => Bindable | undefined);
|
|
185
185
|
inspectTypes?: InspectType[];
|
|
186
186
|
inspect?(type: InspectType, using: IUsableActionPossibleUsing): HashSet<Inspection<any>> | Inspection<any> | undefined;
|
|
187
|
+
/**
|
|
188
|
+
* A hint for the inspection system that this UA is internally using a specific action. Use tooltip filtering checks this.
|
|
189
|
+
*/
|
|
190
|
+
useHintAction?: ActionType;
|
|
187
191
|
/**
|
|
188
192
|
* The contexts this action appears in.
|
|
189
193
|
* - "Always" means whenever an action of this type is shown, it will be. For example, the "item actions" menu.
|
|
@@ -46,6 +46,7 @@ declare class UsableAction<REQUIREMENTS extends IUsableActionRequirements = IUsa
|
|
|
46
46
|
isExecutable(): this is UsableAction<REQUIREMENTS, IUsableActionDefinitionExecutable<REQUIREMENTS>>;
|
|
47
47
|
execute(player: Player, provided: IUsableActionUsing<REQUIREMENTS>, context: UsableActionExecutionContext | IUsableActionExecutionContext): boolean;
|
|
48
48
|
resolveUsing(player: Player, using: IUsableActionUsing<REQUIREMENTS>): Message.UiActionCannotUseRequiresCreature | Message.UiActionCannotUseRequiresDoodad | Message.UiActionCannotUseRequiresItem | Message.UiActionCannotUseRequiresNPC | IUsableActionUsing<REQUIREMENTS>;
|
|
49
|
+
resolveUsingOrUndefined(player: Player, using: IUsableActionUsing<REQUIREMENTS>): IUsableActionUsing<REQUIREMENTS> | undefined;
|
|
49
50
|
isUsable(player: Player, provided: IUsableActionUsing<REQUIREMENTS>, context: UsableActionExecutionContext | IUsableActionExecutionContext): UsableActionUsability<REQUIREMENTS>;
|
|
50
51
|
isApplicable(player: Player, provided?: IUsableActionPossibleUsing, fullUsabilityCheck?: boolean): provided is IUsableActionUsing<REQUIREMENTS>;
|
|
51
52
|
private isItemApplicable;
|
|
@@ -11,9 +11,11 @@
|
|
|
11
11
|
import type { ActionId, IUsableActionPossibleUsing } from "game/entity/action/usable/IUsableAction";
|
|
12
12
|
import { UsableActionDisplayContext } from "game/entity/action/usable/IUsableAction";
|
|
13
13
|
import type UsableAction from "game/entity/action/usable/UsableAction";
|
|
14
|
+
import type { InfoProviderContext } from "game/inspection/InfoProviderContext";
|
|
14
15
|
import { ActionTranslation } from "language/dictionary/Misc";
|
|
16
|
+
import type { TranslationArg } from "language/ITranslation";
|
|
15
17
|
import Translation from "language/Translation";
|
|
16
|
-
export type UsableActionTranslationArguments = [using: IUsableActionPossibleUsing, action: UsableAction, context: UsableActionDisplayContext];
|
|
18
|
+
export type UsableActionTranslationArguments = [using: IUsableActionPossibleUsing, action: UsableAction, context: UsableActionDisplayContext, inspectionContext?: InfoProviderContext];
|
|
17
19
|
export type ActionWhichTranslation = ActionTranslation | "useExact" | "useByTypeAndQuality" | "useByType" | "useAny";
|
|
18
20
|
export declare class UsableActionTranslator {
|
|
19
21
|
readonly id: ActionId;
|
|
@@ -24,14 +26,16 @@ export declare class UsableActionTranslator {
|
|
|
24
26
|
private useByTypeAndQualitySupplier?;
|
|
25
27
|
private useByTypeSupplier?;
|
|
26
28
|
private useAnySupplier?;
|
|
29
|
+
private readonly args;
|
|
27
30
|
constructor(id: ActionId);
|
|
28
31
|
name(id: ActionId): this;
|
|
29
32
|
name(supplier: SupplierOr<Translation, UsableActionTranslationArguments>): this;
|
|
33
|
+
addArgs(...args: Array<Exclude<TranslationArg, () => TranslationArg> | Supplier<TranslationArg, UsableActionTranslationArguments>>): this;
|
|
30
34
|
description(id: ActionId): this;
|
|
31
35
|
description(supplier: SupplierOr<Translation, UsableActionTranslationArguments>): this;
|
|
32
36
|
useExact(supplier: SupplierOr<Translation, UsableActionTranslationArguments>): this;
|
|
33
37
|
useByTypeAndQuality(supplier: SupplierOr<Translation, UsableActionTranslationArguments>): this;
|
|
34
38
|
useByType(supplier: SupplierOr<Translation, UsableActionTranslationArguments>): this;
|
|
35
39
|
useAny(supplier: SupplierOr<Translation, UsableActionTranslationArguments>): this;
|
|
36
|
-
get(action: UsableAction, using?: IUsableActionPossibleUsing, which?: ActionWhichTranslation, context?: UsableActionDisplayContext): Translation | undefined;
|
|
40
|
+
get(action: UsableAction, using?: IUsableActionPossibleUsing, which?: ActionWhichTranslation, context?: UsableActionDisplayContext, inspectionContext?: InfoProviderContext): Translation | undefined;
|
|
37
41
|
}
|
|
@@ -10,17 +10,22 @@
|
|
|
10
10
|
*/
|
|
11
11
|
import type { IInspector } from "game/inspection/IInfoProvider";
|
|
12
12
|
import { InfoDisplayLevel } from "game/inspection/IInfoProvider";
|
|
13
|
+
export interface InfoProviderContextRegistration {
|
|
14
|
+
}
|
|
13
15
|
export declare enum InfoProviderContextType {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
+
Generic = 0,
|
|
17
|
+
Tooltip = 1
|
|
16
18
|
}
|
|
17
19
|
export declare class InfoProviderContext {
|
|
18
20
|
static readonly GENERIC: new (inspector?: IInspector | undefined, maxDisplayLevel?: InfoDisplayLevel | undefined) => InfoProviderContext;
|
|
19
21
|
static readonly TOOLTIP: new (inspector?: IInspector | undefined, maxDisplayLevel?: InfoDisplayLevel | undefined) => InfoProviderContext;
|
|
20
22
|
protected readonly _inspector: WeakRef<IInspector>;
|
|
21
|
-
readonly type: InfoProviderContextType;
|
|
23
|
+
readonly type: InfoProviderContextType | keyof InfoProviderContextRegistration;
|
|
22
24
|
readonly maxDisplayLevel: InfoDisplayLevel;
|
|
23
25
|
constructor(context: InfoProviderContext);
|
|
24
|
-
constructor(type: InfoProviderContextType, inspector?: IInspector, maxDisplayLevel?: InfoDisplayLevel);
|
|
26
|
+
constructor(type: InfoProviderContextType | keyof InfoProviderContextRegistration, inspector?: IInspector, maxDisplayLevel?: InfoDisplayLevel);
|
|
25
27
|
get inspector(): IInspector | undefined;
|
|
28
|
+
is(...types: Array<InfoProviderContextType | keyof InfoProviderContextRegistration>): boolean;
|
|
29
|
+
as<TYPE extends keyof InfoProviderContextRegistration>(type: TYPE): InfoProviderContextRegistration[TYPE] | undefined;
|
|
30
|
+
as(type: InfoProviderContextType): InfoProviderContext | undefined;
|
|
26
31
|
}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* Wayward is a copyrighted and licensed work. Modification and/or distribution of any source files is prohibited. If you wish to modify the game in any way, please refer to the modding guide:
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
|
-
import
|
|
11
|
+
import { InfoDisplayLevel } from "game/inspection/IInfoProvider";
|
|
12
12
|
import { InfoProvider } from "game/inspection/InfoProvider";
|
|
13
13
|
import UiTranslation from "language/dictionary/UiTranslation";
|
|
14
14
|
import Translation from "language/Translation";
|
|
@@ -38,6 +38,8 @@ export default class LabelledValue extends InfoProvider {
|
|
|
38
38
|
getClass(): string[];
|
|
39
39
|
addClasses(...classes: string[]): this;
|
|
40
40
|
private getLabel;
|
|
41
|
+
private getPunctuation;
|
|
42
|
+
private getContent;
|
|
41
43
|
get(): Array<Translation | InfoProvider>;
|
|
42
44
|
protected initChildTextComponent(text: TranslationGenerator): Text;
|
|
43
45
|
setDisplayMode(mode: keyof typeof LabelledValueDisplayMode): this;
|
|
@@ -9,19 +9,21 @@
|
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
11
|
import { ActionType } from "game/entity/action/IAction";
|
|
12
|
+
import { InfoDisplayLevel } from "game/inspection/IInfoProvider";
|
|
12
13
|
import { InfoProvider } from "game/inspection/InfoProvider";
|
|
13
14
|
import type { InfoProviderContext } from "game/inspection/InfoProviderContext";
|
|
14
15
|
import type UseInfo from "game/inspection/infoProviders/UseInfo";
|
|
15
16
|
import type { DescribedDescription, IDescribed } from "game/inspection/infoProviders/UseInfo";
|
|
16
17
|
import UiTranslation from "language/dictionary/UiTranslation";
|
|
18
|
+
import type TranslationImpl from "language/impl/TranslationImpl";
|
|
17
19
|
import Translation from "language/Translation";
|
|
18
20
|
import type { TranslationGenerator } from "ui/component/IComponent";
|
|
19
21
|
export default abstract class Uses<T extends IDescribed> extends InfoProvider {
|
|
20
22
|
private label?;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
protected readonly value?: T;
|
|
24
|
+
protected readonly type: T["type"];
|
|
25
|
+
protected readonly entityType: T["entityType"];
|
|
26
|
+
protected readonly description?: DescribedDescription<T>;
|
|
25
27
|
protected abstract getEntityType(): T["entityType"];
|
|
26
28
|
protected abstract getDescription(type: T["type"]): DescribedDescription<T> | undefined;
|
|
27
29
|
constructor(value: T["type"]);
|
|
@@ -34,7 +36,8 @@ export default abstract class Uses<T extends IDescribed> extends InfoProvider {
|
|
|
34
36
|
addDetails(...details: symbol[]): this;
|
|
35
37
|
get(context: InfoProviderContext): ArrayOr<TranslationGenerator | InfoProvider>;
|
|
36
38
|
private getUseExtraInfo;
|
|
39
|
+
protected getUseDisplayLevel(action: ActionType, context: InfoProviderContext): InfoDisplayLevel;
|
|
37
40
|
private getDetailsHandlerResolver;
|
|
38
|
-
|
|
41
|
+
protected getUse(description: DescribedDescription<T>, action: ActionType): TranslationImpl;
|
|
39
42
|
private getUseName;
|
|
40
43
|
}
|
|
@@ -9,6 +9,8 @@
|
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
11
|
import { InfoProvider } from "game/inspection/InfoProvider";
|
|
12
|
+
import type { InfoProviderContext } from "game/inspection/InfoProviderContext";
|
|
13
|
+
import LabelledValue from "game/inspection/infoProviders/LabelledValue";
|
|
12
14
|
import type Item from "game/item/Item";
|
|
13
15
|
import { PathType } from "resource/IResourceLoader";
|
|
14
16
|
import ImagePath from "ui/util/ImagePath";
|
|
@@ -24,6 +26,6 @@ export default class ItemProtectedInfoProvider extends InfoProvider {
|
|
|
24
26
|
height: number;
|
|
25
27
|
};
|
|
26
28
|
hasContent(): boolean;
|
|
27
|
-
get():
|
|
29
|
+
get(context: InfoProviderContext): LabelledValue;
|
|
28
30
|
protected onToggleProtected(item: Item): void;
|
|
29
31
|
}
|
|
@@ -10,13 +10,18 @@
|
|
|
10
10
|
*/
|
|
11
11
|
import { ActionType } from "game/entity/action/IAction";
|
|
12
12
|
import { EntityType } from "game/entity/IEntity";
|
|
13
|
+
import { InfoDisplayLevel } from "game/inspection/IInfoProvider";
|
|
14
|
+
import { InfoProviderContext } from "game/inspection/InfoProviderContext";
|
|
13
15
|
import Uses from "game/inspection/infoProviders/Uses";
|
|
14
16
|
import type { IItemDescription, ItemType } from "game/item/IItem";
|
|
15
17
|
import type Item from "game/item/Item";
|
|
18
|
+
import UiTranslation from "language/dictionary/UiTranslation";
|
|
19
|
+
import type TranslationImpl from "language/impl/TranslationImpl";
|
|
16
20
|
export default class ItemUses extends Uses<Item> {
|
|
17
21
|
protected getEntityType(): EntityType.Item;
|
|
18
22
|
protected getDescription(type: ItemType): IItemDescription;
|
|
19
23
|
protected getUses(description: IItemDescription): ActionType[];
|
|
24
|
+
protected getUseDisplayLevel(action: ActionType, context: InfoProviderContext): InfoDisplayLevel;
|
|
20
25
|
protected getUseInfoHandlers(): (import("../UseInfo").default<{
|
|
21
26
|
doodadContainer: import("../../../doodad/IDoodad").IDoodadDescription | undefined;
|
|
22
27
|
civilizationScore: number | undefined;
|
|
@@ -83,7 +88,7 @@ export default class ItemUses extends Uses<Item> {
|
|
|
83
88
|
union: import("../UseInfo").IUseInfoBase<Item, ActionType.Disassemble>;
|
|
84
89
|
details: Set<symbol>;
|
|
85
90
|
}, ActionType.Disassemble, {
|
|
86
|
-
getRequiredItems: () =>
|
|
91
|
+
getRequiredItems: () => TranslationImpl[];
|
|
87
92
|
}, Item> | import("../UseInfo").default<{
|
|
88
93
|
dismantle: import("game/item/IItem").IDismantleDescription;
|
|
89
94
|
entityType: EntityType.Item;
|
|
@@ -107,7 +112,7 @@ export default class ItemUses extends Uses<Item> {
|
|
|
107
112
|
}, ActionType.Equip, {
|
|
108
113
|
getMagicalEquipTypes: () => Set<import("../../../magic/MagicalPropertyType").MagicalPropertyType>;
|
|
109
114
|
} & {
|
|
110
|
-
getMagicalPropertyLabels: () => Map<import("../../../magic/MagicalPropertyType").MagicalPropertyType,
|
|
115
|
+
getMagicalPropertyLabels: () => Map<import("../../../magic/MagicalPropertyType").MagicalPropertyType, UiTranslation>;
|
|
111
116
|
} & {
|
|
112
117
|
isMagicalPropertyPercentage: (property: import("../../../magic/MagicalPropertyType").MagicalPropertyType) => boolean;
|
|
113
118
|
} & {
|
|
@@ -115,7 +120,7 @@ export default class ItemUses extends Uses<Item> {
|
|
|
115
120
|
} & {
|
|
116
121
|
getAttack: () => import("../MagicalPropertyValue").default | undefined;
|
|
117
122
|
} & {
|
|
118
|
-
getDefense: () => (
|
|
123
|
+
getDefense: () => (TranslationImpl | import("../MagicalPropertyValue").default)[];
|
|
119
124
|
} & {
|
|
120
125
|
formatInsulation: (insulation?: number | undefined, type?: import("../../../temperature/ITemperature").TempType | undefined) => import("../LabelledValue").default;
|
|
121
126
|
} & {
|
|
@@ -201,4 +206,14 @@ export default class ItemUses extends Uses<Item> {
|
|
|
201
206
|
union: import("../UseInfo").IUseInfoBase<Item, ActionType.Build>;
|
|
202
207
|
details: Set<symbol>;
|
|
203
208
|
}, ActionType.Build, {}, Item> | import("../UseInfo").default<import("../UseInfo").IUseInfoBase<Item, ActionType.StartFire | ActionType.Ignite | ActionType.Equip>, ActionType.StartFire | ActionType.Ignite | ActionType.Equip, {}, Item>)[];
|
|
209
|
+
protected getUse(description: IItemDescription, action: ActionType): TranslationImpl;
|
|
210
|
+
}
|
|
211
|
+
declare module "game/inspection/InfoProviderContext" {
|
|
212
|
+
interface InfoProviderContextRegistration {
|
|
213
|
+
ItemUse: ItemUseContext;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
export declare class ItemUseContext extends InfoProviderContext {
|
|
217
|
+
readonly item?: Item | undefined;
|
|
218
|
+
constructor(item?: Item | undefined);
|
|
204
219
|
}
|
|
@@ -12,26 +12,26 @@ import type { ActionId, IUsableActionPossibleUsing } from "game/entity/action/us
|
|
|
12
12
|
import { UsableActionDisplayContext } from "game/entity/action/usable/IUsableAction";
|
|
13
13
|
import { InspectType } from "game/inspection/IInspection";
|
|
14
14
|
import { InfoProvider } from "game/inspection/InfoProvider";
|
|
15
|
-
import { InfoProviderContext } from "game/inspection/InfoProviderContext";
|
|
15
|
+
import type { InfoProviderContext } from "game/inspection/InfoProviderContext";
|
|
16
16
|
import Inspection from "game/inspection/Inspection";
|
|
17
17
|
import type { EnumReferenceResolved } from "game/reference/IReferenceManager";
|
|
18
18
|
import { ReferenceType } from "game/reference/IReferenceManager";
|
|
19
19
|
import type { TranslationGenerator } from "ui/component/IComponent";
|
|
20
|
-
import type { ActionSlot } from "ui/screen/screens/game/static/ActionBar";
|
|
21
20
|
export default class ActionInspection extends Inspection<ActionId | undefined> {
|
|
22
|
-
private readonly slot?;
|
|
23
21
|
static handles: (type: InspectType, value: unknown, context?: InfoProviderContext | undefined) => boolean;
|
|
24
|
-
|
|
25
|
-
using
|
|
26
|
-
|
|
27
|
-
setUsing(using?: IUsableActionPossibleUsing): this;
|
|
28
|
-
setContext(context: UsableActionDisplayContext): this;
|
|
22
|
+
constructor(value?: string | EnumReferenceResolved<ReferenceType.Action>);
|
|
23
|
+
private get using();
|
|
24
|
+
private get item();
|
|
29
25
|
getId(): string;
|
|
30
26
|
private getActionId;
|
|
31
27
|
get(context: InfoProviderContext): ArrayOr<TranslationGenerator | InfoProvider>;
|
|
28
|
+
private getActionSlotItemMode;
|
|
32
29
|
private getTranslation;
|
|
30
|
+
static getActionNameWithTier(id: ActionId, context: UsableActionDisplayContext, provided: IUsableActionPossibleUsing | undefined, resolveUsing: boolean): import("../../../language/impl/TranslationImpl").default | undefined;
|
|
31
|
+
private static getTranslation;
|
|
33
32
|
private getActionDiscovered;
|
|
34
|
-
private getActionTier;
|
|
33
|
+
private static getActionTier;
|
|
34
|
+
private getActionTierInfo;
|
|
35
35
|
private getActionUsability;
|
|
36
36
|
private getActionExample;
|
|
37
37
|
}
|
|
@@ -116,15 +116,16 @@ export declare enum Prompt {
|
|
|
116
116
|
MultiplayerRestartServerAfterLoadingSave = 99,
|
|
117
117
|
MultiplayerDisconnect = 100,
|
|
118
118
|
MultiplayerDisconnectRejoin = 101,
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
119
|
+
MultiplayerServerHasUnpublishedMods = 102,
|
|
120
|
+
SteamworksURLOpenedInBrowser = 103,
|
|
121
|
+
SteamworksWorkshopOpenedInBrowser = 104,
|
|
122
|
+
SteamworksModWithNameAlreadyExists = 105,
|
|
123
|
+
SteamworksModImportSaveGameFailure = 106,
|
|
124
|
+
SteamworksModImportedSaveGame = 107,
|
|
125
|
+
SteamworksOpenFolderFailure = 108,
|
|
126
|
+
SteamworksModPublishModJsonUpdateFailed = 109,
|
|
127
|
+
SteamworksNotAvailableOnSteamDeck = 110,
|
|
128
|
+
UiSaveDrop = 111
|
|
128
129
|
}
|
|
129
130
|
export declare enum PromptType {
|
|
130
131
|
Info = 0,
|
|
@@ -123,6 +123,7 @@ export declare const promptMultiplayerFailedToConnect: import("game/meta/prompt/
|
|
|
123
123
|
export declare const promptMultiplayerRestartServerAfterLoadingSave: import("game/meta/prompt/IPrompt").IPromptConfirmDescription<[]>;
|
|
124
124
|
export declare const promptMultiplayerDisconnect: import("game/meta/prompt/IPrompt").IPromptInfoDescription<[type: TranslationImpl, reason?: TranslationImpl | undefined]>;
|
|
125
125
|
export declare const promptMultiplayerDisconnectRejoin: import("game/meta/prompt/IPrompt").IPromptConfirmDescription<[type: TranslationImpl, reason?: TranslationImpl | undefined]>;
|
|
126
|
+
export declare const promptMultiplayerServerHasUnpublishedMods: import("game/meta/prompt/IPrompt").IPromptInfoDescription<string[]>;
|
|
126
127
|
export declare const promptSteamworksURLOpenedInBrowser: import("game/meta/prompt/IPrompt").IPromptInfoDescription<[]>;
|
|
127
128
|
export declare const promptSteamworksWorkshopOpenedInBrowser: import("game/meta/prompt/IPrompt").IPromptInfoDescription<[]>;
|
|
128
129
|
export declare const promptSteamworksModWithNameAlreadyExists: import("game/meta/prompt/IPrompt").IPromptInfoDescription<[]>;
|
|
@@ -21,7 +21,6 @@ import type Island from "game/island/Island";
|
|
|
21
21
|
import type { ItemType } from "game/item/IItem";
|
|
22
22
|
import type Item from "game/item/Item";
|
|
23
23
|
import type { Milestone } from "game/milestones/IMilestone";
|
|
24
|
-
import type ReferenceManager from "game/reference/ReferenceManager";
|
|
25
24
|
import type TileEvent from "game/tile/TileEvent";
|
|
26
25
|
export interface IReferenceable {
|
|
27
26
|
/**
|
|
@@ -66,7 +65,7 @@ export interface IReferenceTypeMap {
|
|
|
66
65
|
[ReferenceType.ItemType]: [ReferenceType.ItemType, ItemType];
|
|
67
66
|
[ReferenceType.Dismantle]: [ReferenceType.Dismantle, ItemType];
|
|
68
67
|
[ReferenceType.Stat]: [ReferenceType.Stat, Stat];
|
|
69
|
-
[ReferenceType.Action]: [ReferenceType.Action, ActionId
|
|
68
|
+
[ReferenceType.Action]: [ReferenceType.Action, ActionId];
|
|
70
69
|
[ReferenceType.EquipSlot]: [ReferenceType.EquipSlot, EquipType];
|
|
71
70
|
}
|
|
72
71
|
export type ReferenceContext = [number, ReferenceType?];
|
|
@@ -76,9 +75,7 @@ export type Referenceable = IReferenceTypeMap[ReferenceableReferenceTypes];
|
|
|
76
75
|
export type ResolveReference<REFTYPE extends ReferenceType> = IReferenceTypeMap[REFTYPE];
|
|
77
76
|
export type EnumReferenceResolved<REFTYPE extends EnumReferenceTypes = EnumReferenceTypes> = IReferenceTypeMap[REFTYPE];
|
|
78
77
|
export declare module Reference {
|
|
79
|
-
function setReferenceResolver(resolver: typeof ReferenceManager.get): void;
|
|
80
78
|
function create(id: number): Reference;
|
|
81
|
-
function create<REFTYPE extends ReferenceType>(id: ReferenceId<REFTYPE>, type: REFTYPE
|
|
82
|
-
function context(reference?: Reference): [number] | [id: number, type: ReferenceType.Item, context?: ReferenceContext | undefined, islandId?: `${number},${number}` | undefined] | [id: number, type: ReferenceType.Creature, context?: ReferenceContext | undefined, islandId?: `${number},${number}` | undefined] | [id: number, type: ReferenceType.Doodad, context?: ReferenceContext | undefined, islandId?: `${number},${number}` | undefined] | [id: number, type: ReferenceType.NPC, context?: ReferenceContext | undefined, islandId?: `${number},${number}` | undefined] | [id: number, type: ReferenceType.Player, context?: ReferenceContext | undefined, islandId?: `${number},${number}` | undefined] | [id: number, type: ReferenceType.TileEvent, context?: ReferenceContext | undefined, islandId?: `${number},${number}` | undefined] | [id: number, type: ReferenceType.Island, context?: ReferenceContext | undefined, islandId?: `${number},${number}` | undefined] | [id: number, type: ReferenceType.Corpse, context?: ReferenceContext | undefined, islandId?: `${number},${number}` | undefined] | [id: SkillType, type: ReferenceType.Skill, context?: ReferenceContext | undefined, islandId?: `${number},${number}` | undefined] | [id: Milestone, type: ReferenceType.Milestone, context?: ReferenceContext | undefined, islandId?: `${number},${number}` | undefined] | [id: ItemType, type: ReferenceType.Recipe, context?: ReferenceContext | undefined, islandId?: `${number},${number}` | undefined] | [id: ItemType, type: ReferenceType.ItemType, context?: ReferenceContext | undefined, islandId?: `${number},${number}` | undefined] | [id: ItemType, type: ReferenceType.Dismantle, context?: ReferenceContext | undefined, islandId?: `${number},${number}` | undefined] | [id: Stat, type: ReferenceType.Stat, context?: ReferenceContext | undefined, islandId?: `${number},${number}` | undefined] | [id: ActionId, type: ReferenceType.Action, context?: ReferenceContext | undefined, islandId?: `${number},${number}` | undefined] | [id: EquipType, type: ReferenceType.EquipSlot, context?: ReferenceContext | undefined, islandId?: `${number},${number}` | undefined] | undefined;
|
|
79
|
+
function create<REFTYPE extends ReferenceType>(id: ReferenceId<REFTYPE>, type: REFTYPE): Reference;
|
|
83
80
|
}
|
|
84
81
|
export {};
|
|
@@ -15,13 +15,14 @@ import { SkillType } from "game/entity/IHuman";
|
|
|
15
15
|
import { Stat } from "game/entity/IStats";
|
|
16
16
|
import Player from "game/entity/player/Player";
|
|
17
17
|
import type { Game } from "game/Game";
|
|
18
|
+
import { InfoProviderContext } from "game/inspection/InfoProviderContext";
|
|
18
19
|
import type Inspection from "game/inspection/Inspection";
|
|
19
20
|
import Island from "game/island/Island";
|
|
20
21
|
import { ItemType } from "game/item/IItem";
|
|
21
22
|
import Item from "game/item/Item";
|
|
22
23
|
import { Milestone } from "game/milestones/IMilestone";
|
|
23
|
-
import type { EnumReferenceTypes, IReferenceTypeMap, Referenceable } from "game/reference/IReferenceManager";
|
|
24
|
-
import {
|
|
24
|
+
import type { EnumReferenceTypes, IReferenceTypeMap, Referenceable, Reference } from "game/reference/IReferenceManager";
|
|
25
|
+
import { ReferenceType } from "game/reference/IReferenceManager";
|
|
25
26
|
import ReferenceTooltipHandler from "ui/screen/screens/game/ReferenceTooltipHandler";
|
|
26
27
|
import type Tooltip from "ui/tooltip/Tooltip";
|
|
27
28
|
export default class ReferenceManager {
|
|
@@ -44,5 +45,5 @@ export default class ReferenceManager {
|
|
|
44
45
|
private resolveInternal;
|
|
45
46
|
inspect<REFTYPE extends ReferenceType>(reference: Reference<REFTYPE>, ...args: any[]): Inspection<any> | undefined;
|
|
46
47
|
inspect(reference: Reference, ...args: any[]): Inspection<any> | undefined;
|
|
47
|
-
tooltip(reference: Reference, initializer?: (tooltip: Tooltip, handler: ReferenceTooltipHandler) => any): (tooltip: Tooltip) => Promise<void>;
|
|
48
|
+
tooltip(reference: Reference, initializer?: (tooltip: Tooltip, handler: ReferenceTooltipHandler) => any, context?: InfoProviderContext): (tooltip: Tooltip) => Promise<void>;
|
|
48
49
|
}
|
|
@@ -10,116 +10,117 @@
|
|
|
10
10
|
*/
|
|
11
11
|
declare enum Dictionary {
|
|
12
12
|
Action = 0,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
13
|
+
ActionSlotItemMethod = 1,
|
|
14
|
+
ActionSort = 2,
|
|
15
|
+
AiType = 3,
|
|
16
|
+
AutoSave = 4,
|
|
17
|
+
BadTemperature = 5,
|
|
18
|
+
Bindable = 6,
|
|
19
|
+
BindableType = 7,
|
|
20
|
+
Biome = 8,
|
|
21
|
+
BleedLevel = 9,
|
|
22
|
+
Book = 10,
|
|
23
|
+
Challenge = 11,
|
|
24
|
+
ChangelogChangeType = 12,
|
|
25
|
+
CharacterSort = 13,
|
|
26
|
+
CombatDangerLevel = 14,
|
|
27
|
+
CombatStrength = 15,
|
|
28
|
+
Command = 16,
|
|
29
|
+
Corpse = 17,
|
|
30
|
+
CraftEfficacy = 18,
|
|
31
|
+
Creature = 19,
|
|
32
|
+
DamageType = 20,
|
|
33
|
+
Dialog = 21,
|
|
34
|
+
Direction = 22,
|
|
35
|
+
DisplayLevel = 23,
|
|
36
|
+
Doodad = 24,
|
|
37
|
+
DoodadExtra = 25,
|
|
38
|
+
DoodadGroup = 26,
|
|
39
|
+
DrawnMapTheme = 27,
|
|
40
|
+
DurabilityLevel = 28,
|
|
41
|
+
EquipEffect = 29,
|
|
42
|
+
EquipSlot = 30,
|
|
43
|
+
ExhaustionLevel = 31,
|
|
44
|
+
FerocityLevel = 32,
|
|
45
|
+
FireStage = 33,
|
|
46
|
+
FontStyle = 34,
|
|
47
|
+
GameEndMessage = 35,
|
|
48
|
+
GameMode = 36,
|
|
49
|
+
Growth = 37,
|
|
50
|
+
GrowthFungus = 38,
|
|
51
|
+
Health = 39,
|
|
52
|
+
HealthAccuracy = 40,
|
|
53
|
+
HelpArticle = 41,
|
|
54
|
+
HighscoreSort = 42,
|
|
55
|
+
HumanName = 43,
|
|
56
|
+
Input = 44,
|
|
57
|
+
InspectType = 45,
|
|
58
|
+
InterruptChoice = 46,
|
|
59
|
+
InventorySort = 47,
|
|
60
|
+
IslandModifier = 48,
|
|
61
|
+
IslandName = 49,
|
|
62
|
+
IslandNameBiomeDescriptor = 50,
|
|
63
|
+
IslandNameBiomeNoun = 51,
|
|
64
|
+
IslandNameModifierDescriptor = 52,
|
|
65
|
+
IslandNameOverrunWithCreatureDescriptor = 53,
|
|
66
|
+
Item = 54,
|
|
67
|
+
ItemExtra = 55,
|
|
68
|
+
ItemGroup = 56,
|
|
69
|
+
JoinServerRetryReason = 57,
|
|
70
|
+
Level = 58,
|
|
71
|
+
LighthouseName = 59,
|
|
72
|
+
Loading = 60,
|
|
73
|
+
Macro = 61,
|
|
74
|
+
MagicalPropertyType = 62,
|
|
75
|
+
MapQuality = 63,
|
|
76
|
+
MenuBarButton = 64,
|
|
77
|
+
Message = 65,
|
|
78
|
+
MessagesDefaultFilter = 66,
|
|
79
|
+
MessagesTimestampMode = 67,
|
|
80
|
+
Milestone = 68,
|
|
81
|
+
MilestoneModifierGroup = 69,
|
|
82
|
+
MilestoneSort = 70,
|
|
83
|
+
Misc = 71,
|
|
84
|
+
ModLoadError = 72,
|
|
85
|
+
ModLoadFailureReason = 73,
|
|
86
|
+
ModProvide = 74,
|
|
87
|
+
ModSort = 75,
|
|
88
|
+
ModType = 76,
|
|
89
|
+
MultiplayerCompatibility = 77,
|
|
90
|
+
MultiplayerDisconnectReason = 78,
|
|
91
|
+
MusicPlaylist = 79,
|
|
92
|
+
Note = 80,
|
|
93
|
+
Npc = 81,
|
|
94
|
+
Number = 82,
|
|
95
|
+
PartOfDay = 83,
|
|
96
|
+
Prompt = 84,
|
|
97
|
+
QuadrantComponent = 85,
|
|
98
|
+
QuadrantComponentContextMenuAction = 86,
|
|
99
|
+
Quality = 87,
|
|
100
|
+
Quest = 88,
|
|
101
|
+
QuestRequirement = 89,
|
|
102
|
+
RecipeLevel = 90,
|
|
103
|
+
Region = 91,
|
|
104
|
+
Riddle = 92,
|
|
105
|
+
SaveImportErrorReason = 93,
|
|
106
|
+
SaveSlotSort = 94,
|
|
107
|
+
Skill = 95,
|
|
108
|
+
SkillsSort = 96,
|
|
109
|
+
Source = 97,
|
|
110
|
+
Stat = 98,
|
|
111
|
+
StatusEffect = 99,
|
|
112
|
+
TeamMemberResponsibility = 100,
|
|
113
|
+
TemperatureType = 101,
|
|
114
|
+
Terrain = 102,
|
|
115
|
+
TileEvent = 103,
|
|
116
|
+
TooltipVisibilityOption = 104,
|
|
117
|
+
Ui = 105,
|
|
118
|
+
UiQuadrant = 106,
|
|
119
|
+
UnableToJoinReason = 107,
|
|
120
|
+
UnlockedRecipesStrategy = 108,
|
|
121
|
+
UsableActionType = 109,
|
|
122
|
+
Website = 110,
|
|
123
|
+
WeightStatus = 111,
|
|
124
|
+
WorldLayer = 112
|
|
124
125
|
}
|
|
125
126
|
export default Dictionary;
|