@wayward/types 2.15.3-beta.dev.20251221.1 → 2.15.3-beta.dev.20251223.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.
@@ -8,7 +8,7 @@ on:
8
8
  env:
9
9
  REPO_NAME: ${{ github.event.repository.name }}
10
10
  EXTRA_RELEASE_ARGS: ${{ github.ref == 'refs/heads/development' && '--prerelease' || '' }}
11
- EXTRA_NPM_ARGS: ${{ github.ref == 'refs/heads/development' && '--tag dev' || '' }}
11
+ EXTRA_NPM_ARGS: ${{ github.ref == 'refs/heads/development' && '--tag dev' || '--tag latest' }}
12
12
 
13
13
  jobs:
14
14
  release:
@@ -18,7 +18,7 @@ import Human from "@wayward/game/game/entity/Human";
18
18
  import type { SkillType } from "../entity/skill/ISkills";
19
19
  import Creature from "@wayward/game/game/entity/creature/Creature";
20
20
  import CreatureManager from "@wayward/game/game/entity/creature/CreatureManager";
21
- import type { IDamageInfo, IDamageOutcome, IDamageOutcomeInput } from "@wayward/game/game/entity/creature/ICreature";
21
+ import { type IDamageInfo, type IDamageOutcome, type IDamageOutcomeInput } from "@wayward/game/game/entity/creature/ICreature";
22
22
  import CorpseManager from "@wayward/game/game/entity/creature/corpse/CorpseManager";
23
23
  import CreatureZoneManager from "@wayward/game/game/entity/creature/zone/CreatureZoneManager";
24
24
  import FlowFieldManager from "@wayward/game/game/entity/flowfield/FlowFieldManager";
@@ -469,6 +469,7 @@ export default class Tile implements IVector4, Partial<ITileContainer>, IFieldOf
469
469
  */
470
470
  getPreferredAdjacentTile(human: Human, clientSide: boolean): Tile | undefined;
471
471
  tilesInRange(type: DistanceType, range: number, includeCurrentTile?: boolean): Tile[];
472
+ squareSpiralOutwards(includeCurrentTile?: boolean): Generator<Tile>;
472
473
  openTileInRange(type: DistanceType, range: number, includeCurrentTile?: boolean, excludeWater?: boolean): Tile | undefined;
473
474
  /**
474
475
  * Array version of tilesAround
@@ -714,183 +714,184 @@ declare enum Message {
714
714
  SummonVoidDwellerItem = 702,
715
715
  SummonVoidDwellerRinging = 703,
716
716
  SummonVoidDwellerShiver = 704,
717
- SunNotBrightEnoughToStartFire = 705,
718
- SwampWater = 706,
719
- Swimming = 707,
720
- TakenFromGroundBecomeTamed = 708,
721
- TeleportBlocked = 709,
722
- Teleported = 710,
723
- TheirFist = 711,
724
- TheirInventory = 712,
725
- ThePlant = 713,
726
- ThereIsNoContainerOnTheStill = 714,
727
- ThereIsNoSunToStartFire = 715,
728
- ThisCannotBeMilked = 716,
729
- Throw = 717,
730
- ThrownIntoDepths = 718,
731
- ThrownIntoObstacle = 719,
732
- ThrownIntoVoid = 720,
733
- TierGroup = 721,
734
- TileMakeCaveEntranceNearby = 722,
735
- TileMakeCaveEntrancePassable = 723,
736
- TileMakeCaveEntranceVoid = 724,
737
- Till = 725,
738
- Tilling = 726,
739
- TimeIs = 727,
740
- TimeIsDawn = 728,
741
- TimeIsDaytime = 729,
742
- TimeIsDusk = 730,
743
- TimeIsNighttime = 731,
744
- TimeIsSunrise = 732,
745
- TimeIsSunset = 733,
746
- ToFight = 734,
747
- TooDamaged = 735,
748
- TooExhaustedToJump = 736,
749
- Touching = 737,
750
- TrampledFire = 738,
751
- TrampledFireFail = 739,
752
- TrampledFirePartial = 740,
753
- TrampledIntoGround = 741,
754
- TrampleIntoGround = 742,
755
- Trampling = 743,
756
- TransmogrificationNoEffect = 744,
757
- TransmogrificationNotPossible = 745,
758
- Transmogrified = 746,
759
- TrapMissed = 747,
760
- TrapStoppedYou = 748,
761
- Traveling = 749,
762
- Treasure = 750,
763
- TreasureIsBlocked = 751,
764
- UiActionCannotUseInaccessibleItem = 752,
765
- UiActionCannotUseInThisSituation = 753,
766
- UiActionCannotUseNoItemHovered = 754,
767
- UiActionCannotUseNotInRange = 755,
768
- UiActionCannotUseOnThisIsland = 756,
769
- UiActionCannotUseRequiresCreature = 757,
770
- UiActionCannotUseRequiresDoodad = 758,
771
- UiActionCannotUseRequiresItem = 759,
772
- UiActionCannotUseRequiresNPC = 760,
773
- UiActionCannotUseRequiresVehicle = 761,
774
- UiDialogTradeIndicateTradeAlreadyTradedBuyDialogue1 = 762,
775
- UiDialogTradeIndicateTradeAlreadyTradedBuyDialogue2 = 763,
776
- UiDialogTradeIndicateTradeAlreadyTradedBuyDialogue3 = 764,
777
- UiDialogTradeIndicateTradeAlreadyTradedSellDialogue1 = 765,
778
- UiDialogTradeIndicateTradeAlreadyTradedSellDialogue2 = 766,
779
- UiDialogTradeIndicateTradeAlreadyTradedSellDialogue3 = 767,
780
- UiDialogTradeIndicateTradeTooMuchTradesDialogue1 = 768,
781
- UiDialogTradeIndicateTradeTooMuchTradesDialogue2 = 769,
782
- UiDialogTradeIndicateTradeTooMuchTradesDialogue3 = 770,
783
- UnhitchCreature = 771,
784
- Unknown = 772,
785
- Unlimited = 773,
786
- UnlockedChest = 774,
787
- UnpurifiedFreshWater = 775,
788
- UnpurifiedWaterInStill = 776,
789
- UnpurifiedWaterInTop = 777,
790
- Use = 778,
791
- UsingBareHands = 779,
792
- VehicleDefense = 780,
793
- Vulnerable = 781,
794
- Water = 782,
795
- WaterGathering = 783,
796
- WaterPutOutFire = 784,
797
- WellIsDry = 785,
798
- WellIsFull = 786,
799
- WildGoatRefusedToBeMilked = 787,
800
- WorkingYourselfIntoExhaustion = 788,
801
- WorkingYourselfIntoExhaustionAndDrowning = 789,
802
- WorldContainer = 790,
803
- You = 791,
804
- YouAbsorb = 792,
805
- YouApplied = 793,
806
- YouAreAlready = 794,
807
- YouAte = 795,
808
- YouBeginResting = 796,
809
- YouCannotDoThatYet = 797,
810
- YouCanNowCombatTheTides = 798,
811
- YouCrafted = 799,
812
- YouDoNotFindTreasureYet = 800,
813
- YouDrank = 801,
814
- YouDropTheTorch = 802,
815
- YouEnchant = 803,
816
- YouEquip = 804,
817
- YouExude = 805,
818
- YouExudeSome = 806,
819
- YouExudeSomeReasonConflicting = 807,
820
- YouExudeSomeReasonMax = 808,
821
- YouExudeSomeReasonProperties = 809,
822
- YouFailedTo = 810,
823
- YouFailedToExtinguishedFireFully = 811,
824
- YouFailedToHeal = 812,
825
- YouFailedToHealOther = 813,
826
- YouFire = 814,
827
- YouGathered = 815,
828
- YouHarvested = 816,
829
- YouHave = 817,
830
- YouHaveAlreadyLearned = 818,
831
- YouHaveBeenCut = 819,
832
- YouHaveCaged = 820,
833
- YouHaveCommanded = 821,
834
- YouHaveDied = 822,
835
- YouHaveHealedOther = 823,
836
- YouHaveKilled = 824,
837
- YouHaveNotCommanded = 825,
838
- YouHaveReleased = 826,
839
- YouHaveSummoned = 827,
840
- YouHaveTamed = 828,
841
- YouHaveUncaged = 829,
842
- YouNoticeBecomeEnraged = 830,
843
- YouNoticeDying = 831,
844
- YouNoticeFertilityDecreasing = 832,
845
- YouNoticeFertilityIncreasing = 833,
846
- YouNoticeGrowing = 834,
847
- YouNoticeLavaCooling = 835,
848
- YouNoticeLavaHardening = 836,
849
- YouNoticePerish = 837,
850
- YouNoticePlantDamage = 838,
851
- YouNoticePlantRegenerated = 839,
852
- YouNoticeStumbleInjureItself = 840,
853
- YouNoticeTakeFromGround = 841,
854
- YouNoticeWoundsClosing = 842,
855
- YouOfferedToCreature = 843,
856
- YouOfferedToCreatureRejects = 844,
857
- YouOpen = 845,
858
- YouPacked = 846,
859
- YouPickedUp = 847,
860
- YouRefine = 848,
861
- YouReinforce = 849,
862
- YouRepair = 850,
863
- YouReturnFromCivilizationWith = 851,
864
- YourFist = 852,
865
- YourHands = 853,
866
- YourInventory = 854,
867
- YourIsland = 855,
868
- YouSeeALivingMushroomSpore = 856,
869
- YouSeeASkeletonCollapse = 857,
870
- YouSeeASlimeCombine = 858,
871
- YouSeeAZombieBleeding = 859,
872
- YouSeeCoolDown = 860,
873
- YouSeeDrop = 861,
874
- YouSeeEngulfFire = 862,
875
- YouSeeFireSpread = 863,
876
- YouSeeHelpingPlant = 864,
877
- YouSeeLay = 865,
878
- YouSeeLayingTrap = 866,
879
- YouSeeSpewLava = 867,
880
- YouSeeSpiderSpin = 868,
881
- YouSeeSpitAcid = 869,
882
- YouSeeSpringForth = 870,
883
- YouSeeSummon = 871,
884
- YouSeeSwampFlood = 872,
885
- YouSeeTrampling = 873,
886
- YouSetTheTrapOff = 874,
887
- YouStokeTheCreature = 875,
888
- YouSwapMainHandAndOffHand = 876,
889
- YouThrew = 877,
890
- YouTilled = 878,
891
- YouUnequip = 879,
892
- YouUsed = 880,
893
- YouViewTheItemsOn = 881,
894
- YouWhileTraveling = 882
717
+ VoidDwellerVanishes = 705,
718
+ SunNotBrightEnoughToStartFire = 706,
719
+ SwampWater = 707,
720
+ Swimming = 708,
721
+ TakenFromGroundBecomeTamed = 709,
722
+ TeleportBlocked = 710,
723
+ Teleported = 711,
724
+ TheirFist = 712,
725
+ TheirInventory = 713,
726
+ ThePlant = 714,
727
+ ThereIsNoContainerOnTheStill = 715,
728
+ ThereIsNoSunToStartFire = 716,
729
+ ThisCannotBeMilked = 717,
730
+ Throw = 718,
731
+ ThrownIntoDepths = 719,
732
+ ThrownIntoObstacle = 720,
733
+ ThrownIntoVoid = 721,
734
+ TierGroup = 722,
735
+ TileMakeCaveEntranceNearby = 723,
736
+ TileMakeCaveEntrancePassable = 724,
737
+ TileMakeCaveEntranceVoid = 725,
738
+ Till = 726,
739
+ Tilling = 727,
740
+ TimeIs = 728,
741
+ TimeIsDawn = 729,
742
+ TimeIsDaytime = 730,
743
+ TimeIsDusk = 731,
744
+ TimeIsNighttime = 732,
745
+ TimeIsSunrise = 733,
746
+ TimeIsSunset = 734,
747
+ ToFight = 735,
748
+ TooDamaged = 736,
749
+ TooExhaustedToJump = 737,
750
+ Touching = 738,
751
+ TrampledFire = 739,
752
+ TrampledFireFail = 740,
753
+ TrampledFirePartial = 741,
754
+ TrampledIntoGround = 742,
755
+ TrampleIntoGround = 743,
756
+ Trampling = 744,
757
+ TransmogrificationNoEffect = 745,
758
+ TransmogrificationNotPossible = 746,
759
+ Transmogrified = 747,
760
+ TrapMissed = 748,
761
+ TrapStoppedYou = 749,
762
+ Traveling = 750,
763
+ Treasure = 751,
764
+ TreasureIsBlocked = 752,
765
+ UiActionCannotUseInaccessibleItem = 753,
766
+ UiActionCannotUseInThisSituation = 754,
767
+ UiActionCannotUseNoItemHovered = 755,
768
+ UiActionCannotUseNotInRange = 756,
769
+ UiActionCannotUseOnThisIsland = 757,
770
+ UiActionCannotUseRequiresCreature = 758,
771
+ UiActionCannotUseRequiresDoodad = 759,
772
+ UiActionCannotUseRequiresItem = 760,
773
+ UiActionCannotUseRequiresNPC = 761,
774
+ UiActionCannotUseRequiresVehicle = 762,
775
+ UiDialogTradeIndicateTradeAlreadyTradedBuyDialogue1 = 763,
776
+ UiDialogTradeIndicateTradeAlreadyTradedBuyDialogue2 = 764,
777
+ UiDialogTradeIndicateTradeAlreadyTradedBuyDialogue3 = 765,
778
+ UiDialogTradeIndicateTradeAlreadyTradedSellDialogue1 = 766,
779
+ UiDialogTradeIndicateTradeAlreadyTradedSellDialogue2 = 767,
780
+ UiDialogTradeIndicateTradeAlreadyTradedSellDialogue3 = 768,
781
+ UiDialogTradeIndicateTradeTooMuchTradesDialogue1 = 769,
782
+ UiDialogTradeIndicateTradeTooMuchTradesDialogue2 = 770,
783
+ UiDialogTradeIndicateTradeTooMuchTradesDialogue3 = 771,
784
+ UnhitchCreature = 772,
785
+ Unknown = 773,
786
+ Unlimited = 774,
787
+ UnlockedChest = 775,
788
+ UnpurifiedFreshWater = 776,
789
+ UnpurifiedWaterInStill = 777,
790
+ UnpurifiedWaterInTop = 778,
791
+ Use = 779,
792
+ UsingBareHands = 780,
793
+ VehicleDefense = 781,
794
+ Vulnerable = 782,
795
+ Water = 783,
796
+ WaterGathering = 784,
797
+ WaterPutOutFire = 785,
798
+ WellIsDry = 786,
799
+ WellIsFull = 787,
800
+ WildGoatRefusedToBeMilked = 788,
801
+ WorkingYourselfIntoExhaustion = 789,
802
+ WorkingYourselfIntoExhaustionAndDrowning = 790,
803
+ WorldContainer = 791,
804
+ You = 792,
805
+ YouAbsorb = 793,
806
+ YouApplied = 794,
807
+ YouAreAlready = 795,
808
+ YouAte = 796,
809
+ YouBeginResting = 797,
810
+ YouCannotDoThatYet = 798,
811
+ YouCanNowCombatTheTides = 799,
812
+ YouCrafted = 800,
813
+ YouDoNotFindTreasureYet = 801,
814
+ YouDrank = 802,
815
+ YouDropTheTorch = 803,
816
+ YouEnchant = 804,
817
+ YouEquip = 805,
818
+ YouExude = 806,
819
+ YouExudeSome = 807,
820
+ YouExudeSomeReasonConflicting = 808,
821
+ YouExudeSomeReasonMax = 809,
822
+ YouExudeSomeReasonProperties = 810,
823
+ YouFailedTo = 811,
824
+ YouFailedToExtinguishedFireFully = 812,
825
+ YouFailedToHeal = 813,
826
+ YouFailedToHealOther = 814,
827
+ YouFire = 815,
828
+ YouGathered = 816,
829
+ YouHarvested = 817,
830
+ YouHave = 818,
831
+ YouHaveAlreadyLearned = 819,
832
+ YouHaveBeenCut = 820,
833
+ YouHaveCaged = 821,
834
+ YouHaveCommanded = 822,
835
+ YouHaveDied = 823,
836
+ YouHaveHealedOther = 824,
837
+ YouHaveKilled = 825,
838
+ YouHaveNotCommanded = 826,
839
+ YouHaveReleased = 827,
840
+ YouHaveSummoned = 828,
841
+ YouHaveTamed = 829,
842
+ YouHaveUncaged = 830,
843
+ YouNoticeBecomeEnraged = 831,
844
+ YouNoticeDying = 832,
845
+ YouNoticeFertilityDecreasing = 833,
846
+ YouNoticeFertilityIncreasing = 834,
847
+ YouNoticeGrowing = 835,
848
+ YouNoticeLavaCooling = 836,
849
+ YouNoticeLavaHardening = 837,
850
+ YouNoticePerish = 838,
851
+ YouNoticePlantDamage = 839,
852
+ YouNoticePlantRegenerated = 840,
853
+ YouNoticeStumbleInjureItself = 841,
854
+ YouNoticeTakeFromGround = 842,
855
+ YouNoticeWoundsClosing = 843,
856
+ YouOfferedToCreature = 844,
857
+ YouOfferedToCreatureRejects = 845,
858
+ YouOpen = 846,
859
+ YouPacked = 847,
860
+ YouPickedUp = 848,
861
+ YouRefine = 849,
862
+ YouReinforce = 850,
863
+ YouRepair = 851,
864
+ YouReturnFromCivilizationWith = 852,
865
+ YourFist = 853,
866
+ YourHands = 854,
867
+ YourInventory = 855,
868
+ YourIsland = 856,
869
+ YouSeeALivingMushroomSpore = 857,
870
+ YouSeeASkeletonCollapse = 858,
871
+ YouSeeASlimeCombine = 859,
872
+ YouSeeAZombieBleeding = 860,
873
+ YouSeeCoolDown = 861,
874
+ YouSeeDrop = 862,
875
+ YouSeeEngulfFire = 863,
876
+ YouSeeFireSpread = 864,
877
+ YouSeeHelpingPlant = 865,
878
+ YouSeeLay = 866,
879
+ YouSeeLayingTrap = 867,
880
+ YouSeeSpewLava = 868,
881
+ YouSeeSpiderSpin = 869,
882
+ YouSeeSpitAcid = 870,
883
+ YouSeeSpringForth = 871,
884
+ YouSeeSummon = 872,
885
+ YouSeeSwampFlood = 873,
886
+ YouSeeTrampling = 874,
887
+ YouSetTheTrapOff = 875,
888
+ YouStokeTheCreature = 876,
889
+ YouSwapMainHandAndOffHand = 877,
890
+ YouThrew = 878,
891
+ YouTilled = 879,
892
+ YouUnequip = 880,
893
+ YouUsed = 881,
894
+ YouViewTheItemsOn = 882,
895
+ YouWhileTraveling = 883
895
896
  }
896
897
  export default Message;
@@ -59,7 +59,8 @@ export declare enum NotifierIconType {
59
59
  ItemDecay = 5,
60
60
  Talk = 6,
61
61
  DualWieldEnabled = 7,
62
- DualWieldDisabled = 8
62
+ DualWieldDisabled = 8,
63
+ Ringing = 9
63
64
  }
64
65
  export declare enum MarkerType {
65
66
  Tamed = 0,
@@ -31,6 +31,7 @@ export declare class Notifier {
31
31
  constructor(context: IRendererContext, capacity: number);
32
32
  setResources(resourceContainer: IResourceContainer): void;
33
33
  clear(): void;
34
+ clearFor(location: INotificationLocation): void;
34
35
  delete(): void;
35
36
  addItem(location: INotificationLocation, itemNotifierType: ItemNotifierType, type: DisplayableItemType, baseType?: DisplayableItemType): void;
36
37
  addCreature(location: INotificationLocation, creatureNotifierType: CreatureNotifierType, type: CreatureType, aberrant?: boolean): void;
@@ -88,6 +88,10 @@ export default class ContainerBucketItemList extends Component implements ISorta
88
88
  private readonly bucketRef;
89
89
  get bucket(): ContainerBucket;
90
90
  constructor(bucket: ContainerBucket, container?: IContainer);
91
+ /**
92
+ * This is required because ItemComponents might have created subscribers (i.e. registered highlights), which would remain even after this ContainerBucketItemList is removed since the child ItemComponents remain referenced by the highlights manager.
93
+ */
94
+ protected onRemoved(): void;
91
95
  private readonly activeReasons;
92
96
  toggleActive(reason: string, active: boolean): void;
93
97
  getSortableID(child: Component & Partial<ItemComponent>): number | undefined;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wayward/types",
3
3
  "description": "TypeScript declarations for Wayward, used for modding.",
4
- "version": "2.15.3-beta.dev.20251221.1",
4
+ "version": "2.15.3-beta.dev.20251223.1",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",