@wayward/types 2.11.4-beta.dev.20220227.1 → 2.11.5-beta.dev.20220303.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/Game.d.ts +1 -1
- package/definitions/game/game/entity/action/Actions.d.ts +1 -0
- package/definitions/game/game/entity/action/IAction.d.ts +2 -1
- package/definitions/game/game/entity/action/actions/UpdateGameOption.d.ts +14 -0
- 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/game/options/IGameOptions.d.ts +7 -0
- package/definitions/game/language/dictionary/UiTranslation.d.ts +95 -92
- package/definitions/game/ui/screen/screens/game/dialog/BookDialog.d.ts +1 -1
- package/definitions/game/ui/screen/screens/menu/menus/pause/ModesMenu.d.ts +1 -0
- package/definitions/game/utilities/game/TileHelpers.d.ts +6 -0
- package/definitions/hosts/shared/globals.d.ts +1 -1
- package/package.json +1 -1
|
@@ -112,7 +112,7 @@ export declare class Game extends EventEmitter.Host<IGameEvents> {
|
|
|
112
112
|
getGameMode(): GameMode;
|
|
113
113
|
getGameOptionsBeforeModifiers(): IGameOptions;
|
|
114
114
|
getGameOptions(): IGameOptions;
|
|
115
|
-
|
|
115
|
+
updateGameOptions(gameOptions: IGameOptions): void;
|
|
116
116
|
initializeGameOptions(seed: string | number, mode?: GameMode, options?: IGameOptions, milestoneModifiers?: Set<Milestone>): void;
|
|
117
117
|
initializeModifiers(): void;
|
|
118
118
|
getMovementFinishTime(delay?: Delay | number): number;
|
|
@@ -110,6 +110,7 @@ declare const actionDescriptions: {
|
|
|
110
110
|
77: import("./Action").Action<[], import("../player/Player").default | import("../npc/NPC").default, void, []>;
|
|
111
111
|
89: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.ItemNearby, import("game/entity/action/IAction").ActionArgument.Boolean], import("../player/Player").default | import("../npc/NPC").default, void, [import("../../item/Item").default, boolean]>;
|
|
112
112
|
59: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.Direction, [import("game/entity/action/IAction").ActionArgument.Integer32, import("game/entity/action/IAction").ActionArgument.Undefined]], import("../player/Player").default | import("../npc/NPC").default, void, [import("../../../utilities/math/Direction").Direction.None | import("../../../utilities/math/Direction").Direction.East | import("../../../utilities/math/Direction").Direction.North | import("../../../utilities/math/Direction").Direction.West | import("../../../utilities/math/Direction").Direction.South, (number | undefined)?]>;
|
|
113
|
+
105: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.Object], import("../player/Player").default, void, [any?]>;
|
|
113
114
|
90: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.Container, [import("game/entity/action/IAction").ActionArgument.UnsignedInteger32NumberArray, import("game/entity/action/IAction").ActionArgument.Undefined]], import("../player/Player").default, void, [import("../../item/IItem").IContainer, (number[] | undefined)?]>;
|
|
114
115
|
97: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.Item, import("game/entity/action/IAction").ActionArgument.Integer32, [import("game/entity/action/IAction").ActionArgument.Boolean, import("game/entity/action/IAction").ActionArgument.Undefined]], import("../player/Player").default, void, [import("../../item/Item").default, number, (boolean | undefined)?]>;
|
|
115
116
|
104: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.String, import("game/entity/action/IAction").ActionArgument.Object], import("../player/Player").default, void, [string, any?]>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2011-2021 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 { Action } from "game/entity/action/Action";
|
|
12
|
+
import { ActionArgument } from "game/entity/action/IAction";
|
|
13
|
+
declare const _default: Action<[ActionArgument.Object], import("../../player/Player").default, void, [any?]>;
|
|
14
|
+
export default _default;
|
|
@@ -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
|
}
|
|
@@ -27,6 +27,9 @@ export declare enum GameMode {
|
|
|
27
27
|
}
|
|
28
28
|
export declare const TIME_ETERNAL_NIGHT = 0.7;
|
|
29
29
|
export declare const TIME_ETERNAL_DAY = 0.3;
|
|
30
|
+
export declare const MAX_TRAVEL_TIME_MIN = 1000;
|
|
31
|
+
export declare const MAX_TRAVEL_TIME_MAX = 200000;
|
|
32
|
+
export declare const MAX_TRAVEL_TIME_DEFAULT = 20000;
|
|
30
33
|
export interface IGameOptions {
|
|
31
34
|
/**
|
|
32
35
|
* Whether players respawn when they die
|
|
@@ -41,6 +44,10 @@ export interface IGameOptions {
|
|
|
41
44
|
* Traveling effect options
|
|
42
45
|
*/
|
|
43
46
|
applyTravelingEffects: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Maximum amount of turns to tick when traveling
|
|
49
|
+
*/
|
|
50
|
+
maxTravelTime: number;
|
|
44
51
|
};
|
|
45
52
|
creatures: {
|
|
46
53
|
/**
|
|
@@ -691,97 +691,100 @@ declare enum UiTranslation {
|
|
|
691
691
|
MenuSharedMultiplayerMaxPlayers = 676,
|
|
692
692
|
MenuSharedRealTimeTickSpeedTooltip = 677,
|
|
693
693
|
MenuSharedRealTimeTickSpeedLabel = 678,
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
694
|
+
MenuSharedMaxTravelTimeLabel = 679,
|
|
695
|
+
MenuSharedMaxTravelTimeLabelTooltip = 680,
|
|
696
|
+
MenuSharedButtonDefault = 681,
|
|
697
|
+
MenuSharedValueMillseconds = 682,
|
|
698
|
+
MenuSharedValueTurns = 683,
|
|
699
|
+
MenuSharedValuePercentage = 684,
|
|
700
|
+
MenuSharedMilestonesNotUnlockable = 685,
|
|
701
|
+
MenuSharedMilestonesNotUnlockableDescription = 686,
|
|
702
|
+
MenuSharedMilestonesNotUnlockableButtonShowMods = 687,
|
|
703
|
+
MenuSharedButtonDisableAll = 688,
|
|
704
|
+
MenuSharedButtonEnableAll = 689,
|
|
705
|
+
MenuSharedMilestoneModifiersSelected = 690,
|
|
706
|
+
MiscSortBy = 691,
|
|
707
|
+
MiscSortDirection = 692,
|
|
708
|
+
MiscFilter = 693,
|
|
709
|
+
MiscPlayerNameDefault = 694,
|
|
710
|
+
MiscPlayerNameServer = 695,
|
|
711
|
+
MiscSaveNameDefault = 696,
|
|
712
|
+
MiscSaveNameDailyChallenge = 697,
|
|
713
|
+
MiscSaveNameChallenge = 698,
|
|
714
|
+
MiscSaveVersionUnknown = 699,
|
|
715
|
+
MiscVersion = 700,
|
|
716
|
+
MiscTime = 701,
|
|
717
|
+
MiscTimeMeridiem = 702,
|
|
718
|
+
MiscError = 703,
|
|
719
|
+
MiscContextMenuCopyTooltip = 704,
|
|
720
|
+
MiscBindableOr = 705,
|
|
721
|
+
MiscBindableNoBindings = 706,
|
|
722
|
+
DifficultyOptionsPeaceful = 707,
|
|
723
|
+
DifficultyOptionsAberrantSpawnsDisabled = 708,
|
|
724
|
+
DifficultyOptionsAberrantSpawnsOnly = 709,
|
|
725
|
+
DifficultyOptionsCreatureSpawningDisabled = 710,
|
|
726
|
+
DifficultyOptionsCreatureSpawnsDefault = 711,
|
|
727
|
+
DifficultyOptionsCreatureSpawnsAberrantOnly = 712,
|
|
728
|
+
DifficultyOptionsCreatureSpawnsNoAberrants = 713,
|
|
729
|
+
DifficultyOptionsSpawnLimit = 714,
|
|
730
|
+
DifficultyOptionsRespawn = 715,
|
|
731
|
+
DifficultyOptionsEternalNight = 716,
|
|
732
|
+
DifficultyOptionsEternalDay = 717,
|
|
733
|
+
DifficultyOptionsTimeInitial = 718,
|
|
734
|
+
DifficultyOptionsTimeFrozen = 719,
|
|
735
|
+
DifficultyOptionsTimeDayLength = 720,
|
|
736
|
+
DifficultyOptionsTimeDayPercent = 721,
|
|
737
|
+
DifficultyOptionsNoItems = 722,
|
|
738
|
+
DifficultyOptionsBenignityInitial = 723,
|
|
739
|
+
DifficultyOptionsBenignityMultiplier = 724,
|
|
740
|
+
DifficultyOptionsMalignityInitial = 725,
|
|
741
|
+
DifficultyOptionsMalignityMultiplier = 726,
|
|
742
|
+
DifficultyOptionsWeightBonus = 727,
|
|
743
|
+
DifficultyOptionsStatInitial = 728,
|
|
744
|
+
DifficultyOptionsStatMax = 729,
|
|
745
|
+
DifficultyOptionsStatMultiplier = 730,
|
|
746
|
+
DifficultyOptionsStatusEffectStartWith = 731,
|
|
747
|
+
DifficultyOptionsStatusEffectUntreatable = 732,
|
|
748
|
+
DifficultyOptionsStatusEffectPassChanceMultiplier = 733,
|
|
749
|
+
DifficultyOptionsNoRandomSkills = 734,
|
|
750
|
+
DifficultyOptionsSkillStartingCount = 735,
|
|
751
|
+
DifficultyOptionsSkillGainMultiplier = 736,
|
|
752
|
+
DifficultyOptionsSkillInitial = 737,
|
|
753
|
+
DifficultyOptionsStatusEffectPermanent = 738,
|
|
754
|
+
DifficultyOptionsStatusEffectRateMultiplier = 739,
|
|
755
|
+
DifficultyOptionsStatusEffectMultiplier = 740,
|
|
756
|
+
EquipmentBack = 741,
|
|
757
|
+
EquipmentBelt = 742,
|
|
758
|
+
EquipmentChest = 743,
|
|
759
|
+
EquipmentFeet = 744,
|
|
760
|
+
EquipmentHands = 745,
|
|
761
|
+
EquipmentHead = 746,
|
|
762
|
+
EquipmentLeftHand = 747,
|
|
763
|
+
EquipmentLeftHandOption = 748,
|
|
764
|
+
EquipmentLegs = 749,
|
|
765
|
+
EquipmentNeck = 750,
|
|
766
|
+
EquipmentRightHand = 751,
|
|
767
|
+
EquipmentRightHandOption = 752,
|
|
768
|
+
EquipmentUse = 753,
|
|
769
|
+
HudFilter = 754,
|
|
770
|
+
QuickSlot1 = 755,
|
|
771
|
+
QuickSlot10 = 756,
|
|
772
|
+
QuickSlot11 = 757,
|
|
773
|
+
QuickSlot12 = 758,
|
|
774
|
+
QuickSlot2 = 759,
|
|
775
|
+
QuickSlot3 = 760,
|
|
776
|
+
QuickSlot4 = 761,
|
|
777
|
+
QuickSlot5 = 762,
|
|
778
|
+
QuickSlot6 = 763,
|
|
779
|
+
QuickSlot7 = 764,
|
|
780
|
+
QuickSlot8 = 765,
|
|
781
|
+
QuickSlot9 = 766,
|
|
782
|
+
TabCrafting = 767,
|
|
783
|
+
TabDismantle = 768,
|
|
784
|
+
Version = 769,
|
|
785
|
+
WindowTitleContainer = 770,
|
|
786
|
+
WindowTitleCrafting = 771,
|
|
787
|
+
WindowTitleEquipment = 772,
|
|
788
|
+
WindowTitleInventory = 773
|
|
786
789
|
}
|
|
787
790
|
export default UiTranslation;
|
|
@@ -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;
|
|
@@ -14,6 +14,7 @@ import Menu from "ui/screen/screens/menu/component/Menu";
|
|
|
14
14
|
export default class ModesMenu extends Menu {
|
|
15
15
|
readonly turnMode: ChoiceListTurnMode;
|
|
16
16
|
readonly tickSpeed: RangeRow;
|
|
17
|
+
readonly maxTravelTime: RangeRow;
|
|
17
18
|
constructor();
|
|
18
19
|
protected refresh(): void;
|
|
19
20
|
private updateTurnModes;
|
|
@@ -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;
|
|
@@ -8,6 +8,6 @@
|
|
|
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
|
-
export declare const gameVersionStage = "beta", gameVersionMajor = 2, gameVersionMinor = 11, gameVersionPatch =
|
|
11
|
+
export declare const gameVersionStage = "beta", gameVersionMajor = 2, gameVersionMinor = 11, gameVersionPatch = 5, gameVersionName = "Horizons";
|
|
12
12
|
export declare const gameVersion: string;
|
|
13
13
|
export declare function registerGlobals(globalObject: any): void;
|
package/package.json
CHANGED