@wayward/types 2.11.3-beta.dev.20220118.1 → 2.11.3-beta.dev.20220123.2
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/entity/player/Player.d.ts +1 -2
- package/definitions/game/game/item/ItemManager.d.ts +5 -3
- package/definitions/game/language/dictionary/UiTranslation.d.ts +285 -283
- package/definitions/game/multiplayer/IMultiplayer.d.ts +1 -1
- package/definitions/game/multiplayer/Multiplayer.d.ts +14 -4
- package/definitions/game/multiplayer/packets/IPacket.d.ts +6 -2
- package/definitions/game/multiplayer/packets/server/DesyncPacket.d.ts +6 -0
- package/definitions/game/multiplayer/packets/{shared → server}/UpdateMovementIntentPacket.d.ts +2 -2
- package/definitions/game/multiplayer/packets/{server → shared}/LogsPacket.d.ts +4 -3
- package/definitions/game/renderer/fieldOfView/FieldOfView.d.ts +4 -0
- package/definitions/game/save/data/ISaveDataGlobal.d.ts +2 -1
- package/definitions/game/ui/Ui.d.ts +5 -0
- 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,
|
|
@@ -16,7 +16,7 @@ import { CreatureType } from "game/entity/creature/ICreature";
|
|
|
16
16
|
import Human from "game/entity/Human";
|
|
17
17
|
import { EntityType, IStatChangeInfo, StatusEffectChangeReason, StatusType } from "game/entity/IEntity";
|
|
18
18
|
import type { ICheckUnderOptions, IRestData } from "game/entity/IHuman";
|
|
19
|
-
import { EquipType, RestCancelReason,
|
|
19
|
+
import { EquipType, RestCancelReason, SkillType } from "game/entity/IHuman";
|
|
20
20
|
import type { IStat } from "game/entity/IStats";
|
|
21
21
|
import { Stat } from "game/entity/IStats";
|
|
22
22
|
import type { ILoadOnIslandOptions, IMovementIntent, IPlayerEvents, IWalkPath } from "game/entity/player/IPlayer";
|
|
@@ -102,7 +102,6 @@ export default class Player extends Human implements IUnserializedCallback {
|
|
|
102
102
|
setStatus(status: StatusType, hasStatus: boolean, reason: StatusEffectChangeReason): void;
|
|
103
103
|
startResting(restData: IRestData): void;
|
|
104
104
|
cancelResting(reason: RestCancelReason): boolean;
|
|
105
|
-
showRestInterrupt(restType: RestType): void;
|
|
106
105
|
/**
|
|
107
106
|
* Updates caused by status effects such as bleeding, poison, and burns.
|
|
108
107
|
*/
|
|
@@ -76,6 +76,7 @@ export default class ItemManager extends ObjectManager<Item, IItemManagerEvents>
|
|
|
76
76
|
private static cachedWeights;
|
|
77
77
|
private static cachedDefaultItemForGroup;
|
|
78
78
|
private static cachedBestItemForTier;
|
|
79
|
+
private static cachedHighestItemActionTierForAction;
|
|
79
80
|
private static cachedItemGroups;
|
|
80
81
|
private static cachedItemsThatAreAcceptedAsOffer;
|
|
81
82
|
private static cachedItemsThatAreUsedInRecipes;
|
|
@@ -85,6 +86,7 @@ export default class ItemManager extends ObjectManager<Item, IItemManagerEvents>
|
|
|
85
86
|
static getItemTypes(): readonly ItemType[];
|
|
86
87
|
static getItemsWithRecipes(): readonly ItemType[];
|
|
87
88
|
static getBestItemForTier(item: ItemType | ItemTypeGroup): ItemType | undefined;
|
|
89
|
+
static getHighestItemActionTierForAction(action: ActionType): number | undefined;
|
|
88
90
|
static isItemAcceptedAsOffer(item: ItemType): boolean | undefined;
|
|
89
91
|
static isItemUsedInRecipe(item: ItemType): boolean | undefined;
|
|
90
92
|
static isGroup(item: ItemType | ItemTypeGroup): item is ItemTypeGroup;
|
|
@@ -188,13 +190,13 @@ export default class ItemManager extends ObjectManager<Item, IItemManagerEvents>
|
|
|
188
190
|
*/
|
|
189
191
|
getBestSafeItemInContainerByUse(container: IContainer, action: ActionType, allowProtectedItems?: boolean, actionMayDamageItem?: boolean, consumable?: boolean): Item | undefined;
|
|
190
192
|
getItemInContainer(container: IContainer, itemTypeSearch: ItemType, ignoreItem?: Item, allowProtectedItems?: boolean): Item | undefined;
|
|
191
|
-
getItemForHuman(human: Human, search: ItemType | ItemTypeGroup, allowProtectedItems?: boolean): Item | undefined;
|
|
192
|
-
getItemInContainerByGroup(container: IContainer, itemTypeGroupSearch: ItemTypeGroup,
|
|
193
|
+
getItemForHuman(human: Human, search: ItemType | ItemTypeGroup, ignoreItem?: Item, allowProtectedItems?: boolean): Item | undefined;
|
|
194
|
+
getItemInContainerByGroup(container: IContainer, itemTypeGroupSearch: ItemTypeGroup, ignoreItem?: Item, allowProtectedItems?: boolean): Item | undefined;
|
|
193
195
|
getItemInAdjacentContainersByGroup(position: IVector3, itemTypeGroupSearch: ItemTypeGroup): Item | undefined;
|
|
194
196
|
getItemsInContainer(container: IContainer, includeSubContainers?: boolean, allowProtectedItems?: boolean): Item[];
|
|
195
197
|
getItemsInContainerByType(container: IContainer, itemType: ItemType, includeSubContainers?: boolean, filterText?: string): Item[];
|
|
196
198
|
getItemsInContainerByGroup(container: IContainer, itemGroup: ItemTypeGroup, includeSubContainers?: boolean): Item[];
|
|
197
|
-
getItemInInventoryByGroup(human: Human, itemTypeGroupSearch: ItemTypeGroup,
|
|
199
|
+
getItemInInventoryByGroup(human: Human, itemTypeGroupSearch: ItemTypeGroup, ignoreItem?: Item): Item | undefined;
|
|
198
200
|
isItemInContainer(container: IContainer, itemTypeSearch: ItemType, ignoreItem?: Item): boolean;
|
|
199
201
|
isContainableInContainer(containable: IContainable, container: IContainer): boolean;
|
|
200
202
|
getAdjacentContainers(humanOrPosition: Human | IVector3, includeNpcs?: boolean, ignoreOptions?: boolean): IContainer[];
|
|
@@ -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;
|
|
@@ -134,8 +134,8 @@ export interface IMultiplayerNetworkingOptions {
|
|
|
134
134
|
enableWebRtcConnections: boolean;
|
|
135
135
|
enablePacketNumberChecks: boolean;
|
|
136
136
|
logPackets: boolean;
|
|
137
|
-
logSyncChecks: boolean;
|
|
138
137
|
recentPacketTracking: number;
|
|
138
|
+
recentHashedSyncCheckTracking: number;
|
|
139
139
|
joinServerTimeout: number;
|
|
140
140
|
steamNetworkTimeout: number;
|
|
141
141
|
webRtcTimeout: number;
|
|
@@ -16,6 +16,7 @@ import { DisconnectReason, JoinServerRetryReason, MultiplayerSyncCheck, UnableTo
|
|
|
16
16
|
import type { IMatchmakingInfo } from "multiplayer/matchmaking/IMatchmaking";
|
|
17
17
|
import type { IConnection } from "multiplayer/networking/IConnection";
|
|
18
18
|
import type { IPacket } from "multiplayer/packets/IPacket";
|
|
19
|
+
import DesyncPacket from "multiplayer/packets/server/DesyncPacket";
|
|
19
20
|
export default class Multiplayer extends EventEmitter.Host<IMultiplayerEvents> {
|
|
20
21
|
/**
|
|
21
22
|
* Static steam account id when steam support is on
|
|
@@ -47,11 +48,12 @@ export default class Multiplayer extends EventEmitter.Host<IMultiplayerEvents> {
|
|
|
47
48
|
private _currentPacketProcessing;
|
|
48
49
|
private _currentSyncPacketsWaiting;
|
|
49
50
|
private _currentSyncPacketsProcessing;
|
|
50
|
-
private _syncCheckStack;
|
|
51
51
|
private _activeSyncCheck;
|
|
52
|
-
private _syncChecksSuppressed;
|
|
53
|
-
private _recentPackets;
|
|
54
52
|
private _enabledSyncChecks;
|
|
53
|
+
private readonly _recentHashedSyncChecks;
|
|
54
|
+
private _recentPackets;
|
|
55
|
+
private _syncChecksSuppressed;
|
|
56
|
+
private _syncCheckStack;
|
|
55
57
|
private _disconnectingFromSyncIssue;
|
|
56
58
|
private _reportedSyncHashMismatch;
|
|
57
59
|
private readonly _autojoinEnabled;
|
|
@@ -140,14 +142,20 @@ export default class Multiplayer extends EventEmitter.Host<IMultiplayerEvents> {
|
|
|
140
142
|
addKeepAliveTimeouts(): void;
|
|
141
143
|
updateGlobalServerDirectory(): void;
|
|
142
144
|
checkConnection(): Promise<void>;
|
|
143
|
-
isSyncCheckEnabled(syncCheck: MultiplayerSyncCheck
|
|
145
|
+
isSyncCheckEnabled(syncCheck: MultiplayerSyncCheck): boolean;
|
|
144
146
|
addSyncCheck(syncCheck: MultiplayerSyncCheck, value: any, addStackTrace?: boolean): void;
|
|
145
147
|
addMiscSeedSyncCheck(island: Island, ...messages: any[]): void;
|
|
146
148
|
addBeforeSyncChecks(packet: IPacket): void;
|
|
147
149
|
addAfterSyncChecks(packet: IPacket): void;
|
|
148
150
|
sendChatMessage(sender: Player, message: string): void;
|
|
149
151
|
private addDefaultSyncChecks;
|
|
152
|
+
/**
|
|
153
|
+
* Returns sync check hashes
|
|
154
|
+
* @returns [all sync checks hash, enabled sync checks hash]
|
|
155
|
+
*/
|
|
150
156
|
private getPacketSyncChecks;
|
|
157
|
+
private recordHashedSyncCheck;
|
|
158
|
+
private filterEnabledSyncChecks;
|
|
151
159
|
private hashSyncCheckHash;
|
|
152
160
|
private clearJoinServerRetryTimeout;
|
|
153
161
|
createOrExtendSteamNetworkConnectionWebRTCFallbackTimer(timeoutTime: number): void;
|
|
@@ -169,6 +177,8 @@ export default class Multiplayer extends EventEmitter.Host<IMultiplayerEvents> {
|
|
|
169
177
|
private processPacket;
|
|
170
178
|
private synchronizationCheck;
|
|
171
179
|
private logSyncCheckErrors;
|
|
180
|
+
private sendDesyncPacket;
|
|
181
|
+
processDesyncPacket(connection: IConnection, desyncPacket: DesyncPacket): void;
|
|
172
182
|
private sendPacketInternal;
|
|
173
183
|
private onStateChange;
|
|
174
184
|
private convertToMatchmakingInfo;
|
|
@@ -17,12 +17,16 @@ export declare enum PacketType {
|
|
|
17
17
|
}
|
|
18
18
|
export interface ISynchronizationCheckData {
|
|
19
19
|
packetNumber?: number;
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
beforeEnabledSyncChecksHash?: number;
|
|
21
|
+
afterEnabledSyncChecksHash?: number;
|
|
22
22
|
beforeSyncChecksHash?: number;
|
|
23
23
|
afterSyncChecksHash?: number;
|
|
24
24
|
}
|
|
25
25
|
export declare type ISyncCheck = Record<number, Array<number | string>>;
|
|
26
|
+
export interface IHashedSyncCheck {
|
|
27
|
+
hash: number;
|
|
28
|
+
syncCheck: ISyncCheck;
|
|
29
|
+
}
|
|
26
30
|
export interface IPacket<T = any> {
|
|
27
31
|
getAllowedStates(): ConnectionState;
|
|
28
32
|
getArrayBuffer(id?: number): ArrayBuffer;
|
|
@@ -8,11 +8,17 @@
|
|
|
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 { IHashedSyncCheck } from "multiplayer/packets/IPacket";
|
|
11
12
|
import ServerPacket from "multiplayer/packets/ServerPacket";
|
|
12
13
|
/**
|
|
13
14
|
* The player sends this to the server when they have desynced
|
|
14
15
|
*/
|
|
15
16
|
export default class DesyncPacket extends ServerPacket {
|
|
17
|
+
packetId: number;
|
|
18
|
+
packetDebugInfo: string;
|
|
19
|
+
hashedSyncCheck: IHashedSyncCheck;
|
|
20
|
+
checkBefore: boolean;
|
|
21
|
+
shouldDisconnect: boolean;
|
|
16
22
|
logs: string;
|
|
17
23
|
getDebugInfo(): string;
|
|
18
24
|
isSyncCheckEnabled(): boolean;
|
package/definitions/game/multiplayer/packets/{shared → server}/UpdateMovementIntentPacket.d.ts
RENAMED
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
11
|
import type { IMovementIntent } from "game/entity/player/IPlayer";
|
|
12
|
-
import
|
|
13
|
-
export default class UpdateMovementIntentPacket extends
|
|
12
|
+
import PlayerTargetedServerPacket from "multiplayer/packets/PlayerTargetedServerPacket";
|
|
13
|
+
export default class UpdateMovementIntentPacket extends PlayerTargetedServerPacket {
|
|
14
14
|
intent: IMovementIntent;
|
|
15
15
|
getDebugInfo(): string;
|
|
16
16
|
isAllowedWhenPaused(): boolean;
|
|
@@ -8,10 +8,11 @@
|
|
|
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
|
|
12
|
-
|
|
11
|
+
import PlayerTargetedSharedPacket from "multiplayer/packets/PlayerTargetedSharedPacket";
|
|
12
|
+
import { LogLineType } from "utilities/Log";
|
|
13
|
+
export default class LogsPacket extends PlayerTargetedSharedPacket {
|
|
13
14
|
logs: string;
|
|
14
|
-
|
|
15
|
+
logType: LogLineType;
|
|
15
16
|
getDebugInfo(): string;
|
|
16
17
|
isSyncCheckEnabled(): boolean;
|
|
17
18
|
isAllowedWhenPaused(): boolean;
|
|
@@ -59,6 +59,10 @@ export default class FieldOfView extends EventEmitter.Host<IFieldOfViewEvents> {
|
|
|
59
59
|
*/
|
|
60
60
|
static updateExplored(fieldOfView: FieldOfView | undefined, updateForGhosts?: boolean): void;
|
|
61
61
|
private static processExploredMapBounds;
|
|
62
|
+
/**
|
|
63
|
+
* Gets the field of view radius based on either the field of view object, player, or the default value
|
|
64
|
+
*/
|
|
65
|
+
private static getRadius;
|
|
62
66
|
/**
|
|
63
67
|
* Marks a set of tiles as exploreed
|
|
64
68
|
*/
|
|
@@ -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;
|
|
@@ -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
|
*/
|
|
@@ -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