@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.
- package/definitions/game/game/biome/arid/mapGen/2.14.1.d.ts +12 -0
- package/definitions/game/game/biome/coastal/Coastal.d.ts +1 -1
- package/definitions/game/game/biome/coastal/mapGen/2.14.1.d.ts +12 -0
- package/definitions/game/game/biome/iceCap/mapGen/2.14.1.d.ts +12 -0
- package/definitions/game/game/biome/volcanic/mapGen/2.14.1.d.ts +12 -0
- package/definitions/game/game/biome/wetlands/mapGen/2.14.1.d.ts +12 -0
- package/definitions/game/game/deity/IDeities.d.ts +7 -0
- package/definitions/game/game/entity/IHuman.d.ts +0 -2
- package/definitions/game/game/entity/action/actions/moveItem/MoveItemFilterArgument.d.ts +1 -0
- package/definitions/game/game/entity/action/actions/moveItem/MoveItemOptionsArgument.d.ts +1 -0
- package/definitions/game/game/entity/creature/Creature.d.ts +1 -0
- package/definitions/game/game/entity/player/Player.d.ts +3 -0
- package/definitions/game/game/mapgen/version/2.14.1.d.ts +19 -0
- package/definitions/game/language/dictionary/UiTranslation.d.ts +183 -187
- package/definitions/game/multiplayer/IMultiplayer.d.ts +0 -1
- package/definitions/game/renderer/fieldOfView/FieldOfView.d.ts +6 -0
- package/definitions/game/save/data/ISaveDataGlobal.d.ts +0 -2
- package/definitions/game/ui/input/Bind.d.ts +21 -14
- package/definitions/game/ui/input/Bindable.d.ts +215 -213
- package/definitions/game/ui/input/IInput.d.ts +19 -0
- package/definitions/game/ui/screen/screens/game/component/ItemComponent.d.ts +1 -0
- package/definitions/game/ui/screen/screens/game/component/container/ContainerBucketItemList.d.ts +5 -0
- package/definitions/game/ui/screen/screens/game/static/ActionBar.d.ts +1 -0
- package/definitions/game/ui/screen/screens/game/static/actions/ActionSlot.d.ts +1 -0
- package/definitions/launcher/utilities/EventManager.d.ts +1 -3
- package/definitions/matchmakingserver/directoryConnection.d.ts +1 -0
- package/definitions/matchmakingserver/globalServerDirectory.d.ts +1 -0
- 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.
|
|
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.
|
|
@@ -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
|
-
|
|
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
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
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;
|
|
@@ -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
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
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;
|
package/definitions/game/ui/screen/screens/game/component/container/ContainerBucketItemList.d.ts
CHANGED
|
@@ -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