@wayward/types 2.12.3-beta.dev.20230104.1 → 2.13.0-beta

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 (597) hide show
  1. package/LICENSE +20 -20
  2. package/README.md +10 -10
  3. package/definitions/cplusplus/index.d.ts +5 -9
  4. package/definitions/game/IGlobal.d.ts +0 -12
  5. package/definitions/game/Uninit.d.ts +11 -5
  6. package/definitions/game/audio/Audio.d.ts +22 -12
  7. package/definitions/game/audio/IAudio.d.ts +32 -46
  8. package/definitions/game/audio/Music.d.ts +1 -2
  9. package/definitions/game/audio/SoundEffects.d.ts +1 -1
  10. package/definitions/game/command/ICommand.d.ts +7 -6
  11. package/definitions/game/{game/entity/npc/npcs/IMerchant.d.ts → command/commands/Noclip.d.ts} +3 -2
  12. package/definitions/game/event/EventBuses.d.ts +71 -61
  13. package/definitions/game/event/EventEmitter.d.ts +24 -16
  14. package/definitions/game/event/EventManager.d.ts +4 -1
  15. package/definitions/game/game/Game.d.ts +63 -32
  16. package/definitions/game/game/IGame.d.ts +40 -41
  17. package/definitions/game/game/IObject.d.ts +14 -4
  18. package/definitions/game/game/ObjectManager.d.ts +5 -4
  19. package/definitions/game/game/VotingManager.d.ts +3 -0
  20. package/definitions/game/game/biome/IBiome.d.ts +4 -2
  21. package/definitions/game/{utilities/game/TilePosition.d.ts → game/biome/arid/mapGen/2.13.0.d.ts} +2 -2
  22. package/definitions/game/{renderer/spriteBatch/SpriteBatch.d.ts → game/biome/coastal/mapGen/2.13.0.d.ts} +2 -3
  23. package/definitions/game/game/biome/iceCap/mapGen/2.13.0.d.ts +12 -0
  24. package/definitions/game/game/biome/template/Template.d.ts +29 -0
  25. package/definitions/game/game/biome/template/mapGen/2.12.0.d.ts +12 -0
  26. package/definitions/game/game/biome/template/mapGen/2.13.0.d.ts +12 -0
  27. package/definitions/game/game/biome/volcanic/mapGen/2.13.0.d.ts +12 -0
  28. package/definitions/game/game/biome/wetlands/mapGen/2.13.0.d.ts +12 -0
  29. package/definitions/game/game/doodad/Doodad.d.ts +99 -53
  30. package/definitions/game/game/doodad/DoodadInfo.d.ts +5 -5
  31. package/definitions/game/game/doodad/DoodadManager.d.ts +39 -27
  32. package/definitions/game/game/doodad/Doodads.d.ts +0 -1
  33. package/definitions/game/game/doodad/IDoodad.d.ts +67 -6
  34. package/definitions/game/game/entity/CombatStrengthManager.d.ts +68 -0
  35. package/definitions/game/game/entity/Entity.d.ts +74 -122
  36. package/definitions/game/game/entity/EntityManager.d.ts +2 -9
  37. package/definitions/game/game/entity/EntityMovable.d.ts +121 -0
  38. package/definitions/game/game/entity/EntityWithStats.d.ts +73 -0
  39. package/definitions/game/game/entity/Human.d.ts +81 -38
  40. package/definitions/game/game/entity/IEntity.d.ts +109 -29
  41. package/definitions/game/game/entity/IHuman.d.ts +38 -23
  42. package/definitions/game/game/entity/Stats.d.ts +1 -1
  43. package/definitions/game/game/entity/action/Action.d.ts +9 -1
  44. package/definitions/game/game/entity/action/ActionExecutor.d.ts +6 -19
  45. package/definitions/game/game/entity/action/ActionsRegistration.d.ts +135 -113
  46. package/definitions/game/game/entity/action/IAction.d.ts +48 -11
  47. package/definitions/game/game/entity/action/actions/Absorb.d.ts +3 -1
  48. package/definitions/game/game/entity/action/actions/AddFuel.d.ts +1 -1
  49. package/definitions/game/game/entity/action/actions/Alter.d.ts +3 -1
  50. package/definitions/game/game/entity/action/actions/Apply.d.ts +1 -1
  51. package/definitions/game/game/entity/action/actions/AttachContainer.d.ts +1 -1
  52. package/definitions/game/game/entity/action/actions/Attack.d.ts +7 -6
  53. package/definitions/game/game/entity/action/actions/Build.d.ts +3 -5
  54. package/definitions/game/game/entity/action/actions/Butcher.d.ts +3 -3
  55. package/definitions/game/game/entity/action/actions/CageCreature.d.ts +21 -0
  56. package/definitions/game/game/entity/action/actions/Cast.d.ts +1 -1
  57. package/definitions/game/game/entity/action/actions/Chop.d.ts +1 -1
  58. package/definitions/game/game/entity/action/actions/CloseContainer.d.ts +1 -1
  59. package/definitions/game/game/entity/action/actions/CloseDoor.d.ts +1 -1
  60. package/definitions/game/game/entity/action/actions/ConsumeItem.d.ts +1 -1
  61. package/definitions/game/game/entity/action/actions/CopyMap.d.ts +1 -1
  62. package/definitions/game/game/entity/action/actions/Craft.d.ts +1 -1
  63. package/definitions/game/game/entity/action/actions/CraftNew.d.ts +1 -1
  64. package/definitions/game/game/entity/action/actions/CreateControllableNPC.d.ts +1 -1
  65. package/definitions/game/game/entity/action/actions/Cure.d.ts +1 -1
  66. package/definitions/game/game/entity/action/actions/DamageMap.d.ts +1 -1
  67. package/definitions/game/game/entity/action/actions/DetachContainer.d.ts +1 -1
  68. package/definitions/game/game/entity/action/actions/Dig.d.ts +5 -6
  69. package/definitions/game/game/entity/action/actions/Disassemble.d.ts +1 -1
  70. package/definitions/game/game/entity/action/actions/Dismantle.d.ts +1 -1
  71. package/definitions/game/game/entity/action/actions/Dismount.d.ts +1 -1
  72. package/definitions/game/game/entity/action/actions/DrawMap.d.ts +3 -1
  73. package/definitions/game/game/entity/action/actions/DrinkInFront.d.ts +3 -1
  74. package/definitions/game/game/entity/action/actions/DrinkItem.d.ts +1 -1
  75. package/definitions/game/game/entity/action/actions/Drop.d.ts +1 -1
  76. package/definitions/game/game/entity/action/actions/Eat.d.ts +1 -1
  77. package/definitions/game/game/entity/action/actions/Enchant.d.ts +1 -1
  78. package/definitions/game/game/entity/action/actions/Enhance.d.ts +1 -1
  79. package/definitions/game/game/entity/action/actions/Equip.d.ts +5 -1
  80. package/definitions/game/game/entity/action/actions/Extinguish.d.ts +1 -1
  81. package/definitions/game/game/entity/action/actions/Exude.d.ts +3 -1
  82. package/definitions/game/game/entity/action/actions/Fire.d.ts +1 -1
  83. package/definitions/game/game/entity/action/actions/Gather.d.ts +5 -7
  84. package/definitions/game/game/entity/action/actions/GatherLiquid.d.ts +4 -7
  85. package/definitions/game/game/entity/action/actions/GrabAll.d.ts +1 -1
  86. package/definitions/game/game/entity/action/actions/Grasp.d.ts +1 -1
  87. package/definitions/game/game/entity/action/actions/Harvest.d.ts +1 -1
  88. package/definitions/game/game/entity/action/actions/Heal.d.ts +1 -1
  89. package/definitions/game/game/entity/action/actions/HealOther.d.ts +1 -1
  90. package/definitions/game/game/entity/action/actions/Hitch.d.ts +1 -1
  91. package/definitions/game/game/entity/action/actions/Idle.d.ts +1 -1
  92. package/definitions/game/game/entity/action/actions/Ignite.d.ts +1 -1
  93. package/definitions/game/game/entity/action/actions/Jump.d.ts +3 -3
  94. package/definitions/game/game/entity/action/actions/Learn.d.ts +3 -1
  95. package/definitions/game/game/entity/action/actions/Lockpick.d.ts +3 -3
  96. package/definitions/game/game/entity/action/actions/Melee.d.ts +1 -1
  97. package/definitions/game/game/entity/action/actions/Mine.d.ts +1 -1
  98. package/definitions/game/game/entity/action/actions/Move.d.ts +1 -1
  99. package/definitions/game/game/entity/action/actions/MoveItem.d.ts +1 -1
  100. package/definitions/game/game/entity/action/actions/MoveTo.d.ts +1 -1
  101. package/definitions/game/game/entity/action/actions/NPCInteract.d.ts +21 -0
  102. package/definitions/game/game/entity/action/actions/Navigate.d.ts +3 -1
  103. package/definitions/game/game/entity/action/actions/Noclip.d.ts +14 -0
  104. package/definitions/game/game/entity/action/actions/Offer.d.ts +1 -1
  105. package/definitions/game/game/entity/action/actions/OpenBottle.d.ts +3 -1
  106. package/definitions/game/game/entity/action/actions/OpenContainer.d.ts +1 -1
  107. package/definitions/game/game/entity/action/actions/OpenDoor.d.ts +1 -1
  108. package/definitions/game/game/entity/action/actions/PackGround.d.ts +1 -1
  109. package/definitions/game/game/entity/action/actions/Pet.d.ts +1 -1
  110. package/definitions/game/game/entity/action/actions/PickUp.d.ts +4 -3
  111. package/definitions/game/game/entity/action/actions/PickUpAllItems.d.ts +1 -1
  112. package/definitions/game/game/entity/action/actions/PickUpExcrement.d.ts +3 -3
  113. package/definitions/game/game/entity/action/actions/PickUpItem.d.ts +1 -1
  114. package/definitions/game/game/entity/action/actions/PlaceDown.d.ts +1 -1
  115. package/definitions/game/game/entity/action/actions/Plant.d.ts +3 -4
  116. package/definitions/game/game/entity/action/actions/Pour.d.ts +5 -7
  117. package/definitions/game/game/entity/action/actions/PourOnYourself.d.ts +1 -1
  118. package/definitions/game/game/entity/action/actions/Preserve.d.ts +1 -1
  119. package/definitions/game/game/entity/action/actions/PropOpenDoor.d.ts +1 -1
  120. package/definitions/game/game/entity/action/actions/ProtectItem.d.ts +1 -1
  121. package/definitions/game/game/entity/action/actions/Read.d.ts +1 -1
  122. package/definitions/game/game/entity/action/actions/ReadMap.d.ts +3 -1
  123. package/definitions/game/game/entity/action/actions/Refine.d.ts +1 -1
  124. package/definitions/game/game/entity/action/actions/Reinforce.d.ts +1 -1
  125. package/definitions/game/game/entity/action/actions/Release.d.ts +4 -1
  126. package/definitions/game/game/entity/action/actions/RemoveControllableNPC.d.ts +1 -1
  127. package/definitions/game/game/entity/action/actions/Rename.d.ts +1 -2
  128. package/definitions/game/game/entity/action/actions/RenameIsland.d.ts +1 -1
  129. package/definitions/game/game/entity/action/actions/Repair.d.ts +1 -1
  130. package/definitions/game/game/entity/action/actions/Rest.d.ts +1 -1
  131. package/definitions/game/game/entity/action/actions/RestCancel.d.ts +1 -1
  132. package/definitions/game/game/entity/action/actions/Ride.d.ts +1 -1
  133. package/definitions/game/game/entity/action/actions/Rub.d.ts +1 -1
  134. package/definitions/game/game/entity/action/actions/RubClockwise.d.ts +1 -1
  135. package/definitions/game/game/entity/action/actions/RubCounterClockwise.d.ts +1 -1
  136. package/definitions/game/game/entity/action/actions/SailToIsland.d.ts +2 -1
  137. package/definitions/game/game/entity/action/actions/SetCreatureAi.d.ts +23 -0
  138. package/definitions/game/game/entity/action/actions/SetDown.d.ts +4 -5
  139. package/definitions/game/game/entity/action/actions/SetTitle.d.ts +14 -0
  140. package/definitions/game/game/entity/action/actions/ShipToIsland.d.ts +26 -0
  141. package/definitions/game/game/entity/action/actions/Shoot.d.ts +1 -1
  142. package/definitions/game/game/entity/action/actions/Sleep.d.ts +1 -1
  143. package/definitions/game/game/entity/action/actions/SmotherFire.d.ts +4 -4
  144. package/definitions/game/game/entity/action/actions/Squeeze.d.ts +3 -1
  145. package/definitions/game/game/entity/action/actions/StartFire.d.ts +3 -3
  146. package/definitions/game/game/entity/action/actions/StokeFire.d.ts +1 -1
  147. package/definitions/game/game/entity/action/actions/Summon.d.ts +24 -0
  148. package/definitions/game/game/entity/action/actions/Tame.d.ts +1 -1
  149. package/definitions/game/game/entity/action/actions/Teleport.d.ts +1 -1
  150. package/definitions/game/game/entity/action/actions/TellTime.d.ts +3 -1
  151. package/definitions/game/game/entity/action/actions/TestDepth.d.ts +3 -4
  152. package/definitions/game/game/entity/action/actions/Throw.d.ts +1 -1
  153. package/definitions/game/game/entity/action/actions/Till.d.ts +1 -1
  154. package/definitions/game/game/entity/action/actions/ToggleContainer.d.ts +5 -2
  155. package/definitions/game/game/entity/action/actions/ToggleDoor.d.ts +3 -3
  156. package/definitions/game/game/entity/action/actions/ToggleHitch.d.ts +1 -1
  157. package/definitions/game/game/entity/action/actions/ToggleProtectItem.d.ts +1 -1
  158. package/definitions/game/game/entity/action/actions/ToggleTilled.d.ts +4 -6
  159. package/definitions/game/game/entity/action/actions/ToggleVehicle.d.ts +4 -4
  160. package/definitions/game/game/entity/action/actions/Trade.d.ts +1 -1
  161. package/definitions/game/game/entity/action/actions/Transmogrify.d.ts +1 -1
  162. package/definitions/game/game/entity/action/actions/Uncage.d.ts +26 -0
  163. package/definitions/game/game/entity/action/actions/Unequip.d.ts +1 -1
  164. package/definitions/game/game/entity/action/actions/Unhitch.d.ts +1 -1
  165. package/definitions/game/game/entity/action/actions/UnprotectItem.d.ts +1 -1
  166. package/definitions/game/game/entity/action/actions/UpdateDirection.d.ts +3 -2
  167. package/definitions/game/game/entity/action/actions/UpdateGameOption.d.ts +1 -1
  168. package/definitions/game/game/entity/action/actions/UpdateItemOrder.d.ts +1 -1
  169. package/definitions/game/game/entity/action/actions/UpdateOption.d.ts +1 -1
  170. package/definitions/game/game/entity/action/actions/UpdateWalkPath.d.ts +1 -1
  171. package/definitions/game/game/entity/action/actions/Upgrade.d.ts +1 -1
  172. package/definitions/game/game/entity/action/actions/helper/ConfirmGatherHarvest.d.ts +2 -1
  173. package/definitions/game/game/entity/action/actions/helper/ConfirmOnFire.d.ts +2 -2
  174. package/definitions/game/game/entity/action/actions/helper/Inventories.d.ts +2 -2
  175. package/definitions/game/game/entity/action/actions/helper/TreasureGathering.d.ts +3 -3
  176. package/definitions/game/game/entity/action/usable/IUsableAction.d.ts +4 -2
  177. package/definitions/game/game/entity/action/usable/UsableAction.d.ts +1 -0
  178. package/definitions/game/game/entity/action/usable/UsableActionType.d.ts +9 -2
  179. package/definitions/game/game/entity/action/usable/actions/UsableActionDrink.d.ts +13 -0
  180. package/definitions/game/game/entity/action/usable/actions/UsableActionsCommands.d.ts +14 -0
  181. package/definitions/game/game/entity/action/usable/actions/UsableActionsCreatures.d.ts +2 -2
  182. package/definitions/game/game/entity/action/usable/actions/UsableActionsDynamic.d.ts +3 -1
  183. package/definitions/game/game/entity/action/usable/actions/UsableActionsHidden.d.ts +13 -0
  184. package/definitions/game/game/entity/action/usable/actions/UsableActionsMain.d.ts +30 -26
  185. package/definitions/game/game/entity/action/usable/actions/UsableActionsUseNPC.d.ts +3 -1
  186. package/definitions/game/game/entity/action/usable/actions/UsableActionsWorld.d.ts +1 -1
  187. package/definitions/game/game/entity/action/usable/actions/doodad/IUsableActionsDoodad.d.ts +2 -2
  188. package/definitions/game/game/entity/creature/Creature.d.ts +86 -39
  189. package/definitions/game/game/entity/creature/CreatureManager.d.ts +22 -23
  190. package/definitions/game/game/entity/creature/Creatures.d.ts +1 -4
  191. package/definitions/game/game/entity/creature/ICreature.d.ts +148 -9
  192. package/definitions/game/game/{inspection/infoProviders/creature/CreatureHealth.d.ts → entity/creature/SpecialAbilities.d.ts} +2 -6
  193. package/definitions/game/game/entity/creature/TileGroups.d.ts +13 -0
  194. package/definitions/game/game/entity/creature/corpse/Corpse.d.ts +33 -26
  195. package/definitions/game/game/entity/creature/corpse/CorpseManager.d.ts +6 -6
  196. package/definitions/game/game/entity/creature/corpse/Corpses.d.ts +0 -1
  197. package/definitions/game/game/entity/creature/corpse/ICorpse.d.ts +17 -0
  198. package/definitions/game/game/entity/flowfield/FlowField.d.ts +2 -2
  199. package/definitions/game/game/entity/flowfield/FlowFieldManager.d.ts +1 -2
  200. package/definitions/game/game/entity/flowfield/IFlowFieldManager.d.ts +4 -1
  201. package/definitions/game/game/entity/npc/INPC.d.ts +7 -0
  202. package/definitions/game/game/entity/npc/INPCs.d.ts +2 -1
  203. package/definitions/game/game/entity/npc/NPC.d.ts +96 -26
  204. package/definitions/game/game/entity/npc/NPCManager.d.ts +18 -7
  205. package/definitions/game/game/entity/npc/NPCS.d.ts +2 -2
  206. package/definitions/game/game/entity/npc/npcs/Controllable.d.ts +2 -3
  207. package/definitions/game/game/entity/npc/npcs/DeathKnight.d.ts +2 -3
  208. package/definitions/game/game/entity/npc/npcs/Merchant.d.ts +29 -30
  209. package/definitions/game/game/entity/npc/npcs/Shipper.d.ts +66 -0
  210. package/definitions/game/game/entity/player/Customizations.d.ts +4 -4
  211. package/definitions/game/game/entity/player/IMessageManager.d.ts +7 -4
  212. package/definitions/game/game/entity/player/IPlayer.d.ts +8 -29
  213. package/definitions/game/game/entity/player/MessageManager.d.ts +8 -4
  214. package/definitions/game/game/entity/player/Player.d.ts +27 -16
  215. package/definitions/game/game/entity/player/PlayerManager.d.ts +23 -13
  216. package/definitions/game/game/entity/player/note/Corpse.d.ts +2 -2
  217. package/definitions/game/game/entity/player/note/NoteManager.d.ts +10 -4
  218. package/definitions/game/game/entity/player/quest/QuestManager.d.ts +3 -4
  219. package/definitions/game/game/entity/player/quest/Quests.d.ts +1 -2
  220. package/definitions/game/game/entity/player/quest/quest/Challenge.d.ts +8 -3
  221. package/definitions/game/game/entity/player/quest/quest/Quest.d.ts +5 -5
  222. package/definitions/game/game/entity/skill/ISkills.d.ts +6 -1
  223. package/definitions/game/game/entity/skill/SkillManager.d.ts +1 -1
  224. package/definitions/game/game/entity/status/StatusEffect.d.ts +4 -4
  225. package/definitions/game/game/entity/status/handler/BadTemperatureEffect.d.ts +1 -1
  226. package/definitions/game/game/inspection/IInfoProvider.d.ts +5 -3
  227. package/definitions/game/game/inspection/IInspection.d.ts +2 -1
  228. package/definitions/game/game/inspection/InfoProvider.d.ts +29 -3
  229. package/definitions/game/game/inspection/InfoProviderContext.d.ts +10 -6
  230. package/definitions/game/game/inspection/Inspection.d.ts +4 -4
  231. package/definitions/game/game/inspection/InspectionTypeMap.d.ts +2 -2
  232. package/definitions/game/game/inspection/InspectionsHandler.d.ts +4 -25
  233. package/definitions/game/game/inspection/handlers/TilePositionInspection.d.ts +5 -8
  234. package/definitions/game/game/inspection/infoProviders/CivilizationScore.d.ts +30 -0
  235. package/definitions/game/game/inspection/infoProviders/ContainedItems.d.ts +2 -2
  236. package/definitions/game/game/inspection/infoProviders/DoodadSkill.d.ts +29 -0
  237. package/definitions/game/game/inspection/infoProviders/LabelledValue.d.ts +3 -2
  238. package/definitions/game/game/inspection/infoProviders/MagicalPropertyValue.d.ts +2 -2
  239. package/definitions/game/game/inspection/infoProviders/UseInfo.d.ts +8 -8
  240. package/definitions/game/game/inspection/infoProviders/Uses.d.ts +2 -2
  241. package/definitions/game/game/inspection/infoProviders/creature/Aberrant.d.ts +3 -1
  242. package/definitions/game/game/inspection/infoProviders/creature/CreatureTamedInfo.d.ts +27 -0
  243. package/definitions/game/game/inspection/infoProviders/creature/{Happiness.d.ts → Difficulty.d.ts} +7 -4
  244. package/definitions/game/game/inspection/infoProviders/creature/ResistancesAndVulnerabilities.d.ts +9 -3
  245. package/definitions/game/game/inspection/infoProviders/doodad/DoodadUses.d.ts +2 -2
  246. package/definitions/game/game/inspection/infoProviders/doodad/GrowthStage.d.ts +1 -0
  247. package/definitions/game/game/inspection/infoProviders/entity/Health.d.ts +5 -5
  248. package/definitions/game/game/inspection/infoProviders/item/ItemDetails.d.ts +1 -0
  249. package/definitions/game/game/inspection/infoProviders/item/ItemUses.d.ts +22 -17
  250. package/definitions/game/game/inspection/infoProviders/item/MagicalDamageType.d.ts +17 -0
  251. package/definitions/game/game/inspection/infoProviders/item/use/ItemBuildInfo.d.ts +9 -1
  252. package/definitions/game/game/inspection/infoProviders/item/use/ItemConsumeInfo.d.ts +5 -6
  253. package/definitions/game/game/inspection/infoProviders/item/use/ItemCraftInfo.d.ts +1 -1
  254. package/definitions/game/game/inspection/infoProviders/item/use/ItemDisassembleInfo.d.ts +1 -1
  255. package/definitions/game/game/inspection/infoProviders/item/use/ItemDismantleInfo.d.ts +1 -1
  256. package/definitions/game/game/inspection/infoProviders/item/use/ItemEquipInfo.d.ts +1 -1
  257. package/definitions/game/game/inspection/infoProviders/item/use/ItemOfferInfo.d.ts +1 -1
  258. package/definitions/game/game/inspection/infoProviders/item/use/ItemRangedInfo.d.ts +1 -1
  259. package/definitions/game/game/inspection/infoProviders/item/use/ItemSetDownInfo.d.ts +1 -1
  260. package/definitions/game/game/inspection/infoProviders/item/use/ItemShootInfo.d.ts +1 -1
  261. package/definitions/game/game/inspection/infoProviders/item/use/ItemStokeInfo.d.ts +1 -1
  262. package/definitions/game/game/inspection/infoProviders/item/use/ItemTelescopyInfo.d.ts +1 -1
  263. package/definitions/game/game/inspection/infoProviders/item/use/ItemTrapDamageInfo.d.ts +1 -1
  264. package/definitions/game/game/inspection/infoProviders/shared/SharedLightSourceInfo.d.ts +3 -3
  265. package/definitions/game/game/inspection/infoProviders/skill/MagicalItemBonuses.d.ts +2 -1
  266. package/definitions/game/game/inspection/infoProviders/stat/AttackInfo.d.ts +1 -1
  267. package/definitions/game/game/inspection/infoProviders/stat/DefenseInfo.d.ts +1 -1
  268. package/definitions/game/game/inspection/inspections/ActionInspection.d.ts +1 -1
  269. package/definitions/game/game/inspection/inspections/CorpseInspection.d.ts +2 -2
  270. package/definitions/game/game/inspection/inspections/CorpsesInspection.d.ts +2 -2
  271. package/definitions/game/game/inspection/inspections/CreatureInspection.d.ts +3 -3
  272. package/definitions/game/game/inspection/inspections/DoodadInspection.d.ts +3 -3
  273. package/definitions/game/game/inspection/inspections/EquipSlotInspection.d.ts +1 -1
  274. package/definitions/game/game/inspection/inspections/IslandInspection.d.ts +1 -0
  275. package/definitions/game/game/inspection/inspections/ItemInspection.d.ts +3 -3
  276. package/definitions/game/game/inspection/inspections/ItemsInspection.d.ts +2 -2
  277. package/definitions/game/game/inspection/inspections/MilestoneInspection.d.ts +3 -1
  278. package/definitions/game/game/inspection/inspections/NPCInspection.d.ts +5 -2
  279. package/definitions/game/game/inspection/inspections/PlayerInspection.d.ts +4 -2
  280. package/definitions/game/game/inspection/inspections/RecipeInspection.d.ts +1 -1
  281. package/definitions/game/game/inspection/inspections/SelfInspection.d.ts +4 -5
  282. package/definitions/game/game/inspection/inspections/SkillInspection.d.ts +1 -1
  283. package/definitions/game/game/inspection/inspections/StatInspection.d.ts +1 -1
  284. package/definitions/game/game/inspection/inspections/TileEventInspection.d.ts +4 -4
  285. package/definitions/game/game/inspection/inspections/TileInspection.d.ts +5 -6
  286. package/definitions/game/game/island/IIsland.d.ts +71 -17
  287. package/definitions/game/game/island/Island.d.ts +75 -148
  288. package/definitions/game/game/island/IslandManager.d.ts +11 -2
  289. package/definitions/game/game/island/Port.d.ts +43 -0
  290. package/definitions/game/game/island/TransientIsland.d.ts +33 -0
  291. package/definitions/game/game/item/IItem.d.ts +175 -25
  292. package/definitions/game/game/item/IItemManager.d.ts +21 -8
  293. package/definitions/game/game/item/Item.d.ts +95 -44
  294. package/definitions/game/game/item/ItemDescriptions.d.ts +2 -2
  295. package/definitions/game/game/item/ItemFinder.d.ts +2 -2
  296. package/definitions/game/game/item/ItemManager.d.ts +123 -94
  297. package/definitions/game/game/item/ItemMapManager.d.ts +3 -2
  298. package/definitions/game/game/item/WorldContainer.d.ts +16 -0
  299. package/definitions/game/game/item/recipe/Crafter.d.ts +3 -3
  300. package/definitions/game/game/item/recipe/RecipeRequirement.d.ts +2 -2
  301. package/definitions/game/game/item/recipe/requirement/FireRequirement.d.ts +2 -2
  302. package/definitions/game/game/magic/MagicalPropertyManager.d.ts +2 -9
  303. package/definitions/game/game/magic/MagicalPropertyType.d.ts +13 -1
  304. package/definitions/game/game/mapgen/IMapGen.d.ts +16 -5
  305. package/definitions/game/game/mapgen/MapGen.d.ts +2 -7
  306. package/definitions/game/game/mapgen/MapGenHelpers.d.ts +4 -5
  307. package/definitions/game/game/mapgen/version/2.12.0.d.ts +7 -3
  308. package/definitions/game/game/mapgen/version/2.12.1.d.ts +8 -4
  309. package/definitions/game/game/mapgen/version/2.13.0.d.ts +20 -0
  310. package/definitions/game/game/mapping/DrawnMap.d.ts +2 -2
  311. package/definitions/game/game/mapping/IMapTile.d.ts +2 -1
  312. package/definitions/game/game/mapping/IRegion.d.ts +22 -0
  313. package/definitions/game/game/meta/AutoSave.d.ts +12 -5
  314. package/definitions/game/game/meta/SaveLoad.d.ts +15 -9
  315. package/definitions/game/game/meta/prompt/IPrompt.d.ts +88 -88
  316. package/definitions/game/game/meta/prompt/PromptDescriptions.d.ts +2 -1
  317. package/definitions/game/game/meta/prompt/Prompts.d.ts +1 -1
  318. package/definitions/game/game/milestones/IMilestone.d.ts +4 -1
  319. package/definitions/game/game/milestones/MilestoneManager.d.ts +12 -6
  320. package/definitions/game/game/options/IGameOptions.d.ts +6 -2
  321. package/definitions/game/game/options/modifiers/GameplayModifier.d.ts +10 -6
  322. package/definitions/game/game/options/modifiers/GameplayModifiersManager.d.ts +1 -1
  323. package/definitions/game/game/options/modifiers/milestone/MilestoneModifier.d.ts +5 -4
  324. package/definitions/game/game/options/modifiers/milestone/MilestoneModifiersManager.d.ts +1 -1
  325. package/definitions/game/game/options/modifiers/milestone/modifiers/Challenger.d.ts +1 -1
  326. package/definitions/game/game/options/modifiers/milestone/modifiers/Masochist.d.ts +16 -0
  327. package/definitions/game/game/options/modifiers/milestone/modifiers/Retailer.d.ts +23 -0
  328. package/definitions/game/game/options/modifiers/milestone/modifiers/Versatile.d.ts +36 -0
  329. package/definitions/game/game/options/modifiers/milestone/modifiers/shared/TamedCreatureMilestoneModifier.d.ts +2 -2
  330. package/definitions/game/game/reference/IReferenceManager.d.ts +4 -2
  331. package/definitions/game/game/reference/ReferenceManager.d.ts +8 -3
  332. package/definitions/game/game/temperature/TemperatureManager.d.ts +51 -26
  333. package/definitions/game/game/tile/ITerrain.d.ts +15 -27
  334. package/definitions/game/game/tile/ITileEvent.d.ts +3 -2
  335. package/definitions/game/game/tile/TerrainTemplates.d.ts +2 -2
  336. package/definitions/game/game/tile/Terrains.d.ts +1 -3
  337. package/definitions/game/game/tile/Tile.d.ts +311 -0
  338. package/definitions/game/game/tile/TileBits.d.ts +28 -0
  339. package/definitions/game/game/tile/TileEvent.d.ts +34 -31
  340. package/definitions/game/game/tile/TileEventManager.d.ts +21 -36
  341. package/definitions/game/game/tile/TileEvents.d.ts +1 -2
  342. package/definitions/game/game/tile/events/IFire.d.ts +4 -5
  343. package/definitions/game/game/tile/events/MeltingTile.d.ts +6 -6
  344. package/definitions/game/language/Dictionary.d.ts +109 -99
  345. package/definitions/game/language/DictionaryMap.d.ts +237 -314
  346. package/definitions/game/language/ITranslation.d.ts +6 -1
  347. package/definitions/game/language/LanguageManager.d.ts +12 -1
  348. package/definitions/game/language/Translation.d.ts +35 -8
  349. package/definitions/game/language/TranslationsProvider.d.ts +1 -1
  350. package/definitions/game/language/dictionary/Health.d.ts +24 -0
  351. package/definitions/game/language/dictionary/Message.d.ts +762 -917
  352. package/definitions/game/language/dictionary/Misc.d.ts +37 -32
  353. package/definitions/game/language/dictionary/UiTranslation.d.ts +842 -850
  354. package/definitions/game/language/english/Terrains.d.ts +2 -2
  355. package/definitions/game/language/english/creature/AiTypes.d.ts +13 -0
  356. package/definitions/game/language/english/creature/Corpses.d.ts +1 -1
  357. package/definitions/game/language/english/doodad/DoodadGroups.d.ts +1 -1
  358. package/definitions/game/language/english/game/Actions.d.ts +2 -2
  359. package/definitions/game/language/english/game/CombatDangerLevels.d.ts +13 -0
  360. package/definitions/game/language/english/game/CombatStrengths.d.ts +13 -0
  361. package/definitions/game/language/english/game/LighthouseName.d.ts +15 -0
  362. package/definitions/game/language/english/game/Regions.d.ts +13 -0
  363. package/definitions/game/language/english/game/WorldLayers.d.ts +1 -1
  364. package/definitions/game/language/english/game/islandName/IslandNameBiomeNouns.d.ts +1 -1
  365. package/definitions/game/language/english/game/islandName/IslandNameOverrunWithCreatureDescriptors.d.ts +1 -1
  366. package/definitions/game/language/english/item/DoodadsExtra.d.ts +13 -0
  367. package/definitions/game/language/english/item/ItemGroups.d.ts +2 -2
  368. package/definitions/game/language/english/item/Items.d.ts +2 -2
  369. package/definitions/game/language/english/living/HealthAccuracies.d.ts +13 -0
  370. package/definitions/game/language/english/living/Healths.d.ts +13 -0
  371. package/definitions/game/language/english/player/Milestones.d.ts +1 -1
  372. package/definitions/game/language/english/player/Skills.d.ts +2 -2
  373. package/definitions/game/language/english/ui/ModLoadErrors.d.ts +1 -1
  374. package/definitions/game/language/english/ui/UsableActionTypes.d.ts +2 -2
  375. package/definitions/game/language/english/ui/sort/MilestoneSorts.d.ts +13 -0
  376. package/definitions/game/language/english/ui/sort/SkillSorts.d.ts +13 -0
  377. package/definitions/game/language/impl/TranslationImpl.d.ts +7 -6
  378. package/definitions/game/language/segment/FormatListSegment.d.ts +1 -1
  379. package/definitions/game/language/utility/TranslationSorter.d.ts +3 -3
  380. package/definitions/game/mod/IMod.d.ts +1 -1
  381. package/definitions/game/mod/Mod.d.ts +2 -6
  382. package/definitions/game/mod/ModManager.d.ts +4 -0
  383. package/definitions/game/mod/ModRegistry.d.ts +96 -91
  384. package/definitions/game/multiplayer/IMultiplayer.d.ts +14 -1
  385. package/definitions/game/multiplayer/Multiplayer.d.ts +9 -4
  386. package/definitions/game/multiplayer/dedicatedServer/ssh/DefaultShell.d.ts +2 -1
  387. package/definitions/game/multiplayer/dedicatedServer/ssh/ISshShell.d.ts +2 -0
  388. package/definitions/game/multiplayer/dedicatedServer/ssh/Shell.d.ts +3 -1
  389. package/definitions/game/multiplayer/dedicatedServer/ssh/SshServer.d.ts +2 -1
  390. package/definitions/game/multiplayer/networking/SmartConnection.d.ts +1 -0
  391. package/definitions/game/multiplayer/packets/BasePacket.d.ts +6 -1
  392. package/definitions/game/multiplayer/packets/IndexedPacket.d.ts +4 -1
  393. package/definitions/game/multiplayer/packets/Packets.d.ts +1 -1
  394. package/definitions/game/multiplayer/packets/client/LoadIslandPacket.d.ts +1 -1
  395. package/definitions/game/multiplayer/packets/server/ConnectPacket.d.ts +1 -1
  396. package/definitions/game/multiplayer/packets/server/UpdateActionBarPacket.d.ts +3 -2
  397. package/definitions/game/renderer/IRenderer.d.ts +81 -61
  398. package/definitions/game/renderer/Overlays.d.ts +1 -1
  399. package/definitions/game/renderer/Renderer.d.ts +54 -12
  400. package/definitions/game/renderer/Renderers.d.ts +20 -10
  401. package/definitions/game/renderer/WebGlContext.d.ts +2 -2
  402. package/definitions/game/renderer/context/BaseRendererContext.d.ts +8 -2
  403. package/definitions/game/renderer/context/RendererContext.d.ts +5 -1
  404. package/definitions/game/renderer/context/RendererOrigin.d.ts +6 -13
  405. package/definitions/game/renderer/fieldOfView/FieldOfView.d.ts +7 -6
  406. package/definitions/game/renderer/fieldOfView/IFieldOfView.d.ts +19 -9
  407. package/definitions/game/renderer/notifier/INotifier.d.ts +8 -6
  408. package/definitions/game/renderer/notifier/Notifier.d.ts +9 -8
  409. package/definitions/game/renderer/overlay/GenericOverlay.d.ts +26 -0
  410. package/definitions/game/renderer/particle/ParticleRenderer1.d.ts +2 -1
  411. package/definitions/game/renderer/particle/ParticleRenderer2.d.ts +2 -1
  412. package/definitions/game/renderer/particle/ParticleSystem.d.ts +4 -5
  413. package/definitions/game/renderer/spriteBatch/ISpriteBatch.d.ts +3 -1
  414. package/definitions/game/renderer/spriteBatch/PersistantSpriteBatch.d.ts +29 -0
  415. package/definitions/game/renderer/spriteBatch/SpriteBatch1.d.ts +3 -26
  416. package/definitions/game/renderer/spriteBatch/SpriteBatch2.d.ts +5 -30
  417. package/definitions/game/renderer/spriteBatch/SpriteBatchBase.d.ts +54 -0
  418. package/definitions/game/renderer/tile/TileLayer.d.ts +8 -0
  419. package/definitions/game/renderer/tile/atlas/TileAtlas.d.ts +15 -14
  420. package/definitions/game/renderer/world/IWorldLayer.d.ts +6 -2
  421. package/definitions/game/renderer/world/IWorldLayerRenderer.d.ts +26 -0
  422. package/definitions/game/renderer/world/IWorldRenderer.d.ts +8 -0
  423. package/definitions/game/renderer/world/World.d.ts +5 -5
  424. package/definitions/game/renderer/world/WorldLayer.d.ts +12 -7
  425. package/definitions/game/renderer/world/WorldLayerRenderer.d.ts +22 -16
  426. package/definitions/game/renderer/world/WorldRenderer.d.ts +30 -25
  427. package/definitions/game/replay/IReplayLogEntry.d.ts +3 -3
  428. package/definitions/game/replay/ReplayLogEntry.d.ts +3 -3
  429. package/definitions/game/replay/ReplayManager.d.ts +3 -0
  430. package/definitions/game/resource/IResourcePath.d.ts +1 -1
  431. package/definitions/game/resource/ResourceLoader.d.ts +2 -1
  432. package/definitions/game/save/ISaveManager.d.ts +1 -1
  433. package/definitions/game/save/SaveManager.d.ts +4 -2
  434. package/definitions/game/save/data/ISaveDataGlobal.d.ts +6 -5
  435. package/definitions/game/save/data/SaveDataGlobal.d.ts +1 -1
  436. package/definitions/game/save/datastorage/FileDataStorage.d.ts +3 -1
  437. package/definitions/game/save/datastorage/IndexedDbDataStorage.d.ts +2 -1
  438. package/definitions/game/save/serializer/ISerializer.d.ts +18 -4
  439. package/definitions/game/save/serializer/Serializer.d.ts +5 -3
  440. package/definitions/game/save/serializer/StringTokenizer.d.ts +4 -0
  441. package/definitions/game/save/upgrade/UpgradeGame.d.ts +2 -1
  442. package/definitions/game/save/upgrade/UpgradePlayer.d.ts +2 -1
  443. package/definitions/game/steamworks/Steamworks.d.ts +9 -1
  444. package/definitions/game/ui/IUi.d.ts +2 -1
  445. package/definitions/game/ui/Ui.d.ts +2 -0
  446. package/definitions/game/ui/component/ArticleComponent.d.ts +14 -0
  447. package/definitions/game/ui/component/Component.d.ts +4 -3
  448. package/definitions/game/ui/component/Dropdown.d.ts +21 -4
  449. package/definitions/game/ui/component/EnumContextMenu.d.ts +1 -3
  450. package/definitions/game/ui/component/GroupDropdown.d.ts +1 -1
  451. package/definitions/game/ui/component/IComponent.d.ts +1 -19
  452. package/definitions/game/ui/component/SortRow.d.ts +1 -1
  453. package/definitions/game/ui/component/Text.d.ts +6 -1
  454. package/definitions/game/ui/component/dropdown/EnumDropdown.d.ts +2 -2
  455. package/definitions/game/ui/component/dropdown/IslandPortsDropdown.d.ts +21 -0
  456. package/definitions/game/ui/component/dropdown/ItemDropdown.d.ts +3 -1
  457. package/definitions/game/ui/input/Bind.d.ts +7 -21
  458. package/definitions/game/ui/input/Bindable.d.ts +108 -97
  459. package/definitions/game/ui/input/BindableManager.d.ts +2 -2
  460. package/definitions/game/ui/input/InputManager.d.ts +1 -0
  461. package/definitions/game/ui/old/IOldUi.d.ts +5 -4
  462. package/definitions/game/ui/old/OldUi.d.ts +7 -11
  463. package/definitions/game/ui/old/screens/InGameScreen.d.ts +56 -20
  464. package/definitions/game/ui/screen/Screen.d.ts +3 -0
  465. package/definitions/game/ui/screen/screens/GameScreen.d.ts +1 -3
  466. package/definitions/game/ui/screen/screens/game/DialogManager.d.ts +6 -5
  467. package/definitions/game/ui/screen/screens/game/DialogMap.d.ts +4 -2
  468. package/definitions/game/ui/screen/screens/game/Dialogs.d.ts +3 -2
  469. package/definitions/game/ui/screen/screens/game/IMessages.d.ts +1 -1
  470. package/definitions/game/ui/screen/screens/game/component/CanvasDialog.d.ts +1 -1
  471. package/definitions/game/ui/screen/screens/game/component/Dialog.d.ts +11 -7
  472. package/definitions/game/ui/screen/screens/game/component/InspectionsList.d.ts +1 -0
  473. package/definitions/game/ui/screen/screens/game/component/Item.d.ts +5 -5
  474. package/definitions/game/ui/screen/screens/game/component/QuadrantComponent.d.ts +1 -1
  475. package/definitions/game/ui/screen/screens/game/component/TileInspectionsList.d.ts +4 -4
  476. package/definitions/game/ui/screen/screens/game/dialog/BookDialog.d.ts +3 -3
  477. package/definitions/game/ui/screen/screens/game/dialog/CraftingDialog.d.ts +4 -4
  478. package/definitions/game/ui/screen/screens/game/dialog/EquipmentDialog.d.ts +3 -2
  479. package/definitions/game/ui/screen/screens/game/dialog/IMilestonesDialog.d.ts +14 -0
  480. package/definitions/game/ui/screen/screens/game/dialog/ISkillsDialog.d.ts +14 -0
  481. package/definitions/game/ui/screen/screens/game/dialog/InspectDialog.d.ts +2 -2
  482. package/definitions/game/ui/screen/screens/game/dialog/IslandsSailDialog.d.ts +31 -0
  483. package/definitions/game/ui/screen/screens/game/dialog/IslandsShippingDialog.d.ts +34 -0
  484. package/definitions/game/ui/screen/screens/game/dialog/MapDialog.d.ts +3 -3
  485. package/definitions/game/ui/screen/screens/game/dialog/MessagesEditFiltersDialog.d.ts +7 -0
  486. package/definitions/game/ui/screen/screens/game/dialog/MilestonesDialog.d.ts +2 -0
  487. package/definitions/game/ui/screen/screens/game/dialog/crafting/RecipeCache.d.ts +1 -1
  488. package/definitions/game/ui/screen/screens/game/dialog/islands/IIslandsDialog.d.ts +2 -1
  489. package/definitions/game/ui/screen/screens/game/dialog/islands/IslandsDialog.d.ts +95 -0
  490. package/definitions/game/ui/screen/screens/game/static/ActionBar.d.ts +9 -3
  491. package/definitions/game/ui/screen/screens/game/static/MenuBar.d.ts +1 -1
  492. package/definitions/game/ui/screen/screens/game/static/Messages.d.ts +8 -3
  493. package/definitions/game/ui/screen/screens/game/static/actions/IActionBar.d.ts +3 -1
  494. package/definitions/game/ui/screen/screens/game/static/menubar/MenuBarButtonDescriptions.d.ts +1 -2
  495. package/definitions/game/ui/screen/screens/game/static/stats/IStatDisplayDescription.d.ts +10 -9
  496. package/definitions/game/ui/screen/screens/game/static/stats/StatDisplayDescriptions.d.ts +3 -4
  497. package/definitions/game/ui/screen/screens/game/static/stats/component/Stat.d.ts +7 -6
  498. package/definitions/game/ui/screen/screens/game/static/stats/component/StatusEffects.d.ts +2 -2
  499. package/definitions/game/ui/screen/screens/game/util/item/ItemStylesheet.d.ts +1 -1
  500. package/definitions/game/ui/screen/screens/game/util/movement/MovementHandler.d.ts +1 -1
  501. package/definitions/game/ui/screen/screens/game/util/movement/WalkToTileHandler.d.ts +3 -3
  502. package/definitions/game/ui/screen/screens/menu/menus/GameEndMenu.d.ts +4 -2
  503. package/definitions/game/ui/screen/screens/menu/menus/character/Swatch.d.ts +1 -1
  504. package/definitions/game/ui/screen/screens/menu/menus/mods/ModInfoMenu.d.ts +2 -2
  505. package/definitions/game/ui/tooltip/Tooltip.d.ts +4 -17
  506. package/definitions/game/utilities/Files.d.ts +0 -1
  507. package/definitions/game/utilities/Log.d.ts +71 -67
  508. package/definitions/game/utilities/Version.d.ts +15 -9
  509. package/definitions/game/utilities/WebWorkerHelpers.d.ts +3 -6
  510. package/definitions/game/utilities/class/Inject.d.ts +2 -6
  511. package/definitions/game/utilities/collection/Arrays.d.ts +1 -42
  512. package/definitions/game/utilities/collection/Tuple.d.ts +53 -0
  513. package/definitions/game/utilities/collection/map/PriorityMap.d.ts +2 -1
  514. package/definitions/game/utilities/enum/EnumCursor.d.ts +1 -3
  515. package/definitions/game/utilities/enum/Enums.d.ts +7 -16
  516. package/definitions/game/utilities/enum/IEnum.d.ts +2 -1
  517. package/definitions/game/utilities/generic/GenericManager.d.ts +3 -1
  518. package/definitions/game/utilities/math/Bound3.d.ts +2 -2
  519. package/definitions/game/utilities/math/IVector.d.ts +7 -2
  520. package/definitions/game/utilities/math/Math2.d.ts +66 -0
  521. package/definitions/game/utilities/math/Range.d.ts +3 -0
  522. package/definitions/game/utilities/math/Rectangle.d.ts +3 -1
  523. package/definitions/game/utilities/memory/MemoryLeakDetector.d.ts +1 -0
  524. package/definitions/game/utilities/object/Objects.d.ts +1 -1
  525. package/definitions/game/utilities/random/IRandom.d.ts +36 -0
  526. package/definitions/game/utilities/random/Random.d.ts +20 -54
  527. package/definitions/game/utilities/random/RandomReference.d.ts +16 -0
  528. package/definitions/game/utilities/random/RandomUtilities.d.ts +33 -0
  529. package/definitions/game/utilities/random/RandomValueGenerator.d.ts +3 -3
  530. package/definitions/game/utilities/random/SeededGenerator.d.ts +37 -0
  531. package/definitions/game/utilities/random/generators/LegacySeededGenerator.d.ts +21 -0
  532. package/definitions/game/utilities/random/generators/PCGSeededGenerator.d.ts +34 -0
  533. package/definitions/game/utilities/random/generators/{RandomItem.d.ts → specific/RandomItem.d.ts} +4 -2
  534. package/definitions/game/utilities/random/generators/{RandomRange.d.ts → specific/RandomRange.d.ts} +2 -1
  535. package/definitions/game/utilities/string/Interpolator.d.ts +3 -4
  536. package/definitions/game/utilities/string/Strings.d.ts +4 -0
  537. package/definitions/game/utilities/typesglobal/Descriptions.d.ts +1 -3
  538. package/definitions/game/webWorker/WebWorkerManager.d.ts +4 -3
  539. package/definitions/hosts/electron/main/interfaces.d.ts +1 -0
  540. package/definitions/hosts/electron/main/ipc/handlers/electron/electron.d.ts +1 -0
  541. package/definitions/hosts/electron/main/ipc/handlers/os/os.d.ts +5 -2
  542. package/definitions/hosts/electron/main/launchOptions.d.ts +3 -0
  543. package/definitions/hosts/shared/globals.d.ts +2 -2
  544. package/definitions/hosts/shared/ipc/electron.d.ts +1 -0
  545. package/definitions/hosts/shared/ipc/handlers/os/os.d.ts +1 -0
  546. package/definitions/hosts/shared/ipc/os.d.ts +1 -0
  547. package/definitions/language-sync/index.d.ts +11 -0
  548. package/definitions/launcher/App.d.ts +29 -0
  549. package/definitions/launcher/Init.d.ts +16 -0
  550. package/definitions/launcher/Production.d.ts +10 -0
  551. package/definitions/launcher/ui/Article.d.ts +19 -0
  552. package/definitions/launcher/ui/Button.d.ts +36 -0
  553. package/definitions/launcher/ui/Component.d.ts +95 -0
  554. package/definitions/launcher/ui/InputButton.d.ts +23 -0
  555. package/definitions/launcher/ui/LauncherUI.d.ts +32 -0
  556. package/definitions/launcher/ui/Section.d.ts +17 -0
  557. package/definitions/launcher/ui/component/Article.d.ts +22 -0
  558. package/definitions/launcher/ui/component/Button.d.ts +36 -0
  559. package/definitions/launcher/ui/component/Component.d.ts +95 -0
  560. package/definitions/launcher/ui/component/InputButton.d.ts +23 -0
  561. package/definitions/launcher/ui/component/Section.d.ts +17 -0
  562. package/definitions/launcher/ui/launcher/FolderButton.d.ts +29 -0
  563. package/definitions/launcher/ui/launcher/FolderSelector.d.ts +63 -0
  564. package/definitions/launcher/ui/launcher/Mods.d.ts +16 -0
  565. package/definitions/launcher/ui/launcher/Resources.d.ts +18 -0
  566. package/definitions/launcher/ui/main/FolderButton.d.ts +29 -0
  567. package/definitions/launcher/ui/main/FolderSelector.d.ts +48 -0
  568. package/definitions/launcher/ui/main/Mods.d.ts +20 -0
  569. package/definitions/launcher/ui/main/Resources.d.ts +23 -0
  570. package/definitions/launcher/utilities/EventManager.d.ts +49 -0
  571. package/definitions/launcher/utilities/prototype/Apply.d.ts +11 -0
  572. package/definitions/test/core/application.d.ts +17 -15
  573. package/definitions/test/core/applicationDom.d.ts +8 -5
  574. package/definitions/test/core/applicationInteractions.d.ts +16 -13
  575. package/definitions/test/core/applicationLogger.d.ts +1 -1
  576. package/definitions/test/core/applicationManager.d.ts +12 -15
  577. package/definitions/test/core/chromeDriver.d.ts +2 -2
  578. package/definitions/test/index.d.ts +2 -3
  579. package/definitions/test/interfaces.d.ts +2 -6
  580. package/definitions/test/suite/functionalTests/multiplayer/Multiplayer.spec.d.ts +3 -3
  581. package/definitions/test/suite/functionalTests/singleplayer/SaveImport.spec.d.ts +3 -3
  582. package/definitions/test/suite/functionalTests/singleplayer/Singleplayer.spec.d.ts +3 -3
  583. package/definitions/test/suite/unitTests/game/Actions.spec.d.ts +3 -3
  584. package/definitions/test/suite/unitTests/game/Island.spec.d.ts +3 -3
  585. package/definitions/test/suite/unitTests/utilities/KdTree.spec.d.ts +3 -3
  586. package/definitions/test/suite/unitTests/utilities/MagicalPropertyManager.spec.d.ts +3 -3
  587. package/definitions/test/testRunner.d.ts +224 -0
  588. package/definitions/test/util/helpers.d.ts +12 -0
  589. package/definitions/test/util/ports.d.ts +11 -0
  590. package/definitions/test/util/random.d.ts +3 -2
  591. package/package.json +24 -24
  592. package/tsconfig.json +7 -7
  593. package/tsconfig.mod.base.json +44 -44
  594. package/definitions/game/game/entity/creature/Pathing.d.ts +0 -30
  595. package/definitions/game/ui/screen/screens/game/dialog/IslandsDialog.d.ts +0 -65
  596. package/definitions/game/utilities/game/TileHelpers.d.ts +0 -123
  597. package/definitions/test/util/mochaNUnitReporter.d.ts +0 -38
@@ -14,7 +14,9 @@ import type { IMessage, IMessageHistoryItem, IMessageManager, IPackedMessage } f
14
14
  import { MessageType, Source } from "game/entity/player/IMessageManager";
15
15
  import type Player from "game/entity/player/Player";
16
16
  import type Island from "game/island/Island";
17
+ import type Dictionary from "language/Dictionary";
17
18
  import Message from "language/dictionary/Message";
19
+ import type { TranslationArg } from "language/ITranslation";
18
20
  import Translation from "language/Translation";
19
21
  import type { IVector4 } from "utilities/math/Vector4";
20
22
  export declare class MessageManagerNoOp implements IMessageManager {
@@ -30,13 +32,14 @@ export declare class MessageManagerNoOp implements IMessageManager {
30
32
  send(): boolean;
31
33
  sendPacked(): boolean;
32
34
  sentToAll(sentToAll?: boolean): this;
33
- pruneMessageHistory(): boolean;
35
+ pruneMessageHistory(isLocalPlayer: boolean): boolean;
34
36
  addToHistory(messageHistoryItem: IMessageHistoryItem): void;
37
+ upgrade(): this;
35
38
  }
36
39
  export interface IMessageManagerOptions {
37
40
  shouldDisplayMessage(message: IMessage, id: number): boolean | undefined;
38
41
  onDisplayMessage(message: IMessage): void;
39
- getMessageStorageMax(): number;
42
+ getMessageStorageMax(isLocalPlayer: boolean): number;
40
43
  }
41
44
  export default class MessageManager implements IMessageManager {
42
45
  private readonly options;
@@ -70,7 +73,7 @@ export default class MessageManager implements IMessageManager {
70
73
  /**
71
74
  * Cuts the message history down to the correct bounds (preferring the more recent messages)
72
75
  */
73
- pruneMessageHistory(): boolean;
76
+ pruneMessageHistory(isLocalPlayer: boolean): boolean;
74
77
  /**
75
78
  * Clears the entire message history.
76
79
  */
@@ -114,7 +117,7 @@ export default class MessageManager implements IMessageManager {
114
117
  *
115
118
  * Note: After sending a message, the message source, type, and human (if any) are reset.
116
119
  */
117
- send(message: Message | Translation, ...args: any[]): boolean;
120
+ send(message: Message | Translation, ...args: TranslationArg[]): boolean;
118
121
  sendPacked(pack: Partial<IPackedMessage>, ...extraSources: Source[]): boolean;
119
122
  addToHistory(messageHistoryItem: IMessageHistoryItem): void;
120
123
  /**
@@ -122,4 +125,5 @@ export default class MessageManager implements IMessageManager {
122
125
  */
123
126
  sentToAll(sentToAll?: boolean): this;
124
127
  private reset;
128
+ upgrade(id: `${keyof typeof Dictionary}:${string}`, dictionary: Dictionary, entry: number, upgrader?: Translation.ITranslationUpgrader): this;
125
129
  }
@@ -19,51 +19,62 @@ import NoteManager from "game/entity/player/note/NoteManager";
19
19
  import QuestManager from "game/entity/player/quest/QuestManager";
20
20
  import { TileUpdateType } from "game/IGame";
21
21
  import type { IslandId } from "game/island/IIsland";
22
- import type Island from "game/island/Island";
23
22
  import type { IContainer } from "game/item/IItem";
24
23
  import { ItemType } from "game/item/IItem";
24
+ import type Item from "game/item/Item";
25
25
  import { Prompt } from "game/meta/prompt/IPrompt";
26
26
  import { Milestone } from "game/milestones/IMilestone";
27
+ import type Tile from "game/tile/Tile";
27
28
  import type InterruptChoice from "language/dictionary/InterruptChoice";
28
29
  import type IClientStore from "save/clientStore/IClientStore";
29
- import type { IUnserializedCallback } from "save/serializer/ISerializer";
30
- import type { IDialogInfo } from "ui/old/IOldUi";
30
+ import type { IPreSerializeCallback, ISerializer, IUnserializedCallback } from "save/serializer/ISerializer";
31
+ import type { IContainerSortInfo, IDialogInfo } from "ui/old/IOldUi";
31
32
  import { IActionBarSlotData } from "ui/screen/screens/game/static/actions/IActionBar";
32
33
  import { Direction } from "utilities/math/Direction";
33
- import type { IVector3 } from "utilities/math/IVector";
34
- export default class Player extends Human implements IUnserializedCallback {
35
- event: IEventEmitter<this, IPlayerEvents>;
36
- readonly entityType: EntityType.Player;
37
- readonly tileUpdateType = TileUpdateType.Player;
34
+ export default class Player extends Human implements IPreSerializeCallback, IUnserializedCallback {
35
+ get entityType(): EntityType.Player;
36
+ get tileUpdateType(): TileUpdateType;
37
+ readonly event: IEventEmitter<this, IPlayerEvents>;
38
38
  absentLastUsedTime: number;
39
+ containerSortInfo: Record<string | number, IContainerSortInfo | undefined>;
40
+ dialogContainerInfo: Record<number, IDialogInfo | undefined>;
39
41
  dialogInfo: Record<string, IDialogInfo>;
40
42
  hintSeen: boolean[];
41
43
  islandId: IslandId;
42
44
  name: string;
43
45
  actionBar: IActionBarSlotData[];
46
+ useActionsWhileMoving: boolean;
44
47
  revealedItems: Record<number, boolean>;
45
48
  milestoneModifiers: Set<Milestone>;
49
+ milestoneTitle?: Milestone;
46
50
  displayCreature?: CreatureType;
47
51
  private updateTablesOnNoInput?;
48
52
  private lastTableUpdateId?;
49
53
  constructor(identifier?: string);
54
+ preSerializeObject(serializer: ISerializer): void;
50
55
  onUnserialized(): void;
51
56
  delete(): void;
52
- get island(): Island;
57
+ isValid(): boolean;
53
58
  get clientStore(): IClientStore;
54
59
  createNoteManager(): NoteManager;
55
60
  createMessageManager(): MessageManager;
56
61
  createQuestManager(): QuestManager;
57
62
  getDisplayCreature(): CreatureType | undefined;
63
+ protected updateTile(fromTile: Tile, toTile: Tile): boolean;
58
64
  changeId(id: number): void;
59
- protected moveToIsland(island: Island, targetPosition: IVector3): void;
65
+ protected moveToIsland(targetTile: Tile): void;
66
+ /**
67
+ * This only does stuff when it's called on the local player
68
+ */
69
+ addItemMilestones(item: Item): void;
60
70
  checkSkillMilestones(): void;
61
71
  protected onCanMove(direction: Direction.Cardinal): false | undefined;
62
72
  addMilestone(milestone: Milestone, data?: number | string, update?: boolean): void;
63
73
  updateMovementIntent(movementIntent: IMovementIntent): boolean;
64
74
  load(): void;
65
75
  unload(): void;
66
- setup(spawnPoint: IVector3): void;
76
+ private onLoadOrUnload;
77
+ setup(spawnPoint: Tile): void;
67
78
  protected onNoInput(): void;
68
79
  updateTables(source: string, options?: Partial<{
69
80
  allowCaching: boolean;
@@ -71,14 +82,14 @@ export default class Player extends Human implements IUnserializedCallback {
71
82
  }>): void;
72
83
  private updateCraftTable;
73
84
  updateDismantleTable(adjacentContainers?: IContainer[], force?: boolean): void;
74
- getName(): import("../../../language/impl/TranslationImpl").default;
85
+ getName(includeTitle?: boolean): import("../../../language/impl/TranslationImpl").default;
75
86
  /**
76
87
  * Prompts the player
77
88
  */
78
89
  prompt(type: Prompt, ...args: any[]): Promise<boolean | InterruptChoice>;
79
- updateActionSlots(slots: number[], data: IActionBarSlotData[]): void;
80
- updateDialogInfo(dialogIndex: string | number): void;
81
- getDialogInfo(dialogIndex: string | number): IDialogInfo;
90
+ updateActionSlots(slots: number[], data: IActionBarSlotData[], enabled?: boolean): void;
91
+ updateDialogInfo(dialogIndex: string | number | undefined): void;
92
+ getDialogInfo(dialogIndex: string | number): IDialogInfo | undefined;
82
93
  kill(): void;
83
94
  respawn(reset: boolean): void;
84
95
  /**
@@ -91,7 +102,7 @@ export default class Player extends Human implements IUnserializedCallback {
91
102
  * Only use this clientside
92
103
  */
93
104
  isExploredClientSide(x: number, y: number, z: number): boolean;
94
- protected onSkillGain(skill: SkillType, mod: number): void;
105
+ protected onSkillGain(skill: SkillType, fromValue: number, toValue: number, mod: number): void;
95
106
  private canWriteInHours;
96
107
  private canWriteNote;
97
108
  private onWriteNote;
@@ -8,36 +8,46 @@
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 { Events, IEventEmitter } from "event/EventEmitter";
12
- import EntityManager from "game/entity/EntityManager";
11
+ import EventEmitter from "event/EventEmitter";
12
+ import type { IEntityManagerEvents } from "game/entity/EntityManager";
13
13
  import Player from "game/entity/player/Player";
14
+ import type { Game } from "game/Game";
14
15
  import type { IPlayerOptions, IPlayOptions } from "game/IGame";
15
- import { CreationId } from "game/IGame";
16
- export interface IPlayerManagerEvents extends Events<EntityManager<Player>> {
16
+ export interface IPlayerManagerEvents extends IEntityManagerEvents<Player> {
17
17
  /**
18
18
  * Called when a player is about to be removed
19
19
  * The player is going to be added into absentPlayers
20
20
  * @param player The player object
21
21
  */
22
- preRemove?(player: Player): void;
22
+ preRemove(player: Player): void;
23
23
  /**
24
24
  * Called when a player joins the server
25
25
  * @param player The player object
26
26
  */
27
- join?(player: Player): void;
27
+ join(player: Player): void;
28
28
  /**
29
29
  * Called when a player leaves the server
30
30
  * Note: This hook is not called for the player who left the server (player will never be localPlayer)
31
31
  * @param player The player object
32
32
  */
33
- leave?(player: Player): void;
33
+ leave(player: Player): void;
34
+ /**
35
+ * Called when a player-like human (player / special npc) is spawned
36
+ */
37
+ addPlayingEntity(entity: Player): any;
38
+ /**
39
+ * Called when a player-like human (player / special npc) is removed
40
+ */
41
+ removePlayingEntity(entity: Player): any;
34
42
  }
35
- export default class PlayerManager extends EntityManager<Player> {
36
- protected readonly creationId: CreationId;
37
- event: IEventEmitter<this, IPlayerManagerEvents>;
38
- constructor();
43
+ export default class PlayerManager extends EventEmitter.Host<IPlayerManagerEvents> {
44
+ private readonly game;
45
+ readonly players: Array<Player | undefined>;
46
+ readonly absentPlayers: Array<Player | undefined>;
47
+ constructor(game: Game);
48
+ reset(): void;
39
49
  /**
40
- * Get players in the game. Parameters include additional players that may not be relevant, such as ghosts, connecting players, absent players, the dedicated server fake player.
50
+ * Get players. Parameters include additional players that may not be relevant, such as ghosts, connecting players, absent players, the dedicated server fake player.
41
51
  * @param includeGhosts True to include players that are ghosts
42
52
  * @param includeConnecting True to include players that are connecting
43
53
  * @param includeDedicatedServer True to include the dedicated server fake player
@@ -56,7 +66,7 @@ export default class PlayerManager extends EntityManager<Player> {
56
66
  * Support loading single player saves in dedicated servers
57
67
  * All while not losing data for any players - regardless of if the player was in the server or not at the time of the backup
58
68
  */
59
- repair(options: Partial<IPlayOptions>): void;
69
+ repair(options: Partial<IPlayOptions>): Promise<void>;
60
70
  /**
61
71
  * Removes and deletes a player.
62
72
  * Use with caution!
@@ -9,5 +9,5 @@
9
9
  * https://github.com/WaywardGame/types/wiki
10
10
  */
11
11
  import type Human from "game/entity/Human";
12
- import type { ITile } from "game/tile/ITerrain";
13
- export default function writeCorpseNote(human: Human, tile: ITile): void;
12
+ import type Tile from "game/tile/Tile";
13
+ export default function writeCorpseNote(human: Human, tile: Tile): void;
@@ -10,13 +10,16 @@
10
10
  */
11
11
  import type Island from "game/island/Island";
12
12
  import type { PartOfDay } from "game/time/ITimeManager";
13
+ import type Dictionary from "language/Dictionary";
14
+ import type { TranslationArg } from "language/ITranslation";
15
+ import Translation from "language/Translation";
13
16
  import Note from "language/dictionary/Note";
14
17
  import type { IModdable } from "mod/ModRegistry";
15
18
  import { HelpArticle } from "ui/screen/screens/menu/menus/help/HelpArticleDescriptions";
16
19
  export interface INoteDescription extends IModdable {
17
20
  learnMore?: HelpArticle;
18
21
  }
19
- export declare const noteDescriptions: OptionalDescriptions<Note, INoteDescription>;
22
+ export declare const noteDescriptions: Map<Note, INoteDescription>;
20
23
  export type Time = PartOfDay | string;
21
24
  export interface INote {
22
25
  id: keyof typeof Note;
@@ -25,7 +28,7 @@ export interface INote {
25
28
  time: number;
26
29
  skilled: boolean;
27
30
  };
28
- args: any[];
31
+ args: TranslationArg[];
29
32
  unread?: boolean;
30
33
  }
31
34
  export interface INoteManager {
@@ -35,6 +38,7 @@ export interface INoteManager {
35
38
  write(note: Note, ...args: any[]): void;
36
39
  getUnread(): INote[];
37
40
  markRead(noteId: number): void;
41
+ upgrade(id: `${keyof typeof Dictionary}:${string}`, dictionary: Dictionary, entry: number, upgrader?: Translation.ITranslationUpgrader): this;
38
42
  }
39
43
  export interface INoteHost {
40
44
  getIsland(): Island;
@@ -47,9 +51,10 @@ export declare class NoteManagerNoOp implements INoteManager {
47
51
  readonly notes: INote[];
48
52
  getNote(id: number): INote | undefined;
49
53
  wasWritten(note: Note): boolean;
50
- write(note: Note, ...args: any[]): void;
54
+ write(note: Note, ...args: TranslationArg[]): void;
51
55
  getUnread(): INote[];
52
56
  markRead(noteId: number): void;
57
+ upgrade(id: `${keyof typeof Dictionary}:${string}`, dictionary: Dictionary, entry: number, upgrader?: Translation.ITranslationUpgrader): this;
53
58
  }
54
59
  export default class NoteManager implements INoteManager {
55
60
  private readonly host;
@@ -58,7 +63,8 @@ export default class NoteManager implements INoteManager {
58
63
  get notes(): INote[];
59
64
  getNote(id: number): INote | undefined;
60
65
  wasWritten(note: Note): boolean;
61
- write(note: Note, ...args: any[]): void;
66
+ write(note: Note, ...args: TranslationArg[]): void;
62
67
  getUnread(): INote[];
63
68
  markRead(noteId: number): void;
69
+ upgrade(id: `${keyof typeof Dictionary}:${string}`, dictionary: Dictionary, entry: number, upgrader?: Translation.ITranslationUpgrader): this;
64
70
  }
@@ -8,14 +8,13 @@
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 Stream from "@wayward/goodstream/Stream";
12
11
  import EventEmitter from "event/EventEmitter";
12
+ import type { Game } from "game/Game";
13
13
  import type Player from "game/entity/player/Player";
14
14
  import type PlayerManager from "game/entity/player/PlayerManager";
15
15
  import type { IQuest } from "game/entity/player/quest/quest/IQuest";
16
16
  import { QuestType } from "game/entity/player/quest/quest/IQuest";
17
17
  import type { RequirementInstance } from "game/entity/player/quest/quest/Quest";
18
- import type { Game } from "game/Game";
19
18
  export interface IQuestManager extends EventEmitter.Host<IQuestManagerEvents> {
20
19
  /**
21
20
  * Get all quests
@@ -100,10 +99,10 @@ export declare class QuestInstance extends EventEmitter.Host<IQuestInstanceEvent
100
99
  constructor(host: Player, data: IQuest, id: number);
101
100
  getTitle(): import("../../../../language/impl/TranslationImpl").default | undefined;
102
101
  getDescription(): import("../../../../language/impl/TranslationImpl").default | undefined;
103
- getRequirements(): Stream<RequirementInstance>;
102
+ getRequirements(): RequirementInstance[];
104
103
  needsManualCompletion(): boolean | undefined;
105
104
  complete(): this;
106
- getChildren(): Stream<QuestType>;
105
+ getChildren(): QuestType[];
107
106
  getCompletionAmount(): number;
108
107
  }
109
108
  interface IQuestInstanceEvents {
@@ -10,5 +10,4 @@
10
10
  */
11
11
  import { QuestType } from "game/entity/player/quest/quest/IQuest";
12
12
  import type { Quest } from "game/entity/player/quest/quest/Quest";
13
- declare const quests: OptionalDescriptions<QuestType, Quest>;
14
- export default quests;
13
+ export declare const questDescriptions: Map<QuestType, Quest>;
@@ -8,14 +8,14 @@
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 Stream from "@wayward/goodstream/Stream";
11
+ import { CreatureType } from "game/entity/creature/ICreature";
12
12
  import type { RequirementInstance } from "game/entity/player/quest/quest/Quest";
13
13
  import { Quest } from "game/entity/player/quest/quest/Quest";
14
14
  import type { QuestInstance } from "game/entity/player/quest/QuestManager";
15
15
  import type { IQuestRequirement } from "game/entity/player/quest/requirement/IRequirement";
16
16
  import type Island from "game/island/Island";
17
17
  export default class Challenge extends Quest {
18
- static getCreaturesOfRequirements(): Stream<any>;
18
+ static getCreaturesOfRequirements(): CreatureType[];
19
19
  private static readonly possibleRequirements;
20
20
  /**
21
21
  * These are the only items that can be requested to collect
@@ -39,9 +39,14 @@ export default class Challenge extends Quest {
39
39
  private readonly possibleRequirements;
40
40
  constructor();
41
41
  reset(): void;
42
- protected createRequirements(island: Island): Stream<IQuestRequirement<any[], {}>>;
42
+ protected createRequirements(island: Island): Array<IQuestRequirement<any, any>>;
43
43
  protected onUpdate(quest: QuestInstance): void;
44
44
  protected onRequirementComplete(quest: QuestInstance, completedRequirement: RequirementInstance): void;
45
+ /**
46
+ *
47
+ * @param island
48
+ * @returns Technically a IQuestRequirement<any, any>, but specifying the exact types makes the typing much faster
49
+ */
45
50
  private createRandomRequirement;
46
51
  private getSpawnableCreatures;
47
52
  }
@@ -35,18 +35,18 @@ export declare class Quest extends EventEmitter.Host<IQuestEvents> {
35
35
  addRequirement<RA extends any[]>(type: QuestRequirementType, ...args: RA): this;
36
36
  setNeedsManualCompletion(): this;
37
37
  addChildQuests(...children: QuestType[]): this;
38
- getChildren(): import("@wayward/goodstream").default<QuestType>;
38
+ getChildren(): QuestType[];
39
39
  setTitle(translation?: Translation | ((quest: IQuest) => Translation)): this;
40
40
  setDescription(translation?: Translation): this;
41
41
  create(island: Island, type?: QuestType | undefined): IQuest;
42
42
  getTitle(quest: IQuest): import("../../../../../language/impl/TranslationImpl").default | undefined;
43
43
  getDescription(quest: IQuest): import("../../../../../language/impl/TranslationImpl").default | undefined;
44
- getEventBusTriggers(instance: IQuest): import("@wayward/goodstream").default<[IQuestRequirement<any[], {}>, import("@wayward/goodstream").default<readonly [import("../../../../../event/EventManager").EmitterOrBus, string | number | symbol, (api: IQuestRequirementApi<[], {}>, ...args: any[]) => boolean]>]>;
45
- getHostTriggers(instance: IQuest): import("@wayward/goodstream").default<[IQuestRequirement<any[], {}>, IterableIterator<[keyof import("../../IPlayer").IPlayerEvents, (api: IQuestRequirementApi<[], {}>, player: Player, ...args: any[]) => boolean]>]>;
46
- getRequirements(host: Player, instance: IQuest): import("@wayward/goodstream").default<RequirementInstance>;
44
+ getEventBusTriggers(instance: IQuest): [IQuestRequirement<any[], {}>, import("@wayward/goodstream").default<readonly [import("../../../../../event/EventManager").EmitterOrBus, string | number | symbol, (api: IQuestRequirementApi<[], {}>, ...args: any[]) => boolean]>][];
45
+ getHostTriggers(instance: IQuest): [IQuestRequirement<any[], {}>, IterableIterator<[keyof import("../../IPlayer").IPlayerEvents, (api: IQuestRequirementApi<[], {}>, player: Player, ...args: any[]) => boolean]>][];
46
+ getRequirements(host: Player, instance: IQuest): RequirementInstance[];
47
47
  getRequirement(host: Player, quest: IQuest, requirement: IQuestRequirement): RequirementInstance | undefined;
48
48
  needsManualCompletion(): boolean;
49
- protected createRequirements(island: Island): import("@wayward/goodstream").default<IQuestRequirement<any[], {}>>;
49
+ protected createRequirements(island: Island): IQuestRequirement[];
50
50
  protected createRequirement<R extends QuestRequirementType>(type: R, ...options: RequirementArgs<R>): IQuestRequirement<RequirementArgs<R>>;
51
51
  }
52
52
  export declare class RequirementInstance extends EventEmitter.Host<IQuestRequirementEvents> {
@@ -17,8 +17,13 @@ export interface ISkillLevel {
17
17
  core: number;
18
18
  }
19
19
  export interface ISkillDescription extends IModdable {
20
- attribute?: Stat;
20
+ attribute?: Stat | ISkillAttribute;
21
21
  reputation?: number;
22
22
  defaultDamageType?: DamageType;
23
23
  }
24
+ export interface ISkillAttribute {
25
+ stat: Stat;
26
+ gainChanceOffset?: number;
27
+ gainMultiplier?: number;
28
+ }
24
29
  export declare const skillDescriptions: OptionalDescriptions<SkillType, ISkillDescription>;
@@ -16,7 +16,7 @@ export interface ISkillConfiguration {
16
16
  id: GetterOfOr<string | number>;
17
17
  getSkillGainMultiplier?(skill: SkillType): number;
18
18
  canSkillGain?(skill: SkillType): boolean;
19
- onSkillGain?(skill: SkillType, mod: number): any;
19
+ onSkillGain?(skill: SkillType, fromValue: number, toValue: number, mod: number): any;
20
20
  }
21
21
  export interface ISkillEvents {
22
22
  /**
@@ -9,7 +9,7 @@
9
9
  * https://github.com/WaywardGame/types/wiki
10
10
  */
11
11
  import EventEmitter from "event/EventEmitter";
12
- import type Entity from "game/entity/Entity";
12
+ import type EntityWithStats from "game/entity/EntityWithStats";
13
13
  import type { StatusType } from "game/entity/IEntity";
14
14
  import { StatusEffectChangeReason } from "game/entity/IEntity";
15
15
  import { MessageType } from "game/entity/player/IMessageManager";
@@ -31,7 +31,7 @@ export interface IStatusEffectIconDescription {
31
31
  */
32
32
  frames?: number;
33
33
  }
34
- export type StatusEffectClass = Class<StatusEffect, [StatusType, Entity]> & IModdable;
34
+ export type StatusEffectClass = Class<StatusEffect, [StatusType, EntityWithStats]> & IModdable;
35
35
  export declare enum StatusEffectBadness {
36
36
  Neutral = 0,
37
37
  Bad = 1,
@@ -64,8 +64,8 @@ export default abstract class StatusEffect extends EventEmitter.Host<IStatusEffe
64
64
  static update(effect: StatusEffect): void;
65
65
  private registered;
66
66
  private readonly _entity;
67
- constructor(type: StatusType, entity?: Entity);
68
- protected get entity(): Entity;
67
+ constructor(type: StatusType, entity?: EntityWithStats);
68
+ protected get entity(): EntityWithStats;
69
69
  getOptions(): IGameOptionsStatusEffect;
70
70
  register(): void;
71
71
  /**
@@ -24,7 +24,7 @@ export default abstract class BadTemperatureEffect extends StatusEffect {
24
24
  protected onTick(): void;
25
25
  protected abstract getConsequenceEffect(): StatusType;
26
26
  protected abstract getConsequenceStat(): Stat;
27
- private onGameTickStart;
27
+ private onGameTick;
28
28
  private onPlayerTurnStart;
29
29
  private isLevelTwoBadTemp;
30
30
  }
@@ -24,9 +24,11 @@ export declare module InfoDisplayLevel {
24
24
  function canDisplay(level: InfoDisplayLevel, ...toDisplay: InfoDisplayLevel[]): boolean;
25
25
  }
26
26
  export declare enum InfoClass {
27
- Title = "title",
28
- Description = "description",
29
- List = "list"
27
+ Title = "info-provider-title",
28
+ Subtitle = "info-provider-subtitle",
29
+ Description = "info-provider-description",
30
+ List = "info-provider-list",
31
+ MultiTextParagraph = "info-provider-multi-text-paragraph"
30
32
  }
31
33
  export interface IInspector {
32
34
  asEntity?: Entity;
@@ -43,5 +43,6 @@ export declare enum InfoIcon {
43
43
  PinSelf = 2,
44
44
  PinFriend = 3,
45
45
  PinMap = 4,
46
- ActionUndiscovered = 5
46
+ ActionUndiscovered = 5,
47
+ PinLighthouse = 6
47
48
  }
@@ -8,6 +8,7 @@
8
8
  * Wayward is a copyrighted and licensed work. Modification and/or distribution of any source files is prohibited. If you wish to modify the game in any way, please refer to the modding guide:
9
9
  * https://github.com/WaywardGame/types/wiki
10
10
  */
11
+ import { EventBus } from "event/EventBuses";
11
12
  import EventEmitter from "event/EventEmitter";
12
13
  import type { Emitter, EmitterOrBus, Event, Handler } from "event/EventManager";
13
14
  import { InfoDisplayLevel } from "game/inspection/IInfoProvider";
@@ -42,6 +43,10 @@ export interface IInfoProviderEvents {
42
43
  /**
43
44
  * Should be emitted when the info provider should be removed.
44
45
  */
46
+ requestRemove(): any;
47
+ /**
48
+ * Emitted when the info provider has been removed.
49
+ */
45
50
  remove(): any;
46
51
  /**
47
52
  * Should be emitted when the info provider's display level changes.
@@ -68,13 +73,16 @@ export interface ISerializedIcon extends IIcon {
68
73
  path: string | ISerializedImagePath;
69
74
  }
70
75
  export declare abstract class InfoProvider extends EventEmitter.Host<IInfoProviderEvents> implements IRefreshable {
76
+ static multiTextParagraph: string;
71
77
  private static uniqueInitializationId;
72
78
  static create(...translations: TranslationGenerator[]): SimpleInfoProvider;
79
+ static dynamic<T>(observer: InfoProvider.Observer<T>, supplier: (value: T) => InfoProvider | undefined): SimpleInfoProvider;
73
80
  static of(...classes: string[]): SimpleInfoProvider;
74
81
  static title(...translations: Array<TranslationGenerator | undefined>): SimpleInfoProvider;
82
+ static subtitle(...translations: Array<TranslationGenerator | undefined>): SimpleInfoProvider;
75
83
  static description(...translations: Array<TranslationGenerator | undefined>): SimpleInfoProvider;
76
84
  static text(...translations: Array<TranslationGenerator | undefined>): SimpleInfoProvider;
77
- static list(...translations: Array<TranslationGenerator | undefined>): SimpleInfoProvider;
85
+ static list(...translations: Array<InfoProvider | TranslationGenerator | undefined>): SimpleInfoProvider;
78
86
  static ofComponent(componentSupplier: () => Component): InfoProvider;
79
87
  private displayLevel?;
80
88
  protected component?: Component;
@@ -83,9 +91,11 @@ export declare abstract class InfoProvider extends EventEmitter.Host<IInfoProvid
83
91
  abstract get(context: InfoProviderContext): ArrayOr<TranslationGenerator | InfoProvider>;
84
92
  abstract getClass(): string[];
85
93
  getDefaultDisplayLevel(_context: InfoProviderContext): InfoDisplayLevel | Set<InfoDisplayLevel>;
86
- setDisplayLevel(...displayLevel: InfoDisplayLevel[]): this;
94
+ setDisplayLevel(...displayLevel: Array<InfoDisplayLevel | undefined>): this;
87
95
  getDisplayLevel(context: InfoProviderContext): Set<InfoDisplayLevel>;
88
96
  setComponent(componentClass: Class<Component>): this;
97
+ private componentInitializer?;
98
+ setComponentInitializer(initializer: (componenent: Component) => any): this;
89
99
  private icon?;
90
100
  getIcon(): IIcon | string | undefined;
91
101
  setIcon(icon?: IIcon | string): this;
@@ -94,12 +104,20 @@ export declare abstract class InfoProvider extends EventEmitter.Host<IInfoProvid
94
104
  setSynchronous(): this;
95
105
  init(): void;
96
106
  private readonly refreshEvents;
107
+ subscribeRefreshOnTick(observer: InfoProvider.Observer<any>): this;
108
+ subscribeRefreshOnTick(predicate: (...params: Parameters<Handler<EventBus.Game, "tickEnd">>) => boolean): this;
97
109
  /**
98
110
  * Marks this info provider as to subscribe refresh events to the given host.
99
111
  * Note: Any existing initialized components will not be retroactively subscribed.
100
112
  * @param predicate A predicate function for whether or not this info provider should actually refresh when the event is hit
101
113
  */
102
114
  subscribeRefreshOn<E extends EmitterOrBus, K extends Event<E>>(emitterOrBus: E, ...args: [...events: K[], predicate: (...params: Parameters<Handler<E, K>>) => boolean]): this;
115
+ /**
116
+ * Marks this info provider as to subscribe refresh events to the given host.
117
+ * Note: Any existing initialized components will not be retroactively subscribed.
118
+ * @param observer An observer that will only trigger a refresh if the value has changed
119
+ */
120
+ subscribeRefreshOn<E extends EmitterOrBus, K extends Event<E>>(emitterOrBus: E, ...args: [...events: K[], observer: InfoProvider.Observer<any>]): this;
103
121
  /**
104
122
  * Marks this info provider as to subscribe refresh events to the given host.
105
123
  * Note: Any existing initialized components will not be retroactively subscribed.
@@ -131,13 +149,21 @@ export declare abstract class InfoProvider extends EventEmitter.Host<IInfoProvid
131
149
  };
132
150
  protected initChildTextComponent(text: TranslationGenerator): Text;
133
151
  }
152
+ export declare namespace InfoProvider {
153
+ class Observer<T> {
154
+ private readonly _observe;
155
+ value: T;
156
+ constructor(_observe: () => T);
157
+ observe(): boolean;
158
+ }
159
+ }
134
160
  export declare class SimpleInfoProvider extends InfoProvider {
135
161
  private readonly classes;
136
162
  private readonly contents;
137
163
  private childComponentClass;
138
164
  private validWhen?;
139
165
  constructor(...translations: Array<TranslationGenerator | InfoProvider>);
140
- get(): (import("../../language/ITranslation").ISerializedTranslation | import("../../language/impl/TranslationImpl").default | import("../../language/dictionary/UiTranslation").default | (() => import("../../language/ITranslation").ISerializedTranslation | import("../../language/impl/TranslationImpl").default | import("../../language/dictionary/UiTranslation").default | Iterable<import("../../utilities/string/Interpolator").IStringSection> | undefined) | InfoProvider)[];
166
+ get(): (import("../../language/impl/TranslationImpl").default | import("../../language/ITranslation").ISerializedTranslation | import("../../language/dictionary/UiTranslation").default | (() => import("../../language/impl/TranslationImpl").default | import("../../language/ITranslation").ISerializedTranslation | import("../../language/dictionary/UiTranslation").default | import("../../utilities/string/Interpolator").IStringSection[] | undefined) | InfoProvider)[];
141
167
  add(...translations: Array<TranslationGenerator | InfoProvider | Falsy>): this;
142
168
  onlyIfHasContents(): this | undefined;
143
169
  addInfoGetter(provider: () => InfoProvider | undefined): this;
@@ -8,15 +8,19 @@
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 { IInspector, InfoDisplayLevel } from "game/inspection/IInfoProvider";
12
- import { TextContext } from "language/ITranslation";
11
+ import type { IInspector } from "game/inspection/IInfoProvider";
12
+ import { InfoDisplayLevel } from "game/inspection/IInfoProvider";
13
+ export declare enum InfoProviderContextType {
14
+ Tooltip = 0,
15
+ Generic = 1
16
+ }
13
17
  export declare class InfoProviderContext {
14
- static readonly UI: new (inspector: IInspector, maxDisplayLevel: InfoDisplayLevel) => InfoProviderContext;
15
- static readonly RAW: new (inspector: IInspector, maxDisplayLevel: InfoDisplayLevel) => InfoProviderContext;
18
+ static readonly GENERIC: new (inspector?: IInspector | undefined, maxDisplayLevel?: InfoDisplayLevel | undefined) => InfoProviderContext;
19
+ static readonly TOOLTIP: new (inspector?: IInspector | undefined, maxDisplayLevel?: InfoDisplayLevel | undefined) => InfoProviderContext;
16
20
  protected readonly _inspector: WeakRef<IInspector>;
17
- readonly textContext: TextContext;
21
+ readonly type: InfoProviderContextType;
18
22
  readonly maxDisplayLevel: InfoDisplayLevel;
19
23
  constructor(context: InfoProviderContext);
20
- constructor(textContext: TextContext, inspector: IInspector, maxDisplayLevel: InfoDisplayLevel);
24
+ constructor(type: InfoProviderContextType, inspector?: IInspector, maxDisplayLevel?: InfoDisplayLevel);
21
25
  get inspector(): IInspector | undefined;
22
26
  }
@@ -15,15 +15,14 @@ import type { InspectionClass } from "game/inspection/InspectionTypeMap";
15
15
  import type { EnumReferenceResolved, EnumReferenceTypes, ReferenceType } from "game/reference/IReferenceManager";
16
16
  import type { TranslationGenerator } from "ui/component/IComponent";
17
17
  import type Text from "ui/component/Text";
18
+ import type { InspectionTooltipHints } from "ui/screen/screens/game/InspectionsTooltipHandler";
18
19
  import type { IVector3 } from "utilities/math/IVector";
19
20
  export default abstract class Inspection<O> extends InfoProvider {
20
21
  readonly type: InspectType;
21
22
  readonly value: O;
22
- static createEnumReferenceHandler<R extends ReferenceType, E, K extends string>(referenceType: R, enumObject: {
23
- [key in K]: E;
24
- }, predicate?: (reference: [R, E], context?: InfoProviderContext) => any): (type: InspectType, value: unknown, context?: InfoProviderContext) => any;
23
+ static createEnumReferenceHandler<R extends ReferenceType, E, K extends string>(referenceType: R, enumObject: Record<K, E>, predicate?: (reference: [R, E], context?: InfoProviderContext) => any): (type: InspectType, value: unknown, context?: InfoProviderContext) => boolean;
25
24
  static createAnyHandler(...handlers: Array<Exclude<InspectionClass["handles"], undefined>>): (type: InspectType, ...args: any[]) => boolean;
26
- static createReferenceHandler<REFTYPE extends EnumReferenceTypes>(referenceType: REFTYPE, handler?: (resolvedReference: EnumReferenceResolved<REFTYPE>, context?: InfoProviderContext) => any): (type: InspectType, value: unknown, context?: InfoProviderContext) => any;
25
+ static createReferenceHandler<REFTYPE extends EnumReferenceTypes>(referenceType: REFTYPE, handler?: (resolvedReference: EnumReferenceResolved<REFTYPE>, context?: InfoProviderContext) => any): (type: InspectType, value: unknown, context?: InfoProviderContext) => boolean;
27
26
  static verifyHumanity(_: any, context?: InfoProviderContext): boolean;
28
27
  static getDefaultPriority(inspectType: InspectType): number;
29
28
  constructor(type: InspectType, value: O);
@@ -34,6 +33,7 @@ export default abstract class Inspection<O> extends InfoProvider {
34
33
  * Returns a string that should differentiate this inspection from other inspections of the same type.
35
34
  */
36
35
  abstract getId(): string;
36
+ renderHints(hints: InspectionTooltipHints): void;
37
37
  protected createIdFromVector3(vec3: IVector3): string;
38
38
  protected initChildTextComponent(text: TranslationGenerator): Text;
39
39
  }