@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.
@@ -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
- updateGameUpdates(gameOptions: IGameOptions): void;
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?]>;
@@ -136,7 +136,8 @@ export declare enum ActionType {
136
136
  ToggleHitch = 101,
137
137
  ToggleDoor = 102,
138
138
  ToggleContainer = 103,
139
- UpdateOption = 104
139
+ UpdateOption = 104,
140
+ UpdateGameOption = 105
140
141
  }
141
142
  export declare enum ActionUsability {
142
143
  Paused = 0,
@@ -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/dictionary/UiTranslation").default | import("../../language/impl/TranslationImpl").default | (() => import("../../language/ITranslation").ISerializedTranslation | import("../../language/dictionary/UiTranslation").default | import("../../language/impl/TranslationImpl").default | Iterable<import("../../utilities/string/Interpolator").IStringSection> | undefined) | InfoProvider)[];
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(): (UiTranslation | import("../../../language/impl/TranslationImpl").default | InfoProvider)[];
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): UiTranslation.GameDialogMilestonesTooltipHidden | UiTranslation.GameDialogMilestonesTooltipInvisible | import("../../../language/impl/TranslationImpl").default;
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): (UiTranslation | import("../../../language/impl/TranslationImpl").default | import("game/inspection/InfoProvider").SimpleInfoProvider | CollapsableInfoProvider | UnlockableRowInfoProvider)[];
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
- MenuSharedButtonDefault = 679,
695
- MenuSharedValueMillseconds = 680,
696
- MenuSharedValuePercentage = 681,
697
- MenuSharedMilestonesNotUnlockable = 682,
698
- MenuSharedMilestonesNotUnlockableDescription = 683,
699
- MenuSharedMilestonesNotUnlockableButtonShowMods = 684,
700
- MenuSharedButtonDisableAll = 685,
701
- MenuSharedButtonEnableAll = 686,
702
- MenuSharedMilestoneModifiersSelected = 687,
703
- MiscSortBy = 688,
704
- MiscSortDirection = 689,
705
- MiscFilter = 690,
706
- MiscPlayerNameDefault = 691,
707
- MiscPlayerNameServer = 692,
708
- MiscSaveNameDefault = 693,
709
- MiscSaveNameDailyChallenge = 694,
710
- MiscSaveNameChallenge = 695,
711
- MiscSaveVersionUnknown = 696,
712
- MiscVersion = 697,
713
- MiscTime = 698,
714
- MiscTimeMeridiem = 699,
715
- MiscError = 700,
716
- MiscContextMenuCopyTooltip = 701,
717
- MiscBindableOr = 702,
718
- MiscBindableNoBindings = 703,
719
- DifficultyOptionsPeaceful = 704,
720
- DifficultyOptionsAberrantSpawnsDisabled = 705,
721
- DifficultyOptionsAberrantSpawnsOnly = 706,
722
- DifficultyOptionsCreatureSpawningDisabled = 707,
723
- DifficultyOptionsCreatureSpawnsDefault = 708,
724
- DifficultyOptionsCreatureSpawnsAberrantOnly = 709,
725
- DifficultyOptionsCreatureSpawnsNoAberrants = 710,
726
- DifficultyOptionsSpawnLimit = 711,
727
- DifficultyOptionsRespawn = 712,
728
- DifficultyOptionsEternalNight = 713,
729
- DifficultyOptionsEternalDay = 714,
730
- DifficultyOptionsTimeInitial = 715,
731
- DifficultyOptionsTimeFrozen = 716,
732
- DifficultyOptionsTimeDayLength = 717,
733
- DifficultyOptionsTimeDayPercent = 718,
734
- DifficultyOptionsNoItems = 719,
735
- DifficultyOptionsBenignityInitial = 720,
736
- DifficultyOptionsBenignityMultiplier = 721,
737
- DifficultyOptionsMalignityInitial = 722,
738
- DifficultyOptionsMalignityMultiplier = 723,
739
- DifficultyOptionsWeightBonus = 724,
740
- DifficultyOptionsStatInitial = 725,
741
- DifficultyOptionsStatMax = 726,
742
- DifficultyOptionsStatMultiplier = 727,
743
- DifficultyOptionsStatusEffectStartWith = 728,
744
- DifficultyOptionsStatusEffectUntreatable = 729,
745
- DifficultyOptionsStatusEffectPassChanceMultiplier = 730,
746
- DifficultyOptionsNoRandomSkills = 731,
747
- DifficultyOptionsSkillStartingCount = 732,
748
- DifficultyOptionsSkillGainMultiplier = 733,
749
- DifficultyOptionsSkillInitial = 734,
750
- DifficultyOptionsStatusEffectPermanent = 735,
751
- DifficultyOptionsStatusEffectRateMultiplier = 736,
752
- DifficultyOptionsStatusEffectMultiplier = 737,
753
- EquipmentBack = 738,
754
- EquipmentBelt = 739,
755
- EquipmentChest = 740,
756
- EquipmentFeet = 741,
757
- EquipmentHands = 742,
758
- EquipmentHead = 743,
759
- EquipmentLeftHand = 744,
760
- EquipmentLeftHandOption = 745,
761
- EquipmentLegs = 746,
762
- EquipmentNeck = 747,
763
- EquipmentRightHand = 748,
764
- EquipmentRightHandOption = 749,
765
- EquipmentUse = 750,
766
- HudFilter = 751,
767
- QuickSlot1 = 752,
768
- QuickSlot10 = 753,
769
- QuickSlot11 = 754,
770
- QuickSlot12 = 755,
771
- QuickSlot2 = 756,
772
- QuickSlot3 = 757,
773
- QuickSlot4 = 758,
774
- QuickSlot5 = 759,
775
- QuickSlot6 = 760,
776
- QuickSlot7 = 761,
777
- QuickSlot8 = 762,
778
- QuickSlot9 = 763,
779
- TabCrafting = 764,
780
- TabDismantle = 765,
781
- Version = 766,
782
- WindowTitleContainer = 767,
783
- WindowTitleCrafting = 768,
784
- WindowTitleEquipment = 769,
785
- WindowTitleInventory = 770
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/dictionary/UiTranslation").default | import("../../../../../language/impl/TranslationImpl").default | Iterable<import("../../../../../utilities/string/Interpolator").IStringSection> | undefined;
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 = 4, gameVersionName = "Horizons";
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wayward/types",
3
3
  "description": "TypeScript declarations for Wayward, used for modding.",
4
- "version": "2.11.4-beta.dev.20220227.1",
4
+ "version": "2.11.5-beta.dev.20220303.1",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",