@wayward/types 2.13.2-beta.dev.20230606.2 → 2.13.2-beta.dev.20230607.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/biome/IBiome.d.ts +13 -0
- package/definitions/game/game/biome/arid/Arid.d.ts +16 -0
- package/definitions/game/game/biome/coastal/Coastal.d.ts +16 -0
- package/definitions/game/game/biome/iceCap/IceCap.d.ts +16 -0
- package/definitions/game/game/biome/volcanic/Volcanic.d.ts +16 -0
- package/definitions/game/game/biome/wetlands/Wetlands.d.ts +16 -0
- package/definitions/game/game/deity/IDeities.d.ts +58 -0
- package/definitions/game/game/entity/Entity.d.ts +2 -1
- package/definitions/game/game/entity/IEntity.d.ts +5 -5
- package/definitions/game/game/entity/action/actions/UpdateDirection.d.ts +3 -1
- package/definitions/game/game/inspection/InfoProvider.d.ts +10 -10
- package/definitions/game/game/inspection/infoProviders/stat/AttackInfo.d.ts +2 -5
- package/definitions/game/game/inspection/infoProviders/stat/DefenseInfo.d.ts +2 -5
- package/definitions/game/game/inspection/infoProviders/stat/FerocityInfo.d.ts +18 -0
- package/definitions/game/game/inspection/infoProviders/stat/StatInfo.d.ts +10 -0
- package/definitions/game/game/inspection/inspections/StatInspection.d.ts +4 -2
- package/definitions/game/language/Dictionary.d.ts +92 -91
- package/definitions/game/language/DictionaryMap.d.ts +181 -178
- package/definitions/game/language/dictionary/UiTranslation.d.ts +619 -626
- package/definitions/game/language/english/game/FerocityLevels.d.ts +13 -0
- package/definitions/game/ui/input/Bindable.d.ts +12 -0
- package/definitions/game/ui/input/Bindables.d.ts +3 -1
- package/definitions/game/ui/screen/screens/game/static/stats/{Reputation.d.ts → Ferocity.d.ts} +5 -0
- package/definitions/game/ui/screen/screens/game/static/stats/IStatDisplayDescription.d.ts +2 -2
- package/definitions/game/ui/screen/screens/game/static/stats/component/Stat.d.ts +4 -4
- package/definitions/game/utilities/Version.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2011-2023 Unlok
|
|
3
|
+
* https://www.unlok.ca
|
|
4
|
+
*
|
|
5
|
+
* Credits & Thanks:
|
|
6
|
+
* https://www.unlok.ca/credits-thanks/
|
|
7
|
+
*
|
|
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
|
+
* https://github.com/WaywardGame/types/wiki
|
|
10
|
+
*/
|
|
11
|
+
import { FerocityLevel } from "game/deity/IDeities";
|
|
12
|
+
declare const ferocityLevels: Record<FerocityLevel, string>;
|
|
13
|
+
export default ferocityLevels;
|
|
@@ -233,3 +233,15 @@ export declare enum BindableType {
|
|
|
233
233
|
Developer = 6,
|
|
234
234
|
Mod = 7
|
|
235
235
|
}
|
|
236
|
+
export declare enum BindableTypeContext {
|
|
237
|
+
Default = 0,
|
|
238
|
+
ActionMenu = 1,
|
|
239
|
+
Mod = 2
|
|
240
|
+
}
|
|
241
|
+
export declare const BINDABLE_TYPE_CONTEXTS: Record<BindableType, BindableTypeContext>;
|
|
242
|
+
export declare enum BindableMouseTargetingContext {
|
|
243
|
+
Generic = 0,
|
|
244
|
+
World = 1,
|
|
245
|
+
Item = 2
|
|
246
|
+
}
|
|
247
|
+
export declare const MOUSE_TARGETING_BINDABLE_CONTEXTS: Record<BindableMouseTargetingContext, Bindable[]>;
|
|
@@ -9,11 +9,13 @@
|
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
11
|
import type Bindable from "ui/input/Bindable";
|
|
12
|
-
import { BindableType } from "ui/input/Bindable";
|
|
12
|
+
import { BindableMouseTargetingContext, BindableType, BindableTypeContext } from "ui/input/Bindable";
|
|
13
13
|
import type { Binding } from "ui/input/Bindings";
|
|
14
14
|
declare module Bindables {
|
|
15
15
|
function register(index: number, defaultBinding: Binding[]): void;
|
|
16
16
|
function deregister(index: number): void;
|
|
17
17
|
function getType(bindable: Bindable): BindableType | undefined;
|
|
18
|
+
function getContext(bindable: Bindable): BindableTypeContext;
|
|
19
|
+
function getMouseContext(bindable: Bindable): BindableMouseTargetingContext | undefined;
|
|
18
20
|
}
|
|
19
21
|
export default Bindables;
|
package/definitions/game/ui/screen/screens/game/static/stats/{Reputation.d.ts → Ferocity.d.ts}
RENAMED
|
@@ -8,6 +8,11 @@
|
|
|
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 type Entity from "game/entity/Entity";
|
|
11
12
|
import { type IStatDisplayDescription } from "ui/screen/screens/game/static/stats/IStatDisplayDescription";
|
|
13
|
+
/**
|
|
14
|
+
* Returns the difficulty translation for the given player's reputation
|
|
15
|
+
*/
|
|
16
|
+
export declare function getFerocityTranslation(entity?: Entity): import("../../../../../../language/impl/TranslationImpl").default;
|
|
12
17
|
declare const reputation: IStatDisplayDescription;
|
|
13
18
|
export default reputation;
|
|
@@ -12,10 +12,10 @@ import type { IHasImagePath } from "game/IObject";
|
|
|
12
12
|
import type EntityWithStats from "game/entity/EntityWithStats";
|
|
13
13
|
import type { IStat, IStatBase, StatDisplayType } from "game/entity/IStats";
|
|
14
14
|
import type { Reference } from "game/reference/IReferenceManager";
|
|
15
|
+
import type Translation from "language/Translation";
|
|
15
16
|
import type { IModdable } from "mod/ModRegistry";
|
|
16
17
|
import type Component from "ui/component/Component";
|
|
17
18
|
import type Tooltip from "ui/tooltip/Tooltip";
|
|
18
|
-
import type { IStringSection } from "utilities/string/Interpolator";
|
|
19
19
|
export interface IStatDisplayDescription extends IModdable, IHasImagePath<string | ((entity: EntityWithStats, stat: IStat) => string)> {
|
|
20
20
|
imagePath?: string | ((entity: EntityWithStats, stat: IStat) => string);
|
|
21
21
|
/**
|
|
@@ -52,7 +52,7 @@ export interface IStatDisplayDescription extends IModdable, IHasImagePath<string
|
|
|
52
52
|
*
|
|
53
53
|
* For overriding the normal formatted output of a stat.
|
|
54
54
|
*/
|
|
55
|
-
getFormatted?(entity: EntityWithStats, stat?: IStat):
|
|
55
|
+
getFormatted?(entity: EntityWithStats, stat?: IStat): Translation;
|
|
56
56
|
/**
|
|
57
57
|
* A function that will initialize a tooltip for this stat element, or a reference to show a tooltip for
|
|
58
58
|
*/
|
|
@@ -12,9 +12,9 @@ import type Entity from "game/entity/Entity";
|
|
|
12
12
|
import type EntityWithStats from "game/entity/EntityWithStats";
|
|
13
13
|
import type { IStatChangeInfo } from "game/entity/IEntity";
|
|
14
14
|
import type { IStat, IStatMax, Stat } from "game/entity/IStats";
|
|
15
|
+
import Translation from "language/Translation";
|
|
15
16
|
import Component from "ui/component/Component";
|
|
16
17
|
import Text from "ui/component/Text";
|
|
17
|
-
import type { IStringSection } from "utilities/string/Interpolator";
|
|
18
18
|
export declare abstract class StatComponent extends Component {
|
|
19
19
|
private readonly entity;
|
|
20
20
|
private readonly stat;
|
|
@@ -32,7 +32,7 @@ export declare abstract class StatComponent extends Component {
|
|
|
32
32
|
*
|
|
33
33
|
* If `statDescription.getFormatted` is defined, uses this method. Else, generates based on if the stat has a `max`
|
|
34
34
|
*/
|
|
35
|
-
getStatValue():
|
|
35
|
+
getStatValue(): Translation;
|
|
36
36
|
/**
|
|
37
37
|
* Returns the color of this stat.
|
|
38
38
|
*/
|
|
@@ -50,7 +50,7 @@ export declare abstract class StatComponent extends Component {
|
|
|
50
50
|
/**
|
|
51
51
|
* Returns the generic string representation of this stat.
|
|
52
52
|
*/
|
|
53
|
-
protected getGenericStatValue(stat: IStat):
|
|
53
|
+
protected getGenericStatValue(stat: IStat): import("../../../../../../../language/impl/TranslationImpl").default;
|
|
54
54
|
/**
|
|
55
55
|
* Event handler for when a stat changes. Updates the text, color, icon, and tooltip of this `StatElement`.
|
|
56
56
|
*
|
|
@@ -79,7 +79,7 @@ export declare class Statbar extends StatComponent {
|
|
|
79
79
|
constructor(entity: EntityWithStats, stat: Stat, noEvents?: true);
|
|
80
80
|
getTextElement(): Text;
|
|
81
81
|
getDisplayElement(): Component<HTMLElement>;
|
|
82
|
-
getGenericStatValue(stat: IStatMax):
|
|
82
|
+
getGenericStatValue(stat: IStatMax): import("../../../../../../../language/impl/TranslationImpl").default;
|
|
83
83
|
/**
|
|
84
84
|
* Overrides the superclass method of the same name. Calls the superclass method, then updates the CSS
|
|
85
85
|
* property `--stat-percent`, to update the statbar's fill width.
|
|
@@ -57,6 +57,7 @@ declare module Version {
|
|
|
57
57
|
export function getUpdateDisplayTranslation(version?: Version.String | Version.StringSemVer | IVersionInfo): TranslationImpl | undefined;
|
|
58
58
|
const timezones: {
|
|
59
59
|
nz: string;
|
|
60
|
+
pst: string;
|
|
60
61
|
build: string;
|
|
61
62
|
};
|
|
62
63
|
export function isTimeBefore(date: Date, dateStr: DateString, timezone: keyof typeof timezones): boolean;
|
package/package.json
CHANGED