@wayward/types 2.11.3-beta.dev.20220123.1 → 2.11.3-beta.dev.20220126.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/audio/IAudio.d.ts +19 -19
- package/definitions/game/game/item/IItemManager.d.ts +26 -0
- package/definitions/game/game/item/ItemManager.d.ts +11 -11
- package/definitions/game/language/dictionary/UiTranslation.d.ts +285 -283
- package/definitions/game/multiplayer/IMultiplayer.d.ts +2 -0
- package/definitions/game/multiplayer/dedicatedServer/ssh/ISsh.d.ts +2 -1
- package/definitions/game/multiplayer/dedicatedServer/ssh/SshServer.d.ts +2 -1
- package/definitions/game/save/data/ISaveDataGlobal.d.ts +2 -1
- package/definitions/game/steamworks/ISteamworks.d.ts +2 -2
- package/definitions/game/ui/Ui.d.ts +5 -0
- package/definitions/game/ui/input/Bind.d.ts +1 -1
- package/definitions/game/ui/old/screens/InGameScreen.d.ts +0 -2
- package/definitions/game/ui/screen/screens/GameScreen.d.ts +16 -1
- package/package.json +1 -1
|
@@ -34,25 +34,25 @@ export declare enum SfxType {
|
|
|
34
34
|
Death = 7,
|
|
35
35
|
Eating = 8,
|
|
36
36
|
Exceptional = 9,
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
37
|
+
Extinguish = 10,
|
|
38
|
+
Fail = 11,
|
|
39
|
+
Hit = 12,
|
|
40
|
+
Hurt = 13,
|
|
41
|
+
Miss = 14,
|
|
42
|
+
PickUp = 15,
|
|
43
|
+
RockHit = 16,
|
|
44
|
+
SandstoneHit = 17,
|
|
45
|
+
Swim = 18,
|
|
46
|
+
Throw = 19,
|
|
47
|
+
Trample = 20,
|
|
48
|
+
TreeHit = 21,
|
|
49
|
+
UiActivate = 22,
|
|
50
|
+
UiDisable = 23,
|
|
51
|
+
UiEnable = 24,
|
|
52
|
+
UiInput = 25,
|
|
53
|
+
UiSelect = 26,
|
|
54
|
+
Walk = 27,
|
|
55
|
+
Water = 28
|
|
56
56
|
}
|
|
57
57
|
export declare enum Music {
|
|
58
58
|
Shipwrecked = 0,
|
|
@@ -10,8 +10,34 @@
|
|
|
10
10
|
*/
|
|
11
11
|
import type Doodad from "game/doodad/Doodad";
|
|
12
12
|
import type { DoodadType, DoodadTypeGroup } from "game/doodad/IDoodad";
|
|
13
|
+
import type { ActionType } from "game/entity/action/IAction";
|
|
14
|
+
import type Item from "game/item/Item";
|
|
13
15
|
import type TileEvent from "game/tile/TileEvent";
|
|
14
16
|
import type { IVector3 } from "utilities/math/IVector";
|
|
17
|
+
/**
|
|
18
|
+
* Includes all protected items by default
|
|
19
|
+
*/
|
|
20
|
+
export interface IGetItemOptions {
|
|
21
|
+
/**
|
|
22
|
+
* True to exclude protected items
|
|
23
|
+
*/
|
|
24
|
+
excludeProtectedItems: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* True to include protected items if they pass an item.willBreakOnDamage() check.
|
|
27
|
+
* excludeProtectedItems must be set to false for this to work.
|
|
28
|
+
*/
|
|
29
|
+
includeProtectedItemsThatWillNotBreak: ActionType;
|
|
30
|
+
/**
|
|
31
|
+
* Item will be ignored
|
|
32
|
+
*/
|
|
33
|
+
ignoreItem?: Item;
|
|
34
|
+
}
|
|
35
|
+
export interface IGetItemsOptions extends IGetItemOptions {
|
|
36
|
+
/**
|
|
37
|
+
* Include sub containers in the search
|
|
38
|
+
*/
|
|
39
|
+
includeSubContainers: boolean;
|
|
40
|
+
}
|
|
15
41
|
export declare enum CraftStatus {
|
|
16
42
|
Invalid = 0,
|
|
17
43
|
Failed = 1,
|
|
@@ -17,7 +17,7 @@ import type Player from "game/entity/player/Player";
|
|
|
17
17
|
import { Quality } from "game/IObject";
|
|
18
18
|
import type { ContainerReference, IContainable, IContainer, IItemDescription, IItemWeightComponent } from "game/item/IItem";
|
|
19
19
|
import { ItemType, ItemTypeGroup } from "game/item/IItem";
|
|
20
|
-
import type { IAddToContainerOptions, IRequirementInfo } from "game/item/IItemManager";
|
|
20
|
+
import type { IAddToContainerOptions, IGetItemOptions, IGetItemsOptions, IRequirementInfo } from "game/item/IItemManager";
|
|
21
21
|
import { CraftStatus, WeightType, ContainerReferenceSource } from "game/item/IItemManager";
|
|
22
22
|
import Item from "game/item/Item";
|
|
23
23
|
import type ItemRecipeRequirementChecker from "game/item/ItemRecipeRequirementChecker";
|
|
@@ -188,16 +188,16 @@ export default class ItemManager extends ObjectManager<Item, IItemManagerEvents>
|
|
|
188
188
|
/**
|
|
189
189
|
* Get the best tier item
|
|
190
190
|
*/
|
|
191
|
-
getBestSafeItemInContainerByUse(container: IContainer, action: ActionType,
|
|
192
|
-
getItemInContainer(container: IContainer, itemTypeSearch: ItemType,
|
|
193
|
-
getItemForHuman(human: Human, search: ItemType | ItemTypeGroup,
|
|
194
|
-
getItemInContainerByGroup(container: IContainer, itemTypeGroupSearch: ItemTypeGroup,
|
|
191
|
+
getBestSafeItemInContainerByUse(container: IContainer, action: ActionType, options?: Partial<IGetItemsOptions>, consumable?: boolean): Item | undefined;
|
|
192
|
+
getItemInContainer(container: IContainer, itemTypeSearch: ItemType, options?: Partial<IGetItemOptions>): Item | undefined;
|
|
193
|
+
getItemForHuman(human: Human, search: ItemType | ItemTypeGroup, options?: Partial<IGetItemOptions>): Item | undefined;
|
|
194
|
+
getItemInContainerByGroup(container: IContainer, itemTypeGroupSearch: ItemTypeGroup, options?: Partial<IGetItemOptions>): Item | undefined;
|
|
195
195
|
getItemInAdjacentContainersByGroup(position: IVector3, itemTypeGroupSearch: ItemTypeGroup): Item | undefined;
|
|
196
|
-
getItemsInContainer(container: IContainer,
|
|
197
|
-
getItemsInContainerByType(container: IContainer, itemType: ItemType,
|
|
198
|
-
getItemsInContainerByGroup(container: IContainer, itemGroup: ItemTypeGroup,
|
|
199
|
-
getItemInInventoryByGroup(human: Human, itemTypeGroupSearch: ItemTypeGroup,
|
|
200
|
-
isItemInContainer(container: IContainer, itemTypeSearch: ItemType,
|
|
196
|
+
getItemsInContainer(container: IContainer, options?: Partial<IGetItemsOptions>): Item[];
|
|
197
|
+
getItemsInContainerByType(container: IContainer, itemType: ItemType, options?: Partial<IGetItemsOptions>, filterText?: string): Item[];
|
|
198
|
+
getItemsInContainerByGroup(container: IContainer, itemGroup: ItemTypeGroup, options?: Partial<IGetItemsOptions>): Item[];
|
|
199
|
+
getItemInInventoryByGroup(human: Human, itemTypeGroupSearch: ItemTypeGroup, options?: Partial<IGetItemOptions>): Item | undefined;
|
|
200
|
+
isItemInContainer(container: IContainer, itemTypeSearch: ItemType, options?: Partial<IGetItemOptions>): boolean;
|
|
201
201
|
isContainableInContainer(containable: IContainable, container: IContainer): boolean;
|
|
202
202
|
getAdjacentContainers(humanOrPosition: Human | IVector3, includeNpcs?: boolean, ignoreOptions?: boolean): IContainer[];
|
|
203
203
|
isContainableInAdjacentContainer(player: Player, containable: IContainable, includeNpcs?: boolean, ignoreOptions?: boolean): boolean;
|
|
@@ -207,7 +207,7 @@ export default class ItemManager extends ObjectManager<Item, IItemManagerEvents>
|
|
|
207
207
|
* Returns ordered items for the containers
|
|
208
208
|
* Note: It may return the real containedItems array!
|
|
209
209
|
*/
|
|
210
|
-
getOrderedContainerItems(container: IContainer,
|
|
210
|
+
getOrderedContainerItems(container: IContainer, options?: Partial<IGetItemOptions>): Item[];
|
|
211
211
|
reduceDismantleWeight(createdItems: Item[], itemWeight: number): void;
|
|
212
212
|
getItemTypeTranslation(itemType: ItemType | ItemTypeGroup): Translation;
|
|
213
213
|
getItemTypeTranslation(itemType: ItemType | ItemTypeGroup, count: number): Translation;
|
|
@@ -497,288 +497,290 @@ declare enum UiTranslation {
|
|
|
497
497
|
MenuNewsButtonAllNews = 482,
|
|
498
498
|
MenuNewsButtonViewChangelog = 483,
|
|
499
499
|
MenuOptionsButtonDitherFogOfWar = 484,
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
500
|
+
MenuOptionsButtonHealthVignette = 485,
|
|
501
|
+
MenuOptionsButtonHealthVignetteTooltip = 486,
|
|
502
|
+
MenuOptionsButtonDisableCustomCursor = 487,
|
|
503
|
+
MenuOptionsButtonDisplayArticleInObjectNames = 488,
|
|
504
|
+
MenuOptionsButtonDisplayArticleInObjectNamesTooltip = 489,
|
|
505
|
+
MenuOptionsButtonFullscreen = 490,
|
|
506
|
+
MenuOptionsButtonDeveloperMode = 491,
|
|
507
|
+
MenuOptionsButtonDeveloperModeContextMenu = 492,
|
|
508
|
+
MenuOptionsButtonPixelFont = 493,
|
|
509
|
+
MenuOptionsButtonReloadGame = 494,
|
|
510
|
+
MenuOptionsButtonReloadStylesheets = 495,
|
|
511
|
+
MenuOptionsButtonResetGeneratedSpriteCache = 496,
|
|
512
|
+
MenuOptionsButtonExportGlobalSaveData = 497,
|
|
513
|
+
MenuOptionsButtonImportGlobalSaveData = 498,
|
|
514
|
+
MenuOptionsButtonSaveDataBackups = 499,
|
|
515
|
+
MenuOptionsButtonSaveDataBackupsTooltip = 500,
|
|
516
|
+
MenuOptionsButtonSaveDataClearAll = 501,
|
|
517
|
+
MenuOptionsButtonSaveDataClearCharacters = 502,
|
|
518
|
+
MenuOptionsButtonSaveDataClearHighscores = 503,
|
|
519
|
+
MenuOptionsButtonSaveDataClearMilestones = 504,
|
|
520
|
+
MenuOptionsButtonSaveDataClearOptions = 505,
|
|
521
|
+
MenuOptionsButtonSaveDataClearCraftingRecipes = 506,
|
|
522
|
+
MenuOptionsButtonSaveDataClearSaves = 507,
|
|
523
|
+
MenuOptionsButtonSkipSplash = 508,
|
|
524
|
+
MenuOptionsButtonToggleDevTools = 509,
|
|
525
|
+
MenuOptionsButtonTooltipsCreatures = 510,
|
|
526
|
+
MenuOptionsButtonOpenBackupsFolder = 511,
|
|
527
|
+
MenuOptionsButtonOpenLogsFolder = 512,
|
|
528
|
+
MenuOptionsButtonTooltipsDoodads = 513,
|
|
529
|
+
MenuOptionsButtonTooltipsItems = 514,
|
|
530
|
+
MenuOptionsButtonTooltipsTerrain = 515,
|
|
531
|
+
MenuOptionsButtonDropLocationFacing = 516,
|
|
532
|
+
MenuOptionsButtonDropLocationFeet = 517,
|
|
533
|
+
MenuOptionsButtonStartTraceRecording = 518,
|
|
534
|
+
MenuOptionsButtonStopTraceRecording = 519,
|
|
535
|
+
MenuOptionsButtonTracingRecordingtTooltip = 520,
|
|
536
|
+
MenuOptionsButtonDropLocationFeetWhenFacingBlocked = 521,
|
|
537
|
+
MenuOptionsDescription = 522,
|
|
538
|
+
MenuOptionsHeadingAudio = 523,
|
|
539
|
+
MenuOptionsHeadingDeveloper = 524,
|
|
540
|
+
MenuOptionsHeadingGameplayOptions = 525,
|
|
541
|
+
MenuOptionsHeadingGameplayOptionsDescription = 526,
|
|
542
|
+
MenuOptionsHeadingOtherOptions = 527,
|
|
543
|
+
MenuOptionsHeadingControls = 528,
|
|
544
|
+
MenuOptionsHeadingLanguage = 529,
|
|
545
|
+
MenuOptionsHeadingPowerPreference = 530,
|
|
546
|
+
MenuOptionsHeadingModOptions = 531,
|
|
547
|
+
MenuOptionsHeadingOther = 532,
|
|
548
|
+
MenuOptionsHeadingSaveData = 533,
|
|
549
|
+
MenuOptionsHeadingTooltipsTile = 534,
|
|
550
|
+
MenuOptionsHeadingVideo = 535,
|
|
551
|
+
MenuOptionsLabelInterfaceScale = 536,
|
|
552
|
+
MenuOptionsLabelTooltipDelay = 537,
|
|
553
|
+
MenuOptionsLabelDirectionTurnDelay = 538,
|
|
554
|
+
MenuOptionsLabelMouseTurnDelay = 539,
|
|
555
|
+
MenuOptionsTooltipTurnDelay = 540,
|
|
556
|
+
MenuOptionsTooltipMouseTurnDelay = 541,
|
|
557
|
+
MenuOptionsTooltipUiScaleClamped = 542,
|
|
558
|
+
MenuOptionsTooltipControlsFilter = 543,
|
|
559
|
+
MenuOptionsLabelVolumeEffects = 544,
|
|
560
|
+
MenuOptionsLabelVolumeMusic = 545,
|
|
561
|
+
MenuOptionsTabAudio = 546,
|
|
562
|
+
MenuOptionsTabDeveloper = 547,
|
|
563
|
+
MenuOptionsTabGameplay = 548,
|
|
564
|
+
MenuOptionsTabTooltips = 549,
|
|
565
|
+
MenuOptionsTabOther = 550,
|
|
566
|
+
MenuOptionsTabLanguage = 551,
|
|
567
|
+
MenuOptionsTabControls = 552,
|
|
568
|
+
MenuOptionsTabMods = 553,
|
|
569
|
+
MenuOptionsTabSaveData = 554,
|
|
570
|
+
MenuOptionsTabVideo = 555,
|
|
571
|
+
MenuOptionsTabPerformance = 556,
|
|
572
|
+
MenuOptionsHeadingPerformance = 557,
|
|
573
|
+
MenuOptionsTitle = 558,
|
|
574
|
+
MenuOptionsTooltipMusicNextTrack = 559,
|
|
575
|
+
MenuOptionsBindChoose = 560,
|
|
576
|
+
MenuOptionsBindChooseAdd = 561,
|
|
577
|
+
MenuOptionsBindLabelModifier = 562,
|
|
578
|
+
MenuOptionsBindButtonResetTooltip = 563,
|
|
579
|
+
MenuOptionsBindButtonDeleteTooltip = 564,
|
|
580
|
+
MenuOptionsBindButtonAddTooltip = 565,
|
|
581
|
+
MenuOptionsBindButtonAddMacroTooltip = 566,
|
|
582
|
+
MenuOptionsButtonUnlockAllMilestones = 567,
|
|
583
|
+
MenuOptionsButtonUnlockAllCraftingRecipes = 568,
|
|
584
|
+
MenuOptionsButtonAlternatingDirectionMovement = 569,
|
|
585
|
+
MenuOptionsButtonAllowAlternatingDirectionMovementTooltip = 570,
|
|
586
|
+
MenuOptionsButtonAlwaysShowMoreInformation = 571,
|
|
587
|
+
MenuOptionsButtonAlwaysShowMoreInformationTooltip = 572,
|
|
588
|
+
MenuOptionsButtonAutoGatherHarvest = 573,
|
|
589
|
+
MenuOptionsButtonAutoGatherHarvestTooltip = 574,
|
|
590
|
+
MenuOptionsButtonDisableUIEffects = 575,
|
|
591
|
+
MenuOptionsButtonDisableUIEffectsTooltip = 576,
|
|
592
|
+
MenuOptionsButtonDisableUIOpacity = 577,
|
|
593
|
+
MenuOptionsButtonDisableUIOpacityTooltip = 578,
|
|
594
|
+
MenuOptionsButtonAutoAttack = 579,
|
|
595
|
+
MenuOptionsButtonAutoAttackTooltip = 580,
|
|
596
|
+
MenuOptionsButtonAutoPickup = 581,
|
|
597
|
+
MenuOptionsButtonAutoPickupTooltip = 582,
|
|
598
|
+
MenuOptionsButtonAutoPickupOnIdle = 583,
|
|
599
|
+
MenuOptionsButtonAutoPickupOnIdleTooltip = 584,
|
|
600
|
+
MenuOptionsButtonDropOnDismantle = 585,
|
|
601
|
+
MenuOptionsButtonDropOnDismantleTooltip = 586,
|
|
602
|
+
MenuOptionsButtonDisableCraftingProtectedItems = 587,
|
|
603
|
+
MenuOptionsButtonDisableCraftingProtectedItemsTooltip = 588,
|
|
604
|
+
MenuOptionsButtonDropOnGatherHarvest = 589,
|
|
605
|
+
MenuOptionsButtonDropOnGatherHarvestTooltip = 590,
|
|
606
|
+
MenuOptionsButtonKeepSortActive = 591,
|
|
607
|
+
MenuOptionsButtonKeepSortActiveTooltip = 592,
|
|
608
|
+
MenuOptionsButtonUseAdjacentContainers = 593,
|
|
609
|
+
MenuOptionsButtonUseAdjacentContainersTooltip = 594,
|
|
610
|
+
MenuOptionsButtonHideEquippedHeadgear = 595,
|
|
611
|
+
MenuOptionsButtonHideEquippedHeadgearTooltip = 596,
|
|
612
|
+
MenuOptionsButtonAutoSave = 597,
|
|
613
|
+
MenuOptionsButtonAutoSaveTooltip = 598,
|
|
614
|
+
MenuOptionsRangeAutoSaveTimerLabel = 599,
|
|
615
|
+
MenuOptionsRangeAutoSaveTimerTurnsDisplay = 600,
|
|
616
|
+
MenuOptionsRangeAutoSaveTimerTimeDisplay = 601,
|
|
617
|
+
MenuOptionsButtonWarnOnDangerousActions = 602,
|
|
618
|
+
MenuOptionsButtonWarnOnDangerousActionsTooltip = 603,
|
|
619
|
+
MenuOptionsButtonWarnWhenBreakingItemsOnCraft = 604,
|
|
620
|
+
MenuOptionsButtonWarnWhenBreakingItemsOnCraftTooltip = 605,
|
|
621
|
+
MenuOptionsButtonWarnWhenBreakingItemsOnUse = 606,
|
|
622
|
+
MenuOptionsButtonWarnWhenBreakingItemsOnUseTooltip = 607,
|
|
623
|
+
MenuOptionsHeadingWarnWhenBreakingItems = 608,
|
|
624
|
+
MenuOptionsButtonSaveDataClearBindings = 609,
|
|
625
|
+
MenuOptionsTooltipDialogOpacity = 610,
|
|
626
|
+
MenuOptionsLabelDialogOpacity = 611,
|
|
627
|
+
MenuOptionsDeveloperLogSourceFilterHeading = 612,
|
|
628
|
+
MenuOptionsDeveloperUIExperiments = 613,
|
|
629
|
+
MenuOptionsDeveloperUIExperimentsDescription = 614,
|
|
630
|
+
MenuOptionsAudioVolumeDisplay = 615,
|
|
631
|
+
MenuOptionsAudioInputSoundOnTyping = 616,
|
|
632
|
+
MenuOptionsMusicPlaylist = 617,
|
|
633
|
+
MenuOptionsButtonConfigureBindings = 618,
|
|
634
|
+
MenuOptionsButtonSaveCompression = 619,
|
|
635
|
+
MenuOptionsButtonSaveCompressionTooltip = 620,
|
|
636
|
+
MenuPauseButtonContinueGame = 621,
|
|
637
|
+
MenuPauseButtonReturnToGame = 622,
|
|
638
|
+
MenuPauseButtonOptions = 623,
|
|
639
|
+
MenuPauseButtonModes = 624,
|
|
640
|
+
MenuPauseButtonPaused = 625,
|
|
641
|
+
MenuPauseButtonMultiplayer = 626,
|
|
642
|
+
MenuPauseButtonTitleScreen = 627,
|
|
643
|
+
MenuPauseButtonStopServer = 628,
|
|
644
|
+
MenuPauseHeadingDedicatedServer = 629,
|
|
645
|
+
MenuPauseTooltipNotPaused = 630,
|
|
646
|
+
MenuPauseParagraphDedicatedServer = 631,
|
|
647
|
+
MenuPauseLabelPaused = 632,
|
|
648
|
+
MenuPauseLabelNotPaused = 633,
|
|
649
|
+
MenuModesTitle = 634,
|
|
650
|
+
MenuModesDescription = 635,
|
|
651
|
+
MenuMultiplayerOptionsTitle = 636,
|
|
652
|
+
MenuMultiplayerOptionsDescription = 637,
|
|
653
|
+
MenuMultiplayerOptionsOpenServer = 638,
|
|
654
|
+
MenuMultiplayerOptionsOpenServerDescription = 639,
|
|
655
|
+
MenuMultiplayerOptionsCopyGameCode = 640,
|
|
656
|
+
MenuMultiplayerOptionsCopyGameCodeTooltip = 641,
|
|
657
|
+
MenuMultiplayerOptionsInviteSteamFriends = 642,
|
|
658
|
+
MenuMultiplayerOptionsCheckConnectionHeading = 643,
|
|
659
|
+
MenuMultiplayerOptionsCheckConnectionParagraph = 644,
|
|
660
|
+
MenuMultiplayerOptionsCheckConnectionButton = 645,
|
|
661
|
+
MenuMultiplayerOptionsCheckConnectionResultUnknown = 646,
|
|
662
|
+
MenuMultiplayerOptionsCheckConnectionResultChecking = 647,
|
|
663
|
+
MenuMultiplayerOptionsCheckConnectionResultSteamRelayNetwork = 648,
|
|
664
|
+
MenuMultiplayerOptionsCheckConnectionResultSteamRelayNetworkFail = 649,
|
|
665
|
+
MenuMultiplayerOptionsCheckConnectionResultSteamRelayNetworkUnavailable = 650,
|
|
666
|
+
MenuMultiplayerOptionsCheckConnectionResultWebRTC = 651,
|
|
667
|
+
MenuMultiplayerOptionsCheckConnectionResultWebRTCFail = 652,
|
|
668
|
+
MenuMultiplayerOptionsCheckConnectionResultWebSocket = 653,
|
|
669
|
+
MenuMultiplayerOptionsCheckConnectionResultWebSocketFail = 654,
|
|
670
|
+
MenuMultiplayerOptionsCheckConnectionResultWebSocketUnavailable = 655,
|
|
671
|
+
MenuMultiplayerOptionsCheckConnectionResultSuccess = 656,
|
|
672
|
+
MenuJoinServerTitle = 657,
|
|
673
|
+
MenuJoinServerDescription = 658,
|
|
674
|
+
MenuJoinServerInputPlaceholder = 659,
|
|
675
|
+
MenuJoinServerNext = 660,
|
|
676
|
+
MenuJoinServerChooseModifiersTitle = 661,
|
|
677
|
+
MenuJoinServerChooseModifiersDescription = 662,
|
|
678
|
+
MenuSharedMultiplayerChoiceLobbyTypeFriends = 663,
|
|
679
|
+
MenuSharedMultiplayerChoiceLobbyTypeFriendsDescription = 664,
|
|
680
|
+
MenuSharedMultiplayerChoiceLobbyTypePublic = 665,
|
|
681
|
+
MenuSharedMultiplayerChoiceLobbyTypePublicDescription = 666,
|
|
682
|
+
MenuSharedMultiplayerChoiceLobbyTypePrivate = 667,
|
|
683
|
+
MenuSharedMultiplayerChoiceLobbyTypePrivateDescription = 668,
|
|
684
|
+
MenuSharedMultiplayerChoicePVP = 669,
|
|
685
|
+
MenuSharedMultiplayerChoicePVPDescription = 670,
|
|
686
|
+
MenuSharedMultiplayerChoiceAllowHardcoreRespawns = 671,
|
|
687
|
+
MenuSharedMultiplayerChoiceAllowHardcoreRespawnsDescription = 672,
|
|
688
|
+
MenuSharedMultiplayerDescription = 673,
|
|
689
|
+
MenuSharedMultiplayerMessageOfTheDay = 674,
|
|
690
|
+
MenuSharedMultiplayerMaxPlayers = 675,
|
|
691
|
+
MenuSharedRealTimeTickSpeedTooltip = 676,
|
|
692
|
+
MenuSharedRealTimeTickSpeedLabel = 677,
|
|
693
|
+
MenuSharedButtonDefault = 678,
|
|
694
|
+
MenuSharedValueMillseconds = 679,
|
|
695
|
+
MenuSharedValuePercentage = 680,
|
|
696
|
+
MenuSharedMilestonesNotUnlockable = 681,
|
|
697
|
+
MenuSharedMilestonesNotUnlockableDescription = 682,
|
|
698
|
+
MenuSharedMilestonesNotUnlockableButtonShowMods = 683,
|
|
699
|
+
MenuSharedButtonDisableAll = 684,
|
|
700
|
+
MenuSharedButtonEnableAll = 685,
|
|
701
|
+
MenuSharedMilestoneModifiersSelected = 686,
|
|
702
|
+
MiscSortBy = 687,
|
|
703
|
+
MiscSortDirection = 688,
|
|
704
|
+
MiscFilter = 689,
|
|
705
|
+
MiscPlayerNameDefault = 690,
|
|
706
|
+
MiscPlayerNameServer = 691,
|
|
707
|
+
MiscSaveNameDefault = 692,
|
|
708
|
+
MiscSaveNameDailyChallenge = 693,
|
|
709
|
+
MiscSaveNameChallenge = 694,
|
|
710
|
+
MiscSaveVersionUnknown = 695,
|
|
711
|
+
MiscVersion = 696,
|
|
712
|
+
MiscTime = 697,
|
|
713
|
+
MiscTimeMeridiem = 698,
|
|
714
|
+
MiscError = 699,
|
|
715
|
+
MiscContextMenuCopyTooltip = 700,
|
|
716
|
+
MiscBindableOr = 701,
|
|
717
|
+
MiscBindableNoBindings = 702,
|
|
718
|
+
DifficultyOptionsPeaceful = 703,
|
|
719
|
+
DifficultyOptionsAberrantSpawnsDisabled = 704,
|
|
720
|
+
DifficultyOptionsAberrantSpawnsOnly = 705,
|
|
721
|
+
DifficultyOptionsCreatureSpawningDisabled = 706,
|
|
722
|
+
DifficultyOptionsCreatureSpawnsDefault = 707,
|
|
723
|
+
DifficultyOptionsCreatureSpawnsAberrantOnly = 708,
|
|
724
|
+
DifficultyOptionsCreatureSpawnsNoAberrants = 709,
|
|
725
|
+
DifficultyOptionsSpawnLimit = 710,
|
|
726
|
+
DifficultyOptionsRespawn = 711,
|
|
727
|
+
DifficultyOptionsEternalNight = 712,
|
|
728
|
+
DifficultyOptionsEternalDay = 713,
|
|
729
|
+
DifficultyOptionsTimeInitial = 714,
|
|
730
|
+
DifficultyOptionsTimeFrozen = 715,
|
|
731
|
+
DifficultyOptionsTimeDayLength = 716,
|
|
732
|
+
DifficultyOptionsTimeDayPercent = 717,
|
|
733
|
+
DifficultyOptionsNoItems = 718,
|
|
734
|
+
DifficultyOptionsBenignityInitial = 719,
|
|
735
|
+
DifficultyOptionsBenignityMultiplier = 720,
|
|
736
|
+
DifficultyOptionsMalignityInitial = 721,
|
|
737
|
+
DifficultyOptionsMalignityMultiplier = 722,
|
|
738
|
+
DifficultyOptionsWeightBonus = 723,
|
|
739
|
+
DifficultyOptionsStatInitial = 724,
|
|
740
|
+
DifficultyOptionsStatMax = 725,
|
|
741
|
+
DifficultyOptionsStatMultiplier = 726,
|
|
742
|
+
DifficultyOptionsStatusEffectStartWith = 727,
|
|
743
|
+
DifficultyOptionsStatusEffectUntreatable = 728,
|
|
744
|
+
DifficultyOptionsStatusEffectPassChanceMultiplier = 729,
|
|
745
|
+
DifficultyOptionsNoRandomSkills = 730,
|
|
746
|
+
DifficultyOptionsSkillStartingCount = 731,
|
|
747
|
+
DifficultyOptionsSkillGainMultiplier = 732,
|
|
748
|
+
DifficultyOptionsSkillInitial = 733,
|
|
749
|
+
DifficultyOptionsStatusEffectPermanent = 734,
|
|
750
|
+
DifficultyOptionsStatusEffectRateMultiplier = 735,
|
|
751
|
+
DifficultyOptionsStatusEffectMultiplier = 736,
|
|
752
|
+
EquipmentBack = 737,
|
|
753
|
+
EquipmentBelt = 738,
|
|
754
|
+
EquipmentChest = 739,
|
|
755
|
+
EquipmentFeet = 740,
|
|
756
|
+
EquipmentHands = 741,
|
|
757
|
+
EquipmentHead = 742,
|
|
758
|
+
EquipmentLeftHand = 743,
|
|
759
|
+
EquipmentLeftHandOption = 744,
|
|
760
|
+
EquipmentLegs = 745,
|
|
761
|
+
EquipmentNeck = 746,
|
|
762
|
+
EquipmentRightHand = 747,
|
|
763
|
+
EquipmentRightHandOption = 748,
|
|
764
|
+
EquipmentUse = 749,
|
|
765
|
+
HudFilter = 750,
|
|
766
|
+
QuickSlot1 = 751,
|
|
767
|
+
QuickSlot10 = 752,
|
|
768
|
+
QuickSlot11 = 753,
|
|
769
|
+
QuickSlot12 = 754,
|
|
770
|
+
QuickSlot2 = 755,
|
|
771
|
+
QuickSlot3 = 756,
|
|
772
|
+
QuickSlot4 = 757,
|
|
773
|
+
QuickSlot5 = 758,
|
|
774
|
+
QuickSlot6 = 759,
|
|
775
|
+
QuickSlot7 = 760,
|
|
776
|
+
QuickSlot8 = 761,
|
|
777
|
+
QuickSlot9 = 762,
|
|
778
|
+
TabCrafting = 763,
|
|
779
|
+
TabDismantle = 764,
|
|
780
|
+
Version = 765,
|
|
781
|
+
WindowTitleContainer = 766,
|
|
782
|
+
WindowTitleCrafting = 767,
|
|
783
|
+
WindowTitleEquipment = 768,
|
|
784
|
+
WindowTitleInventory = 769
|
|
783
785
|
}
|
|
784
786
|
export default UiTranslation;
|
|
@@ -105,6 +105,8 @@ export declare enum MultiplayerSyncCheck {
|
|
|
105
105
|
export declare const maxPlayers = 32;
|
|
106
106
|
export declare const packetTickRate = 16;
|
|
107
107
|
export declare const defaultServerPort = 38740;
|
|
108
|
+
export declare const defaultSshServerPort = 38742;
|
|
109
|
+
export declare const defaultSshServerUsername = "wayward";
|
|
108
110
|
export declare const steamLobbyPrefix = "steam:";
|
|
109
111
|
export declare const checkConnectionMatchmakingId = "check";
|
|
110
112
|
export declare const defaultSyncChecks: MultiplayerSyncCheck[];
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
* Wayward is a copyrighted and licensed work. Modification and/or distribution of any source files is prohibited. If you wish to modify the game in any way, please refer to the modding guide:
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
|
+
import type * as ssh2 from "ssh2";
|
|
11
12
|
import type Log from "utilities/Log";
|
|
12
13
|
export declare const globalHistory: Map<string, string[]>;
|
|
13
14
|
export declare const maxHistory = 50;
|
|
@@ -20,7 +21,7 @@ export interface ISshStream {
|
|
|
20
21
|
toString(): string;
|
|
21
22
|
}) => void): void;
|
|
22
23
|
}
|
|
23
|
-
export interface ISshSession {
|
|
24
|
+
export interface ISshSession extends ssh2.Session {
|
|
24
25
|
clientId: string;
|
|
25
26
|
clientLog: Log;
|
|
26
27
|
}
|
|
@@ -8,9 +8,10 @@
|
|
|
8
8
|
* Wayward is a copyrighted and licensed work. Modification and/or distribution of any source files is prohibited. If you wish to modify the game in any way, please refer to the modding guide:
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
|
+
import type * as ssh2 from "ssh2";
|
|
11
12
|
import type { IFileSystem } from "@hosts/shared/ipc/fileSystem";
|
|
12
13
|
export interface ISshServerOptions {
|
|
13
|
-
ssh2:
|
|
14
|
+
ssh2: typeof ssh2;
|
|
14
15
|
crypto: any;
|
|
15
16
|
fs: IFileSystem;
|
|
16
17
|
serverName: string;
|
|
@@ -33,6 +33,8 @@ export interface IOptions {
|
|
|
33
33
|
developerModeContextMenu: boolean;
|
|
34
34
|
dialogOpacity: number;
|
|
35
35
|
directionTurnDelay: number;
|
|
36
|
+
disableCraftingProtectedItems: boolean;
|
|
37
|
+
disableHealthVignette: boolean;
|
|
36
38
|
disableUIEffects: boolean;
|
|
37
39
|
disableUIOpacity: boolean;
|
|
38
40
|
dropLocation: DropLocation;
|
|
@@ -51,7 +53,6 @@ export interface IOptions {
|
|
|
51
53
|
muteMusic: boolean;
|
|
52
54
|
playInputSoundWhenTyping: boolean;
|
|
53
55
|
powerPreference: PowerMode;
|
|
54
|
-
disableCraftingProtectedItems: boolean;
|
|
55
56
|
realTimeTickSpeed: number;
|
|
56
57
|
rightClickInspect: boolean;
|
|
57
58
|
rightHand: boolean;
|
|
@@ -35,8 +35,8 @@ export interface IDedicatedServerInfo {
|
|
|
35
35
|
dailyChallenge?: boolean;
|
|
36
36
|
};
|
|
37
37
|
ssh: boolean;
|
|
38
|
-
sshPort
|
|
39
|
-
sshUsername
|
|
38
|
+
sshPort: number;
|
|
39
|
+
sshUsername: string;
|
|
40
40
|
sshPassword?: string;
|
|
41
41
|
devMode: boolean;
|
|
42
42
|
syncChecks: MultiplayerSyncCheckLevel;
|
|
@@ -33,6 +33,7 @@ export interface IUiEvents {
|
|
|
33
33
|
interruptClose(options: Partial<InterruptOptions>, result?: string | boolean | InterruptChoice): any;
|
|
34
34
|
loadedFromSave(): any;
|
|
35
35
|
toggleShowMoreInformation(showingMoreInformation: boolean): any;
|
|
36
|
+
toggleHealthVignette(healthVignette: boolean): any;
|
|
36
37
|
toggleDeveloperMode(developerMode: boolean): any;
|
|
37
38
|
}
|
|
38
39
|
export declare class Ui extends EventEmitter.Host<IUiEvents> {
|
|
@@ -63,6 +64,10 @@ export declare class Ui extends EventEmitter.Host<IUiEvents> {
|
|
|
63
64
|
playSound(sound: SfxType | "activate" | "select" | "input" | "enable" | "disable"): void;
|
|
64
65
|
shouldShowMoreInformation(): boolean;
|
|
65
66
|
toggleShowMoreInformation(showMoreInformation: boolean): void;
|
|
67
|
+
/**
|
|
68
|
+
* Toggle health vignette
|
|
69
|
+
*/
|
|
70
|
+
toggleHealthVignette(healthVignette: boolean): void;
|
|
66
71
|
/**
|
|
67
72
|
* Toggles fullscreen
|
|
68
73
|
*/
|
|
@@ -65,7 +65,7 @@ declare enum BindingEvent {
|
|
|
65
65
|
holding = 2
|
|
66
66
|
}
|
|
67
67
|
declare type BindingEventName = keyof typeof BindingEvent;
|
|
68
|
-
export { BindingEventName as BindingEvent };
|
|
68
|
+
export type { BindingEventName as BindingEvent };
|
|
69
69
|
declare module Bind {
|
|
70
70
|
/**
|
|
71
71
|
* Registers a handler for when the given `Bindable` is pressed. This event won't be fired again until the `Bindable` was then *released*.
|
|
@@ -79,7 +79,6 @@ export default class InGameScreen extends BaseScreen {
|
|
|
79
79
|
actionsMenuCentered: boolean;
|
|
80
80
|
private activeContainer;
|
|
81
81
|
private multipleContainersOpened;
|
|
82
|
-
private contextMenuBindPressed;
|
|
83
82
|
private sortableElement;
|
|
84
83
|
private sortableElementPosition;
|
|
85
84
|
private sortableElementTargetContainer;
|
|
@@ -237,7 +236,6 @@ export default class InGameScreen extends BaseScreen {
|
|
|
237
236
|
onItemEquipToggle(api: IBindHandlerApi): boolean;
|
|
238
237
|
onItemProtectToggle(api: IBindHandlerApi): boolean;
|
|
239
238
|
onContextMenu(api: IBindHandlerApi): boolean;
|
|
240
|
-
onContextMenuReleased(_api: IBindHandlerApi): void;
|
|
241
239
|
onQuickSlotToggle(api: IBindHandlerApi): boolean;
|
|
242
240
|
onQuickSlot(api: IBindHandlerApi): boolean;
|
|
243
241
|
onQuickSlotClear(api: IBindHandlerApi): boolean;
|
|
@@ -47,6 +47,7 @@ export default class GameScreen extends Screen {
|
|
|
47
47
|
private readonly quadrantMap;
|
|
48
48
|
private readonly quadrantComponents;
|
|
49
49
|
private readonly gameCanvas;
|
|
50
|
+
private readonly effects;
|
|
50
51
|
private readonly placeholders;
|
|
51
52
|
private readonly islandIntroWrapper;
|
|
52
53
|
private readonly buttonRespawn;
|
|
@@ -60,6 +61,11 @@ export default class GameScreen extends Screen {
|
|
|
60
61
|
onLoadedOnIsland(player: Player, island: Island): void;
|
|
61
62
|
private showIslandIntro;
|
|
62
63
|
onGameTickEnd(game: Game, tickFlag: TickFlag): void;
|
|
64
|
+
onExploreAsGhost(): void;
|
|
65
|
+
/**
|
|
66
|
+
* Notee: calculateEquipmentStats is always ran after calculateStats is called, so this will work
|
|
67
|
+
*/
|
|
68
|
+
onCalculateEquipmentStats(): void;
|
|
63
69
|
/**
|
|
64
70
|
* Refreshed death / ghost state stuff
|
|
65
71
|
*/
|
|
@@ -72,7 +78,15 @@ export default class GameScreen extends Screen {
|
|
|
72
78
|
* Refreshes respawn button state
|
|
73
79
|
*/
|
|
74
80
|
private refreshRespawnButton;
|
|
75
|
-
|
|
81
|
+
private refreshHealthBasedEffects;
|
|
82
|
+
/**
|
|
83
|
+
* Refreshes the state of the hurt effect
|
|
84
|
+
*/
|
|
85
|
+
private refreshHurtEffect;
|
|
86
|
+
/**
|
|
87
|
+
* Refreshes the state of the music speed
|
|
88
|
+
*/
|
|
89
|
+
private refreshMusicSpeed;
|
|
76
90
|
onOpenBook(human: Human, item: Item): void;
|
|
77
91
|
protected onReadMap1(map: DrawnMap, item: Item, reader: Human): void;
|
|
78
92
|
protected onSailOffMapEdge(player: Player, direction: Direction): void;
|
|
@@ -83,6 +97,7 @@ export default class GameScreen extends Screen {
|
|
|
83
97
|
protected onScreenshotMode(): boolean;
|
|
84
98
|
protected onShowMoreInfo(): void;
|
|
85
99
|
protected onUnshowMoreInfo(): void;
|
|
100
|
+
protected onDisableHealthVignette(): void;
|
|
86
101
|
protected onCancel(): boolean;
|
|
87
102
|
protected create(): void;
|
|
88
103
|
protected onHide(): void;
|
package/package.json
CHANGED