@wayward/types 2.13.4-beta.dev.20230704.1 → 2.13.5-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 (120) hide show
  1. package/LICENSE +20 -20
  2. package/README.md +27 -27
  3. package/definitions/game/game/IGame.d.ts +1 -1
  4. package/definitions/game/game/entity/EntityMovable.d.ts +9 -6
  5. package/definitions/game/game/entity/Human.d.ts +4 -4
  6. package/definitions/game/game/entity/IHuman.d.ts +6 -0
  7. package/definitions/game/game/entity/action/ActionsRegistration.d.ts +9 -9
  8. package/definitions/game/game/entity/action/actions/Dismount.d.ts +1 -1
  9. package/definitions/game/game/entity/action/actions/Drop.d.ts +1 -1
  10. package/definitions/game/game/entity/action/actions/Extinguish.d.ts +1 -1
  11. package/definitions/game/game/entity/action/actions/InterruptResponse.d.ts +14 -0
  12. package/definitions/game/game/entity/action/actions/Paddle.d.ts +14 -0
  13. package/definitions/game/game/entity/action/actions/Rename.d.ts +1 -1
  14. package/definitions/game/game/entity/action/actions/Repair.d.ts +1 -1
  15. package/definitions/game/game/entity/action/actions/Rest.d.ts +1 -1
  16. package/definitions/game/game/entity/action/actions/Ride.d.ts +1 -1
  17. package/definitions/game/game/entity/action/actions/Sleep.d.ts +1 -1
  18. package/definitions/game/game/entity/action/actions/ToggleVehicle.d.ts +1 -1
  19. package/definitions/game/game/entity/action/actions/UpdateItemQuickSlot.d.ts +14 -0
  20. package/definitions/game/game/entity/action/actions/Upgrade.d.ts +1 -1
  21. package/definitions/game/game/entity/action/actions/UseItem.d.ts +14 -0
  22. package/definitions/game/game/entity/action/actions/helper/GatherTreasure.d.ts +22 -0
  23. package/definitions/game/game/entity/action/usable/actions/UsableActionsMain.d.ts +1 -1
  24. package/definitions/game/game/entity/action/usable/actions/UsableActionsWorld.d.ts +1 -1
  25. package/definitions/game/game/entity/action/usable/actions/item/UsableActionsItemMove.d.ts +9 -2
  26. package/definitions/game/game/entity/creature/Pathing.d.ts +30 -0
  27. package/definitions/game/game/entity/npc/NPC.d.ts +1 -1
  28. package/definitions/game/game/entity/npc/npcs/IMerchant.d.ts +12 -0
  29. package/definitions/game/game/entity/npc/npcs/Shipper.d.ts +1 -1
  30. package/definitions/game/game/entity/player/quest/Requirements.d.ts +4 -4
  31. package/definitions/game/game/entity/player/quest/requirement/BuildRequirement.d.ts +1 -1
  32. package/definitions/game/game/entity/player/quest/requirement/CollectItemRequirement.d.ts +1 -1
  33. package/definitions/game/game/entity/player/quest/requirement/CraftRequirement.d.ts +1 -1
  34. package/definitions/game/game/entity/player/quest/requirement/DismantleRequirement.d.ts +1 -1
  35. package/definitions/game/game/inspection/infoProviders/creature/CreatureHealth.d.ts +17 -0
  36. package/definitions/game/game/inspection/infoProviders/creature/CreatureTamedInfo.d.ts +1 -1
  37. package/definitions/game/game/inspection/infoProviders/creature/Happiness.d.ts +22 -0
  38. package/definitions/game/game/inspection/infoProviders/item/ItemDetails.d.ts +1 -1
  39. package/definitions/game/game/inspection/infoProviders/item/ItemUses.d.ts +74 -74
  40. package/definitions/game/game/inspection/infoProviders/item/use/ItemDisassembleInfo.d.ts +1 -1
  41. package/definitions/game/game/inspection/infoProviders/shared/SharedLightSourceInfo.d.ts +1 -1
  42. package/definitions/game/game/inspection/infoProviders/stat/AttackInfo.d.ts +1 -1
  43. package/definitions/game/game/inspection/infoProviders/stat/FerocityInfo.d.ts +1 -1
  44. package/definitions/game/game/inspection/inspections/CorpseInspection.d.ts +1 -1
  45. package/definitions/game/game/item/IItem.d.ts +4 -0
  46. package/definitions/game/game/item/Item.d.ts +1 -2
  47. package/definitions/game/game/item/ItemManager.d.ts +8 -1
  48. package/definitions/game/game/magic/MagicalPropertyManager.d.ts +11 -0
  49. package/definitions/game/game/magic/MagicalPropertyType.d.ts +60 -0
  50. package/definitions/game/game/options/modifiers/milestone/MilestoneModifiersManager.d.ts +1 -1
  51. package/definitions/game/game/reference/IReferenceManager.d.ts +1 -1
  52. package/definitions/game/game/reference/ReferenceManager.d.ts +3 -2
  53. package/definitions/game/game/tile/Tile.d.ts +2 -4
  54. package/definitions/game/language/Dictionary.d.ts +14 -13
  55. package/definitions/game/language/DictionaryMap.d.ts +29 -27
  56. package/definitions/game/language/dictionary/Misc.d.ts +4 -0
  57. package/definitions/game/language/dictionary/UiTranslation.d.ts +604 -600
  58. package/definitions/game/language/english/player/BadTemperatureLevels.d.ts +13 -0
  59. package/definitions/game/language/english/player/ExhaustionLevels.d.ts +13 -0
  60. package/definitions/game/language/english/player/Slot.d.ts +13 -0
  61. package/definitions/game/language/english/ui/ChangelogSections.d.ts +13 -0
  62. package/definitions/game/language/english/ui/PowerModes.d.ts +13 -0
  63. package/definitions/game/language/english/ui/SteamInputKeyboardPosition.d.ts +13 -0
  64. package/definitions/game/multiplayer/IMultiplayer.d.ts +22 -23
  65. package/definitions/game/multiplayer/Multiplayer.d.ts +5 -0
  66. package/definitions/game/multiplayer/packets/client/DisplayInterruptPacket.d.ts +19 -0
  67. package/definitions/game/multiplayer/packets/client/EmitPlayerEventPacket.d.ts +20 -0
  68. package/definitions/game/multiplayer/packets/client/SetPlayerZPacket.d.ts +16 -0
  69. package/definitions/game/multiplayer/packets/server/KeepAlivePacket.d.ts +21 -0
  70. package/definitions/game/multiplayer/packets/server/LogsPacket.d.ts +19 -0
  71. package/definitions/game/multiplayer/packets/server/UiDataUpdatePacket.d.ts +18 -0
  72. package/definitions/game/multiplayer/packets/server/UpdateDialogInfoPacket.d.ts +20 -0
  73. package/definitions/game/multiplayer/packets/server/UpdateQuickSlotInfoPacket.d.ts +20 -0
  74. package/definitions/game/multiplayer/packets/shared/MarkAsExploredPacket.d.ts +18 -0
  75. package/definitions/game/multiplayer/packets/shared/UpdateMovementIntentPacket.d.ts +18 -0
  76. package/definitions/game/multiplayer/packets/shared/UpdateWalkPathPacket.d.ts +20 -0
  77. package/definitions/game/renderer/context/RendererOrigin.d.ts +2 -9
  78. package/definitions/game/renderer/particle/Particle.d.ts +41 -0
  79. package/definitions/game/renderer/spriteBatch/SpriteBatch.d.ts +13 -0
  80. package/definitions/game/save/data/ISaveDataGlobal.d.ts +6 -0
  81. package/definitions/game/ui/component/Article.d.ts +14 -0
  82. package/definitions/game/ui/component/Input.d.ts +6 -1
  83. package/definitions/game/ui/component/InputButton.d.ts +0 -1
  84. package/definitions/game/ui/input/BindableManager.d.ts +2 -2
  85. package/definitions/game/ui/input/IInput.d.ts +1 -1
  86. package/definitions/game/ui/old/functional/FunctionalTooltip.d.ts +11 -0
  87. package/definitions/game/ui/old/functional/IFunctionalTooltip.d.ts +37 -0
  88. package/definitions/game/ui/screen/screens/game/component/Item.d.ts +131 -0
  89. package/definitions/game/ui/screen/screens/game/component/ItemComponent.d.ts +1 -1
  90. package/definitions/game/ui/screen/screens/game/component/QuadrantComponent.d.ts +1 -1
  91. package/definitions/game/ui/screen/screens/game/dialog/EquipmentDialog.d.ts +1 -1
  92. package/definitions/game/ui/screen/screens/game/dialog/IslandsDialog.d.ts +65 -0
  93. package/definitions/game/ui/screen/screens/game/static/ActionBar.d.ts +7 -2
  94. package/definitions/game/ui/screen/screens/game/static/Quickslots.d.ts +20 -0
  95. package/definitions/game/ui/screen/screens/game/static/actions/ActionBarBindableManager.d.ts +5 -5
  96. package/definitions/game/ui/screen/screens/game/static/actions/IActionBar.d.ts +3 -1
  97. package/definitions/game/ui/screen/screens/game/static/stats/IStatDisplayDescription.d.ts +1 -1
  98. package/definitions/game/ui/screen/screens/game/static/stats/Reputation.d.ts +13 -0
  99. package/definitions/game/ui/screen/screens/menu/menus/HelpArticle.d.ts +16 -0
  100. package/definitions/game/ui/screen/screens/menu/menus/newgame/customgameoptions/TabInventory.d.ts +15 -0
  101. package/definitions/game/ui/screen/screens/menu/menus/newgame/customgameoptions/TabIsland.d.ts +15 -0
  102. package/definitions/game/ui/screen/screens/menu/menus/options/BindingsMenu.d.ts +23 -0
  103. package/definitions/game/ui/screen/screens/menu/menus/pause/ModesMenu.d.ts +22 -0
  104. package/definitions/game/utilities/collection/Arrays.d.ts +1 -0
  105. package/definitions/game/utilities/game/TileHelpers.d.ts +123 -0
  106. package/definitions/game/utilities/game/TilePosition.d.ts +12 -0
  107. package/definitions/game/utilities/math/IVector.d.ts +2 -1
  108. package/definitions/game/utilities/math/Math2.d.ts +6 -0
  109. package/definitions/game/utilities/random/generators/RandomItem.d.ts +26 -0
  110. package/definitions/game/utilities/random/generators/RandomRange.d.ts +26 -0
  111. package/definitions/hosts/shared/globals.d.ts +1 -1
  112. package/definitions/language-sync/language.d.ts +11 -0
  113. package/definitions/test/util/mochaNUnitReporter.d.ts +38 -0
  114. package/package.json +24 -24
  115. package/tsconfig.json +7 -7
  116. package/tsconfig.mod.base.json +45 -44
  117. /package/definitions/game/game/entity/action/actions/{PickUp.d.ts → Pickup.d.ts} +0 -0
  118. /package/definitions/game/game/entity/action/actions/{PickUpAllItems.d.ts → PickupAllItems.d.ts} +0 -0
  119. /package/definitions/game/game/entity/action/actions/{PickUpExcrement.d.ts → PickupExcrement.d.ts} +0 -0
  120. /package/definitions/game/game/entity/action/actions/{PickUpItem.d.ts → PickupItem.d.ts} +0 -0
@@ -21,7 +21,7 @@ import Island from "game/island/Island";
21
21
  import { ItemType } from "game/item/IItem";
22
22
  import Item from "game/item/Item";
23
23
  import { Milestone } from "game/milestones/IMilestone";
24
- import type { EnumReferenceTypes, IReferenceTypeMap, Referenceable, Reference } from "game/reference/IReferenceManager";
24
+ import type { EnumReferenceTypes, IReferenceTypeMap, Reference, Referenceable } from "game/reference/IReferenceManager";
25
25
  import { ReferenceType } from "game/reference/IReferenceManager";
26
26
  import ReferenceTooltipHandler from "ui/screen/screens/game/ReferenceTooltipHandler";
27
27
  import type Tooltip from "ui/tooltip/Tooltip";
@@ -31,10 +31,11 @@ export default class ReferenceManager {
31
31
  static get(thing: Referenceable): Reference | undefined;
32
32
  static getReferenceType(thing: Value<IReferenceTypeMap>): ReferenceType;
33
33
  private referenceCursor;
34
+ private readonly referencesCache;
34
35
  constructor(game: Game);
35
36
  create(): number;
36
37
  reset(): void;
37
- getList(type: ReferenceType, gameIsland?: Island): import("../entity/creature/corpse/CorpseManager").default | import("../entity/creature/CreatureManager").default | import("../doodad/DoodadManager").default | import("../item/ItemManager").default | import("../entity/npc/NPCManager").default | import("../tile/TileEventManager").default | Player[] | import("game/entity/IHuman").EquipType[] | readonly Milestone[] | readonly SkillType[] | IterableIterator<Island> | readonly Stat[] | readonly ItemType[] | (string | ActionType)[];
38
+ getList(type: ReferenceType, gameIsland?: Island): import("../item/ItemManager").default | import("../entity/creature/corpse/CorpseManager").default | import("../entity/creature/CreatureManager").default | import("../doodad/DoodadManager").default | import("../entity/npc/NPCManager").default | import("../tile/TileEventManager").default | readonly SkillType[] | readonly ItemType[] | Player[] | readonly Milestone[] | import("game/entity/IHuman").EquipType[] | readonly Stat[] | IterableIterator<Island> | (string | ActionType)[];
38
39
  get(thing: Item): Reference<ReferenceType.Item> | undefined;
39
40
  get(thing: Doodad): Reference<ReferenceType.Doodad> | undefined;
40
41
  get(thing: Creature): Reference<ReferenceType.Creature> | undefined;
@@ -27,6 +27,7 @@ import { TerrainType } from "game/tile/ITerrain";
27
27
  import type TileEvent from "game/tile/TileEvent";
28
28
  import Translation from "language/Translation";
29
29
  import Message from "language/dictionary/Message";
30
+ import type { IRendererOrigin } from "renderer/context/RendererOrigin";
30
31
  import FieldOfView from "renderer/fieldOfView/FieldOfView";
31
32
  import type { IFieldOfViewOrigin } from "renderer/fieldOfView/IFieldOfView";
32
33
  import { CanASeeBType } from "renderer/fieldOfView/IFieldOfView";
@@ -283,10 +284,7 @@ export default class Tile implements IVector4, Partial<ITileContainer>, IFieldOf
283
284
  createPuddles(): void;
284
285
  addOrUpdateOverlay(overlay: IOverlayInfo): void;
285
286
  removeOverlay(overlay: IOverlayInfo): void;
286
- canSeeObject(type: CanASeeBType, object: IVector4 & {
287
- fromX: number;
288
- fromY: number;
289
- }, fieldOfView?: FieldOfView, customRadius?: number): boolean;
287
+ canSeeObject(type: CanASeeBType, object: IRendererOrigin, fieldOfView?: FieldOfView, customRadius?: number): boolean;
290
288
  canSeeTile(type: CanASeeBType, tile: Tile, fieldOfView?: FieldOfView, customRadius?: number): boolean;
291
289
  canSeePosition(type: CanASeeBType, islandId: IslandId, x: number, y: number, z: number, fieldOfView?: FieldOfView | undefined, customRadius?: number): boolean;
292
290
  messageIfVisible(callback: (manager: IMessageManager) => boolean): void;
@@ -109,18 +109,19 @@ declare enum Dictionary {
109
109
  Source = 97,
110
110
  Stat = 98,
111
111
  StatusEffect = 99,
112
- TeamMemberResponsibility = 100,
113
- TemperatureType = 101,
114
- Terrain = 102,
115
- TileEvent = 103,
116
- TooltipVisibilityOption = 104,
117
- Ui = 105,
118
- UiQuadrant = 106,
119
- UnableToJoinReason = 107,
120
- UnlockedRecipesStrategy = 108,
121
- UsableActionType = 109,
122
- Website = 110,
123
- WeightStatus = 111,
124
- WorldLayer = 112
112
+ SteamInputKeyboardPosition = 100,
113
+ TeamMemberResponsibility = 101,
114
+ TemperatureType = 102,
115
+ Terrain = 103,
116
+ TileEvent = 104,
117
+ TooltipVisibilityOption = 105,
118
+ Ui = 106,
119
+ UiQuadrant = 107,
120
+ UnableToJoinReason = 108,
121
+ UnlockedRecipesStrategy = 109,
122
+ UsableActionType = 110,
123
+ Website = 111,
124
+ WeightStatus = 112,
125
+ WorldLayer = 113
125
126
  }
126
127
  export default Dictionary;
@@ -68,7 +68,7 @@ import { ModProvide, ModType } from "mod/IModInfo";
68
68
  import { CanLoadState, ModLoadFailureReason } from "mod/IModManager";
69
69
  import { DisconnectReason, JoinServerRetryReason, UnableToJoinReason } from "multiplayer/IMultiplayer";
70
70
  import { SaveImportErrorReason, SaveSort } from "save/ISaveManager";
71
- import { MusicPlaylist, TooltipVisibilityOption } from "save/data/ISaveDataGlobal";
71
+ import { MusicPlaylist, SteamInputKeyboardPosition, TooltipVisibilityOption } from "save/data/ISaveDataGlobal";
72
72
  import { FontStyle } from "ui/IUi";
73
73
  import Bindable, { BindableType } from "ui/input/Bindable";
74
74
  import { SortType } from "ui/old/IOldUi";
@@ -191,19 +191,20 @@ declare const dictionaryMap: {
191
191
  97: typeof Source;
192
192
  98: typeof Stat;
193
193
  99: typeof StatusType;
194
- 100: typeof Responsibility;
195
- 101: typeof TempType;
196
- 102: typeof TerrainType;
197
- 103: typeof TileEventType;
198
- 104: typeof TooltipVisibilityOption;
199
- 105: typeof UiTranslation;
200
- 106: typeof Quadrant;
201
- 107: typeof UnableToJoinReason;
202
- 108: typeof UnlockedRecipesStrategy;
203
- 109: typeof UsableActionType;
204
- 110: typeof Website;
205
- 111: typeof WeightStatus;
206
- 112: typeof WorldZ;
194
+ 100: typeof SteamInputKeyboardPosition;
195
+ 101: typeof Responsibility;
196
+ 102: typeof TempType;
197
+ 103: typeof TerrainType;
198
+ 104: typeof TileEventType;
199
+ 105: typeof TooltipVisibilityOption;
200
+ 106: typeof UiTranslation;
201
+ 107: typeof Quadrant;
202
+ 108: typeof UnableToJoinReason;
203
+ 109: typeof UnlockedRecipesStrategy;
204
+ 110: typeof UsableActionType;
205
+ 111: typeof Website;
206
+ 112: typeof WeightStatus;
207
+ 113: typeof WorldZ;
207
208
  };
208
209
  export declare const strictDictionaries: {
209
210
  0: typeof ActionType;
@@ -306,19 +307,20 @@ export declare const strictDictionaries: {
306
307
  97: typeof Source;
307
308
  98: typeof Stat;
308
309
  99: typeof StatusType;
309
- 100: typeof Responsibility;
310
- 101: typeof TempType;
311
- 102: typeof TerrainType;
312
- 103: typeof TileEventType;
313
- 104: typeof TooltipVisibilityOption;
314
- 105: typeof UiTranslation;
315
- 106: typeof Quadrant;
316
- 107: typeof UnableToJoinReason;
317
- 108: typeof UnlockedRecipesStrategy;
318
- 109: typeof UsableActionType;
319
- 110: typeof Website;
320
- 111: typeof WeightStatus;
321
- 112: typeof WorldZ;
310
+ 100: typeof SteamInputKeyboardPosition;
311
+ 101: typeof Responsibility;
312
+ 102: typeof TempType;
313
+ 103: typeof TerrainType;
314
+ 104: typeof TileEventType;
315
+ 105: typeof TooltipVisibilityOption;
316
+ 106: typeof UiTranslation;
317
+ 107: typeof Quadrant;
318
+ 108: typeof UnableToJoinReason;
319
+ 109: typeof UnlockedRecipesStrategy;
320
+ 110: typeof UsableActionType;
321
+ 111: typeof Website;
322
+ 112: typeof WeightStatus;
323
+ 113: typeof WorldZ;
322
324
  };
323
325
  export type DictionaryEnum = (typeof dictionaryMap)[Dictionary];
324
326
  export type DictionaryEntryEnums = {
@@ -82,6 +82,10 @@ export declare enum MusicPlaylistTranslation {
82
82
  Name = 0,
83
83
  Tooltip = 1
84
84
  }
85
+ export declare enum SteamInputKeyboardPositionTranslation {
86
+ Name = 0,
87
+ Tooltip = 1
88
+ }
85
89
  export declare enum DifficultyTranslation {
86
90
  Name = 0,
87
91
  Description = 1