@wayward/types 2.15.0-beta.dev.20250924.1 → 2.15.0-beta.dev.20250926.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 (294) hide show
  1. package/definitions/game/event/EventBuses.d.ts +58 -54
  2. package/definitions/game/event/EventManager.d.ts +28 -27
  3. package/definitions/game/game/biome/coastal/mapGen/2.15.0.d.ts +12 -0
  4. package/definitions/game/game/doodad/Doodad.d.ts +4 -4
  5. package/definitions/game/game/doodad/DoodadManager.d.ts +2 -1
  6. package/definitions/game/game/entity/CombatStrengthManager.d.ts +1 -20
  7. package/definitions/game/game/entity/ICombatStrength.d.ts +30 -0
  8. package/definitions/game/game/entity/action/Action.d.ts +10 -7
  9. package/definitions/game/game/entity/action/ActionExecutor.d.ts +2 -1
  10. package/definitions/game/game/entity/action/ActionsRegistration.d.ts +1 -189
  11. package/definitions/game/game/entity/action/IAction.d.ts +2 -0
  12. package/definitions/game/game/entity/action/actions/Absorb.d.ts +2 -2
  13. package/definitions/game/game/entity/action/actions/AddFuel.d.ts +2 -2
  14. package/definitions/game/game/entity/action/actions/AddItemDiscovered.d.ts +2 -2
  15. package/definitions/game/game/entity/action/actions/Alter.d.ts +2 -2
  16. package/definitions/game/game/entity/action/actions/Apply.d.ts +2 -1
  17. package/definitions/game/game/entity/action/actions/AscendDescend.d.ts +2 -1
  18. package/definitions/game/game/entity/action/actions/AttachContainer.d.ts +2 -2
  19. package/definitions/game/game/entity/action/actions/Attack.d.ts +2 -2
  20. package/definitions/game/game/entity/action/actions/Build.d.ts +2 -1
  21. package/definitions/game/game/entity/action/actions/Butcher.d.ts +2 -2
  22. package/definitions/game/game/entity/action/actions/CageCreature.d.ts +2 -2
  23. package/definitions/game/game/entity/action/actions/Cast.d.ts +2 -2
  24. package/definitions/game/game/entity/action/actions/Chop.d.ts +2 -1
  25. package/definitions/game/game/entity/action/actions/ClearMessages.d.ts +2 -1
  26. package/definitions/game/game/entity/action/actions/CloseContainer.d.ts +2 -1
  27. package/definitions/game/game/entity/action/actions/CloseDoor.d.ts +2 -1
  28. package/definitions/game/game/entity/action/actions/Consecrate.d.ts +2 -2
  29. package/definitions/game/game/entity/action/actions/ConsumeItem.d.ts +2 -2
  30. package/definitions/game/game/entity/action/actions/CopyMap.d.ts +2 -2
  31. package/definitions/game/game/entity/action/actions/Craft.d.ts +2 -2
  32. package/definitions/game/game/entity/action/actions/CraftNew.d.ts +2 -2
  33. package/definitions/game/game/entity/action/actions/CreateControllableNPC.d.ts +2 -2
  34. package/definitions/game/game/entity/action/actions/Cure.d.ts +2 -1
  35. package/definitions/game/game/entity/action/actions/DamageMap.d.ts +2 -2
  36. package/definitions/game/game/entity/action/actions/DetachContainer.d.ts +2 -2
  37. package/definitions/game/game/entity/action/actions/Dig.d.ts +2 -2
  38. package/definitions/game/game/entity/action/actions/Disassemble.d.ts +2 -2
  39. package/definitions/game/game/entity/action/actions/DiscoverRecipe.d.ts +2 -2
  40. package/definitions/game/game/entity/action/actions/Dismantle.d.ts +2 -2
  41. package/definitions/game/game/entity/action/actions/Dismount.d.ts +2 -1
  42. package/definitions/game/game/entity/action/actions/DisplayItem.d.ts +2 -2
  43. package/definitions/game/game/entity/action/actions/DrawMap.d.ts +2 -2
  44. package/definitions/game/game/entity/action/actions/DrinkInFront.d.ts +2 -1
  45. package/definitions/game/game/entity/action/actions/DrinkItem.d.ts +2 -1
  46. package/definitions/game/game/entity/action/actions/Drop.d.ts +2 -2
  47. package/definitions/game/game/entity/action/actions/DumpItems.d.ts +2 -2
  48. package/definitions/game/game/entity/action/actions/Eat.d.ts +2 -1
  49. package/definitions/game/game/entity/action/actions/Enchant.d.ts +2 -2
  50. package/definitions/game/game/entity/action/actions/Enhance.d.ts +2 -2
  51. package/definitions/game/game/entity/action/actions/Equip.d.ts +2 -2
  52. package/definitions/game/game/entity/action/actions/EquipFromArmorStand.d.ts +2 -1
  53. package/definitions/game/game/entity/action/actions/ExcavateCollapse.d.ts +2 -2
  54. package/definitions/game/game/entity/action/actions/Extinguish.d.ts +2 -2
  55. package/definitions/game/game/entity/action/actions/Exude.d.ts +2 -2
  56. package/definitions/game/game/entity/action/actions/Fire.d.ts +2 -2
  57. package/definitions/game/game/entity/action/actions/Gather.d.ts +2 -2
  58. package/definitions/game/game/entity/action/actions/GatherLiquid.d.ts +2 -2
  59. package/definitions/game/game/entity/action/actions/Grasp.d.ts +2 -2
  60. package/definitions/game/game/entity/action/actions/Harvest.d.ts +2 -2
  61. package/definitions/game/game/entity/action/actions/Heal.d.ts +2 -1
  62. package/definitions/game/game/entity/action/actions/HealOther.d.ts +2 -2
  63. package/definitions/game/game/entity/action/actions/Hitch.d.ts +2 -1
  64. package/definitions/game/game/entity/action/actions/Idle.d.ts +2 -1
  65. package/definitions/game/game/entity/action/actions/Ignite.d.ts +2 -2
  66. package/definitions/game/game/entity/action/actions/Invoke.d.ts +2 -2
  67. package/definitions/game/game/entity/action/actions/Jump.d.ts +2 -1
  68. package/definitions/game/game/entity/action/actions/Kneel.d.ts +2 -2
  69. package/definitions/game/game/entity/action/actions/Learn.d.ts +2 -2
  70. package/definitions/game/game/entity/action/actions/Lockpick.d.ts +2 -2
  71. package/definitions/game/game/entity/action/actions/Melee.d.ts +2 -1
  72. package/definitions/game/game/entity/action/actions/Mine.d.ts +2 -1
  73. package/definitions/game/game/entity/action/actions/Move.d.ts +3 -7
  74. package/definitions/game/game/entity/action/actions/MoveItem.d.ts +2 -2
  75. package/definitions/game/game/entity/action/actions/MoveTo.d.ts +2 -2
  76. package/definitions/game/game/entity/action/actions/NPCInteract.d.ts +2 -2
  77. package/definitions/game/game/entity/action/actions/Navigate.d.ts +2 -2
  78. package/definitions/game/game/entity/action/actions/Noclip.d.ts +2 -2
  79. package/definitions/game/game/entity/action/actions/Offer.d.ts +2 -2
  80. package/definitions/game/game/entity/action/actions/OpenBottle.d.ts +2 -2
  81. package/definitions/game/game/entity/action/actions/OpenContainer.d.ts +2 -1
  82. package/definitions/game/game/entity/action/actions/OpenDoor.d.ts +2 -1
  83. package/definitions/game/game/entity/action/actions/PackGround.d.ts +2 -1
  84. package/definitions/game/game/entity/action/actions/Pet.d.ts +2 -1
  85. package/definitions/game/game/entity/action/actions/PickUp.d.ts +2 -2
  86. package/definitions/game/game/entity/action/actions/PickUpAllItems.d.ts +2 -2
  87. package/definitions/game/game/entity/action/actions/PickUpExcrement.d.ts +2 -2
  88. package/definitions/game/game/entity/action/actions/PickUpItem.d.ts +2 -2
  89. package/definitions/game/game/entity/action/actions/PlaceDown.d.ts +2 -1
  90. package/definitions/game/game/entity/action/actions/Plant.d.ts +2 -2
  91. package/definitions/game/game/entity/action/actions/Pour.d.ts +2 -2
  92. package/definitions/game/game/entity/action/actions/PourOnYourself.d.ts +2 -2
  93. package/definitions/game/game/entity/action/actions/Preserve.d.ts +2 -2
  94. package/definitions/game/game/entity/action/actions/PromptResponse.d.ts +2 -2
  95. package/definitions/game/game/entity/action/actions/PropOpenDoor.d.ts +2 -1
  96. package/definitions/game/game/entity/action/actions/ProtectItem.d.ts +2 -1
  97. package/definitions/game/game/entity/action/actions/Read.d.ts +2 -2
  98. package/definitions/game/game/entity/action/actions/ReadMap.d.ts +2 -2
  99. package/definitions/game/game/entity/action/actions/Refine.d.ts +2 -2
  100. package/definitions/game/game/entity/action/actions/Reinforce.d.ts +2 -2
  101. package/definitions/game/game/entity/action/actions/Release.d.ts +2 -1
  102. package/definitions/game/game/entity/action/actions/RemoveControllableNPC.d.ts +2 -2
  103. package/definitions/game/game/entity/action/actions/Rename.d.ts +2 -2
  104. package/definitions/game/game/entity/action/actions/RenameIsland.d.ts +2 -2
  105. package/definitions/game/game/entity/action/actions/Repair.d.ts +2 -2
  106. package/definitions/game/game/entity/action/actions/ResetItemDiscovered.d.ts +2 -1
  107. package/definitions/game/game/entity/action/actions/Reshape.d.ts +2 -2
  108. package/definitions/game/game/entity/action/actions/Respawn.d.ts +2 -1
  109. package/definitions/game/game/entity/action/actions/Rest.d.ts +2 -2
  110. package/definitions/game/game/entity/action/actions/RestCancel.d.ts +2 -1
  111. package/definitions/game/game/entity/action/actions/Ride.d.ts +2 -1
  112. package/definitions/game/game/entity/action/actions/Rotate.d.ts +2 -2
  113. package/definitions/game/game/entity/action/actions/SailToCivilization.d.ts +2 -2
  114. package/definitions/game/game/entity/action/actions/SailToIsland.d.ts +2 -2
  115. package/definitions/game/game/entity/action/actions/SetCreatureAi.d.ts +2 -2
  116. package/definitions/game/game/entity/action/actions/SetCreatureAiAll.d.ts +2 -1
  117. package/definitions/game/game/entity/action/actions/SetDown.d.ts +2 -2
  118. package/definitions/game/game/entity/action/actions/SetTitle.d.ts +2 -2
  119. package/definitions/game/game/entity/action/actions/ShipToIsland.d.ts +2 -2
  120. package/definitions/game/game/entity/action/actions/Shoot.d.ts +2 -2
  121. package/definitions/game/game/entity/action/actions/Sleep.d.ts +2 -1
  122. package/definitions/game/game/entity/action/actions/SmotherFire.d.ts +2 -2
  123. package/definitions/game/game/entity/action/actions/Squeeze.d.ts +2 -2
  124. package/definitions/game/game/entity/action/actions/Squish.d.ts +2 -2
  125. package/definitions/game/game/entity/action/actions/Stack.d.ts +3 -3
  126. package/definitions/game/game/entity/action/actions/StartFire.d.ts +2 -2
  127. package/definitions/game/game/entity/action/actions/StokeFire.d.ts +2 -2
  128. package/definitions/game/game/entity/action/actions/Summon.d.ts +2 -2
  129. package/definitions/game/game/entity/action/actions/SwapWithArmorStand.d.ts +2 -2
  130. package/definitions/game/game/entity/action/actions/TakeFromArmorStand.d.ts +2 -1
  131. package/definitions/game/game/entity/action/actions/Tame.d.ts +2 -1
  132. package/definitions/game/game/entity/action/actions/Teleport.d.ts +2 -2
  133. package/definitions/game/game/entity/action/actions/TellTime.d.ts +2 -2
  134. package/definitions/game/game/entity/action/actions/TestDepth.d.ts +2 -2
  135. package/definitions/game/game/entity/action/actions/Throw.d.ts +2 -1
  136. package/definitions/game/game/entity/action/actions/Till.d.ts +2 -1
  137. package/definitions/game/game/entity/action/actions/ToggleContainer.d.ts +2 -2
  138. package/definitions/game/game/entity/action/actions/ToggleDoor.d.ts +2 -2
  139. package/definitions/game/game/entity/action/actions/ToggleHitch.d.ts +2 -1
  140. package/definitions/game/game/entity/action/actions/ToggleProtectItem.d.ts +1 -1
  141. package/definitions/game/game/entity/action/actions/ToggleTilled.d.ts +2 -2
  142. package/definitions/game/game/entity/action/actions/ToggleVehicle.d.ts +2 -2
  143. package/definitions/game/game/entity/action/actions/Trade.d.ts +2 -2
  144. package/definitions/game/game/entity/action/actions/Transmogrify.d.ts +2 -2
  145. package/definitions/game/game/entity/action/actions/Uncage.d.ts +2 -2
  146. package/definitions/game/game/entity/action/actions/Unequip.d.ts +2 -2
  147. package/definitions/game/game/entity/action/actions/Unhitch.d.ts +2 -1
  148. package/definitions/game/game/entity/action/actions/UnprotectItem.d.ts +2 -1
  149. package/definitions/game/game/entity/action/actions/UpdateDirection.d.ts +2 -2
  150. package/definitions/game/game/entity/action/actions/UpdateGameOption.d.ts +2 -2
  151. package/definitions/game/game/entity/action/actions/UpdateItemOrder.d.ts +2 -2
  152. package/definitions/game/game/entity/action/actions/UpdateOption.d.ts +2 -2
  153. package/definitions/game/game/entity/action/actions/UpdateWalkTo.d.ts +2 -2
  154. package/definitions/game/game/entity/action/actions/Upgrade.d.ts +2 -2
  155. package/definitions/game/game/entity/action/actions/ViewItems.d.ts +2 -2
  156. package/definitions/game/game/entity/action/actions/helper/MoveUtilities.d.ts +17 -0
  157. package/definitions/game/game/entity/action/actions/moveItem/MoveItemMerchant.d.ts +1 -1
  158. package/definitions/game/game/entity/action/usable/actions/UsableActionsWorld.d.ts +1 -1
  159. package/definitions/game/game/entity/creature/Creature.d.ts +2 -1
  160. package/definitions/game/game/entity/creature/CreatureManager.d.ts +4 -3
  161. package/definitions/game/game/entity/creature/corpse/Corpse.d.ts +1 -1
  162. package/definitions/game/game/entity/creature/corpse/CorpseManager.d.ts +1 -1
  163. package/definitions/game/game/entity/npc/NPC.d.ts +1 -1
  164. package/definitions/game/game/entity/npc/NPCManager.d.ts +1 -0
  165. package/definitions/game/game/entity/status/IStatus.d.ts +24 -1
  166. package/definitions/game/game/entity/status/IStatusContext.d.ts +1 -1
  167. package/definitions/game/game/entity/status/Status.d.ts +1 -23
  168. package/definitions/game/game/item/IItem.d.ts +13 -12
  169. package/definitions/game/game/item/Item.d.ts +2 -2
  170. package/definitions/game/game/item/ItemManager.d.ts +5 -3
  171. package/definitions/game/game/item/recipe/output/ItemOutput.d.ts +2 -0
  172. package/definitions/game/game/magic/IMagicalProperty.d.ts +1 -1
  173. package/definitions/game/game/magic/MagicalPropertyType.d.ts +8 -1
  174. package/definitions/game/game/mapgen/version/2.15.0.d.ts +19 -0
  175. package/definitions/game/game/options/modifiers/island/IIslandModifier.d.ts +13 -0
  176. package/definitions/game/game/options/modifiers/island/IslandModifier.d.ts +1 -3
  177. package/definitions/game/game/options/modifiers/island/IslandModifiers.d.ts +1 -1
  178. package/definitions/game/game/options/modifiers/milestone/IMilestoneModifier.d.ts +24 -0
  179. package/definitions/game/game/options/modifiers/milestone/MilestoneModifier.d.ts +1 -14
  180. package/definitions/game/game/options/modifiers/milestone/MilestoneModifiersManager.d.ts +1 -1
  181. package/definitions/game/game/options/modifiers/milestone/modifiers/Abnormalizer.d.ts +2 -1
  182. package/definitions/game/game/options/modifiers/milestone/modifiers/Afflicted.d.ts +2 -1
  183. package/definitions/game/game/options/modifiers/milestone/modifiers/Apocryphal.d.ts +2 -1
  184. package/definitions/game/game/options/modifiers/milestone/modifiers/Artificer.d.ts +2 -1
  185. package/definitions/game/game/options/modifiers/milestone/modifiers/Boundless.d.ts +2 -1
  186. package/definitions/game/game/options/modifiers/milestone/modifiers/Challenger.d.ts +2 -1
  187. package/definitions/game/game/options/modifiers/milestone/modifiers/Chef.d.ts +2 -1
  188. package/definitions/game/game/options/modifiers/milestone/modifiers/Collector.d.ts +2 -1
  189. package/definitions/game/game/options/modifiers/milestone/modifiers/Contender.d.ts +2 -1
  190. package/definitions/game/game/options/modifiers/milestone/modifiers/Crafter.d.ts +2 -1
  191. package/definitions/game/game/options/modifiers/milestone/modifiers/Curator.d.ts +2 -1
  192. package/definitions/game/game/options/modifiers/milestone/modifiers/Dedicated.d.ts +2 -1
  193. package/definitions/game/game/options/modifiers/milestone/modifiers/DestroyerOfMagi.d.ts +2 -1
  194. package/definitions/game/game/options/modifiers/milestone/modifiers/Diverse.d.ts +2 -1
  195. package/definitions/game/game/options/modifiers/milestone/modifiers/Doctor.d.ts +2 -1
  196. package/definitions/game/game/options/modifiers/milestone/modifiers/DragonSlayer.d.ts +2 -1
  197. package/definitions/game/game/options/modifiers/milestone/modifiers/Explorer.d.ts +2 -1
  198. package/definitions/game/game/options/modifiers/milestone/modifiers/Exsanguinated.d.ts +2 -1
  199. package/definitions/game/game/options/modifiers/milestone/modifiers/Exterminator.d.ts +2 -1
  200. package/definitions/game/game/options/modifiers/milestone/modifiers/Gardener.d.ts +2 -1
  201. package/definitions/game/game/options/modifiers/milestone/modifiers/Gatherer.d.ts +2 -1
  202. package/definitions/game/game/options/modifiers/milestone/modifiers/Grandmaster.d.ts +2 -1
  203. package/definitions/game/game/options/modifiers/milestone/modifiers/Helmsman.d.ts +2 -1
  204. package/definitions/game/game/options/modifiers/milestone/modifiers/Hounded.d.ts +2 -1
  205. package/definitions/game/game/options/modifiers/milestone/modifiers/Hunter.d.ts +2 -1
  206. package/definitions/game/game/options/modifiers/milestone/modifiers/Huntsman.d.ts +2 -1
  207. package/definitions/game/game/options/modifiers/milestone/modifiers/Invoker.d.ts +2 -1
  208. package/definitions/game/game/options/modifiers/milestone/modifiers/Locksmith.d.ts +2 -1
  209. package/definitions/game/game/options/modifiers/milestone/modifiers/Masochist.d.ts +2 -1
  210. package/definitions/game/game/options/modifiers/milestone/modifiers/MasterOfAll.d.ts +2 -1
  211. package/definitions/game/game/options/modifiers/milestone/modifiers/Merchant.d.ts +2 -1
  212. package/definitions/game/game/options/modifiers/milestone/modifiers/Multitasker.d.ts +2 -1
  213. package/definitions/game/game/options/modifiers/milestone/modifiers/Murderer.d.ts +2 -1
  214. package/definitions/game/game/options/modifiers/milestone/modifiers/Navigator.d.ts +2 -1
  215. package/definitions/game/game/options/modifiers/milestone/modifiers/Notekeeper.d.ts +2 -1
  216. package/definitions/game/game/options/modifiers/milestone/modifiers/Operator.d.ts +2 -1
  217. package/definitions/game/game/options/modifiers/milestone/modifiers/Prepared.d.ts +2 -1
  218. package/definitions/game/game/options/modifiers/milestone/modifiers/Pulchritudinous.d.ts +2 -1
  219. package/definitions/game/game/options/modifiers/milestone/modifiers/ReaperOfSouls.d.ts +2 -1
  220. package/definitions/game/game/options/modifiers/milestone/modifiers/Retailer.d.ts +2 -1
  221. package/definitions/game/game/options/modifiers/milestone/modifiers/Rouseabout.d.ts +2 -1
  222. package/definitions/game/game/options/modifiers/milestone/modifiers/RunekeeperModifier.d.ts +2 -1
  223. package/definitions/game/game/options/modifiers/milestone/modifiers/Seafarer.d.ts +2 -1
  224. package/definitions/game/game/options/modifiers/milestone/modifiers/Serene.d.ts +2 -1
  225. package/definitions/game/game/options/modifiers/milestone/modifiers/Statistician.d.ts +2 -1
  226. package/definitions/game/game/options/modifiers/milestone/modifiers/Talented.d.ts +2 -1
  227. package/definitions/game/game/options/modifiers/milestone/modifiers/Thaumaturgic.d.ts +2 -1
  228. package/definitions/game/game/options/modifiers/milestone/modifiers/Thrower.d.ts +2 -1
  229. package/definitions/game/game/options/modifiers/milestone/modifiers/Traitor.d.ts +2 -1
  230. package/definitions/game/game/options/modifiers/milestone/modifiers/Trapper.d.ts +2 -1
  231. package/definitions/game/game/options/modifiers/milestone/modifiers/TreasureHunter.d.ts +2 -1
  232. package/definitions/game/game/options/modifiers/milestone/modifiers/Treasurer.d.ts +2 -1
  233. package/definitions/game/game/options/modifiers/milestone/modifiers/Versatile.d.ts +2 -1
  234. package/definitions/game/game/options/modifiers/milestone/modifiers/shared/DeityInvokeMilestoneModifier.d.ts +2 -1
  235. package/definitions/game/game/options/modifiers/milestone/modifiers/shared/StatBonusMilestoneModifier.d.ts +2 -1
  236. package/definitions/game/game/options/modifiers/milestone/modifiers/shared/TamedCreatureMilestoneModifier.d.ts +2 -1
  237. package/definitions/game/game/reference/IReferenceManager.d.ts +1 -0
  238. package/definitions/game/game/temperature/TemperatureManager.d.ts +1 -1
  239. package/definitions/game/game/tile/ITileEvent.d.ts +7 -1
  240. package/definitions/game/game/tile/Tile.d.ts +2 -1
  241. package/definitions/game/game/tile/TileEvent.d.ts +6 -2
  242. package/definitions/game/game/tile/TileEventManager.d.ts +2 -1
  243. package/definitions/game/game/tile/events/PileOfLeaves.d.ts +12 -0
  244. package/definitions/game/game/tile/events/{IFire.d.ts → fire/FireHelper.d.ts} +2 -17
  245. package/definitions/game/game/tile/events/fire/FireStage.d.ts +27 -0
  246. package/definitions/game/language/DictionaryMap.d.ts +9 -4
  247. package/definitions/game/language/ITranslation.d.ts +18 -0
  248. package/definitions/game/language/Translation.d.ts +5 -23
  249. package/definitions/game/language/english/game/CombatDangerLevels.d.ts +1 -1
  250. package/definitions/game/language/english/game/CombatStrengths.d.ts +1 -1
  251. package/definitions/game/language/english/game/FireStages.d.ts +1 -1
  252. package/definitions/game/language/english/game/IslandModifiers.d.ts +1 -1
  253. package/definitions/game/language/english/game/islandName/IslandNameModifierDescriptors.d.ts +1 -1
  254. package/definitions/game/language/english/ui/MilestoneModifierGroups.d.ts +1 -1
  255. package/definitions/game/language/utility/TranslationListBuilder.d.ts +7 -4
  256. package/definitions/game/language/utility/TranslationSorter.d.ts +22 -11
  257. package/definitions/game/language/utility/TranslationUtility.d.ts +15 -0
  258. package/definitions/game/mod/ModInformation.d.ts +2 -2
  259. package/definitions/game/multiplayer/packets/shared/ActionPacketBase.d.ts +1 -0
  260. package/definitions/game/ui/Ui.d.ts +3 -0
  261. package/definitions/game/ui/component/GameIcons.d.ts +1 -1
  262. package/definitions/game/ui/input/Bind.d.ts +1 -1
  263. package/definitions/game/ui/input/BindableManager.d.ts +4 -1
  264. package/definitions/game/ui/input/Bindables.d.ts +1 -0
  265. package/definitions/game/ui/input/Defaults.d.ts +12 -2
  266. package/definitions/game/ui/input/InputInfo.d.ts +34 -0
  267. package/definitions/game/ui/input/InputManager.d.ts +1 -22
  268. package/definitions/game/ui/input/Macros.d.ts +4 -1
  269. package/definitions/game/ui/screen/screens/GameScreen.d.ts +5 -1
  270. package/definitions/game/ui/screen/screens/game/component/ContainerBucket.d.ts +5 -42
  271. package/definitions/game/ui/screen/screens/game/component/GameDetails.d.ts +1 -1
  272. package/definitions/game/ui/screen/screens/game/component/ItemComponent.d.ts +1 -23
  273. package/definitions/game/ui/screen/screens/game/component/container/ContainerBucketItemList.d.ts +4 -1
  274. package/definitions/game/ui/screen/screens/game/component/container/ContainerBucketManager.d.ts +42 -0
  275. package/definitions/game/ui/screen/screens/game/component/container/IContainerBucket.d.ts +25 -0
  276. package/definitions/game/ui/screen/screens/game/component/item/IItemComponent.d.ts +23 -0
  277. package/definitions/game/ui/screen/screens/game/component/item/ItemComponentEventBus.d.ts +1 -1
  278. package/definitions/game/ui/screen/screens/game/component/item/ItemComponentTradeManager.d.ts +1 -1
  279. package/definitions/game/ui/screen/screens/game/dialog/ContainerDialog.d.ts +1 -2
  280. package/definitions/game/ui/screen/screens/game/dialog/EquipmentDialog.d.ts +3 -2
  281. package/definitions/game/ui/screen/screens/game/dialog/TradeDialog.d.ts +3 -4
  282. package/definitions/game/ui/screen/screens/game/static/ActionBar.d.ts +0 -18
  283. package/definitions/game/ui/screen/screens/game/static/actions/IActionBar.d.ts +18 -0
  284. package/definitions/game/ui/screen/screens/game/static/stats/component/IStatuses.d.ts +29 -0
  285. package/definitions/game/ui/screen/screens/game/static/stats/component/Statuses.d.ts +0 -19
  286. package/definitions/game/ui/screen/screens/menu/menus/HelpArticleMenu.d.ts +3 -0
  287. package/definitions/game/ui/screen/screens/menu/menus/help/HelpArticleDescriptions.d.ts +0 -2
  288. package/definitions/game/ui/screen/screens/menu/menus/mods/ModRow.d.ts +3 -0
  289. package/definitions/game/utilities/collection/map/DefaultMap.d.ts +5 -1
  290. package/definitions/game/utilities/object/Merge.d.ts +5 -2
  291. package/definitions/hosts/shared/globalTypes.d.ts +15 -13
  292. package/definitions/utilities/Log.d.ts +0 -14
  293. package/definitions/utilities/log/ErrorReporting.d.ts +28 -0
  294. package/package.json +1 -1
@@ -0,0 +1,42 @@
1
+ /*!
2
+ * Copyright 2011-2025 Unlok
3
+ * https://www.unlok.ca
4
+ *
5
+ * Credits & Thanks:
6
+ * https://www.unlok.ca/credits-thanks/
7
+ *
8
+ * Wayward is a copyrighted and licensed work. Modification and/or distribution of any source files is prohibited. If you wish to modify the game in any way, please refer to the modding guide:
9
+ * https://github.com/WaywardGame/types/wiki
10
+ */
11
+ import ContainerBucket from "@wayward/game/ui/screen/screens/game/component/ContainerBucket";
12
+ import EventEmitter from "@wayward/utilities/event/EventEmitter";
13
+ import type { IContainer, ItemType } from "@wayward/game/game/item/IItem";
14
+ import Item from "@wayward/game/game/item/Item";
15
+ import type ItemComponent from "@wayward/game/ui/screen/screens/game/component/ItemComponent";
16
+ export interface IContainerBucketsEvents {
17
+ register(bucket: ContainerBucket): any;
18
+ deregister(bucket: ContainerBucket): any;
19
+ }
20
+ export default class ContainerBucketManager extends EventEmitter.Host<IContainerBucketsEvents> {
21
+ static readonly INSTANCE: ContainerBucketManager;
22
+ create(): ContainerBucket;
23
+ readonly buckets: ContainerBucket[];
24
+ register(bucket: ContainerBucket): void;
25
+ deregister(bucket: ContainerBucket): void;
26
+ reregister(bucket: ContainerBucket): void;
27
+ getFor(container?: IContainer): ContainerBucket | undefined;
28
+ getContaining(item?: Item): ContainerBucket | undefined;
29
+ hasAncestorsOpen(container?: IContainer): boolean;
30
+ private activeRef?;
31
+ getActive(): ContainerBucket | undefined;
32
+ getLastInteracted(filter?: (bucket: ContainerBucket) => any): ContainerBucket | undefined;
33
+ getSorting(): ItemComponent | undefined;
34
+ cancelSorting(): void;
35
+ getTransferDestination(transferFrom?: IContainer, item?: Item | ItemType, filter?: (bucket: ContainerBucket) => any): ContainerBucket | undefined;
36
+ private readonly transferDestinationHolds;
37
+ addTransferDestinationHoldFor(id: string, transferFrom: ContainerBucket): void;
38
+ removeTransferDestinationHoldFor(id: string): void;
39
+ updateTransferDestination(): void;
40
+ setActive(bucket: ContainerBucket): void;
41
+ clearActive(): void;
42
+ }
@@ -0,0 +1,25 @@
1
+ /*!
2
+ * Copyright 2011-2025 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 ContainerBucketClasses {
12
+ __ShowQuickMoveTargetButtons = "--show-container-bucket-quick-move-target-buttons",
13
+ __ShowQuickMoveTarget_HoveredAction = "--show-container-bucket-quick-move-target--hovered-action",
14
+ __ShowQuickMoveTarget_BindableModifiers = "--show-container-bucket-quick-move-target--bindable-modifiers",
15
+ Main = "container-bucket",
16
+ TabButton = "container-bucket-tab-button",
17
+ TabButton_PrefersRight = "container-bucket-tab-button--prefers-right",
18
+ TabButton_Reverse = "container-bucket-tab-button--reverse",
19
+ TabButton_Hover = "container-bucket-tab-button--hover",
20
+ TabButton_HoverOrderEligible = "container-bucket-tab-button--hover-order-eligible",
21
+ TabButtonQuickMoveTarget = "container-bucket-tab-button-quick-move-target",
22
+ TabButtonQuickMoveTarget_Targeted = "container-bucket-tab-button-quick-move-target--targeted",
23
+ TabButtonMoveAll = "container-bucket-tab-button-move-all",
24
+ TabButtonAction = "container-bucket-tab-button-action"
25
+ }
@@ -63,3 +63,26 @@ export declare enum ItemClasses {
63
63
  export declare namespace ItemClasses {
64
64
  const IconLocation: (enumValue: ItemDetailIconLocation) => "item-component-icon-location-topleft" | "item-component-icon-location-bottomright";
65
65
  }
66
+ export declare enum ItemTradeType {
67
+ None = "",
68
+ ToMerchant = "To",
69
+ FromMerchant = "From"
70
+ }
71
+ export declare enum ItemRefreshType {
72
+ None = 0,
73
+ ItemType = 1,
74
+ Durability = 2,
75
+ Decay = 4,
76
+ Quality = 8,
77
+ Magic = 16,
78
+ Protected = 32,
79
+ EquipSlot = 64,
80
+ MaybeSlottedInActionSlot = 128,
81
+ Action = 256,
82
+ Stack = 512,
83
+ Stacked = 1024,
84
+ Trading = 2048,
85
+ ContainerChange = 4096,
86
+ Cooldown = 8192,
87
+ All = 16383
88
+ }
@@ -9,7 +9,7 @@
9
9
  * https://github.com/WaywardGame/types/wiki
10
10
  */
11
11
  import type { GlobalMouseInfo } from "@wayward/game/ui/input/InputManager";
12
- import { type ItemRefreshType } from "@wayward/game/ui/screen/screens/game/component/ItemComponent";
12
+ import type { ItemRefreshType } from "@wayward/game/ui/screen/screens/game/component/item/IItemComponent";
13
13
  import type ItemComponent from "@wayward/game/ui/screen/screens/game/component/ItemComponent";
14
14
  import type ActionBar from "@wayward/game/ui/screen/screens/game/static/ActionBar";
15
15
  import type { ActionSlot } from "@wayward/game/ui/screen/screens/game/static/actions/ActionSlot";
@@ -11,7 +11,7 @@
11
11
  import type Human from "@wayward/game/game/entity/Human";
12
12
  import type MerchantNPC from "@wayward/game/game/entity/npc/npcs/Merchant";
13
13
  import type Item from "@wayward/game/game/item/Item";
14
- import { ItemTradeType } from "@wayward/game/ui/screen/screens/game/component/ItemComponent";
14
+ import { ItemTradeType } from "@wayward/game/ui/screen/screens/game/component/item/IItemComponent";
15
15
  import WeakishSet from "@wayward/utilities/collection/set/WeakishSet";
16
16
  declare namespace _ {
17
17
  class ItemComponentTradeManager {
@@ -15,7 +15,6 @@ import Tile from "@wayward/game/game/tile/Tile";
15
15
  import type TranslationImpl from "@wayward/game/language/impl/TranslationImpl";
16
16
  import Text from "@wayward/game/ui/component/Text";
17
17
  import { DialogId } from "@wayward/game/ui/screen/screens/game/Dialogs";
18
- import ContainerBucket from "@wayward/game/ui/screen/screens/game/component/ContainerBucket";
19
18
  import Dialog from "@wayward/game/ui/screen/screens/game/component/Dialog";
20
19
  import type { Events, IEventEmitter } from "@wayward/utilities/event/EventEmitter";
21
20
  export interface IContainerDialogEvents extends Events<Dialog> {
@@ -29,7 +28,7 @@ export declare enum ContainerDialogClasses {
29
28
  }
30
29
  export default class ContainerDialog extends Dialog {
31
30
  event: IEventEmitter<this, IContainerDialogEvents>;
32
- readonly bucket: ContainerBucket;
31
+ readonly bucket: import("../component/ContainerBucket").default;
33
32
  readonly weight: Text;
34
33
  constructor(id?: DialogId, subId?: string);
35
34
  setContainer(container: IContainer): this;
@@ -14,8 +14,9 @@ import Component from "@wayward/game/ui/component/Component";
14
14
  import type { IBindHandlerApi } from "@wayward/game/ui/input/Bind";
15
15
  import Bindable from "@wayward/game/ui/input/Bindable";
16
16
  import Dialog from "@wayward/game/ui/screen/screens/game/component/Dialog";
17
- import { ItemRefreshType, type IItemDropApi, type IItemPickUpApi, type ItemSlot } from "@wayward/game/ui/screen/screens/game/component/ItemComponent";
17
+ import { type IItemDropApi, type IItemPickUpApi, type ItemSlot } from "@wayward/game/ui/screen/screens/game/component/ItemComponent";
18
18
  import ItemComponent from "@wayward/game/ui/screen/screens/game/component/ItemComponent";
19
+ import { ItemRefreshType } from "@wayward/game/ui/screen/screens/game/component/item/IItemComponent";
19
20
  import EquipmentSlotTooltipHandler from "@wayward/game/ui/screen/screens/game/dialog/equipment/EquipmentSlotTooltip";
20
21
  import { MenuBarButtonType } from "@wayward/game/ui/screen/screens/game/static/menubar/IMenuBarButton";
21
22
  export declare enum EquipmentClasses {
@@ -29,7 +30,7 @@ export declare enum EquipmentClasses {
29
30
  SlotsWrapper = "game-dialog-equipment-slots-wrapper"
30
31
  }
31
32
  export declare namespace EquipmentClasses {
32
- const SlotType: (enumValue: EquipType) => "game-dialog-equipment-slot-none" | "game-dialog-equipment-slot-head" | "game-dialog-equipment-slot-held" | "game-dialog-equipment-slot-legs" | "game-dialog-equipment-slot-chest" | "game-dialog-equipment-slot-waist" | "game-dialog-equipment-slot-feet" | "game-dialog-equipment-slot-neck" | "game-dialog-equipment-slot-hands" | "game-dialog-equipment-slot-back" | "game-dialog-equipment-slot-mainhand" | "game-dialog-equipment-slot-offhand" | "game-dialog-equipment-slot-dualwield";
33
+ const SlotType: (enumValue: EquipType) => "game-dialog-equipment-slot-none" | "game-dialog-equipment-slot-head" | "game-dialog-equipment-slot-back" | "game-dialog-equipment-slot-chest" | "game-dialog-equipment-slot-feet" | "game-dialog-equipment-slot-hands" | "game-dialog-equipment-slot-held" | "game-dialog-equipment-slot-legs" | "game-dialog-equipment-slot-neck" | "game-dialog-equipment-slot-waist" | "game-dialog-equipment-slot-mainhand" | "game-dialog-equipment-slot-offhand" | "game-dialog-equipment-slot-dualwield";
33
34
  }
34
35
  export default class EquipmentDialog extends Dialog {
35
36
  readonly slots: Component<HTMLElement>;
@@ -16,7 +16,6 @@ import Button from "@wayward/game/ui/component/Button";
16
16
  import Component from "@wayward/game/ui/component/Component";
17
17
  import Text from "@wayward/game/ui/component/Text";
18
18
  import { DialogId } from "@wayward/game/ui/screen/screens/game/Dialogs";
19
- import ContainerBucket from "@wayward/game/ui/screen/screens/game/component/ContainerBucket";
20
19
  import Dialog from "@wayward/game/ui/screen/screens/game/component/Dialog";
21
20
  import ItemComponent from "@wayward/game/ui/screen/screens/game/component/ItemComponent";
22
21
  export declare enum TradeDialogClasses {
@@ -39,17 +38,17 @@ export declare enum TradeDialogClasses {
39
38
  TextCredit = "trade-dialog-text-credit"
40
39
  }
41
40
  export default class TradeDialog extends Dialog {
42
- readonly inventory: ContainerBucket;
41
+ readonly inventory: import("../component/ContainerBucket").default;
43
42
  readonly tradeWrapperMerchant: Component<HTMLElement>;
44
43
  readonly tradeTitleMerchant: Text;
45
- readonly tradeContainerMerchant: ContainerBucket;
44
+ readonly tradeContainerMerchant: import("../component/ContainerBucket").default;
46
45
  readonly tallySticksMerchant: ItemComponent | undefined;
47
46
  readonly merchantWeightCapacity: Text;
48
47
  readonly tradeColumn: Component<HTMLElement>;
49
48
  readonly tradeButton: Button;
50
49
  readonly tradeWrapperYou: Component<HTMLElement>;
51
50
  readonly tradeTitleYou: Text;
52
- readonly tradeContainerYou: ContainerBucket;
51
+ readonly tradeContainerYou: import("../component/ContainerBucket").default;
53
52
  readonly tallySticksYou: ItemComponent | undefined;
54
53
  readonly credit: Text;
55
54
  private merchantRef?;
@@ -27,24 +27,6 @@ import ActionsConfigurationDrawer from "@wayward/game/ui/screen/screens/game/sta
27
27
  import { IActionBarSlotData } from "@wayward/game/ui/screen/screens/game/static/actions/IActionBar";
28
28
  import Stream from "@wayward/goodstream/Stream";
29
29
  import type { Events, IEventEmitter } from "@wayward/utilities/event/EventEmitter";
30
- export declare enum ActionBarClasses {
31
- Main = "game-action-bar",
32
- Configuring = "game-action-bar-configuring",
33
- SlotsContainer = "game-action-bar-slots",
34
- SlotsContainerLastFour = "game-action-bar-slots-last-four",
35
- SlotsContainerHistory = "game-action-bar-slots-history",
36
- MovingSlot = "game-action-bar-moving-slot",
37
- MetaButtons = "game-action-bar-meta-buttons-container",
38
- MetaButton = "game-action-bar-meta-button",
39
- MetaButtonAdd = "game-action-bar-meta-button-add",
40
- MetaButtonRemove = "game-action-bar-meta-button-remove",
41
- MetaButtonConfigure = "game-action-bar-meta-button-configure",
42
- MetaButtonToggleUseWhenMoving = "game-action-bar-meta-button-toggle-use-when-moving",
43
- _HistoryInactive = "game-action-bar--history-inactive",
44
- _HistoryActive = "game-action-bar--history-active",
45
- _HistoryClearing = "game-action-bar--history-clearing",
46
- _AutoPaused = "game-action-bar--auto-paused"
47
- }
48
30
  export interface IActionBarEvents extends Events<QuadrantComponent> {
49
31
  configure(number: number): any;
50
32
  endConfiguration(): any;
@@ -89,3 +89,21 @@ export declare enum ActionSlotUpdateReason {
89
89
  HistoryItemChange = 10,
90
90
  HoveredTileChange = 11
91
91
  }
92
+ export declare enum ActionBarClasses {
93
+ Main = "game-action-bar",
94
+ Configuring = "game-action-bar-configuring",
95
+ SlotsContainer = "game-action-bar-slots",
96
+ SlotsContainerLastFour = "game-action-bar-slots-last-four",
97
+ SlotsContainerHistory = "game-action-bar-slots-history",
98
+ MovingSlot = "game-action-bar-moving-slot",
99
+ MetaButtons = "game-action-bar-meta-buttons-container",
100
+ MetaButton = "game-action-bar-meta-button",
101
+ MetaButtonAdd = "game-action-bar-meta-button-add",
102
+ MetaButtonRemove = "game-action-bar-meta-button-remove",
103
+ MetaButtonConfigure = "game-action-bar-meta-button-configure",
104
+ MetaButtonToggleUseWhenMoving = "game-action-bar-meta-button-toggle-use-when-moving",
105
+ _HistoryInactive = "game-action-bar--history-inactive",
106
+ _HistoryActive = "game-action-bar--history-active",
107
+ _HistoryClearing = "game-action-bar--history-clearing",
108
+ _AutoPaused = "game-action-bar--auto-paused"
109
+ }
@@ -0,0 +1,29 @@
1
+ /*!
2
+ * Copyright 2011-2025 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 StatusClasses {
12
+ Wrapper = "status-effects",
13
+ Wrapper_Smol = "status-effects--smol",
14
+ Wrapper_WaitingForScale = "status-effects--waiting-for-scale",
15
+ Main = "status-effect",
16
+ _TitleMode = "status-effect--title-mode",
17
+ Level = "status-effect-level",
18
+ _Tick = "status-effect--tick",
19
+ Layer = "status-effect-layer",
20
+ LayerBackground = "status-effect-layer-background",
21
+ LayerForeground = "status-effect-layer-foreground",
22
+ LayerEffect = "status-effect-layer-effect",
23
+ _NoHigherThreat = "status-effect--no-higher-threat",
24
+ _Group_ = "status-effect--group-",
25
+ _GroupThreat = "status-effect--group-threat",
26
+ _GroupIssue = "status-effect--group-issue",
27
+ _GroupNeutral = "status-effect--group-neutral",
28
+ _GroupGood = "status-effect--group-good"
29
+ }
@@ -14,25 +14,6 @@ import { StatusType } from "@wayward/game/game/entity/status/IStatus";
14
14
  import Component from "@wayward/game/ui/component/Component";
15
15
  import type GameScreen from "@wayward/game/ui/screen/screens/GameScreen";
16
16
  import type { Events, IEventEmitter } from "@wayward/utilities/event/EventEmitter";
17
- export declare enum StatusClasses {
18
- Wrapper = "status-effects",
19
- Wrapper_Smol = "status-effects--smol",
20
- Wrapper_WaitingForScale = "status-effects--waiting-for-scale",
21
- Main = "status-effect",
22
- _TitleMode = "status-effect--title-mode",
23
- Level = "status-effect-level",
24
- _Tick = "status-effect--tick",
25
- Layer = "status-effect-layer",
26
- LayerBackground = "status-effect-layer-background",
27
- LayerForeground = "status-effect-layer-foreground",
28
- LayerEffect = "status-effect-layer-effect",
29
- _NoHigherThreat = "status-effect--no-higher-threat",
30
- _Group_ = "status-effect--group-",
31
- _GroupThreat = "status-effect--group-threat",
32
- _GroupIssue = "status-effect--group-issue",
33
- _GroupNeutral = "status-effect--group-neutral",
34
- _GroupGood = "status-effect--group-good"
35
- }
36
17
  export interface IStatusesEvents extends Events<Component> {
37
18
  update(): any;
38
19
  }
@@ -8,8 +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 type { TextWrapperLink } from "@wayward/game/ui/component/Text";
12
+ import { TextWrapper } from "@wayward/game/ui/component/Text";
11
13
  import Menu from "@wayward/game/ui/screen/screens/menu/component/Menu";
12
14
  import { HelpArticle } from "@wayward/game/ui/screen/screens/menu/menus/help/IHelpArticle";
15
+ export declare function HelpArticleLinkHandler(text: TextWrapper, link: TextWrapperLink): true | void;
13
16
  export default class HelpArticleMenu extends Menu {
14
17
  constructor(article: HelpArticle);
15
18
  protected onGoBackFrom(): Promise<void>;
@@ -8,10 +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 { TextWrapper, TextWrapperLink } from "@wayward/game/ui/component/Text";
12
11
  import type { IHelpArticle } from "@wayward/game/ui/screen/screens/menu/menus/help/IHelpArticle";
13
12
  import { HelpArticle, HelpArticleSection } from "@wayward/game/ui/screen/screens/menu/menus/help/IHelpArticle";
14
13
  export { HelpArticle, HelpArticleSection };
15
14
  declare const descriptions: Descriptions<HelpArticle, IHelpArticle>;
16
15
  export default descriptions;
17
- export declare function HelpArticleLinkHandler(text: TextWrapper, link: TextWrapperLink): true | void;
@@ -10,6 +10,8 @@
10
10
  */
11
11
  import type { ModInformation } from "@wayward/game/mod/ModInformation";
12
12
  import { CheckButton } from "@wayward/game/ui/component/CheckButton";
13
+ import type Component from "@wayward/game/ui/component/Component";
14
+ import ModMetadataInserter from "@wayward/game/ui/screen/screens/menu/menus/mods/ModMetadataInserter";
13
15
  import type { Events, IEventEmitter } from "@wayward/utilities/event/EventEmitter";
14
16
  interface IModRowEvents extends Events<CheckButton> {
15
17
  shouldRefreshMenu(): any;
@@ -21,6 +23,7 @@ export default class ModRow extends CheckButton {
21
23
  private readonly buttonHandler;
22
24
  constructor(mod: ModInformation);
23
25
  shouldDisableButtonButtonsOnUnchecked(): boolean;
26
+ insertMetadata(into: Component, mod: ModInformation, context: "tooltip" | "menu"): ModMetadataInserter;
24
27
  setEnabled(enabled: boolean, prompts?: boolean, changingAllStates?: boolean): Promise<boolean>;
25
28
  protected onToggle(checked: boolean): Promise<void>;
26
29
  private checkDependants;
@@ -9,9 +9,11 @@
9
9
  * https://github.com/WaywardGame/types/wiki
10
10
  */
11
11
  import type { ISerializable, ISerializer } from "@wayward/game/save/serializer/ISerializer";
12
+ import type { IMergeable, MergeFunction } from "@wayward/game/utilities/object/Merge";
13
+ import { SYMBOL_MERGE_INTO, SYMBOL_MERGE_OVER } from "@wayward/game/utilities/object/Merge";
12
14
  import type { RecursivePartial } from "@wayward/game/utilities/types/Recursive";
13
15
  import Objects from "@wayward/utilities/object/Objects";
14
- export default class DefaultMap<K, V> extends Map<K, V> implements ISerializable, Objects.ICloneable {
16
+ export default class DefaultMap<K, V> extends Map<K, V> implements ISerializable, Objects.ICloneable, IMergeable<Map<K, V>> {
15
17
  readonly defaultValue: V;
16
18
  constructor(defaultValue: V, entries?: Iterable<readonly [K, RecursivePartial<V>]>);
17
19
  valuesAndDefault(): Generator<V>;
@@ -19,4 +21,6 @@ export default class DefaultMap<K, V> extends Map<K, V> implements ISerializable
19
21
  serializeObject(serializer: ISerializer): undefined;
20
22
  deserializeObject(serializer: ISerializer): boolean;
21
23
  [Objects.SYMBOL_CLONE](clone: typeof Objects.deepClone): this;
24
+ [SYMBOL_MERGE_INTO](from: unknown, merge: MergeFunction): unknown;
25
+ [SYMBOL_MERGE_OVER](over: unknown, merge: MergeFunction): Map<K, V>;
22
26
  }
@@ -52,7 +52,10 @@ declare namespace Merge {
52
52
  function MERGE_ARRAY<A extends any[]>(...values: A): Mergeable<A>;
53
53
  }
54
54
  export default Merge;
55
- export declare const SYMBOL_MERGEABLE: unique symbol;
55
+ export type MergeFunction = (a: unknown, b: unknown) => unknown;
56
+ export declare const SYMBOL_MERGE_OVER: unique symbol;
57
+ export declare const SYMBOL_MERGE_INTO: unique symbol;
56
58
  export interface IMergeable<T> {
57
- [SYMBOL_MERGEABLE](value: this | undefined): T;
59
+ [SYMBOL_MERGE_OVER]?(value: unknown, merge: MergeFunction): T;
60
+ [SYMBOL_MERGE_INTO]?(value: unknown, merge: MergeFunction): unknown;
58
61
  }
@@ -10,18 +10,20 @@
10
10
  */
11
11
  import type { IWaywardPreload } from "./interfaces";
12
12
  import type { IElectron } from "./ipc/electron";
13
- export interface IRequireJs {
14
- s: {
15
- contexts: {
16
- _: {
17
- defined: Record<string, any>;
18
- };
19
- };
20
- };
21
- undef(path: string): void;
22
- onResourceLoad(ctx: any, map: any): void;
23
- (moduleName: string): any;
24
- (moduleNames: string[], onLoad: (...args: any[]) => void, onError: (err: any) => void): void;
13
+ export interface ModuleLoaderConfig {
14
+ baseUrl: string;
15
+ paths: Record<string, string>;
16
+ urlArgs?: string;
17
+ }
18
+ export interface ModuleLoader {
19
+ defined: Record<string, any>;
20
+ configModuleImport(config: ModuleLoaderConfig): void;
21
+ processModules(): Promise<void>;
22
+ importAdditionalScript(script: string, onLoad?: () => void, onError?: (err: any) => void): void;
23
+ importAdditionalModule<T = unknown>(module: string, onLoad?: (mod: any) => void, onError?: (err: any) => void): Promise<T>;
24
+ importAdditionalModules<T = unknown[]>(modules: string[], onLoad?: (...mods: any[]) => void, onError?: (err: any) => void): Promise<T>;
25
+ allowRedefine(name: string): void;
26
+ hasModule(name: string): boolean;
25
27
  }
26
28
  export interface IWaywardPreloadLoader {
27
29
  installPath?: string;
@@ -56,7 +58,7 @@ declare global {
56
58
  interface Window {
57
59
  require: any;
58
60
  electronRequire: any;
59
- requirejs: IRequireJs | undefined;
61
+ ModuleLoader: ModuleLoader | undefined;
60
62
  waywardPreload: IWaywardPreloadLoader | undefined;
61
63
  waywardTitleBar: IWaywardTitleBar | undefined;
62
64
  getScaleFactor(): number;
@@ -9,7 +9,6 @@
9
9
  * https://github.com/WaywardGame/types/wiki
10
10
  */
11
11
  import type { IFileSystem } from "@wayward/hosts/shared/ipc/fileSystem";
12
- import Version from "@wayward/utilities/Version";
13
12
  export declare enum LogLineType {
14
13
  Debug = 0,
15
14
  Error = 1,
@@ -130,19 +129,6 @@ declare namespace Log {
130
129
  * @param sources A list of sources to log to.
131
130
  */
132
131
  function trace(...sources: string[]): (...args: any[]) => void;
133
- function shouldSendErrorReport(versionInfo?: Version.Info | undefined): boolean;
134
- /**
135
- * Warns about an occurrence of something, due to a specific caller, once per session.
136
- * @param skip Number of callsites to skip. Automatically skips this function and its caller.
137
- * If this is called from a function that is registered in `Errors.ts` as a skipped callsite, you might have to pass `-1`.
138
- * @param id The ID of this warning. Can be `Log.simplify` strings.
139
- */
140
- function warnForCaller(skip: number, id: ArrayOr<string | SimplifyString>, ...message: any[]): void;
141
- /**
142
- * Warn about something once per session based on unique warning ids.
143
- * This is like how node.js does warnings in console.
144
- */
145
- function warnOncePerSession(warningId: ArrayOr<string | SimplifyString>, ...message: any[]): void;
146
132
  interface SimplifyString extends String {
147
133
  simplified: string;
148
134
  }
@@ -0,0 +1,28 @@
1
+ /*!
2
+ * Copyright 2011-2025 Unlok
3
+ * https://www.unlok.ca
4
+ *
5
+ * Credits & Thanks:
6
+ * https://www.unlok.ca/credits-thanks/
7
+ *
8
+ * Wayward is a copyrighted and licensed work. Modification and/or distribution of any source files is prohibited. If you wish to modify the game in any way, please refer to the modding guide:
9
+ * https://github.com/WaywardGame/types/wiki
10
+ */
11
+ import Log from "@wayward/utilities/Log";
12
+ import Version from "@wayward/utilities/Version";
13
+ declare namespace ErrorReporting {
14
+ function shouldSendErrorReport(versionInfo?: Version.Info | undefined): boolean;
15
+ /**
16
+ * Warns about an occurrence of something, due to a specific caller, once per session.
17
+ * @param skip Number of callsites to skip. Automatically skips this function and its caller.
18
+ * If this is called from a function that is registered in `Errors.ts` as a skipped callsite, you might have to pass `-1`.
19
+ * @param id The ID of this warning. Can be `Log.simplify` strings.
20
+ */
21
+ function warnForCaller(skip: number, id: ArrayOr<string | Log.SimplifyString>, ...message: any[]): void;
22
+ /**
23
+ * Warn about something once per session based on unique warning ids.
24
+ * This is like how node.js does warnings in console.
25
+ */
26
+ function warnOncePerSession(warningId: ArrayOr<string | Log.SimplifyString>, ...message: any[]): void;
27
+ }
28
+ export default ErrorReporting;
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.0-beta.dev.20250924.1",
4
+ "version": "2.15.0-beta.dev.20250926.1",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",