@wayward/types 2.14.1-beta.dev.20241215.1 → 2.14.1-beta.dev.20241217.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.
Files changed (28) hide show
  1. package/definitions/game/game/biome/arid/mapGen/2.14.1.d.ts +12 -0
  2. package/definitions/game/game/biome/coastal/Coastal.d.ts +1 -1
  3. package/definitions/game/game/biome/coastal/mapGen/2.14.1.d.ts +12 -0
  4. package/definitions/game/game/biome/iceCap/mapGen/2.14.1.d.ts +12 -0
  5. package/definitions/game/game/biome/volcanic/mapGen/2.14.1.d.ts +12 -0
  6. package/definitions/game/game/biome/wetlands/mapGen/2.14.1.d.ts +12 -0
  7. package/definitions/game/game/deity/IDeities.d.ts +7 -0
  8. package/definitions/game/game/entity/IHuman.d.ts +0 -2
  9. package/definitions/game/game/entity/action/actions/moveItem/MoveItemFilterArgument.d.ts +1 -0
  10. package/definitions/game/game/entity/action/actions/moveItem/MoveItemOptionsArgument.d.ts +1 -0
  11. package/definitions/game/game/entity/creature/Creature.d.ts +1 -0
  12. package/definitions/game/game/entity/player/Player.d.ts +3 -0
  13. package/definitions/game/game/mapgen/version/2.14.1.d.ts +19 -0
  14. package/definitions/game/language/dictionary/UiTranslation.d.ts +183 -187
  15. package/definitions/game/multiplayer/IMultiplayer.d.ts +0 -1
  16. package/definitions/game/renderer/fieldOfView/FieldOfView.d.ts +6 -0
  17. package/definitions/game/save/data/ISaveDataGlobal.d.ts +0 -2
  18. package/definitions/game/ui/input/Bind.d.ts +21 -14
  19. package/definitions/game/ui/input/Bindable.d.ts +215 -213
  20. package/definitions/game/ui/input/IInput.d.ts +19 -0
  21. package/definitions/game/ui/screen/screens/game/component/ItemComponent.d.ts +1 -0
  22. package/definitions/game/ui/screen/screens/game/component/container/ContainerBucketItemList.d.ts +5 -0
  23. package/definitions/game/ui/screen/screens/game/static/ActionBar.d.ts +1 -0
  24. package/definitions/game/ui/screen/screens/game/static/actions/ActionSlot.d.ts +1 -0
  25. package/definitions/launcher/utilities/EventManager.d.ts +1 -3
  26. package/definitions/matchmakingserver/directoryConnection.d.ts +1 -0
  27. package/definitions/matchmakingserver/globalServerDirectory.d.ts +1 -0
  28. package/package.json +1 -1
@@ -0,0 +1,12 @@
1
+ /*!
2
+ * Copyright 2011-2024 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 type { IBiomeMapGen } from "@wayward/game/game/mapgen/IMapGen";
12
+ export declare const aridMapGen2141: IBiomeMapGen;
@@ -13,7 +13,7 @@ import type { IBiomeTemperature } from "@wayward/game/game/temperature/ITemperat
13
13
  import { TerrainType } from "@wayward/game/game/tile/ITerrain";
14
14
  declare const _default: {
15
15
  readonly defaultTerrainBackground: TerrainType.Dirt;
16
- readonly defaultCaveEntranceFlooring: TerrainType.Dirt;
16
+ readonly defaultCaveEntranceFlooring: TerrainType.Gravel;
17
17
  readonly fog: {
18
18
  color: import("@wayward/utilities/Color").IRGB;
19
19
  };
@@ -0,0 +1,12 @@
1
+ /*!
2
+ * Copyright 2011-2024 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 type { IBiomeMapGen } from "@wayward/game/game/mapgen/IMapGen";
12
+ export declare const coastalMapGen2141: IBiomeMapGen;
@@ -0,0 +1,12 @@
1
+ /*!
2
+ * Copyright 2011-2024 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 type { IBiomeMapGen } from "@wayward/game/game/mapgen/IMapGen";
12
+ export declare const iceCapMapGen2141: IBiomeMapGen;
@@ -0,0 +1,12 @@
1
+ /*!
2
+ * Copyright 2011-2024 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 type { IBiomeMapGen } from "@wayward/game/game/mapgen/IMapGen";
12
+ export declare const volcanicMapGen2141: IBiomeMapGen;
@@ -0,0 +1,12 @@
1
+ /*!
2
+ * Copyright 2011-2024 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 type { IBiomeMapGen } from "@wayward/game/game/mapgen/IMapGen";
12
+ export declare const wetlandsMapGen2141: IBiomeMapGen;
@@ -25,6 +25,13 @@ export declare const DEITY_RUNE_CHANCE_BASE_MAX = 0.1;
25
25
  * The theurgy chance is combined with the base chance in the rune dropping calculation.
26
26
  */
27
27
  export declare const DEITY_RUNE_CHANCE_THEURGY_MAX = 0.1;
28
+ /**
29
+ * The chance of a rune dropping from a zone is multiplied by this value for each tier of the zone.
30
+ * For example, if this is set to 0.5, a zone of tier 1 would have a 50% less of a chance of dropping a rune, and a zone of tier 2 would have no reduced chance at dropping a rune (since it would be at 1).
31
+ *
32
+ * Zone 0 will always have a 0% chance of dropping a rune.
33
+ */
34
+ export declare const DEITY_RUNE_CHANCE_ZONE_TIER_MULTIPLIER = 0.5;
28
35
  export interface IReadableAlignment {
29
36
  /**
30
37
  * The current Deity aligned to.
@@ -471,8 +471,6 @@ export interface ICrafted {
471
471
  newUnlock: boolean;
472
472
  }
473
473
  export interface ICheckUnderOptions {
474
- autoActions?: boolean;
475
- forcePickUp?: boolean;
476
474
  skipDoodadEvents?: boolean;
477
475
  burned?: boolean;
478
476
  }
@@ -17,6 +17,7 @@ import type Item from "@wayward/game/game/item/Item";
17
17
  import Translation from "@wayward/game/language/Translation";
18
18
  export interface IMoveItemFilterArgument {
19
19
  type?: ItemType;
20
+ moveLimit?: number;
20
21
  quality?: ArrayOr<Quality>;
21
22
  text?: string;
22
23
  excludeProtected?: boolean;
@@ -13,6 +13,7 @@ import { ActionArgumentCustom } from "@wayward/game/game/entity/action/argument/
13
13
  export interface IMoveItemOptionsArgument {
14
14
  isTrading?: boolean;
15
15
  skipSound?: boolean;
16
+ skipMessage?: boolean;
16
17
  }
17
18
  export declare class MoveItemOptionsArgument extends ActionArgumentCustom<IMoveItemOptionsArgument> {
18
19
  validate(executor: Entity | undefined, value: unknown): value is IMoveItemOptionsArgument;
@@ -85,6 +85,7 @@ export default class Creature extends EntityWithStats<ICreatureDescription, Crea
85
85
  getName(article?: Article, count?: number): Translation;
86
86
  protected getDescription(): ICreatureDescription | undefined;
87
87
  get isHostile(): boolean;
88
+ get canAlert(): boolean;
88
89
  get isHidden(): boolean;
89
90
  get isRetaliator(): boolean;
90
91
  get isTamed(): boolean;
@@ -86,6 +86,9 @@ export default class Player extends Human<undefined, number, ReferenceType.Playe
86
86
  updateMovementIntent(movementIntent: IMovementIntent): boolean;
87
87
  load(): void;
88
88
  unload(): void;
89
+ /**
90
+ * Note: This method should not do anything that could desync states in mp
91
+ */
89
92
  private onLoadOrUnload;
90
93
  setup(spawnTile: Tile, respawn: boolean): void;
91
94
  protected onNoInput(): void;
@@ -0,0 +1,19 @@
1
+ /*!
2
+ * Copyright 2011-2024 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 type { BiomeTypes } from "@wayward/game/game/biome/IBiome";
12
+ import type Island from "@wayward/game/game/island/Island";
13
+ import type IMapGen from "@wayward/game/game/mapgen/IMapGen";
14
+ import type { IMapGenGenerateOutput, IMapGenOptions } from "@wayward/game/game/mapgen/IMapGen";
15
+ import type { Load } from "@wayward/game/game/meta/Loading";
16
+ export default class MapGen2141 implements IMapGen {
17
+ generateWorld({ island, generateNewWorld, biomeType, biomeOptions, mapGenVersion, load, loadArgs }: IMapGenOptions): Promise<void>;
18
+ protected setupTiles(island: Island, generateNewWorld: boolean, biomeType: BiomeTypes, biomeOptions: unknown, load: Load | undefined, mapGenOutput: IMapGenGenerateOutput, tileGenArray: Uint16Array, tileGenQualityArray: Uint16Array, tileVariationArray: Uint16Array): void;
19
+ }
@@ -743,192 +743,188 @@ declare enum UiTranslation {
743
743
  MenuOptionsButtonDisableMovementAnimationsTooltip = 728,
744
744
  MenuOptionsButtonAutoAttack = 729,
745
745
  MenuOptionsButtonAutoAttackTooltip = 730,
746
- MenuOptionsButtonAutoPickUp = 731,
747
- MenuOptionsButtonAutoPickUpTooltip = 732,
748
- MenuOptionsButtonAutoPickUpOnIdle = 733,
749
- MenuOptionsButtonAutoPickUpOnIdleTooltip = 734,
750
- MenuOptionsButtonDropOnDismantle = 735,
751
- MenuOptionsButtonDropOnDismantleTooltip = 736,
752
- MenuOptionsButtonDropOnDisassemble = 737,
753
- MenuOptionsButtonDropOnDisassembleTooltip = 738,
754
- MenuOptionsButtonDisableCraftingProtectedItems = 739,
755
- MenuOptionsButtonDisableCraftingProtectedItemsTooltip = 740,
756
- MenuOptionsButtonDropOnGatherHarvest = 741,
757
- MenuOptionsButtonDropOnGatherHarvestTooltip = 742,
758
- MenuOptionsButtonUseAdjacentContainers = 743,
759
- MenuOptionsButtonUseAdjacentContainersTooltip = 744,
760
- MenuOptionsButtonHideEquippedHeadgear = 745,
761
- MenuOptionsButtonHideEquippedHeadgearTooltip = 746,
762
- MenuOptionsButtonDisableItemNotifiers = 747,
763
- MenuOptionsButtonDisableItemNotifiersTooltip = 748,
764
- MenuOptionsButtonLeftHanded = 749,
765
- MenuOptionsButtonLeftHandedTooltip = 750,
766
- MenuOptionsButtonAutoSave = 751,
767
- MenuOptionsRangeAutoSaveTimerLabel = 752,
768
- MenuOptionsRangeAutoSaveTimerTurnsDisplay = 753,
769
- MenuOptionsRangeAutoSaveTimerTimeDisplay = 754,
770
- MenuOptionsButtonDropIntoContainers = 755,
771
- MenuOptionsButtonDropIntoContainersTooltip = 756,
772
- MenuOptionsButtonWarnOnDangerousActions = 757,
773
- MenuOptionsButtonWarnOnDangerousActionsTooltip = 758,
774
- MenuOptionsButtonWarnOnDestructiveActions = 759,
775
- MenuOptionsButtonWarnOnDestructiveActionsTooltip = 760,
776
- MenuOptionsButtonWarnWhenBreakingItemsOnCraft = 761,
777
- MenuOptionsButtonWarnWhenBreakingItemsOnCraftTooltip = 762,
778
- MenuOptionsButtonWarnWhenBreakingItemsOnUse = 763,
779
- MenuOptionsButtonWarnWhenBreakingItemsOnUseTooltip = 764,
780
- MenuOptionsHeadingWarnWhenBreakingItems = 765,
781
- MenuOptionsButtonSaveDataClearBindings = 766,
782
- MenuOptionsButtonDisableMilestones = 767,
783
- MenuOptionsLabelSaveDataRemoval = 768,
784
- MenuOptionsTooltipDialogOpacity = 769,
785
- MenuOptionsLabelDialogOpacity = 770,
786
- MenuOptionsDeveloperSteamBetas = 771,
787
- MenuOptionsDeveloperSteamBetaName = 772,
788
- MenuOptionsDeveloperLogSourceFilterHeading = 773,
789
- MenuOptionsDeveloperUIExperiments = 774,
790
- MenuOptionsDeveloperUIExperimentsDescription = 775,
791
- MenuOptionsAudioVolumeDisplay = 776,
792
- MenuOptionsAudioInputSoundOnTyping = 777,
793
- MenuOptionsAudioPlayAudioInBackground = 778,
794
- MenuOptionsMusicPlaylist = 779,
795
- MenuOptionsButtonConfigureBindings = 780,
796
- MenuOptionsButtonSaveCompression = 781,
797
- MenuOptionsButtonSaveCompressionTooltip = 782,
798
- MenuOptionsButtonSaveUIDataGlobally = 783,
799
- MenuOptionsButtonSaveUIDataGloballyTooltip = 784,
800
- MenuPauseButtonContinueGame = 785,
801
- MenuPauseButtonReturnToGame = 786,
802
- MenuPauseButtonOptions = 787,
803
- MenuPauseButtonGameSettings = 788,
804
- MenuPauseButtonPaused = 789,
805
- MenuPauseButtonMultiplayer = 790,
806
- MenuPauseButtonHelp = 791,
807
- MenuPauseButtonTitleScreen = 792,
808
- MenuPauseButtonStopServer = 793,
809
- MenuPauseButtonQuitWithoutSaving = 794,
810
- MenuPauseTooltipNotPaused = 795,
811
- MenuPauseLabelPaused = 796,
812
- MenuPauseLabelNotPaused = 797,
813
- MenuModesTitle = 798,
814
- MenuModesDescription = 799,
815
- MenuMultiplayerOptionsTitle = 800,
816
- MenuMultiplayerOptionsDescription = 801,
817
- MenuMultiplayerOptionsOpenServer = 802,
818
- MenuMultiplayerOptionsOpenServerDescription = 803,
819
- MenuMultiplayerOptionsCopyGameCode = 804,
820
- MenuMultiplayerOptionsCopyGameCodeTooltip = 805,
821
- MenuMultiplayerOptionsInviteSteamFriends = 806,
822
- MenuMultiplayerOptionsCheckConnectionHeading = 807,
823
- MenuMultiplayerOptionsCheckConnectionParagraph = 808,
824
- MenuMultiplayerOptionsCheckConnectionButton = 809,
825
- MenuMultiplayerOptionsCheckConnectionResultUnknown = 810,
826
- MenuMultiplayerOptionsCheckConnectionResultChecking = 811,
827
- MenuMultiplayerOptionsCheckConnectionResultSteamRelayNetwork = 812,
828
- MenuMultiplayerOptionsCheckConnectionResultSteamRelayNetworkFail = 813,
829
- MenuMultiplayerOptionsCheckConnectionResultSteamRelayNetworkUnavailable = 814,
830
- MenuMultiplayerOptionsCheckConnectionResultWebSocket = 815,
831
- MenuMultiplayerOptionsCheckConnectionResultWebSocketFail = 816,
832
- MenuMultiplayerOptionsCheckConnectionResultWebSocketUnavailable = 817,
833
- MenuMultiplayerOptionsCheckConnectionResultSuccess = 818,
834
- MenuJoinServerTitle = 819,
835
- MenuJoinServerDescription = 820,
836
- MenuJoinServerInputPlaceholder = 821,
837
- MenuJoinServerChooseModifiersTitle = 822,
838
- MenuJoinServerChooseModifiersDescription = 823,
839
- MenuSharedMultiplayerChoiceLobbyTypeFriends = 824,
840
- MenuSharedMultiplayerChoiceLobbyTypeFriendsDescription = 825,
841
- MenuSharedMultiplayerChoiceLobbyTypePublic = 826,
842
- MenuSharedMultiplayerChoiceLobbyTypePublicDescription = 827,
843
- MenuSharedMultiplayerChoiceLobbyTypePrivate = 828,
844
- MenuSharedMultiplayerChoiceLobbyTypePrivateDescription = 829,
845
- MenuSharedMultiplayerChoicePVP = 830,
846
- MenuSharedMultiplayerChoicePVPDescription = 831,
847
- MenuSharedMultiplayerChoiceAllowTraveling = 832,
848
- MenuSharedMultiplayerChoiceAllowTravelingDescription = 833,
849
- MenuSharedMultiplayerChoiceAllowHardcoreRespawns = 834,
850
- MenuSharedMultiplayerChoiceAllowHardcoreRespawnsDescription = 835,
851
- MenuSharedMultiplayerChoicePauseOnDesync = 836,
852
- MenuSharedMultiplayerChoicePauseOnDesyncDescription = 837,
853
- MenuSharedMultiplayerDescription = 838,
854
- MenuSharedMultiplayerMessageOfTheDay = 839,
855
- MenuSharedMultiplayerMaxPlayers = 840,
856
- MenuSharedRealTimeTickSpeedTooltip = 841,
857
- MenuSharedRealTimeTickSpeedLabel = 842,
858
- MenuSharedButtonDefault = 843,
859
- MenuSharedValueSeconds = 844,
860
- MenuSharedValueMilliseconds = 845,
861
- MenuSharedValuePercentage = 846,
862
- MenuSharedMilestonesNotUnlockable = 847,
863
- MenuSharedMilestonesNotUnlockableDescription = 848,
864
- MenuSharedMilestonesNotUnlockableButtonShowMods = 849,
865
- MenuSharedButtonDisableAll = 850,
866
- MenuSharedButtonEnableAll = 851,
867
- MenuSharedMilestoneModifiersSelected = 852,
868
- MiscSortBy = 853,
869
- MiscSortCustom = 854,
870
- MiscSortDirection = 855,
871
- MiscFilter = 856,
872
- MiscNone = 857,
873
- MiscPlayerNameDefault = 858,
874
- MiscPlayerNameServer = 859,
875
- MiscSaveNameDefault = 860,
876
- MiscSaveNameDailyChallenge = 861,
877
- MiscSaveNameChallenge = 862,
878
- MiscSaveVersionUnknown = 863,
879
- MiscVersion = 864,
880
- MiscVersionBuildInfoTooltip = 865,
881
- MiscVersionUpdate = 866,
882
- MiscTime = 867,
883
- MiscTimeMeridiem = 868,
884
- MiscError = 869,
885
- MiscContextMenuCopyTooltip = 870,
886
- MiscBindableNoBindings = 871,
887
- MiscBindingIcon = 872,
888
- MiscBindingIconThen = 873,
889
- DifficultyOptionsPeaceful = 874,
890
- DifficultyOptionsAberrantSpawnsDisabled = 875,
891
- DifficultyOptionsAberrantSpawnsOnly = 876,
892
- DifficultyOptionsCreatureSpawningDisabled = 877,
893
- DifficultyOptionsCreatureAlwaysSpawns = 878,
894
- DifficultyOptionsCreatureSpawnsDefault = 879,
895
- DifficultyOptionsCreatureSpawnsAberrantOnly = 880,
896
- DifficultyOptionsCreatureSpawnsNoAberrants = 881,
897
- DifficultyOptionsSpawnLimit = 882,
898
- DifficultyOptionsSpawnRateMultiplier = 883,
899
- DifficultyOptionsDisableScared = 884,
900
- DifficultyOptionsRespawn = 885,
901
- DifficultyOptionsEternalNight = 886,
902
- DifficultyOptionsEternalDay = 887,
903
- DifficultyOptionsTimeInitial = 888,
904
- DifficultyOptionsTimeFrozen = 889,
905
- DifficultyOptionsTimeDayLength = 890,
906
- DifficultyOptionsTimeDayPercent = 891,
907
- DifficultyOptionsNoItems = 892,
908
- DifficultyOptionsRecipes = 893,
909
- DifficultyOptionsStartingIsland = 894,
910
- DifficultyOptionsTravelingEffectsDisabled = 895,
911
- DifficultyOptionsLuck = 896,
912
- DifficultyOptionsWeightBonus = 897,
913
- DifficultyOptionsStatInitial = 898,
914
- DifficultyOptionsStatMax = 899,
915
- DifficultyOptionsStatMultiplier = 900,
916
- DifficultyOptionsStatusStartWith = 901,
917
- DifficultyOptionsStatusUntreatable = 902,
918
- DifficultyOptionsStatusPassChanceMultiplier = 903,
919
- DifficultyOptionsNoRandomSkills = 904,
920
- DifficultyOptionsSkillStartingCount = 905,
921
- DifficultyOptionsSkillGainMultiplier = 906,
922
- DifficultyOptionsSkillInitial = 907,
923
- DifficultyOptionsStatusPermanent = 908,
924
- DifficultyOptionsStatusRateMultiplier = 909,
925
- DifficultyOptionsStatusMultiplier = 910,
926
- DifficultyOptionsItemDurabilityMultiplier = 911,
927
- DifficultyOptionsItemDecayMultiplier = 912,
928
- DifficultyOptionsTileContainersEnabled = 913,
929
- TabCrafting = 914,
930
- TabDismantle = 915,
931
- WindowTitleContainer = 916,
932
- WindowTitleInventory = 917
746
+ MenuOptionsButtonDropOnDismantle = 731,
747
+ MenuOptionsButtonDropOnDismantleTooltip = 732,
748
+ MenuOptionsButtonDropOnDisassemble = 733,
749
+ MenuOptionsButtonDropOnDisassembleTooltip = 734,
750
+ MenuOptionsButtonDisableCraftingProtectedItems = 735,
751
+ MenuOptionsButtonDisableCraftingProtectedItemsTooltip = 736,
752
+ MenuOptionsButtonDropOnGatherHarvest = 737,
753
+ MenuOptionsButtonDropOnGatherHarvestTooltip = 738,
754
+ MenuOptionsButtonUseAdjacentContainers = 739,
755
+ MenuOptionsButtonUseAdjacentContainersTooltip = 740,
756
+ MenuOptionsButtonHideEquippedHeadgear = 741,
757
+ MenuOptionsButtonHideEquippedHeadgearTooltip = 742,
758
+ MenuOptionsButtonDisableItemNotifiers = 743,
759
+ MenuOptionsButtonDisableItemNotifiersTooltip = 744,
760
+ MenuOptionsButtonLeftHanded = 745,
761
+ MenuOptionsButtonLeftHandedTooltip = 746,
762
+ MenuOptionsButtonAutoSave = 747,
763
+ MenuOptionsRangeAutoSaveTimerLabel = 748,
764
+ MenuOptionsRangeAutoSaveTimerTurnsDisplay = 749,
765
+ MenuOptionsRangeAutoSaveTimerTimeDisplay = 750,
766
+ MenuOptionsButtonDropIntoContainers = 751,
767
+ MenuOptionsButtonDropIntoContainersTooltip = 752,
768
+ MenuOptionsButtonWarnOnDangerousActions = 753,
769
+ MenuOptionsButtonWarnOnDangerousActionsTooltip = 754,
770
+ MenuOptionsButtonWarnOnDestructiveActions = 755,
771
+ MenuOptionsButtonWarnOnDestructiveActionsTooltip = 756,
772
+ MenuOptionsButtonWarnWhenBreakingItemsOnCraft = 757,
773
+ MenuOptionsButtonWarnWhenBreakingItemsOnCraftTooltip = 758,
774
+ MenuOptionsButtonWarnWhenBreakingItemsOnUse = 759,
775
+ MenuOptionsButtonWarnWhenBreakingItemsOnUseTooltip = 760,
776
+ MenuOptionsHeadingWarnWhenBreakingItems = 761,
777
+ MenuOptionsButtonSaveDataClearBindings = 762,
778
+ MenuOptionsButtonDisableMilestones = 763,
779
+ MenuOptionsLabelSaveDataRemoval = 764,
780
+ MenuOptionsTooltipDialogOpacity = 765,
781
+ MenuOptionsLabelDialogOpacity = 766,
782
+ MenuOptionsDeveloperSteamBetas = 767,
783
+ MenuOptionsDeveloperSteamBetaName = 768,
784
+ MenuOptionsDeveloperLogSourceFilterHeading = 769,
785
+ MenuOptionsDeveloperUIExperiments = 770,
786
+ MenuOptionsDeveloperUIExperimentsDescription = 771,
787
+ MenuOptionsAudioVolumeDisplay = 772,
788
+ MenuOptionsAudioInputSoundOnTyping = 773,
789
+ MenuOptionsAudioPlayAudioInBackground = 774,
790
+ MenuOptionsMusicPlaylist = 775,
791
+ MenuOptionsButtonConfigureBindings = 776,
792
+ MenuOptionsButtonSaveCompression = 777,
793
+ MenuOptionsButtonSaveCompressionTooltip = 778,
794
+ MenuOptionsButtonSaveUIDataGlobally = 779,
795
+ MenuOptionsButtonSaveUIDataGloballyTooltip = 780,
796
+ MenuPauseButtonContinueGame = 781,
797
+ MenuPauseButtonReturnToGame = 782,
798
+ MenuPauseButtonOptions = 783,
799
+ MenuPauseButtonGameSettings = 784,
800
+ MenuPauseButtonPaused = 785,
801
+ MenuPauseButtonMultiplayer = 786,
802
+ MenuPauseButtonHelp = 787,
803
+ MenuPauseButtonTitleScreen = 788,
804
+ MenuPauseButtonStopServer = 789,
805
+ MenuPauseButtonQuitWithoutSaving = 790,
806
+ MenuPauseTooltipNotPaused = 791,
807
+ MenuPauseLabelPaused = 792,
808
+ MenuPauseLabelNotPaused = 793,
809
+ MenuModesTitle = 794,
810
+ MenuModesDescription = 795,
811
+ MenuMultiplayerOptionsTitle = 796,
812
+ MenuMultiplayerOptionsDescription = 797,
813
+ MenuMultiplayerOptionsOpenServer = 798,
814
+ MenuMultiplayerOptionsOpenServerDescription = 799,
815
+ MenuMultiplayerOptionsCopyGameCode = 800,
816
+ MenuMultiplayerOptionsCopyGameCodeTooltip = 801,
817
+ MenuMultiplayerOptionsInviteSteamFriends = 802,
818
+ MenuMultiplayerOptionsCheckConnectionHeading = 803,
819
+ MenuMultiplayerOptionsCheckConnectionParagraph = 804,
820
+ MenuMultiplayerOptionsCheckConnectionButton = 805,
821
+ MenuMultiplayerOptionsCheckConnectionResultUnknown = 806,
822
+ MenuMultiplayerOptionsCheckConnectionResultChecking = 807,
823
+ MenuMultiplayerOptionsCheckConnectionResultSteamRelayNetwork = 808,
824
+ MenuMultiplayerOptionsCheckConnectionResultSteamRelayNetworkFail = 809,
825
+ MenuMultiplayerOptionsCheckConnectionResultSteamRelayNetworkUnavailable = 810,
826
+ MenuMultiplayerOptionsCheckConnectionResultWebSocket = 811,
827
+ MenuMultiplayerOptionsCheckConnectionResultWebSocketFail = 812,
828
+ MenuMultiplayerOptionsCheckConnectionResultWebSocketUnavailable = 813,
829
+ MenuMultiplayerOptionsCheckConnectionResultSuccess = 814,
830
+ MenuJoinServerTitle = 815,
831
+ MenuJoinServerDescription = 816,
832
+ MenuJoinServerInputPlaceholder = 817,
833
+ MenuJoinServerChooseModifiersTitle = 818,
834
+ MenuJoinServerChooseModifiersDescription = 819,
835
+ MenuSharedMultiplayerChoiceLobbyTypeFriends = 820,
836
+ MenuSharedMultiplayerChoiceLobbyTypeFriendsDescription = 821,
837
+ MenuSharedMultiplayerChoiceLobbyTypePublic = 822,
838
+ MenuSharedMultiplayerChoiceLobbyTypePublicDescription = 823,
839
+ MenuSharedMultiplayerChoiceLobbyTypePrivate = 824,
840
+ MenuSharedMultiplayerChoiceLobbyTypePrivateDescription = 825,
841
+ MenuSharedMultiplayerChoicePVP = 826,
842
+ MenuSharedMultiplayerChoicePVPDescription = 827,
843
+ MenuSharedMultiplayerChoiceAllowTraveling = 828,
844
+ MenuSharedMultiplayerChoiceAllowTravelingDescription = 829,
845
+ MenuSharedMultiplayerChoiceAllowHardcoreRespawns = 830,
846
+ MenuSharedMultiplayerChoiceAllowHardcoreRespawnsDescription = 831,
847
+ MenuSharedMultiplayerChoicePauseOnDesync = 832,
848
+ MenuSharedMultiplayerChoicePauseOnDesyncDescription = 833,
849
+ MenuSharedMultiplayerDescription = 834,
850
+ MenuSharedMultiplayerMessageOfTheDay = 835,
851
+ MenuSharedMultiplayerMaxPlayers = 836,
852
+ MenuSharedRealTimeTickSpeedTooltip = 837,
853
+ MenuSharedRealTimeTickSpeedLabel = 838,
854
+ MenuSharedButtonDefault = 839,
855
+ MenuSharedValueSeconds = 840,
856
+ MenuSharedValueMilliseconds = 841,
857
+ MenuSharedValuePercentage = 842,
858
+ MenuSharedMilestonesNotUnlockable = 843,
859
+ MenuSharedMilestonesNotUnlockableDescription = 844,
860
+ MenuSharedMilestonesNotUnlockableButtonShowMods = 845,
861
+ MenuSharedButtonDisableAll = 846,
862
+ MenuSharedButtonEnableAll = 847,
863
+ MenuSharedMilestoneModifiersSelected = 848,
864
+ MiscSortBy = 849,
865
+ MiscSortCustom = 850,
866
+ MiscSortDirection = 851,
867
+ MiscFilter = 852,
868
+ MiscNone = 853,
869
+ MiscPlayerNameDefault = 854,
870
+ MiscPlayerNameServer = 855,
871
+ MiscSaveNameDefault = 856,
872
+ MiscSaveNameDailyChallenge = 857,
873
+ MiscSaveNameChallenge = 858,
874
+ MiscSaveVersionUnknown = 859,
875
+ MiscVersion = 860,
876
+ MiscVersionBuildInfoTooltip = 861,
877
+ MiscVersionUpdate = 862,
878
+ MiscTime = 863,
879
+ MiscTimeMeridiem = 864,
880
+ MiscError = 865,
881
+ MiscContextMenuCopyTooltip = 866,
882
+ MiscBindableNoBindings = 867,
883
+ MiscBindingIcon = 868,
884
+ MiscBindingIconThen = 869,
885
+ DifficultyOptionsPeaceful = 870,
886
+ DifficultyOptionsAberrantSpawnsDisabled = 871,
887
+ DifficultyOptionsAberrantSpawnsOnly = 872,
888
+ DifficultyOptionsCreatureSpawningDisabled = 873,
889
+ DifficultyOptionsCreatureAlwaysSpawns = 874,
890
+ DifficultyOptionsCreatureSpawnsDefault = 875,
891
+ DifficultyOptionsCreatureSpawnsAberrantOnly = 876,
892
+ DifficultyOptionsCreatureSpawnsNoAberrants = 877,
893
+ DifficultyOptionsSpawnLimit = 878,
894
+ DifficultyOptionsSpawnRateMultiplier = 879,
895
+ DifficultyOptionsDisableScared = 880,
896
+ DifficultyOptionsRespawn = 881,
897
+ DifficultyOptionsEternalNight = 882,
898
+ DifficultyOptionsEternalDay = 883,
899
+ DifficultyOptionsTimeInitial = 884,
900
+ DifficultyOptionsTimeFrozen = 885,
901
+ DifficultyOptionsTimeDayLength = 886,
902
+ DifficultyOptionsTimeDayPercent = 887,
903
+ DifficultyOptionsNoItems = 888,
904
+ DifficultyOptionsRecipes = 889,
905
+ DifficultyOptionsStartingIsland = 890,
906
+ DifficultyOptionsTravelingEffectsDisabled = 891,
907
+ DifficultyOptionsLuck = 892,
908
+ DifficultyOptionsWeightBonus = 893,
909
+ DifficultyOptionsStatInitial = 894,
910
+ DifficultyOptionsStatMax = 895,
911
+ DifficultyOptionsStatMultiplier = 896,
912
+ DifficultyOptionsStatusStartWith = 897,
913
+ DifficultyOptionsStatusUntreatable = 898,
914
+ DifficultyOptionsStatusPassChanceMultiplier = 899,
915
+ DifficultyOptionsNoRandomSkills = 900,
916
+ DifficultyOptionsSkillStartingCount = 901,
917
+ DifficultyOptionsSkillGainMultiplier = 902,
918
+ DifficultyOptionsSkillInitial = 903,
919
+ DifficultyOptionsStatusPermanent = 904,
920
+ DifficultyOptionsStatusRateMultiplier = 905,
921
+ DifficultyOptionsStatusMultiplier = 906,
922
+ DifficultyOptionsItemDurabilityMultiplier = 907,
923
+ DifficultyOptionsItemDecayMultiplier = 908,
924
+ DifficultyOptionsTileContainersEnabled = 909,
925
+ TabCrafting = 910,
926
+ TabDismantle = 911,
927
+ WindowTitleContainer = 912,
928
+ WindowTitleInventory = 913
933
929
  }
934
930
  export default UiTranslation;
@@ -171,7 +171,6 @@ export declare enum PacketAcceptType {
171
171
  }
172
172
  export interface IMultiplayerWorldData {
173
173
  pid: number;
174
- playerCount: number;
175
174
  mods: IMultiplayerMod[];
176
175
  multiplayerOptions: IMultiplayerOptions;
177
176
  difficulty: GameMode;
@@ -58,6 +58,12 @@ export declare class FieldOfView extends EventEmitter.Host<IFieldOfViewEvents> {
58
58
  startTransition(timeStamp: number): void;
59
59
  updateTransitionProgress(timeStamp: number): boolean;
60
60
  resetTransitionProgress(): void;
61
+ /**
62
+ * Updates the explored map at the edge of the field of view. It becomes revealed as the player moves (from 0 -> 255 alpha).
63
+ * Set both params to undefined to fully set in-progress transitions to fully revealed
64
+ * @param timeStamp request animation frame timeout
65
+ * @param movementTime local players movement
66
+ */
61
67
  private processExploredMapTransition;
62
68
  compute(timeStamp: number, force?: boolean, skipTransition?: boolean): boolean;
63
69
  /**
@@ -21,8 +21,6 @@ import type UiExperiment from "@wayward/game/ui/UiExperiments";
21
21
  export interface IOptions {
22
22
  alternatingDirectionMovement: boolean;
23
23
  autoAttack: boolean;
24
- autoPickup: boolean;
25
- autoPickupOnIdle: boolean;
26
24
  autoSave: [AutoSaveMode.Off] | [AutoSaveMode.Turns | AutoSaveMode.Time, number];
27
25
  /**
28
26
  * Indexed by `Bindable` names, IE `GameFaceDirection`
@@ -11,6 +11,7 @@
11
11
  import Bindable from "@wayward/game/ui/input/Bindable";
12
12
  import { IInput } from "@wayward/game/ui/input/IInput";
13
13
  import type { GlobalInputInfo, GlobalMouseInfo, InputInfo } from "@wayward/game/ui/input/InputManager";
14
+ import type { Macro } from "@wayward/game/ui/input/Macros";
14
15
  import type { TypedPropertyDescriptorFunctionAnyNOfParams } from "@wayward/utilities/event/EventManager";
15
16
  export interface IBindHandlerApi {
16
17
  /**
@@ -20,7 +21,7 @@ export interface IBindHandlerApi {
20
21
  /**
21
22
  * The bindable this handler is called for.
22
23
  */
23
- bindable: Bindable | "anything";
24
+ bindable: Bindable | "anything" | "nothing";
24
25
  /**
25
26
  * The type of input event.
26
27
  * - `"down"` — When the bindable is pressed.
@@ -51,10 +52,12 @@ export interface IBindHandlerApi {
51
52
  * Whether this event is cancelled. If `true`, no other bind handlers will be processed.
52
53
  */
53
54
  cancelled: boolean;
55
+ /** The current input sequence */
56
+ macro?: Macro;
54
57
  }
55
58
  export type BindingHandler<R = boolean> = (api: IBindHandlerApi) => R;
56
59
  interface IBindHandlerRegistration<T extends Record<P, BindingHandler>, P extends string | number | symbol> {
57
- bindable: Bindable | "anything";
60
+ bindable: Bindable | "anything" | "nothing";
58
61
  modifiersOnly: boolean;
59
62
  event: BindingEvent;
60
63
  priority: number;
@@ -87,13 +90,19 @@ declare namespace Bind {
87
90
  * @param priority The "priority" of this handler compared to other handlers. Higher priorities are executed first.
88
91
  */
89
92
  function onDown(bindable: "anything", priority?: number): (host: any, property2: string | number | symbol, descriptor: TypedPropertyDescriptorFunctionAnyNOfParams<BindingHandler<any>>) => void;
93
+ /**
94
+ * Registers a handler for when nothing is pressed.
95
+ * @param bindable Must be the string `"nothing"`.
96
+ * @param priority The "priority" of this handler compared to other handlers. Higher priorities are executed first.
97
+ */
98
+ function onDown(bindable: "nothing", priority?: number): (host: any, property2: string | number | symbol, descriptor: TypedPropertyDescriptorFunctionAnyNOfParams<BindingHandler<any>>) => void;
90
99
  /**
91
100
  * Registers a handler for when the given `Bindable`, or "anything" is pressed. This handler will *always* be executed, even if other handlers also matched the catalyst.
92
101
  * @param bindable The `Bindable`, or the string `"anything"` (to handle when *anything* is pressed).
93
102
  * @param priority The "priority" of this handler compared to other handlers. Higher priorities are executed first.
94
103
  * @param always Must be `true`.
95
104
  */
96
- function onDown(bindable: Bindable | "anything", priority: number | undefined, always: true): (host: any, property2: string | number | symbol, descriptor: TypedPropertyDescriptorFunctionAnyNOfParams<BindingHandler<any>>) => void;
105
+ function onDown(bindable: Bindable | "anything" | "nothing", priority: number | undefined, always: true): (host: any, property2: string | number | symbol, descriptor: TypedPropertyDescriptorFunctionAnyNOfParams<BindingHandler<any>>) => void;
97
106
  /**
98
107
  * Registers a handler for when the given `Bindable` is released.
99
108
  * @param bindable The `Bindable`.
@@ -125,20 +134,18 @@ declare namespace Bind {
125
134
  */
126
135
  function onHolding(bindable: Bindable | "anything", priority: number | undefined, always: true): (host: any, property2: string | number | symbol, descriptor: TypedPropertyDescriptorFunctionAnyNOfParams<BindingHandler<any>>) => void;
127
136
  function addHandler(bindable: Bindable, event: BindingEventName, handler: BindingHandler, priority?: number): void;
128
- function addHandler(bindable: "anything", event: BindingEventName, handler: BindingHandler<void>, priority?: number): void;
129
- function addHandler(bindable: Bindable | "anything", event: BindingEventName, handler: BindingHandler<void>, priority: number | undefined, always: true): void;
137
+ function addHandler(bindable: "anything" | "nothing", event: BindingEventName, handler: BindingHandler<void>, priority?: number): void;
138
+ function addHandler(bindable: Bindable | "anything" | "nothing", event: BindingEventName, handler: BindingHandler<void>, priority: number | undefined, always: true): void;
130
139
  function addHandler<T extends Record<K, BindingHandler>, K extends keyof T>(bindable: Bindable, event: BindingEventName, obj: T, key: K, priority?: number): void;
131
- function addHandler<T extends Record<K, BindingHandler<void>>, K extends keyof T>(bindable: "anything", event: BindingEventName, obj: T, key: K, priority?: number): void;
132
- function addHandler<T extends Record<K, BindingHandler<void>>, K extends keyof T>(bindable: Bindable | "anything", event: BindingEventName, obj: T, key: K, priority: number | undefined, always: true): void;
140
+ function addHandler<T extends Record<K, BindingHandler<void>>, K extends keyof T>(bindable: "anything" | "nothing", event: BindingEventName, obj: T, key: K, priority?: number): void;
141
+ function addHandler<T extends Record<K, BindingHandler<void>>, K extends keyof T>(bindable: Bindable | "anything" | "nothing", event: BindingEventName, obj: T, key: K, priority: number | undefined, always: true): void;
133
142
  function removeHandler(bindable: Bindable, event: BindingEventName, handler: BindingHandler, priority?: number): void;
134
- function removeHandler(bindable: "anything", event: BindingEventName, handler: BindingHandler<void>, priority?: number): void;
135
- function removeHandler(bindable: Bindable | "anything", event: BindingEventName, handler: BindingHandler<void>, priority: number | undefined, always: true): void;
143
+ function removeHandler(bindable: "anything" | "nothing", event: BindingEventName, handler: BindingHandler<void>, priority?: number): void;
144
+ function removeHandler(bindable: Bindable | "anything" | "nothing", event: BindingEventName, handler: BindingHandler<void>, priority: number | undefined, always: true): void;
136
145
  function removeHandler<T extends Record<K, BindingHandler>, K extends keyof T>(bindable: Bindable, event: BindingEventName, obj: T, key: K, priority?: number): void;
137
- function removeHandler<T extends Record<K, BindingHandler<void>>, K extends keyof T>(bindable: "anything", event: BindingEventName, obj: T, key: K, priority?: number): void;
138
- function removeHandler<T extends Record<K, BindingHandler<void>>, K extends keyof T>(bindable: Bindable | "anything", event: BindingEventName, obj: T, key: K, priority: number | undefined, always: true): void;
139
- type HandlerRegistrationGeneric = IBindHandlerRegistration<{
140
- [K in string | number]: BindingHandler;
141
- }, string | number>;
146
+ function removeHandler<T extends Record<K, BindingHandler<void>>, K extends keyof T>(bindable: "anything" | "nothing", event: BindingEventName, obj: T, key: K, priority?: number): void;
147
+ function removeHandler<T extends Record<K, BindingHandler<void>>, K extends keyof T>(bindable: Bindable | "anything" | "nothing", event: BindingEventName, obj: T, key: K, priority: number | undefined, always: true): void;
148
+ type HandlerRegistrationGeneric = IBindHandlerRegistration<Record<string | number, BindingHandler>, string | number>;
142
149
  /**
143
150
  * Registers bind handlers for the given class instance. (Bind handlers are methods decorated with `@Bind.onDown`, `@Bind.onHolding`, `@Bind.onUp`)
144
151
  */
@@ -39,219 +39,221 @@ declare enum Bindable {
39
39
  GameItemQuickMove = 20,
40
40
  GameItemQuickMoveAll = 21,
41
41
  GameItemQuickMoveAllByQuality = 22,
42
- GameItemDrop = 23,
43
- GameItemDropAll = 24,
44
- GameItemDropAllByQuality = 25,
45
- GameItemEquipToggle = 26,
46
- GameItemProtectToggle = 27,
47
- GameItemOpen = 28,
48
- GameItemToggleStacked = 29,
49
- GameItemToggleStackOpen = 30,
50
- GameInspect = 31,
51
- GameInspectItem = 32,
52
- GameZoomIn = 33,
53
- GameZoomOut = 34,
54
- GamePause = 35,
55
- GameSave = 36,
56
- GameFullscreen = 37,
57
- GameScreenshotMode = 38,
58
- GameActionBarConfigure = 39,
59
- GameActionBarUseSlottedItem = 40,
60
- GameActionBarCopy = 41,
61
- GameActionBarToggleUseWhenMoving = 42,
62
- GameActionBarToggleAllUseWhenMoving = 43,
63
- GameActionBarClear = 44,
64
- GameActionBarToggleUseHistory = 45,
65
- GameActions = 46,
66
- GameActionsItems = 47,
67
- GameActionsInFront = 48,
68
- GameActionsItemsInFront = 49,
69
- GameActionAltarConsecrate = 50,
70
- GameActionAltarInvoke = 51,
71
- GameActionAltarKneel = 52,
72
- GameActionArmorStandDisplayItem = 53,
73
- GameActionArmorStandDisplayLeft = 54,
74
- GameActionArmorStandDisplayRight = 55,
75
- GameActionArmorStandEquip = 56,
76
- GameActionArmorStandSwap = 57,
77
- GameActionArmorStandTake = 58,
78
- GameActionAttackClose = 59,
79
- GameActionAttackCloseMelee = 60,
80
- GameActionAttackRangeFire = 61,
81
- GameActionAttackRangeShoot = 62,
82
- GameActionAttackRangeThrow = 63,
83
- GameActionBuild = 64,
84
- GameActionBuildPlaceDown = 65,
85
- GameActionBuildSetDown = 66,
86
- GameActionCage = 67,
87
- GameActionCageUncage = 68,
88
- GameActionCast = 69,
89
- GameActionCommandCreature = 70,
90
- GameActionCommandCreatureAll = 71,
91
- GameActionCommandSetAiAttack = 72,
92
- GameActionCommandSetAiDefend = 73,
93
- GameActionCommandSetAiFollowClose = 74,
94
- GameActionCommandSetAiFollowFar = 75,
95
- GameActionCommandSetAiHeel = 76,
96
- GameActionCommandSetAiStay = 77,
97
- GameActionConsumeApply = 78,
98
- GameActionConsumeCure = 79,
99
- GameActionConsumeDrink = 80,
100
- GameActionConsumeEat = 81,
101
- GameActionConsumeHeal = 82,
102
- GameActionConsumeHealOther = 83,
103
- GameActionContainerOpenTile = 84,
104
- GameActionCraftingCraft = 85,
105
- GameActionCraftingDisassemble = 86,
106
- GameActionCraftingDismantle = 87,
107
- GameActionDoorClose = 88,
108
- GameActionDoorOpen = 89,
109
- GameActionEquip = 90,
110
- GameActionEquipLeft = 91,
111
- GameActionEquipRight = 92,
112
- GameActionEquipUnequip = 93,
113
- GameActionFireAddFuelWithItem = 94,
114
- GameActionFireExtinguish = 95,
115
- GameActionFireIgnite = 96,
116
- GameActionFireIgniteWithItem = 97,
117
- GameActionFireSmother = 98,
118
- GameActionFireStart = 99,
119
- GameActionFireStoke = 100,
120
- GameActionGatherButcher = 101,
121
- GameActionGatherChop = 102,
122
- GameActionGatherDig = 103,
123
- GameActionGatherDigWithHands = 104,
124
- GameActionGatherGatherWithHands = 105,
125
- GameActionGatherHarvest = 106,
126
- GameActionGatherHarvestWithHands = 107,
127
- GameActionGatherMine = 108,
128
- GameActionGrasp = 109,
129
- GameActionHitch = 110,
130
- GameActionHitchToggle = 111,
131
- GameActionHitchUnhitch = 112,
132
- GameActionImproveBasicEnhance = 113,
133
- GameActionImproveBasicEnhanceWithItem = 114,
134
- GameActionImproveBasicPreserve = 115,
135
- GameActionImproveBasicPreserveWithItem = 116,
136
- GameActionImproveBasicRefine = 117,
137
- GameActionImproveBasicRefineWithItem = 118,
138
- GameActionImproveBasicReinforce = 119,
139
- GameActionImproveBasicReinforceWithItem = 120,
140
- GameActionImproveBasicRepair = 121,
141
- GameActionImproveBasicRepairWithItem = 122,
142
- GameActionImproveBasicReshape = 123,
143
- GameActionImproveBasicReshapeWithItem = 124,
144
- GameActionImproveMagicAbsorb = 125,
145
- GameActionImproveMagicAbsorbWithItem = 126,
146
- GameActionImproveMagicAlter = 127,
147
- GameActionImproveMagicAlterWithItem = 128,
148
- GameActionImproveMagicEnchant = 129,
149
- GameActionImproveMagicEnchantWithItem = 130,
150
- GameActionImproveMagicExude = 131,
151
- GameActionImproveMagicExudeWithItem = 132,
152
- GameActionImproveMagicTransmogrify = 133,
153
- GameActionImproveMagicTransmogrifyWithItem = 134,
154
- GameActionImproveMagicUpgrade = 135,
155
- GameActionImproveMagicUpgradeWithItem = 136,
156
- GameActionItemContainerDumpItems = 137,
157
- GameActionItemContainerMoveContents = 138,
158
- GameActionItemContainerStateClose = 139,
159
- GameActionItemContainerStateOpen = 140,
160
- GameActionItemDestinationActiveContainer = 141,
161
- GameActionItemDestinationFacingContainer = 142,
162
- GameActionItemDestinationInventory = 143,
163
- GameActionItemDrop = 144,
164
- GameActionItemDropAll = 145,
165
- GameActionItemDropAllOfSameQuality = 146,
166
- GameActionItemMove = 147,
167
- GameActionItemMoveAll = 148,
168
- GameActionItemMoveAllOfSameQuality = 149,
169
- GameActionItemPickUpAllItems = 150,
170
- GameActionItemPickUpItem = 151,
171
- GameActionJump = 152,
172
- GameActionLearn = 153,
173
- GameActionLiquidGather = 154,
174
- GameActionLiquidPour = 155,
175
- GameActionLiquidPourOnYourself = 156,
176
- GameActionLockpick = 157,
177
- GameActionMapDraw = 158,
178
- GameActionMapRead = 159,
179
- GameActionNavigate = 160,
180
- GameActionOpenBottle = 161,
181
- GameActionPickUpDoodad = 162,
182
- GameActionPickUpExcrementWithHands = 163,
183
- GameActionPlant = 164,
184
- GameActionProtect = 165,
185
- GameActionProtectUnprotect = 166,
186
- GameActionRead = 167,
187
- GameActionRename = 168,
188
- GameActionRest = 169,
189
- GameActionRestSleep = 170,
190
- GameActionRotate = 171,
191
- GameActionSqueeze = 172,
192
- GameActionStillAttachContainer = 173,
193
- GameActionStillDetachContainer = 174,
194
- GameActionSummon = 175,
195
- GameActionTame = 176,
196
- GameActionTameOffer = 177,
197
- GameActionTamePet = 178,
198
- GameActionTameRelease = 179,
199
- GameActionTeleport = 180,
200
- GameActionTellTime = 181,
201
- GameActionTestDepth = 182,
202
- GameActionTill = 183,
203
- GameActionTillUntill = 184,
204
- GameActionTillWithHands = 185,
205
- GameActionTrade = 186,
206
- GameActionTradeBuyFromTrader = 187,
207
- GameActionTradeSellToTrader = 188,
208
- GameActionTravelSailToCivilization = 189,
209
- GameActionTravelShipToIsland = 190,
210
- GameActionVehicleRide = 191,
211
- GameActionVehicleUnride = 192,
212
- DialogCloseAll = 193,
213
- DialogOptions = 194,
214
- DialogHelp = 195,
215
- DialogMilestones = 196,
216
- DialogNotes = 197,
217
- DialogMessages = 198,
218
- DialogMessagesChatFocus = 199,
219
- DialogInventory = 200,
220
- DialogCrafting = 201,
221
- DialogDismantle = 202,
222
- DialogEquipment = 203,
223
- DialogSkills = 204,
224
- DialogQuests = 205,
225
- DialogIslands = 206,
226
- HudToggleMenuBar = 207,
227
- HudToggleActionBar = 208,
228
- HudToggleMessages = 209,
229
- HudToggleStats = 210,
230
- TooltipMoreInformation = 211,
231
- TooltipToggle = 212,
232
- MenuEnter = 213,
233
- MenuSubmit = 214,
234
- MenuNext = 215,
235
- MenuPrevious = 216,
236
- MenuUp = 217,
237
- MenuDown = 218,
238
- MenuLeft = 219,
239
- MenuRight = 220,
240
- MenuCancel = 221,
241
- MenuNextOption = 222,
242
- MenuPreviousOption = 223,
243
- MenuContextMenu = 224,
244
- MenuSelect = 225,
245
- DeveloperInterfaceScaleUp = 226,
246
- DeveloperInterfaceScaleDown = 227,
247
- DeveloperToggleDeveloperMode = 228,
248
- DeveloperToggleDeveloperTools = 229,
249
- DeveloperReloadGame = 230,
250
- DeveloperReloadWithoutSavingGame = 231,
251
- DeveloperReloadAndContinueGame = 232,
252
- DeveloperReloadWithoutSavingAndContinueGame = 233,
253
- DeveloperReloadStylesheets = 234,
254
- DeveloperReloadTextures = 235
42
+ GameItemQuickMoveFromStack = 23,
43
+ GameItemQuickMoveToStack = 24,
44
+ GameItemDrop = 25,
45
+ GameItemDropAll = 26,
46
+ GameItemDropAllByQuality = 27,
47
+ GameItemEquipToggle = 28,
48
+ GameItemProtectToggle = 29,
49
+ GameItemOpen = 30,
50
+ GameItemToggleStacked = 31,
51
+ GameItemToggleStackOpen = 32,
52
+ GameInspect = 33,
53
+ GameInspectItem = 34,
54
+ GameZoomIn = 35,
55
+ GameZoomOut = 36,
56
+ GamePause = 37,
57
+ GameSave = 38,
58
+ GameFullscreen = 39,
59
+ GameScreenshotMode = 40,
60
+ GameActionBarConfigure = 41,
61
+ GameActionBarUseSlottedItem = 42,
62
+ GameActionBarCopy = 43,
63
+ GameActionBarToggleUseWhenMoving = 44,
64
+ GameActionBarToggleAllUseWhenMoving = 45,
65
+ GameActionBarClear = 46,
66
+ GameActionBarToggleUseHistory = 47,
67
+ GameActions = 48,
68
+ GameActionsItems = 49,
69
+ GameActionsInFront = 50,
70
+ GameActionsItemsInFront = 51,
71
+ GameActionAltarConsecrate = 52,
72
+ GameActionAltarInvoke = 53,
73
+ GameActionAltarKneel = 54,
74
+ GameActionArmorStandDisplayItem = 55,
75
+ GameActionArmorStandDisplayLeft = 56,
76
+ GameActionArmorStandDisplayRight = 57,
77
+ GameActionArmorStandEquip = 58,
78
+ GameActionArmorStandSwap = 59,
79
+ GameActionArmorStandTake = 60,
80
+ GameActionAttackClose = 61,
81
+ GameActionAttackCloseMelee = 62,
82
+ GameActionAttackRangeFire = 63,
83
+ GameActionAttackRangeShoot = 64,
84
+ GameActionAttackRangeThrow = 65,
85
+ GameActionBuild = 66,
86
+ GameActionBuildPlaceDown = 67,
87
+ GameActionBuildSetDown = 68,
88
+ GameActionCage = 69,
89
+ GameActionCageUncage = 70,
90
+ GameActionCast = 71,
91
+ GameActionCommandCreature = 72,
92
+ GameActionCommandCreatureAll = 73,
93
+ GameActionCommandSetAiAttack = 74,
94
+ GameActionCommandSetAiDefend = 75,
95
+ GameActionCommandSetAiFollowClose = 76,
96
+ GameActionCommandSetAiFollowFar = 77,
97
+ GameActionCommandSetAiHeel = 78,
98
+ GameActionCommandSetAiStay = 79,
99
+ GameActionConsumeApply = 80,
100
+ GameActionConsumeCure = 81,
101
+ GameActionConsumeDrink = 82,
102
+ GameActionConsumeEat = 83,
103
+ GameActionConsumeHeal = 84,
104
+ GameActionConsumeHealOther = 85,
105
+ GameActionContainerOpenTile = 86,
106
+ GameActionCraftingCraft = 87,
107
+ GameActionCraftingDisassemble = 88,
108
+ GameActionCraftingDismantle = 89,
109
+ GameActionDoorClose = 90,
110
+ GameActionDoorOpen = 91,
111
+ GameActionEquip = 92,
112
+ GameActionEquipLeft = 93,
113
+ GameActionEquipRight = 94,
114
+ GameActionEquipUnequip = 95,
115
+ GameActionFireAddFuelWithItem = 96,
116
+ GameActionFireExtinguish = 97,
117
+ GameActionFireIgnite = 98,
118
+ GameActionFireIgniteWithItem = 99,
119
+ GameActionFireSmother = 100,
120
+ GameActionFireStart = 101,
121
+ GameActionFireStoke = 102,
122
+ GameActionGatherButcher = 103,
123
+ GameActionGatherChop = 104,
124
+ GameActionGatherDig = 105,
125
+ GameActionGatherDigWithHands = 106,
126
+ GameActionGatherGatherWithHands = 107,
127
+ GameActionGatherHarvest = 108,
128
+ GameActionGatherHarvestWithHands = 109,
129
+ GameActionGatherMine = 110,
130
+ GameActionGrasp = 111,
131
+ GameActionHitch = 112,
132
+ GameActionHitchToggle = 113,
133
+ GameActionHitchUnhitch = 114,
134
+ GameActionImproveBasicEnhance = 115,
135
+ GameActionImproveBasicEnhanceWithItem = 116,
136
+ GameActionImproveBasicPreserve = 117,
137
+ GameActionImproveBasicPreserveWithItem = 118,
138
+ GameActionImproveBasicRefine = 119,
139
+ GameActionImproveBasicRefineWithItem = 120,
140
+ GameActionImproveBasicReinforce = 121,
141
+ GameActionImproveBasicReinforceWithItem = 122,
142
+ GameActionImproveBasicRepair = 123,
143
+ GameActionImproveBasicRepairWithItem = 124,
144
+ GameActionImproveBasicReshape = 125,
145
+ GameActionImproveBasicReshapeWithItem = 126,
146
+ GameActionImproveMagicAbsorb = 127,
147
+ GameActionImproveMagicAbsorbWithItem = 128,
148
+ GameActionImproveMagicAlter = 129,
149
+ GameActionImproveMagicAlterWithItem = 130,
150
+ GameActionImproveMagicEnchant = 131,
151
+ GameActionImproveMagicEnchantWithItem = 132,
152
+ GameActionImproveMagicExude = 133,
153
+ GameActionImproveMagicExudeWithItem = 134,
154
+ GameActionImproveMagicTransmogrify = 135,
155
+ GameActionImproveMagicTransmogrifyWithItem = 136,
156
+ GameActionImproveMagicUpgrade = 137,
157
+ GameActionImproveMagicUpgradeWithItem = 138,
158
+ GameActionItemContainerDumpItems = 139,
159
+ GameActionItemContainerMoveContents = 140,
160
+ GameActionItemContainerStateClose = 141,
161
+ GameActionItemContainerStateOpen = 142,
162
+ GameActionItemDestinationActiveContainer = 143,
163
+ GameActionItemDestinationFacingContainer = 144,
164
+ GameActionItemDestinationInventory = 145,
165
+ GameActionItemDrop = 146,
166
+ GameActionItemDropAll = 147,
167
+ GameActionItemDropAllOfSameQuality = 148,
168
+ GameActionItemMove = 149,
169
+ GameActionItemMoveAll = 150,
170
+ GameActionItemMoveAllOfSameQuality = 151,
171
+ GameActionItemPickUpAllItems = 152,
172
+ GameActionItemPickUpItem = 153,
173
+ GameActionJump = 154,
174
+ GameActionLearn = 155,
175
+ GameActionLiquidGather = 156,
176
+ GameActionLiquidPour = 157,
177
+ GameActionLiquidPourOnYourself = 158,
178
+ GameActionLockpick = 159,
179
+ GameActionMapDraw = 160,
180
+ GameActionMapRead = 161,
181
+ GameActionNavigate = 162,
182
+ GameActionOpenBottle = 163,
183
+ GameActionPickUpDoodad = 164,
184
+ GameActionPickUpExcrementWithHands = 165,
185
+ GameActionPlant = 166,
186
+ GameActionProtect = 167,
187
+ GameActionProtectUnprotect = 168,
188
+ GameActionRead = 169,
189
+ GameActionRename = 170,
190
+ GameActionRest = 171,
191
+ GameActionRestSleep = 172,
192
+ GameActionRotate = 173,
193
+ GameActionSqueeze = 174,
194
+ GameActionStillAttachContainer = 175,
195
+ GameActionStillDetachContainer = 176,
196
+ GameActionSummon = 177,
197
+ GameActionTame = 178,
198
+ GameActionTameOffer = 179,
199
+ GameActionTamePet = 180,
200
+ GameActionTameRelease = 181,
201
+ GameActionTeleport = 182,
202
+ GameActionTellTime = 183,
203
+ GameActionTestDepth = 184,
204
+ GameActionTill = 185,
205
+ GameActionTillUntill = 186,
206
+ GameActionTillWithHands = 187,
207
+ GameActionTrade = 188,
208
+ GameActionTradeBuyFromTrader = 189,
209
+ GameActionTradeSellToTrader = 190,
210
+ GameActionTravelSailToCivilization = 191,
211
+ GameActionTravelShipToIsland = 192,
212
+ GameActionVehicleRide = 193,
213
+ GameActionVehicleUnride = 194,
214
+ DialogCloseAll = 195,
215
+ DialogOptions = 196,
216
+ DialogHelp = 197,
217
+ DialogMilestones = 198,
218
+ DialogNotes = 199,
219
+ DialogMessages = 200,
220
+ DialogMessagesChatFocus = 201,
221
+ DialogInventory = 202,
222
+ DialogCrafting = 203,
223
+ DialogDismantle = 204,
224
+ DialogEquipment = 205,
225
+ DialogSkills = 206,
226
+ DialogQuests = 207,
227
+ DialogIslands = 208,
228
+ HudToggleMenuBar = 209,
229
+ HudToggleActionBar = 210,
230
+ HudToggleMessages = 211,
231
+ HudToggleStats = 212,
232
+ TooltipMoreInformation = 213,
233
+ TooltipToggle = 214,
234
+ MenuEnter = 215,
235
+ MenuSubmit = 216,
236
+ MenuNext = 217,
237
+ MenuPrevious = 218,
238
+ MenuUp = 219,
239
+ MenuDown = 220,
240
+ MenuLeft = 221,
241
+ MenuRight = 222,
242
+ MenuCancel = 223,
243
+ MenuNextOption = 224,
244
+ MenuPreviousOption = 225,
245
+ MenuContextMenu = 226,
246
+ MenuSelect = 227,
247
+ DeveloperInterfaceScaleUp = 228,
248
+ DeveloperInterfaceScaleDown = 229,
249
+ DeveloperToggleDeveloperMode = 230,
250
+ DeveloperToggleDeveloperTools = 231,
251
+ DeveloperReloadGame = 232,
252
+ DeveloperReloadWithoutSavingGame = 233,
253
+ DeveloperReloadAndContinueGame = 234,
254
+ DeveloperReloadWithoutSavingAndContinueGame = 235,
255
+ DeveloperReloadStylesheets = 236,
256
+ DeveloperReloadTextures = 237
255
257
  }
256
258
  export default Bindable;
257
259
  export declare enum BindableType {
@@ -10,6 +10,25 @@
10
10
  */
11
11
  import TranslationImpl from "@wayward/game/language/impl/TranslationImpl";
12
12
  import { InputCatalystType } from "@wayward/game/ui/input/IIInput";
13
+ declare global {
14
+ interface Keyboard {
15
+ getLayoutMap(): Promise<KeyboardLayoutMap>;
16
+ }
17
+ interface KeyboardLayoutMap {
18
+ readonly size: number;
19
+ [Symbol.iterator](): IterableIterator<[string, string]>;
20
+ entries(): IterableIterator<[string, string]>;
21
+ forEach(callbackfn: (value: string, key: string, map: KeyboardLayoutMap) => void, thisArg?: any): void;
22
+ keys(): IterableIterator<string>;
23
+ values(): IterableIterator<string>;
24
+ get(key: string): string | undefined;
25
+ has(key: string): boolean;
26
+ }
27
+ interface Navigator {
28
+ keyboard: Keyboard;
29
+ }
30
+ }
31
+ export declare function startKeyboardLayoutMonitor(): void;
13
32
  interface IInputCatalystValueMap {
14
33
  [InputCatalystType.Key]: string;
15
34
  [InputCatalystType.MouseButton]: number;
@@ -249,6 +249,7 @@ export default class ItemComponent extends Component implements ItemSlot {
249
249
  private static dragPreviewSource?;
250
250
  private static _dragPreview?;
251
251
  static get dragPreview(): ItemComponent | undefined;
252
+ static get isDragging(): boolean;
252
253
  private static getDragPreview;
253
254
  private savedPosition?;
254
255
  protected onMoveStart(_: any, mouse: Vector2): false | void;
@@ -37,11 +37,14 @@ export interface IContainerBucketItemListTransferDetails {
37
37
  item?: Item;
38
38
  itemType: ItemType;
39
39
  moveAll: boolean;
40
+ moveLimit?: number;
41
+ stackList?: ContainerBucketItemList;
40
42
  quality?: Quality;
41
43
  text?: string;
42
44
  excludeProtected?: true;
43
45
  index?: number;
44
46
  silent?: true;
47
+ hidden?: true;
45
48
  excludeEquipped?: boolean;
46
49
  }
47
50
  export interface IContainerBucketItemListEvents extends WithSortableEvents<Component> {
@@ -116,6 +119,8 @@ export default class ContainerBucketItemList extends Component implements ISorta
116
119
  onDropItem(api: IBindHandlerApi): boolean;
117
120
  private handleDrop;
118
121
  onQuickMove(api: IBindHandlerApi): boolean;
122
+ onQuickMoveFromStack(api: IBindHandlerApi): boolean;
123
+ onQuickMoveToStack(api: IBindHandlerApi): boolean;
119
124
  protected onSubscribeDraggableEvents(itemComponent: ItemComponent, events: IDraggableComponentSubscriber<ItemComponent>): void;
120
125
  private sortingComponent?;
121
126
  getSorting(): ItemComponent | undefined;
@@ -103,6 +103,7 @@ export default class ActionBar extends QuadrantComponent {
103
103
  protected onToggleAllUseWhileMoving(api: IBindHandlerApi): boolean;
104
104
  protected onMenuCancel(): boolean;
105
105
  protected onChangeWhetherCopying(api: IBindHandlerApi): boolean;
106
+ protected onPressingAnything(api: IBindHandlerApi): void;
106
107
  getSlots(): Stream<ActionSlot>;
107
108
  getHistorySlots(): Stream<ActionSlot>;
108
109
  private toggleAllUseWhenMoving;
@@ -103,6 +103,7 @@ export declare class ActionSlot extends Button implements IRefreshable, ItemSlot
103
103
  private lastClickUseWhenMoving;
104
104
  protected onClick(event?: Event & Partial<MouseEvent>): void;
105
105
  toggleUseOnMove(): boolean;
106
+ private static usedActionSlot?;
106
107
  private firstActivate;
107
108
  onActivateDown(api: IBindHandlerApi): boolean;
108
109
  onActivateUp(api: IBindHandlerApi): boolean;
@@ -42,8 +42,6 @@ export declare class EventManager<HOST extends object, EVENTS = {}, TARGET exten
42
42
  emit<EVENT extends EVENTS[keyof EVENTS]>(event: EVENT, initializer?: (event: EVENT) => any): void;
43
43
  emit<EVENT extends Event>(event: EVENT, initializer: (event: EVENT) => EVENTS[keyof EVENTS]): void;
44
44
  private readonly pipes;
45
- pipe<TYPE extends keyof EVENTS>(type: TYPE, on: EventManager<any, {
46
- [key in TYPE]: EVENTS[TYPE];
47
- }, any>): this;
45
+ pipe<TYPE extends keyof EVENTS>(type: TYPE, on: EventManager<any, Record<TYPE, EVENTS[TYPE]>, any>): this;
48
46
  private insertPipe;
49
47
  }
@@ -25,6 +25,7 @@ export default class DirectoryConnection extends EventEmitter {
25
25
  checkConnection(channel: string, ipAddress?: string): Promise<shared.ICheckConnectionServerDirectoryResponse>;
26
26
  private connect;
27
27
  private disconnect;
28
+ private queueProcessMessagesTimer;
28
29
  private clearProcessMessagesTimer;
29
30
  private processMessages;
30
31
  }
@@ -13,6 +13,7 @@ import Server from "./server";
13
13
  import * as shared from "./shared";
14
14
  export default class GlobalServerDirectory extends Server {
15
15
  private readonly servers;
16
+ private readonly serverConnections;
16
17
  private hasGlobalMatchmakingServerConnection;
17
18
  constructor();
18
19
  protected getConnectionIdentifier(_: string | undefined, ipAddress: string): string | undefined;
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.14.1-beta.dev.20241215.1",
4
+ "version": "2.14.1-beta.dev.20241217.1",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",