@wayward/types 2.12.2-beta.dev.20221030.1 → 2.12.2-beta.dev.20221102.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 +3 -0
- package/definitions/game/game/inspection/InfoProvider.d.ts +2 -0
- package/definitions/game/game/inspection/infoProviders/stat/AttackInfo.d.ts +1 -0
- package/definitions/game/language/Dictionary.d.ts +9 -8
- package/definitions/game/language/DictionaryMap.d.ts +20 -17
- package/definitions/game/language/dictionary/UiTranslation.d.ts +685 -682
- package/definitions/game/language/english/ui/TooltipVisibilityOptions.d.ts +13 -0
- package/definitions/game/save/data/ISaveDataGlobal.d.ts +7 -1
- package/definitions/game/ui/Ui.d.ts +4 -3
- package/definitions/game/ui/component/ContextMenu.d.ts +2 -0
- package/definitions/game/ui/old/screens/InGameScreen.d.ts +1 -1
- package/definitions/game/ui/screen/screens/game/static/menubar/IMenuBarButton.d.ts +2 -1
- package/definitions/game/ui/tooltip/Tooltip.d.ts +3 -0
- package/package.json +1 -1
|
@@ -159,6 +159,7 @@ export declare enum AttackType {
|
|
|
159
159
|
ThrowItem = 3
|
|
160
160
|
}
|
|
161
161
|
export declare enum DamageType {
|
|
162
|
+
None = 0,
|
|
162
163
|
Blunt = 1,
|
|
163
164
|
Slashing = 2,
|
|
164
165
|
Piercing = 4,
|
|
@@ -203,10 +204,12 @@ export interface IAttack {
|
|
|
203
204
|
}
|
|
204
205
|
export interface IAttackMainHand {
|
|
205
206
|
item: Item;
|
|
207
|
+
type: DamageType;
|
|
206
208
|
value: number;
|
|
207
209
|
}
|
|
208
210
|
export interface IAttackOffHand {
|
|
209
211
|
item: Item;
|
|
212
|
+
type: DamageType;
|
|
210
213
|
raw: number;
|
|
211
214
|
skill: number;
|
|
212
215
|
result: number;
|
|
@@ -135,11 +135,13 @@ export declare class SimpleInfoProvider extends InfoProvider {
|
|
|
135
135
|
private readonly classes;
|
|
136
136
|
private readonly contents;
|
|
137
137
|
private childComponentClass;
|
|
138
|
+
private validWhen?;
|
|
138
139
|
constructor(...translations: Array<TranslationGenerator | InfoProvider>);
|
|
139
140
|
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)[];
|
|
140
141
|
add(...translations: Array<TranslationGenerator | InfoProvider | Falsy>): this;
|
|
141
142
|
onlyIfHasContents(): this | undefined;
|
|
142
143
|
addInfoGetter(provider: () => InfoProvider | undefined): this;
|
|
144
|
+
setValidWhen(predicate: () => any): this;
|
|
143
145
|
getClass(): string[];
|
|
144
146
|
addClasses(...classes: string[]): this;
|
|
145
147
|
protected initChildTextComponent(text: TranslationGenerator): Text;
|
|
@@ -99,13 +99,14 @@ declare enum Dictionary {
|
|
|
99
99
|
TemperatureType = 87,
|
|
100
100
|
Terrain = 88,
|
|
101
101
|
TileEvent = 89,
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
102
|
+
TooltipVisibilityOption = 90,
|
|
103
|
+
Ui = 91,
|
|
104
|
+
UiQuadrant = 92,
|
|
105
|
+
UnableToJoinReason = 93,
|
|
106
|
+
UnlockedRecipesStrategy = 94,
|
|
107
|
+
UsableActionType = 95,
|
|
108
|
+
Website = 96,
|
|
109
|
+
WeightStatus = 97,
|
|
110
|
+
WorldLayer = 98
|
|
110
111
|
}
|
|
111
112
|
export default Dictionary;
|
|
@@ -63,7 +63,7 @@ import { IslandName } from "language/english/game/islandName/IslandName";
|
|
|
63
63
|
import { ModProvide, ModType } from "mod/IModInfo";
|
|
64
64
|
import { CanLoadState, ModLoadFailureReason } from "mod/IModManager";
|
|
65
65
|
import { DisconnectReason, JoinServerRetryReason, UnableToJoinReason } from "multiplayer/IMultiplayer";
|
|
66
|
-
import { MusicPlaylist } from "save/data/ISaveDataGlobal";
|
|
66
|
+
import { MusicPlaylist, TooltipVisibilityOption } from "save/data/ISaveDataGlobal";
|
|
67
67
|
import { SaveImportErrorReason, SaveSort } from "save/ISaveManager";
|
|
68
68
|
import Bindable, { BindableType } from "ui/input/Bindable";
|
|
69
69
|
import { FontStyle } from "ui/IUi";
|
|
@@ -174,14 +174,15 @@ declare const dictionaryMap: {
|
|
|
174
174
|
87: typeof TempType;
|
|
175
175
|
88: typeof TerrainType;
|
|
176
176
|
89: typeof TileEventType;
|
|
177
|
-
90: typeof
|
|
178
|
-
91: typeof
|
|
179
|
-
92: typeof
|
|
180
|
-
93: typeof
|
|
181
|
-
94: typeof
|
|
182
|
-
95: typeof
|
|
183
|
-
96: typeof
|
|
184
|
-
97: typeof
|
|
177
|
+
90: typeof TooltipVisibilityOption;
|
|
178
|
+
91: typeof UiTranslation;
|
|
179
|
+
92: typeof Quadrant;
|
|
180
|
+
93: typeof UnableToJoinReason;
|
|
181
|
+
94: typeof UnlockedRecipesStrategy;
|
|
182
|
+
95: typeof UsableActionType;
|
|
183
|
+
96: typeof Website;
|
|
184
|
+
97: typeof WeightStatus;
|
|
185
|
+
98: typeof WorldZ;
|
|
185
186
|
};
|
|
186
187
|
export declare const strictDictionaries: {
|
|
187
188
|
0: typeof ActionType;
|
|
@@ -274,14 +275,15 @@ export declare const strictDictionaries: {
|
|
|
274
275
|
87: typeof TempType;
|
|
275
276
|
88: typeof TerrainType;
|
|
276
277
|
89: typeof TileEventType;
|
|
277
|
-
90: typeof
|
|
278
|
-
91: typeof
|
|
279
|
-
92: typeof
|
|
280
|
-
93: typeof
|
|
281
|
-
94: typeof
|
|
282
|
-
95: typeof
|
|
283
|
-
96: typeof
|
|
284
|
-
97: typeof
|
|
278
|
+
90: typeof TooltipVisibilityOption;
|
|
279
|
+
91: typeof UiTranslation;
|
|
280
|
+
92: typeof Quadrant;
|
|
281
|
+
93: typeof UnableToJoinReason;
|
|
282
|
+
94: typeof UnlockedRecipesStrategy;
|
|
283
|
+
95: typeof UsableActionType;
|
|
284
|
+
96: typeof Website;
|
|
285
|
+
97: typeof WeightStatus;
|
|
286
|
+
98: typeof WorldZ;
|
|
285
287
|
};
|
|
286
288
|
export declare type DictionaryEnum = (typeof dictionaryMap)[Dictionary];
|
|
287
289
|
export declare type DictionaryEntryEnums = {
|
|
@@ -387,6 +389,7 @@ declare const dictionaries: {
|
|
|
387
389
|
95: typeof SYMBOL_ANY_DICTIONARY | Enum;
|
|
388
390
|
96: typeof SYMBOL_ANY_DICTIONARY | Enum;
|
|
389
391
|
97: typeof SYMBOL_ANY_DICTIONARY | Enum;
|
|
392
|
+
98: typeof SYMBOL_ANY_DICTIONARY | Enum;
|
|
390
393
|
} & Record<number, typeof SYMBOL_ANY_DICTIONARY | Enum | undefined> & {
|
|
391
394
|
getByEnum: typeof getByEnum;
|
|
392
395
|
};
|