@wayward/types 2.14.3-beta.dev.20241224.1 → 2.14.3-beta.dev.20241225.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (23) hide show
  1. package/definitions/game/event/EventBuses.d.ts +16 -12
  2. package/definitions/game/event/EventManager.d.ts +7 -6
  3. package/definitions/game/game/entity/action/ActionsRegistration.d.ts +1 -1
  4. package/definitions/game/game/entity/action/actions/StokeFire.d.ts +1 -1
  5. package/definitions/game/game/entity/action/usable/IUsableAction.d.ts +1 -1
  6. package/definitions/game/game/entity/action/usable/UsableAction.d.ts +8 -2
  7. package/definitions/game/language/segment/BindSegment.d.ts +2 -2
  8. package/definitions/game/language/segment/InterpolateArgumentSegment.d.ts +2 -2
  9. package/definitions/game/language/segment/NumberSegment.d.ts +4 -4
  10. package/definitions/game/language/segment/ReferenceSegment.d.ts +2 -2
  11. package/definitions/game/language/segment/ReformatSegment.d.ts +2 -2
  12. package/definitions/game/language/segment/Segments.d.ts +1 -1
  13. package/definitions/game/language/segment/TranslationSegment.d.ts +4 -4
  14. package/definitions/game/renderer/RenderersNotifiers.d.ts +1 -1
  15. package/definitions/game/renderer/notifier/Notifier.d.ts +4 -1
  16. package/definitions/game/ui/component/Component.d.ts +2 -0
  17. package/definitions/game/ui/old/OldUi.d.ts +1 -1
  18. package/definitions/game/ui/screen/screens/game/component/ItemComponent.d.ts +1 -56
  19. package/definitions/game/ui/screen/screens/game/component/container/ContainerBucketItemList.d.ts +0 -2
  20. package/definitions/game/ui/screen/screens/game/component/item/IItemComponent.d.ts +65 -0
  21. package/definitions/game/ui/screen/screens/game/component/item/ItemComponentEventBus.d.ts +4 -1
  22. package/definitions/game/utilities/string/Interpolator.d.ts +37 -6
  23. package/package.json +1 -1
@@ -42,6 +42,7 @@ import type { Renderer } from "@wayward/game/renderer/Renderer";
42
42
  import type { WorldRenderer } from "@wayward/game/renderer/world/WorldRenderer";
43
43
  import type SaveManager from "@wayward/game/save/SaveManager";
44
44
  import type Steamworks from "@wayward/game/steamworks/Steamworks";
45
+ import type { GlobalMouseInfo } from "@wayward/game/ui/input/InputManager";
45
46
  import type ScreenManager from "@wayward/game/ui/screen/ScreenManager";
46
47
  import type GameScreen from "@wayward/game/ui/screen/screens/GameScreen";
47
48
  import type ItemComponentEventBus from "@wayward/game/ui/screen/screens/game/component/item/ItemComponentEventBus";
@@ -93,12 +94,13 @@ export declare enum EventBus {
93
94
  UiActionMenuHandler = 37,
94
95
  UiGameScreen = 38,
95
96
  UiHoveredTileTracker = 39,
96
- UiInteractionManager = 40,
97
- UiItemComponentStatic = 41,
98
- UiMovementHandler = 42,
99
- UiPathingHandler = 43,
100
- UsableActions = 44,
101
- WorldRenderer = 45
97
+ UiInputManagerMouse = 40,
98
+ UiInteractionManager = 41,
99
+ UiItemComponentStatic = 42,
100
+ UiMovementHandler = 43,
101
+ UiPathingHandler = 44,
102
+ UsableActions = 45,
103
+ WorldRenderer = 46
102
104
  }
103
105
  declare const eventBuses: {
104
106
  [EventBus.Actions](): ActionExecutor<any, any, any, any, any>;
@@ -141,6 +143,7 @@ declare const eventBuses: {
141
143
  [EventBus.UiActionMenuHandler](): ActionMenuHandler;
142
144
  [EventBus.UiGameScreen](): GameScreen;
143
145
  [EventBus.UiHoveredTileTracker](): HoveredTileTracker;
146
+ [EventBus.UiInputManagerMouse](): GlobalMouseInfo;
144
147
  [EventBus.UiInteractionManager](): InteractionManager;
145
148
  [EventBus.UiItemComponentStatic](): ItemComponentEventBus;
146
149
  [EventBus.UiMovementHandler](): MovementHandler;
@@ -190,12 +193,13 @@ export declare const eventBusManager: EventBusManager<EventBus, {
190
193
  37(): ActionMenuHandler;
191
194
  38(): GameScreen;
192
195
  39(): HoveredTileTracker;
193
- 40(): InteractionManager;
194
- 41(): ItemComponentEventBus;
195
- 42(): MovementHandler;
196
- 43(): PathingHandler;
197
- 44(): UsableAction;
198
- 45(): WorldRenderer;
196
+ 40(): GlobalMouseInfo;
197
+ 41(): InteractionManager;
198
+ 42(): ItemComponentEventBus;
199
+ 43(): MovementHandler;
200
+ 44(): PathingHandler;
201
+ 45(): UsableAction;
202
+ 46(): WorldRenderer;
199
203
  }>;
200
204
  /**
201
205
  * For backwards compat / ease of use
@@ -56,12 +56,13 @@ export declare const eventManager: EventManager<EventBus, {
56
56
  37(): import("../ui/screen/screens/game/util/movement/ActionMenuHandler").default;
57
57
  38(): import("../ui/screen/screens/GameScreen").default;
58
58
  39(): import("../ui/screen/screens/game/util/HoveredTileTracker").default;
59
- 40(): import("../ui/screen/screens/game/util/movement/InteractionManager").default;
60
- 41(): import("../ui/screen/screens/game/component/item/ItemComponentEventBus").default;
61
- 42(): import("../ui/screen/screens/game/util/movement/MovementHandler").default;
62
- 43(): import("../ui/screen/screens/game/util/movement/PathingHandler").default;
63
- 44(): import("../game/entity/action/usable/UsableAction").default;
64
- 45(): import("../renderer/world/WorldRenderer").WorldRenderer;
59
+ 40(): import("../ui/input/InputManager").GlobalMouseInfo;
60
+ 41(): import("../ui/screen/screens/game/util/movement/InteractionManager").default;
61
+ 42(): import("../ui/screen/screens/game/component/item/ItemComponentEventBus").default;
62
+ 43(): import("../ui/screen/screens/game/util/movement/MovementHandler").default;
63
+ 44(): import("../ui/screen/screens/game/util/movement/PathingHandler").default;
64
+ 45(): import("../game/entity/action/usable/UsableAction").default;
65
+ 46(): import("../renderer/world/WorldRenderer").WorldRenderer;
65
66
  }>;
66
67
  /**
67
68
  * EventHandler that is typed with the games event buses
@@ -152,7 +152,7 @@ export declare const actionDescriptionsSlow: {
152
152
  }, [import("../../item/Item").default]>;
153
153
  134: import("./Action").Action<[import("@wayward/game/game/entity/action/IAction").ActionArgument.Container, import("./argument/ActionArgumentEnum").default<import("../../item/IItem").ItemType, "Bow" | "None" | "String" | "HideGlue" | "AnimalSkull" | "GraniteArrow" | "GraniteArrowhead" | "PileOfAsh" | "BarkLeggings" | "BarkShield" | "BarkTunic" | "Bone" | "Branch" | "CactusSpines" | "Charcoal" | "GraniteFlooring" | "CookedMeat" | "Earthworm" | "Feather" | "Fertilizer" | "WaterskinOfSeawater" | "FirePlough" | "BeggartickSeeds" | "Fossil" | "GoldCoins" | "GoldenChalice" | "GoldenRing" | "GoldShortSword" | "GrassSeeds" | "IronOre" | "WoodenDowels" | "Granite" | "LeafBedroll" | "Hide" | "Leaves" | "Limestone" | "Log" | "GraniteMortarAndPestle" | "ButtonMushrooms" | "Nopal" | "Peat" | "Sandstone" | "PileOfGravel" | "PileOfBeachSand" | "WoodenArrow" | "GraniteAxe" | "Bandage" | "WovenFabric" | "CactusNeedle" | "GraniteShovel" | "WoodenSpear" | "Suture" | "Raft" | "RawMeat" | "Raspberries" | "FlyAmanita" | "Rope" | "MapleSeeds" | "Badderlocks" | "SharpGlass" | "SharpGranite" | "Skullcap" | "SmoothGranite" | "Soil" | "GraniteSpear" | "Stones" | "GraniteWall" | "StrippedBark" | "Leather" | "Tannin" | "MilkThistleSeeds" | "TreeBark" | "HoneyFungus" | "ClematisVine" | "Twigs" | "Waterskin" | "WoodenPole" | "PeatBandage" | "BowDrill" | "FishingNet" | "RawCod" | "CookedCod" | "GraniteCampfire" | "VineWhip" | "PileOfSnow" | "BarkTorch" | "LitBarkTorch" | "HandDrill" | "SmallBag" | "Shale" | "SharpenedBone" | "Grindstone" | "RawFishSteak" | "CookedFishSteak" | "WaterskinOfDesalinatedWater" | "BoatPaddle" | "BullBoat" | "RefinedSand" | "Spyglass" | "Retort" | "RawClay" | "RawClayBlowpipe" | "ClayBlowpipe" | "LeatherBelt" | "LeatherTunic" | "LeatherBoots" | "LeatherCap" | "LeatherGorget" | "LeatherPants" | "LeatherGloves" | "GraniteFurnace" | "SandstoneKiln" | "IronTongs" | "Talc" | "TalcumPowder" | "WoodenSandCastFlask" | "Lens" | "PlantRoots" | "Lockpick" | "BoneNeedle" | "Pineapple" | "TatteredMap" | "Coal" | "SmeltedWroughtIron" | "LimestonePowder" | "SmeltedIron" | "Backpack" | "RottenMeat" | "GraniteHammer" | "RawChicken" | "CookedChicken" | "GraniteAnvil" | "WoodenChest" | "IronShortSword" | "IronBreastplate" | "IronBoots" | "IronHelmet" | "IronGorget" | "IronCuisses" | "IronGauntlets" | "IronHeater" | "SandstoneWall" | "SandstoneFlooring" | "SpiderSilk" | "AnimalFat" | "TallowTorch" | "ClayFlakes" | "GreenSand" | "OldInstructionalScroll" | "SlimeGelatin" | "SlimeGlue" | "CookedSpiderMeat" | "SpiderMeat" | "IronLockpick" | "RottingVegetation" | "Chives" | "IronHammer" | "IronSpear" | "IronShovel" | "IronDoubleAxe" | "IronPickaxe" | "Inkstick" | "Coconut" | "PalmLeaf" | "Offal" | "BoneFragments" | "LitPoleTorch" | "CottonBoll" | "CottonSeeds" | "CottonFabric" | "BonePole" | "Tourniquet" | "WroughtIronPickaxe" | "WroughtIronDoubleAxe" | "WroughtIronShovel" | "WroughtIronSpear" | "WroughtIronHammer" | "WroughtIronLockpick" | "WroughtIronShield" | "WroughtIronGauntlets" | "WroughtIronCuisses" | "WroughtIronGorget" | "WroughtIronHelmet" | "WroughtIronBoots" | "WroughtIronBreastplate" | "WroughtIronShortSword" | "WoodenWall" | "WoodenFlooring" | "WoodenDoor" | "FishingRod" | "MessageInABottle" | "CarbonPowder" | "PileOfCompost" | "FishGlue" | "WoodenShavings" | "GraniteDeadfall" | "Snare" | "WaterskinOfMedicinalWater" | "CharcoalBandage" | "WoodenTongs" | "WroughtIronTongs" | "SheetOfGlass" | "SolarStill" | "TinWaterStill" | "GraniteSundial" | "LitTallowTorch" | "Sinew" | "ShortBow" | "LongBow" | "CompositeBow" | "WaterskinOfPurifiedFreshWater" | "WaterskinOfUnpurifiedFreshWater" | "GlassBottle" | "Cork" | "GlassBottleOfSeawater" | "GlassBottleOfDesalinatedWater" | "GlassBottleOfMedicinalWater" | "GlassBottleOfPurifiedFreshWater" | "GlassBottleOfUnpurifiedFreshWater" | "WroughtIronArrow" | "IronArrow" | "GraniteBullet" | "WroughtIronBullet" | "IronBullet" | "LeatherQuiver" | "Ectoplasm" | "MagicalEssence" | "WoodenFence" | "CreatureIdol" | "CordedSling" | "LeatherSling" | "WroughtIronArrowhead" | "IronArrowhead" | "Hammock" | "CottonBedroll" | "FeatherBedroll" | "RawTaintedMeat" | "CookedTaintedMeat" | "GraniteKnife" | "RawBlindfish" | "CookedBlindfish" | "Pemmican" | "CookedPemmican" | "Sail" | "Sailboat" | "ChickenEgg" | "BoiledChickenEgg" | "SheafOfHay" | "Niter" | "Saltpeter" | "BlackPowder" | "FlintlockPistol" | "Giblets" | "ExplosiveTrap" | "SkeletalMageWand" | "RawClayJug" | "ClayJug" | "ClayJugOfSeawater" | "ClayJugOfDesalinatedWater" | "ClayJugOfMedicinalWater" | "ClayJugOfPurifiedFreshWater" | "ClayJugOfUnpurifiedFreshWater" | "RawClayBrick" | "ClayBrick" | "ClayWall" | "ClayFlooring" | "PineappleSeeds" | "RaspberrySeeds" | "PricklyPearSeeds" | "ClematisSeeds" | "PaperSheet" | "PaperMold" | "Beggarticks" | "MilkThistleFlowers" | "DrawnMap" | "TatteredClothShirt" | "TatteredClothTrousers" | "WoodenGate" | "PoisonIvyLeaves" | "PoisonIvySeeds" | "WroughtIronChest" | "IronChest" | "SwitchgrassSeeds" | "Apple" | "SpiderEggs" | "TailFeathers" | "AppleSeeds" | "VenomGland" | "OrnateWoodenChest" | "RollOfRedCarpet" | "OrnateCape" | "FireBladder" | "GoldenKey" | "WoodenShortSword" | "ClayKiln" | "ClayCampfire" | "ClayFurnace" | "CopperWaterStill" | "SandstoneCampfire" | "SandstoneFurnace" | "WroughtIronWaterStill" | "GraniteKiln" | "WroughtIronAnvil" | "IronAnvil" | "MageRobe" | "CrackedOrb" | "AnimalClaw" | "AnimalPelt" | "AnimalFur" | "Scales" | "SharkFin" | "RawReptileMeat" | "CookedReptileMeat" | "Tentacles" | "CookedTentacles" | "WormMeat" | "CookedWormMeat" | "GranitePickaxe" | "WroughtIronAxe" | "IronAxe" | "FertileSoil" | "GraniteHoe" | "WroughtIronHoe" | "IronHoe" | "LavaBeetleHelmet" | "SpruceCone" | "SpruceSeeds" | "SpruceNeedles" | "CypressCone" | "CypressSeeds" | "CypressLeaves" | "Lettuce" | "LettuceSeeds" | "ChiveSeeds" | "Potato" | "PotatoSeeds" | "Carrot" | "CarrotSeeds" | "CornEar" | "CornSeeds" | "Cucumber" | "CucumberSeeds" | "Tomato" | "TomatoSeeds" | "Pumpkin" | "PumpkinSeeds" | "PricklyPearFruit" | "SugarCaneStalks" | "SugarCaneSeeds" | "BushelOfWheat" | "Wheat" | "CookedPotato" | "CookedCornCob" | "BundleOfSwitchgrass" | "Cloak" | "WoodenMortarAndPestle" | "SandstoneMortarAndPestle" | "WroughtIronMortarAndPestle" | "IronMortarAndPestle" | "RawClayMortarAndPestle" | "ClayMortarAndPestle" | "CopperOre" | "SmeltedCopper" | "CopperPickaxe" | "CopperDoubleAxe" | "CopperShovel" | "CopperSpear" | "CopperHammer" | "CopperLockpick" | "CopperBuckler" | "CopperGauntlets" | "CopperGreaves" | "CopperGorget" | "CopperHelmet" | "CopperBoots" | "CopperCuirass" | "CopperShortSword" | "CopperTongs" | "CopperArrow" | "CopperBullet" | "CopperArrowhead" | "CopperChest" | "CopperAnvil" | "CopperAxe" | "CopperHoe" | "CopperMortarAndPestle" | "WaterskinOfGoatMilk" | "ClayJugOfGoatMilk" | "GlassBottleOfGoatMilk" | "Obsidian" | "OrnateBlueBook" | "Journal" | "MossCoveredBook" | "GildedRedBook" | "ArrowShaft" | "SlitherSucker" | "AberrantSlitherSucker" | "StrawHat" | "BlackplateSabatons" | "BlackplateBreastplate" | "BlackplateGauntlets" | "BlackplateGorget" | "BlackplateGreaves" | "BlackplateHelmet" | "DeathKnightAxe" | "Macuahuitl" | "ObsidianArrow" | "ObsidianArrowhead" | "ObsidianAxe" | "ObsidianKnife" | "ObsidianShovel" | "ObsidianSpear" | "TumbleweedSeeds" | "CoconutHusk" | "PeeledCoconut" | "CoconutMeat" | "CoconutContainerOfCoconutWater" | "CoconutContainer" | "CoconutContainerOfSeawater" | "CoconutContainerOfDesalinatedWater" | "CoconutContainerOfMedicinalWater" | "CoconutContainerOfPurifiedFreshWater" | "CoconutContainerOfUnpurifiedFreshWater" | "CoconutContainerOfGoatMilk" | "OldEducationalScroll" | "StrippedHide" | "ClaySandCastFlask" | "SandstoneSandCastFlask" | "GraniteSandCastFlask" | "BoneGlue" | "CutHide" | "BoneMeal" | "PileOfDesertSand" | "JoshuaTreeLeaves" | "JoshuaTreeFruit" | "JoshuaTreeSeeds" | "CookedJoshuaTreeFruit" | "JoshuaTreeFlowers" | "SaguaroCactusFruit" | "SaguaroCactusSeeds" | "SaguaroCactusChunk" | "GraniteWell" | "SandstoneWell" | "ClayWell" | "AloeVeraLeaves" | "AloeVeraSeeds" | "DeadScorpion" | "DeadAberrantScorpion" | "CookedScorpion" | "CookedAberrantScorpion" | "ScorpionStinger" | "CopperBakingTray" | "WroughtIronBakingTray" | "IronBakingTray" | "Flour" | "Dough" | "Hardtack" | "HitchingPost" | "ShreddedPaper" | "RawMudskipper" | "RawAberrantMudskipper" | "CookedMudskipper" | "CookedAberrantMudskipper" | "RawRedSnapper" | "CookedRedSnapper" | "RawWalleye" | "CookedWalleye" | "WoodenShield" | "CopperRefinementTools" | "WroughtIronRefinementTools" | "IronRefinementTools" | "ScaleBelt" | "ScaleVest" | "ScaleBoots" | "ScaleCap" | "ScaleBevor" | "ScaleLeggings" | "ScaleGloves" | "CookedJoshuaTreeFlowers" | "SaguaroCactusRibs" | "BladesOfGrass" | "AnimalDroppings" | "AnimalDung" | "Guano" | "Tallow" | "TallowCandle" | "LitTallowCandle" | "WispDust" | "MagicalAspect" | "GoldenSextant" | "RawChoppedFish" | "CookedChoppedFish" | "CookedFishKebab" | "AshCement" | "AshCementBrick" | "AshCementFlooring" | "AshCementWall" | "IceShard" | "PenguinEgg" | "BoiledPenguinEgg" | "RawPenguinMeat" | "CookedPenguinMeat" | "Crowberries" | "CookedCrowberries" | "CrowberrySeeds" | "Winterberries" | "WinterberrySeeds" | "ArcticPoppies" | "ArcticPoppySeeds" | "PirateHat" | "AloeVeraBandage" | "SharkTooth" | "CopperKnife" | "WroughtIronKnife" | "IronKnife" | "TinOre" | "SmeltedTin" | "TinPickaxe" | "TinDoubleAxe" | "TinShovel" | "TinSpear" | "TinHammer" | "TinLockpick" | "TinShield" | "TinGloves" | "TinChausses" | "TinBevor" | "TinHelmet" | "TinFootgear" | "TinCuirass" | "TinShortSword" | "TinTongs" | "TinArrow" | "TinBullet" | "TinArrowhead" | "TinChest" | "TinAnvil" | "TinAxe" | "TinHoe" | "TinMortarAndPestle" | "TinBakingTray" | "TinRefinementTools" | "TinKnife" | "SmeltedBronze" | "BronzePickaxe" | "BronzeDoubleAxe" | "BronzeShovel" | "BronzeSpear" | "BronzeHammer" | "BronzeLockpick" | "BronzeKiteShield" | "BronzeGauntlets" | "BronzeGreaves" | "BronzeBevor" | "BronzeHelmet" | "BronzeBoots" | "BronzeChestArmor" | "BronzeShortSword" | "BronzeTongs" | "BronzeArrow" | "BronzeBullet" | "BronzeArrowhead" | "BronzeChest" | "BronzeAnvil" | "BronzeAxe" | "BronzeHoe" | "BronzeMortarAndPestle" | "BronzeBakingTray" | "BronzeRefinementTools" | "BronzeKnife" | "IceBrick" | "SnowBrick" | "IceWall" | "IceFlooring" | "SnowWall" | "SnowFlooring" | "CaliginousScrap" | "MagicalExtract" | "ShimmeringFibers" | "MagicalTwine" | "SandstoneHammer" | "SandstoneBullet" | "SandstoneAnvil" | "SnowScarecrow" | "FrozenFlesh" | "AnimalTusk" | "WhitePineCone" | "WhitePineSeeds" | "WhitePineNeedles" | "FurCoat" | "FurMittens" | "FurBoots" | "BirdDroppings" | "HardenedCoil" | "MagicalBinding" | "ArmoredScales" | "RawPangolinMeat" | "CookedPangolinMeat" | "ArmoredScaleBelt" | "ArmoredScaleVest" | "ArmoredScaleBoots" | "ArmoredScaleCrown" | "ArmoredScaleBevor" | "ArmoredScaleCuisses" | "ArmoredScaleGloves" | "TinNeedle" | "CopperNeedle" | "WroughtIronNeedle" | "IronNeedle" | "BronzeNeedle" | "TuftsOfTanglehead" | "TangleheadSeeds" | "WispInAGlassBottle" | "AberrantWispInAGlassBottle" | "WispInAClayJug" | "AberrantWispInAClayJug" | "WispInACoconutContainer" | "AberrantWispInACoconutContainer" | "WispInAWaterskin" | "AberrantWispInAWaterskin" | "StrawScarecrow" | "CactusScarecrow" | "ClothShirt" | "ClothTrousers" | "UnripePapaya" | "Papaya" | "PapayaSeeds" | "PalapalaiFrond" | "PalapalaiSpores" | "ButtonMushroomSpores" | "FlyAmanitaSpores" | "BrambleCrown" | "DarkBrambleCrown" | "Cotton" | "WaterskinOfSwampWater" | "GlassBottleOfSwampWater" | "ClayJugOfSwampWater" | "CoconutContainerOfSwampWater" | "WaterskinOfFilteredWater" | "GlassBottleOfFilteredWater" | "ClayJugOfFilteredWater" | "CoconutContainerOfFilteredWater" | "ClayFilter" | "SandstoneAxe" | "SandstoneShovel" | "SharpSandstone" | "SmoothSandstone" | "SandstoneSpear" | "SandstoneKnife" | "SandstonePickaxe" | "SandstoneHoe" | "SandstoneDeadfall" | "SandstoneSundial" | "WoodenPlank" | "WoodenWheel" | "WoodenAxle" | "WoodenMinecart" | "WoodenRail" | "WoodenTrack" | "TinWheel" | "TinAxle" | "TinMinecart" | "TinRail" | "TinTrack" | "CopperWheel" | "CopperAxle" | "CopperMinecart" | "CopperRail" | "CopperTrack" | "WroughtIronWheel" | "WroughtIronAxle" | "WroughtIronMinecart" | "WroughtIronRail" | "WroughtIronTrack" | "IronWheel" | "IronAxle" | "IronMinecart" | "IronRail" | "IronTrack" | "BronzeWheel" | "BronzeAxle" | "BronzeMinecart" | "BronzeRail" | "BronzeTrack" | "BasaltArrow" | "BasaltArrowhead" | "Basalt" | "BasaltMortarAndPestle" | "BasaltAxe" | "BasaltShovel" | "SharpBasalt" | "SmoothBasalt" | "BasaltSpear" | "BasaltFlooring" | "BasaltWall" | "BasaltCampfire" | "BasaltFurnace" | "BasaltHammer" | "BasaltAnvil" | "BasaltDeadfall" | "IronWaterStill" | "BasaltSundial" | "BasaltBullet" | "BasaltKnife" | "BasaltKiln" | "BasaltPickaxe" | "BasaltHoe" | "BasaltSandCastFlask" | "BasaltWell" | "WoodenTrackGate" | "MoldyScroll" | "MysteriousParchment" | "MagicalInscription" | "CattailLeaves" | "CattailShoots" | "CattailFlowers" | "CattailSeeds" | "CobblestoneFlooring" | "WaterLilies" | "Mud" | "SpikerushSheaths" | "SpikerushSeeds" | "WoodenBookcase" | "GraniteLighthouse" | "SandstoneLighthouse" | "ClayLighthouse" | "BasaltLighthouse" | "WoodenCage" | "FullWoodenCage" | "TinCage" | "FullTinCage" | "CopperCage" | "FullCopperCage" | "WroughtIronCage" | "FullWroughtIronCage" | "IronCage" | "FullIronCage" | "BronzeCage" | "FullBronzeCage" | "Amber" | "Tourmaline" | "Topaz" | "Opal" | "Sapphire" | "WoodGolemFigure" | "ClayGolemFigure" | "GraniteGolemFigure" | "SandstoneGolemFigure" | "BasaltGolemFigure" | "AberrantWoodGolemFigure" | "AberrantClayGolemFigure" | "AberrantGraniteGolemFigure" | "AberrantSandstoneGolemFigure" | "AberrantBasaltGolemFigure" | "GraniteDripstone" | "SandstoneDripstone" | "BasaltDripstone" | "ClayDripstone" | "BronzeWaterStill" | "ArmorStand" | "RuneOfEvil" | "RuneOfChaos" | "RuneOfGood" | "GraniteAltar" | "WoodenWheelbarrow" | "TinWheelbarrow" | "CopperWheelbarrow" | "WroughtIronWheelbarrow" | "IronWheelbarrow" | "BronzeWheelbarrow" | "GraniteCrucible" | "SandstoneCrucible" | "BasaltCrucible" | "RawClayCrucible" | "ClayCrucible" | "SandstoneAltar" | "BasaltAltar" | "ClayAltar" | "PineResin" | "SpruceResin" | "CypressResin" | "Pitch" | "PitchGlue" | "MagicalOrb" | "RawAberrantCod" | "CookedAberrantCod" | "RawAberrantBlindfish" | "CookedAberrantBlindfish" | "RawAberrantRedSnapper" | "CookedAberrantRedSnapper" | "RawAberrantWalleye" | "CookedAberrantWalleye" | "FishBones" | "AnimalCartilage" | "GelatinPowder" | "Gelatin" | "Aspic" | "FruitCocktail" | "VegetableTerrine" | "TatteredClothBandana" | "ClothBandana" | "RustedScimitar" | "TricorneHat" | "SandstoneArrowhead" | "SandstoneArrow" | "ReedFlute" | "WoodenFlute" | "RawClayFlute" | "ClayFlute" | "BoneFlute" | "TinFlute" | "CopperFlute" | "WroughtIronFlute" | "IronFlute" | "BronzeFlute" | "StrippedLeather" | "ChickenEggshells" | "PenguinEggshells" | "Last">, [arg1: import("@wayward/game/game/entity/action/IAction").ActionArgument.Undefined, import("@wayward/game/game/entity/action/IAction").ActionArgument.Integer32]], import("../player/Player").default, void, import("@wayward/game/game/entity/action/IAction").IActionUsable, [import("../../item/IItem").IContainer, import("../../item/IItem").ItemType, (number | undefined)?]>;
154
154
  4: import("./Action").Action<[import("@wayward/game/game/entity/action/IAction").ActionArgument.ItemInventory, [arg1: import("@wayward/game/game/entity/action/IAction").ActionArgument.Undefined, import("@wayward/game/game/entity/action/IAction").ActionArgument.ItemInventory], [arg1: import("@wayward/game/game/entity/action/IAction").ActionArgument.Undefined, import("@wayward/game/game/entity/action/IAction").ActionArgument.ItemNearby], [arg1: import("@wayward/game/game/entity/action/IAction").ActionArgument.Undefined, import("@wayward/game/game/entity/action/IAction").ActionArgument.ItemNearby], [arg1: import("@wayward/game/game/entity/action/IAction").ActionArgument.Undefined, import("@wayward/game/game/entity/action/IAction").ActionArgument.ItemNearby]], import("../Human").default<unknown, number, import("../../reference/IReferenceManager").ReferenceType.NPC | import("../../reference/IReferenceManager").ReferenceType.Player>, void, import("@wayward/game/game/entity/action/actions/StartFire").IStartFireCanUse, [import("../../item/Item").default, (import("../../item/Item").default | undefined)?, (import("../../item/Item").default | undefined)?, (import("../../item/Item").default | undefined)?, (import("../../item/Item").default | undefined)?]>;
155
- 23: import("./Action").Action<[import("@wayward/game/game/entity/action/IAction").ActionArgument.ItemInventory], import("../Human").default<unknown, number, import("../../reference/IReferenceManager").ReferenceType.NPC | import("../../reference/IReferenceManager").ReferenceType.Player>, void, import("@wayward/game/game/entity/action/actions/StokeFire").IStokeFireCanUse, [import("../../item/Item").default]>;
155
+ 23: import("./Action").Action<[import("@wayward/game/game/entity/action/IAction").ActionArgument.ItemNearby], import("../Human").default<unknown, number, import("../../reference/IReferenceManager").ReferenceType.NPC | import("../../reference/IReferenceManager").ReferenceType.Player>, void, import("@wayward/game/game/entity/action/actions/StokeFire").IStokeFireCanUse, [import("../../item/Item").default]>;
156
156
  121: import("./Action").Action<[import("@wayward/game/game/entity/action/IAction").ActionArgument.ItemInventory], import("../Human").default<unknown, number, import("../../reference/IReferenceManager").ReferenceType.NPC | import("../../reference/IReferenceManager").ReferenceType.Player>, void, import("@wayward/game/game/entity/action/actions/Summon").ISummonAction, [import("../../item/Item").default]>;
157
157
  128: import("./Action").Action<[[arg1: import("@wayward/game/game/entity/action/IAction").ActionArgument.Undefined, import("@wayward/game/game/entity/action/IAction").ActionArgument.Doodad]], import("../Human").default<unknown, number, import("../../reference/IReferenceManager").ReferenceType.NPC | import("../../reference/IReferenceManager").ReferenceType.Player>, boolean, import("@wayward/game/game/entity/action/actions/SwapWithArmorStand").ISwapEquipment, [(import("../../doodad/Doodad").default | undefined)?]>;
158
158
  131: import("./Action").Action<[[arg1: import("@wayward/game/game/entity/action/IAction").ActionArgument.Undefined, import("@wayward/game/game/entity/action/IAction").ActionArgument.Doodad]], import("../Human").default<unknown, number, import("../../reference/IReferenceManager").ReferenceType.NPC | import("../../reference/IReferenceManager").ReferenceType.Player>, boolean, import("@wayward/game/game/entity/action/actions/SwapWithArmorStand").ISwapEquipment, [(import("../../doodad/Doodad").default | undefined)?]>;
@@ -21,5 +21,5 @@ export interface IStokeFireCanUse extends IActionUsable {
21
21
  doodad?: Doodad;
22
22
  tileEvent?: TileEvent;
23
23
  }
24
- declare const _default: Action<[ActionArgument.ItemInventory], import("../../Human").default<unknown, number, import("../../../reference/IReferenceManager").ReferenceType.NPC | import("../../../reference/IReferenceManager").ReferenceType.Player>, void, IStokeFireCanUse, [Item]>;
24
+ declare const _default: Action<[ActionArgument.ItemNearby], import("../../Human").default<unknown, number, import("../../../reference/IReferenceManager").ReferenceType.NPC | import("../../../reference/IReferenceManager").ReferenceType.Player>, void, IStokeFireCanUse, [Item]>;
25
25
  export default _default;
@@ -35,7 +35,7 @@ import type Message from "@wayward/game/language/dictionary/Message";
35
35
  import { TranslationArg } from "@wayward/game/language/ITranslation";
36
36
  import type Translation from "@wayward/game/language/Translation";
37
37
  import type Bindable from "@wayward/game/ui/input/Bindable";
38
- import type { ItemDetailIconLocation } from "@wayward/game/ui/screen/screens/game/component/ItemComponent";
38
+ import type { ItemDetailIconLocation } from "@wayward/game/ui/screen/screens/game/component/item/IItemComponent";
39
39
  import type Tooltip from "@wayward/game/ui/tooltip/Tooltip";
40
40
  import type { HighlightSelector } from "@wayward/game/ui/util/IHighlight";
41
41
  import type HashSet from "@wayward/utilities/collection/set/HashSet";
@@ -27,6 +27,12 @@ import Message from "@wayward/game/language/dictionary/Message";
27
27
  import type { HighlightSelector } from "@wayward/game/ui/util/IHighlight";
28
28
  import Observer from "@wayward/game/utilities/Observer";
29
29
  import EventEmitter from "@wayward/utilities/event/EventEmitter";
30
+ export interface IUsableActionResolveUsingOptions {
31
+ /** Whether to skip filling in the `fromTile` and `targetTile` properties. Defaults to `true` */
32
+ skipTiles?: boolean;
33
+ /** Whether to skip filling in the `item`. Defaults to `false` */
34
+ skipItem?: boolean;
35
+ }
30
36
  export interface IUsableActionEvents {
31
37
  preExecute(player: Player, using: IUsableActionPossibleUsing, context: IUsableActionExecutionContext): any;
32
38
  postExecute(player: Player, using: IUsableActionPossibleUsing, context: IUsableActionExecutionContext): any;
@@ -70,8 +76,8 @@ declare class UsableAction<REQUIREMENTS extends IUsableActionRequirements = IUsa
70
76
  } | {
71
77
  used: false;
72
78
  };
73
- resolveUsing(player: Player, using: IUsableActionUsing<REQUIREMENTS>, fillTiles?: boolean): Message | IUsableActionUsing<REQUIREMENTS>;
74
- resolveUsingOrUndefined(player: Player, using: IUsableActionUsing<REQUIREMENTS>, fillTiles?: boolean): IUsableActionUsing<REQUIREMENTS> | undefined;
79
+ resolveUsing(player: Player, using: IUsableActionUsing<REQUIREMENTS>, options?: IUsableActionResolveUsingOptions): Message | IUsableActionUsing<REQUIREMENTS>;
80
+ resolveUsingOrUndefined(player: Player, using: IUsableActionUsing<REQUIREMENTS>, options?: IUsableActionResolveUsingOptions): IUsableActionUsing<REQUIREMENTS> | undefined;
75
81
  isUsable(player: Player, provided: IUsableActionUsing<REQUIREMENTS>, context: UsableActionExecutionContext | IUsableActionExecutionContext): UsableActionUsability<REQUIREMENTS>;
76
82
  isApplicable(player: Player, provided?: IUsableActionPossibleUsing, fullUsabilityCheck?: boolean, requireItem?: boolean): provided is IUsableActionUsing<REQUIREMENTS>;
77
83
  private isItemApplicable;
@@ -9,7 +9,7 @@
9
9
  * https://github.com/WaywardGame/types/wiki
10
10
  */
11
11
  import type Bindable from "@wayward/game/ui/input/Bindable";
12
- import type { ISegment, IStringSection } from "@wayward/game/utilities/string/Interpolator";
12
+ import type { IRegexSegment, IStringSection } from "@wayward/game/utilities/string/Interpolator";
13
13
  export interface IBindingsSection extends IStringSection {
14
14
  bindable: Bindable | null;
15
15
  bindableNoBindingsFallback?: IStringSection[];
@@ -19,5 +19,5 @@ export interface IBindingsSection extends IStringSection {
19
19
  export declare namespace IBindingsSection {
20
20
  function create(bindable: Bindable | null, fallback?: IStringSection[], simplify?: boolean, contextless?: boolean): IBindingsSection;
21
21
  }
22
- declare const bindSegment: ISegment;
22
+ declare const bindSegment: IRegexSegment;
23
23
  export default bindSegment;
@@ -8,6 +8,6 @@
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 { ISegment } from "@wayward/game/utilities/string/Interpolator";
12
- declare const interpolateArgumentSegment: ISegment;
11
+ import type { IRegexSegment } from "@wayward/game/utilities/string/Interpolator";
12
+ declare const interpolateArgumentSegment: IRegexSegment;
13
13
  export default interpolateArgumentSegment;
@@ -10,18 +10,18 @@
10
10
  */
11
11
  import type Translation from "@wayward/game/language/Translation";
12
12
  import TranslationImpl from "@wayward/game/language/impl/TranslationImpl";
13
- import type { ISegment } from "@wayward/game/utilities/string/Interpolator";
13
+ import type { IRegexSegment, ISegment } from "@wayward/game/utilities/string/Interpolator";
14
14
  declare namespace NumberTranslation {
15
15
  function translate(number: number, failWith?: string | Translation): Translation;
16
16
  const numberAsWordsSegment: ISegment;
17
17
  function romanNumeral(number: number): TranslationImpl;
18
18
  const numberAsRomanNumeralSegment: ISegment;
19
- const numberToPlacesSegment: ISegment;
20
- const numberToPercentSegment: ISegment;
19
+ const numberToPlacesSegment: IRegexSegment;
20
+ const numberToPercentSegment: IRegexSegment;
21
21
  const numberDifferenceSegment: ISegment;
22
22
  /**
23
23
  * @deprecated Prefer `numberToPlacesSegment`, `numberAsWordsSegment`
24
24
  */
25
- const compatNumberSegment: ISegment;
25
+ const compatNumberSegment: IRegexSegment;
26
26
  }
27
27
  export default NumberTranslation;
@@ -10,10 +10,10 @@
10
10
  */
11
11
  import type { InfoProviderContext } from "@wayward/game/game/inspection/InfoProviderContext";
12
12
  import type { Reference } from "@wayward/game/game/reference/IReferenceManager";
13
- import type { ISegment, IStringSection } from "@wayward/game/utilities/string/Interpolator";
13
+ import type { IRegexSegment, IStringSection } from "@wayward/game/utilities/string/Interpolator";
14
14
  export interface IReferenceSection extends IStringSection {
15
15
  reference: Reference;
16
16
  context?: InfoProviderContext;
17
17
  }
18
- declare const referenceSegment: ISegment;
18
+ declare const referenceSegment: IRegexSegment;
19
19
  export default referenceSegment;
@@ -8,6 +8,6 @@
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 { ISegment } from "@wayward/game/utilities/string/Interpolator";
12
- declare const reformatSegment: ISegment;
11
+ import type { IRegexSegment } from "@wayward/game/utilities/string/Interpolator";
12
+ declare const reformatSegment: IRegexSegment;
13
13
  export default reformatSegment;
@@ -41,4 +41,4 @@ export declare enum Segment {
41
41
  }
42
42
  declare const segments: Record<Segment, ISegment>;
43
43
  export default segments;
44
- export declare const segmentsMapInverted: Map<ISegment, Segment>;
44
+ export declare const segmentsMapInverted: Map<ISegment<unknown>, Segment>;
@@ -9,14 +9,14 @@
9
9
  * https://github.com/WaywardGame/types/wiki
10
10
  */
11
11
  import type Dictionary from "@wayward/game/language/Dictionary";
12
- import type { ISegment, ISegmentApi, IStringSection } from "@wayward/game/utilities/string/Interpolator";
12
+ import type { IRegexSegment, ISegmentApi, IStringSection } from "@wayward/game/utilities/string/Interpolator";
13
13
  import type { Random } from "@wayward/utilities/random/Random";
14
14
  declare namespace TranslationSegment {
15
- const include: ISegment;
16
- const thisEntry: ISegment & {
15
+ const include: IRegexSegment;
16
+ const thisEntry: IRegexSegment & {
17
17
  translationChain: Array<[Dictionary, number | string, number, Random]>;
18
18
  };
19
- const conditional: ISegment;
19
+ const conditional: IRegexSegment;
20
20
  function resolveTranslation(random: Random, api: ISegmentApi, dictionaryName: string, entryName: string, index: string | undefined, subTranslationArgsString: string, args: any[]): IStringSection[] | undefined;
21
21
  function getSubTranslationArgs(api: ISegmentApi, str: string, ...args: any[]): IStringSection[][];
22
22
  }
@@ -26,5 +26,5 @@ export declare class RenderersNotifiers {
26
26
  addItem(location: INotificationLocation, itemNotifierType: ItemNotifierType, type: DisplayableItemType): void;
27
27
  addCreature(location: INotificationLocation, creatureNotifierType: CreatureNotifierType, type: CreatureType, aberrant?: boolean): void;
28
28
  addMarker(location: INotificationLocation, markerType: MarkerIconType, markerGuid: string): void;
29
- removeNotification(location: INotificationLocation, guid: string): void;
29
+ removeMarker(location: INotificationLocation, guid: string): void;
30
30
  }
@@ -23,6 +23,9 @@ export declare class Notifier {
23
23
  private mostRecentLife;
24
24
  private nextUpdate;
25
25
  private readonly notifications;
26
+ /**
27
+ * Marker guid -> notification
28
+ */
26
29
  private readonly markers;
27
30
  private suspended;
28
31
  constructor(context: IRendererContext, capacity: number);
@@ -35,7 +38,7 @@ export declare class Notifier {
35
38
  addStatus(location: INotificationLocation, status: Status, reason: StatusChangeReason): void;
36
39
  addNotifierIcon(location: INotificationLocation, type: NotifierIconType): void;
37
40
  addMarker(location: INotificationLocation, type: MarkerIconType, markerGuid: string): void;
38
- removeNotification(guid: string): void;
41
+ removeMarker(guid: string): void;
39
42
  suspend(): void;
40
43
  resume(): void;
41
44
  private update;
@@ -101,7 +101,9 @@ export default class Component<E extends HTMLElement = HTMLElement> extends Even
101
101
  addEventListener(type: string, listener: (this: HTMLElement, ev: Event) => any, options?: boolean | AddEventListenerOptions): this;
102
102
  removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any): this;
103
103
  getAs<C extends Component>(cls: AnyClass<C>): C | undefined;
104
+ cast<C extends Component>(): C;
104
105
  matches(selector: string): boolean;
106
+ matches<C extends Component>(selector: string): this is C;
105
107
  exists(): boolean;
106
108
  /**
107
109
  * A cached alias for `element.getBoundingClientRect()`. Boxes are updated or regenerated as ancestors shift.
@@ -34,7 +34,7 @@ export default class OldUi {
34
34
  getSerializationProperties(_: string): string[];
35
35
  setVersionExtra(msg: string): void;
36
36
  openDialogs(): void;
37
- logErrorEvent(event: ErrorEvent | (Partial<ErrorEvent> & Error)): void;
37
+ logErrorEvent(event: ErrorEvent | (Partial<ErrorEvent> & Error), skipLog?: true): void;
38
38
  private loggingRejection;
39
39
  private logPromiseRejectionEvent;
40
40
  }
@@ -43,61 +43,6 @@ export interface IItemDropApi {
43
43
  bindable?: Bindable;
44
44
  handler?: ItemComponentHandler;
45
45
  }
46
- export declare enum ItemDetailIconLocation {
47
- TopLeft = 0,
48
- BottomRight = 1
49
- }
50
- export declare enum ItemClasses {
51
- Main = "item-component",
52
- _InHeading = "item-component--in-heading",
53
- Active = "active",// currently used for crafting & trading
54
- Icon = "item-component-icon",
55
- ItemIconIsReal = "item-component-icon-item-is-real",
56
- ActionIcon = "item-component-icon-action",
57
- ActionIconAnyItem = "item-component-icon-action-any-item",
58
- ActionIconMissingItem = "item-component-icon-action-missing-item",
59
- ActionIconHasItem = "item-component-icon-action-has-item",
60
- ActionIconNone = "item-component-icon-action-none",
61
- TargetIcon = "item-component-icon-target",
62
- TargetIcon_Creature = "item-component-icon-target--creature",
63
- TargetIcon_Doodad = "item-component-icon-target--doodad",
64
- TargetIcon_Vehicle = "item-component-icon-target--vehicle",
65
- TargetIcon_Plant = "item-component-icon-target--plant",
66
- TargetIcon_NPC = "item-component-icon-target--npc",
67
- TargetIcon_TileEvent = "item-component-icon-target--tile-event",
68
- SlottedIcon = "item-component-icon-slotted",
69
- Equipped = "item-component-equipped",
70
- EquipIcon = "item-component-icon-equip",
71
- EquipIconHasItem = "item-component-icon-equip-has-item",
72
- MagicalIcon = "item-component-icon-magical",
73
- ProtectedIcon = "item-component-icon-protected",
74
- Trading = "item-component-trading",
75
- TradingIcon = "item-component-icon-trading",
76
- TradingIconFromMerchant = "item-component-icon-trading-from-merchant",
77
- TradingIconToMerchant = "item-component-icon-trading-to-merchant",
78
- Slot = "item-component-slot",
79
- Dragging = "item-component-dragging",
80
- DragPreview = "item-component-drag-preview",
81
- DragPreview_Small = "item-component-drag-preview--small",
82
- StatBar = "item-component-stat-bar",
83
- StatBars = "item-component-stat-bars-wrapper",
84
- DecayBar = "item-component-stat-bar-decay",
85
- CooldownBar = "item-component-stat-bar-cooldown",
86
- DurabilityBar = "item-component-stat-bar-durability",
87
- NearlyDestroyed = "item-component-nearly-destroyed",
88
- NearlyDecayed = "item-component-nearly-decayed",
89
- Transient = "item-component-transient",
90
- Highlight = "item-component-highlight",
91
- Stack = "item-component-stack",
92
- StackQuantity = "item-component-stack-quantity",
93
- StackQuantityX = "item-component-stack-quantity-x",
94
- StackQuantityDigit = "item-component-stack-quantity-digit",
95
- Stacked = "item-component-stacked",
96
- StackedVisible = "item-component-stacked-visible"
97
- }
98
- export declare namespace ItemClasses {
99
- const IconLocation: (enumValue: ItemDetailIconLocation) => "item-component-icon-location-topleft" | "item-component-icon-location-bottomright";
100
- }
101
46
  export declare enum ItemTradeType {
102
47
  None = "",
103
48
  ToMerchant = "To",
@@ -156,6 +101,7 @@ export default class ItemComponent extends Component implements ItemSlot {
156
101
  readonly draggable?: Draggable;
157
102
  private transient;
158
103
  protected constructor(handler: ItemComponentHandler, ...params: any[]);
104
+ protected get debug(): any;
159
105
  private tickEndHandlerReasons?;
160
106
  private registerTickEndHandler;
161
107
  private deregisterTickEndHandler;
@@ -229,6 +175,5 @@ export default class ItemComponent extends Component implements ItemSlot {
229
175
  private lastActionIcon?;
230
176
  private refreshActionIcon;
231
177
  protected onHoldingNotMoving(time: number): void;
232
- protected onMouseEnterOrLeave(): void;
233
178
  }
234
179
  export {};
@@ -82,8 +82,6 @@ export default class ContainerBucketItemList extends Component implements ISorta
82
82
  get container(): IContainer | undefined;
83
83
  isStacked(type?: ItemType): boolean;
84
84
  isStacked(item?: Item): boolean;
85
- isFirstVisiblyStacked(item?: Item, excluding?: Item): boolean;
86
- getStackedItemsThatAreVisible(type?: ItemType, excluding?: Item): Item[];
87
85
  getStackedItems(type?: ItemType, excluding?: Item): Item[];
88
86
  getStackIndex(type?: ItemType): number | undefined;
89
87
  constructor(container?: IContainer);
@@ -0,0 +1,65 @@
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
+ export declare enum ItemDetailIconLocation {
12
+ TopLeft = 0,
13
+ BottomRight = 1
14
+ }
15
+ export declare enum ItemClasses {
16
+ Main = "item-component",
17
+ _InHeading = "item-component--in-heading",
18
+ Active = "active",// currently used for crafting & trading
19
+ Icon = "item-component-icon",
20
+ ItemIconIsReal = "item-component-icon-item-is-real",
21
+ ActionIcon = "item-component-icon-action",
22
+ ActionIconAnyItem = "item-component-icon-action-any-item",
23
+ ActionIconMissingItem = "item-component-icon-action-missing-item",
24
+ ActionIconHasItem = "item-component-icon-action-has-item",
25
+ ActionIconNone = "item-component-icon-action-none",
26
+ TargetIcon = "item-component-icon-target",
27
+ TargetIcon_Creature = "item-component-icon-target--creature",
28
+ TargetIcon_Doodad = "item-component-icon-target--doodad",
29
+ TargetIcon_Vehicle = "item-component-icon-target--vehicle",
30
+ TargetIcon_Plant = "item-component-icon-target--plant",
31
+ TargetIcon_NPC = "item-component-icon-target--npc",
32
+ TargetIcon_TileEvent = "item-component-icon-target--tile-event",
33
+ SlottedIcon = "item-component-icon-slotted",
34
+ Equipped = "item-component-equipped",
35
+ EquipIcon = "item-component-icon-equip",
36
+ EquipIconHasItem = "item-component-icon-equip-has-item",
37
+ MagicalIcon = "item-component-icon-magical",
38
+ ProtectedIcon = "item-component-icon-protected",
39
+ Trading = "item-component-trading",
40
+ TradingIcon = "item-component-icon-trading",
41
+ TradingIconFromMerchant = "item-component-icon-trading-from-merchant",
42
+ TradingIconToMerchant = "item-component-icon-trading-to-merchant",
43
+ Slot = "item-component-slot",
44
+ Dragging = "item-component-dragging",
45
+ DragPreview = "item-component-drag-preview",
46
+ DragPreview_Small = "item-component-drag-preview--small",
47
+ StatBar = "item-component-stat-bar",
48
+ StatBars = "item-component-stat-bars-wrapper",
49
+ DecayBar = "item-component-stat-bar-decay",
50
+ CooldownBar = "item-component-stat-bar-cooldown",
51
+ DurabilityBar = "item-component-stat-bar-durability",
52
+ NearlyDestroyed = "item-component-nearly-destroyed",
53
+ NearlyDecayed = "item-component-nearly-decayed",
54
+ Transient = "item-component-transient",
55
+ Highlight = "item-component-highlight",
56
+ Stack = "item-component-stack",
57
+ StackQuantity = "item-component-stack-quantity",
58
+ StackQuantityX = "item-component-stack-quantity-x",
59
+ StackQuantityDigit = "item-component-stack-quantity-digit",
60
+ Stacked = "item-component-stacked",
61
+ StackedVisible = "item-component-stacked-visible"
62
+ }
63
+ export declare namespace ItemClasses {
64
+ const IconLocation: (enumValue: ItemDetailIconLocation) => "item-component-icon-location-topleft" | "item-component-icon-location-bottomright";
65
+ }
@@ -8,7 +8,8 @@
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 { ItemRefreshType } from "@wayward/game/ui/screen/screens/game/component/ItemComponent";
11
+ import type { GlobalMouseInfo } from "@wayward/game/ui/input/InputManager";
12
+ import { type ItemRefreshType } from "@wayward/game/ui/screen/screens/game/component/ItemComponent";
12
13
  import type ItemComponent from "@wayward/game/ui/screen/screens/game/component/ItemComponent";
13
14
  import type ActionBar from "@wayward/game/ui/screen/screens/game/static/ActionBar";
14
15
  import type { ActionSlot } from "@wayward/game/ui/screen/screens/game/static/actions/ActionSlot";
@@ -29,6 +30,8 @@ declare namespace _ {
29
30
  protected onTickEnd(): void;
30
31
  protected onLoadedOnIsland(): void;
31
32
  protected onActionBarItemSlottedMapUpdate(): void;
33
+ private hovered;
34
+ protected onUpdateTarget(mouse: GlobalMouseInfo): void;
32
35
  }
33
36
  }
34
37
  type ItemComponentEventBus = _.ItemComponentEventBus;
@@ -23,12 +23,13 @@ export interface IInterpolationOptions {
23
23
  formatDates?: boolean;
24
24
  }
25
25
  export type Ends = [start: string, end?: string, endAtStringEnd?: true];
26
- export interface ISegment {
26
+ export interface ISegment<T = unknown> {
27
27
  ends?: Ends[];
28
28
  trimTrailingWhitespace?: true;
29
- match?: RegExp;
30
- handle(match: RegExpMatchArray, segment: string, api: ISegmentApi, ...args: any[]): string | IStringSection | Iterable<IStringSection>;
29
+ match?: RegExp | ((segment: string) => T | undefined);
30
+ handle(match: T, segment: string, api: ISegmentApi, ...args: any[]): string | IStringSection | Iterable<IStringSection>;
31
31
  }
32
+ export type IRegexSegment = ISegment<RegExpExecArray>;
32
33
  export interface IStringSection {
33
34
  content: string | IStringSection[];
34
35
  classes?: Set<string>;
@@ -92,12 +93,42 @@ export default Interpolator;
92
93
  * - `"{test}" => args[0]["test"]`
93
94
  * - `"{3.test.4.wow}" => args[3]["test"][4]["wow"]`
94
95
  */
95
- export declare const argumentSegment: ISegment;
96
+ export declare const argumentSegment: IRegexSegment;
96
97
  export type InterpolationConditionalSegmentOperator = InterpolationConditionalSegmentOperatorEquivalence | InterpolationConditionalSegmentOperatorNumeric;
97
98
  export type InterpolationConditionalSegmentOperatorEquivalence = "=" | "!=";
98
99
  export type InterpolationConditionalSegmentOperatorNumeric = "<" | ">" | "<=" | ">=";
99
- export declare const conditionalSegment: ISegment;
100
- export declare const falsyCoalescingSegment: ISegment;
100
+ export type ConditionalSegmentCheck = string | {
101
+ variable: string;
102
+ operator: InterpolationConditionalSegmentOperator;
103
+ value: string;
104
+ variable2?: never;
105
+ } | {
106
+ variable: string;
107
+ operator: InterpolationConditionalSegmentOperator;
108
+ variable2: string;
109
+ value?: never;
110
+ };
111
+ export interface IConditionalSegmentExpression {
112
+ checks: ConditionalSegmentCheck[];
113
+ operator: "&" | "|";
114
+ length: number;
115
+ }
116
+ /**
117
+ * Uses an argument to determine whether to show one of two segments. If the argument is truthy, returns
118
+ * any content in the segment after the `?` and before the `:`. If the argument is falsey, returns any
119
+ * content in the segment after the `:`. The colon is optional; if not provided, falsey = empty string.
120
+ *
121
+ * - `"{0?hi}"`
122
+ * - When given `[true]`, `=> "hi"`
123
+ * - When given `[false]`, `=> ""`
124
+ * - When given `[]`, `=> ""`
125
+ * - `"{test?hi:bye}"
126
+ * - When given `[{test: true}]`, `=> "hi"`
127
+ * - When given `[{test: false}]`, `=> "bye"`
128
+ * - When given `[]`, `=> "bye"`
129
+ */
130
+ export declare const conditionalSegment: ISegment<IConditionalSegmentExpression>;
131
+ export declare const falsyCoalescingSegment: IRegexSegment;
101
132
  export declare const classSegment: ISegment;
102
133
  export declare const basicInterpolator: Interpolator;
103
134
  export declare function interpolateSectioned(str: string, ...args: any[]): IStringSection[];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wayward/types",
3
3
  "description": "TypeScript declarations for Wayward, used for modding.",
4
- "version": "2.14.3-beta.dev.20241224.1",
4
+ "version": "2.14.3-beta.dev.20241225.1",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",