@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.
- package/LICENSE +20 -20
- package/README.md +27 -27
- package/definitions/game/game/IGame.d.ts +1 -1
- package/definitions/game/game/entity/EntityMovable.d.ts +9 -6
- package/definitions/game/game/entity/Human.d.ts +4 -4
- package/definitions/game/game/entity/IHuman.d.ts +6 -0
- package/definitions/game/game/entity/action/ActionsRegistration.d.ts +9 -9
- package/definitions/game/game/entity/action/actions/Dismount.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Drop.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Extinguish.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/InterruptResponse.d.ts +14 -0
- package/definitions/game/game/entity/action/actions/Paddle.d.ts +14 -0
- package/definitions/game/game/entity/action/actions/Rename.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Repair.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Rest.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Ride.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Sleep.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/ToggleVehicle.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/UpdateItemQuickSlot.d.ts +14 -0
- package/definitions/game/game/entity/action/actions/Upgrade.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/UseItem.d.ts +14 -0
- package/definitions/game/game/entity/action/actions/helper/GatherTreasure.d.ts +22 -0
- package/definitions/game/game/entity/action/usable/actions/UsableActionsMain.d.ts +1 -1
- package/definitions/game/game/entity/action/usable/actions/UsableActionsWorld.d.ts +1 -1
- package/definitions/game/game/entity/action/usable/actions/item/UsableActionsItemMove.d.ts +9 -2
- package/definitions/game/game/entity/creature/Pathing.d.ts +30 -0
- package/definitions/game/game/entity/npc/NPC.d.ts +1 -1
- package/definitions/game/game/entity/npc/npcs/IMerchant.d.ts +12 -0
- package/definitions/game/game/entity/npc/npcs/Shipper.d.ts +1 -1
- package/definitions/game/game/entity/player/quest/Requirements.d.ts +4 -4
- package/definitions/game/game/entity/player/quest/requirement/BuildRequirement.d.ts +1 -1
- package/definitions/game/game/entity/player/quest/requirement/CollectItemRequirement.d.ts +1 -1
- package/definitions/game/game/entity/player/quest/requirement/CraftRequirement.d.ts +1 -1
- package/definitions/game/game/entity/player/quest/requirement/DismantleRequirement.d.ts +1 -1
- package/definitions/game/game/inspection/infoProviders/creature/CreatureHealth.d.ts +17 -0
- package/definitions/game/game/inspection/infoProviders/creature/CreatureTamedInfo.d.ts +1 -1
- package/definitions/game/game/inspection/infoProviders/creature/Happiness.d.ts +22 -0
- package/definitions/game/game/inspection/infoProviders/item/ItemDetails.d.ts +1 -1
- package/definitions/game/game/inspection/infoProviders/item/ItemUses.d.ts +74 -74
- package/definitions/game/game/inspection/infoProviders/item/use/ItemDisassembleInfo.d.ts +1 -1
- package/definitions/game/game/inspection/infoProviders/shared/SharedLightSourceInfo.d.ts +1 -1
- package/definitions/game/game/inspection/infoProviders/stat/AttackInfo.d.ts +1 -1
- package/definitions/game/game/inspection/infoProviders/stat/FerocityInfo.d.ts +1 -1
- package/definitions/game/game/inspection/inspections/CorpseInspection.d.ts +1 -1
- package/definitions/game/game/item/IItem.d.ts +4 -0
- package/definitions/game/game/item/Item.d.ts +1 -2
- package/definitions/game/game/item/ItemManager.d.ts +8 -1
- package/definitions/game/game/magic/MagicalPropertyManager.d.ts +11 -0
- package/definitions/game/game/magic/MagicalPropertyType.d.ts +60 -0
- package/definitions/game/game/options/modifiers/milestone/MilestoneModifiersManager.d.ts +1 -1
- package/definitions/game/game/reference/IReferenceManager.d.ts +1 -1
- package/definitions/game/game/reference/ReferenceManager.d.ts +3 -2
- package/definitions/game/game/tile/Tile.d.ts +2 -4
- package/definitions/game/language/Dictionary.d.ts +14 -13
- package/definitions/game/language/DictionaryMap.d.ts +29 -27
- package/definitions/game/language/dictionary/Misc.d.ts +4 -0
- package/definitions/game/language/dictionary/UiTranslation.d.ts +604 -600
- package/definitions/game/language/english/player/BadTemperatureLevels.d.ts +13 -0
- package/definitions/game/language/english/player/ExhaustionLevels.d.ts +13 -0
- package/definitions/game/language/english/player/Slot.d.ts +13 -0
- package/definitions/game/language/english/ui/ChangelogSections.d.ts +13 -0
- package/definitions/game/language/english/ui/PowerModes.d.ts +13 -0
- package/definitions/game/language/english/ui/SteamInputKeyboardPosition.d.ts +13 -0
- package/definitions/game/multiplayer/IMultiplayer.d.ts +22 -23
- package/definitions/game/multiplayer/Multiplayer.d.ts +5 -0
- package/definitions/game/multiplayer/packets/client/DisplayInterruptPacket.d.ts +19 -0
- package/definitions/game/multiplayer/packets/client/EmitPlayerEventPacket.d.ts +20 -0
- package/definitions/game/multiplayer/packets/client/SetPlayerZPacket.d.ts +16 -0
- package/definitions/game/multiplayer/packets/server/KeepAlivePacket.d.ts +21 -0
- package/definitions/game/multiplayer/packets/server/LogsPacket.d.ts +19 -0
- package/definitions/game/multiplayer/packets/server/UiDataUpdatePacket.d.ts +18 -0
- package/definitions/game/multiplayer/packets/server/UpdateDialogInfoPacket.d.ts +20 -0
- package/definitions/game/multiplayer/packets/server/UpdateQuickSlotInfoPacket.d.ts +20 -0
- package/definitions/game/multiplayer/packets/shared/MarkAsExploredPacket.d.ts +18 -0
- package/definitions/game/multiplayer/packets/shared/UpdateMovementIntentPacket.d.ts +18 -0
- package/definitions/game/multiplayer/packets/shared/UpdateWalkPathPacket.d.ts +20 -0
- package/definitions/game/renderer/context/RendererOrigin.d.ts +2 -9
- package/definitions/game/renderer/particle/Particle.d.ts +41 -0
- package/definitions/game/renderer/spriteBatch/SpriteBatch.d.ts +13 -0
- package/definitions/game/save/data/ISaveDataGlobal.d.ts +6 -0
- package/definitions/game/ui/component/Article.d.ts +14 -0
- package/definitions/game/ui/component/Input.d.ts +6 -1
- package/definitions/game/ui/component/InputButton.d.ts +0 -1
- package/definitions/game/ui/input/BindableManager.d.ts +2 -2
- package/definitions/game/ui/input/IInput.d.ts +1 -1
- package/definitions/game/ui/old/functional/FunctionalTooltip.d.ts +11 -0
- package/definitions/game/ui/old/functional/IFunctionalTooltip.d.ts +37 -0
- package/definitions/game/ui/screen/screens/game/component/Item.d.ts +131 -0
- package/definitions/game/ui/screen/screens/game/component/ItemComponent.d.ts +1 -1
- package/definitions/game/ui/screen/screens/game/component/QuadrantComponent.d.ts +1 -1
- package/definitions/game/ui/screen/screens/game/dialog/EquipmentDialog.d.ts +1 -1
- package/definitions/game/ui/screen/screens/game/dialog/IslandsDialog.d.ts +65 -0
- package/definitions/game/ui/screen/screens/game/static/ActionBar.d.ts +7 -2
- package/definitions/game/ui/screen/screens/game/static/Quickslots.d.ts +20 -0
- package/definitions/game/ui/screen/screens/game/static/actions/ActionBarBindableManager.d.ts +5 -5
- package/definitions/game/ui/screen/screens/game/static/actions/IActionBar.d.ts +3 -1
- package/definitions/game/ui/screen/screens/game/static/stats/IStatDisplayDescription.d.ts +1 -1
- package/definitions/game/ui/screen/screens/game/static/stats/Reputation.d.ts +13 -0
- package/definitions/game/ui/screen/screens/menu/menus/HelpArticle.d.ts +16 -0
- package/definitions/game/ui/screen/screens/menu/menus/newgame/customgameoptions/TabInventory.d.ts +15 -0
- package/definitions/game/ui/screen/screens/menu/menus/newgame/customgameoptions/TabIsland.d.ts +15 -0
- package/definitions/game/ui/screen/screens/menu/menus/options/BindingsMenu.d.ts +23 -0
- package/definitions/game/ui/screen/screens/menu/menus/pause/ModesMenu.d.ts +22 -0
- package/definitions/game/utilities/collection/Arrays.d.ts +1 -0
- package/definitions/game/utilities/game/TileHelpers.d.ts +123 -0
- package/definitions/game/utilities/game/TilePosition.d.ts +12 -0
- package/definitions/game/utilities/math/IVector.d.ts +2 -1
- package/definitions/game/utilities/math/Math2.d.ts +6 -0
- package/definitions/game/utilities/random/generators/RandomItem.d.ts +26 -0
- package/definitions/game/utilities/random/generators/RandomRange.d.ts +26 -0
- package/definitions/hosts/shared/globals.d.ts +1 -1
- package/definitions/language-sync/language.d.ts +11 -0
- package/definitions/test/util/mochaNUnitReporter.d.ts +38 -0
- package/package.json +24 -24
- package/tsconfig.json +7 -7
- package/tsconfig.mod.base.json +45 -44
- /package/definitions/game/game/entity/action/actions/{PickUp.d.ts → Pickup.d.ts} +0 -0
- /package/definitions/game/game/entity/action/actions/{PickUpAllItems.d.ts → PickupAllItems.d.ts} +0 -0
- /package/definitions/game/game/entity/action/actions/{PickUpExcrement.d.ts → PickupExcrement.d.ts} +0 -0
- /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,
|
|
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("../
|
|
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:
|
|
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
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
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
|
|
195
|
-
101: typeof
|
|
196
|
-
102: typeof
|
|
197
|
-
103: typeof
|
|
198
|
-
104: typeof
|
|
199
|
-
105: typeof
|
|
200
|
-
106: typeof
|
|
201
|
-
107: typeof
|
|
202
|
-
108: typeof
|
|
203
|
-
109: typeof
|
|
204
|
-
110: typeof
|
|
205
|
-
111: typeof
|
|
206
|
-
112: typeof
|
|
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
|
|
310
|
-
101: typeof
|
|
311
|
-
102: typeof
|
|
312
|
-
103: typeof
|
|
313
|
-
104: typeof
|
|
314
|
-
105: typeof
|
|
315
|
-
106: typeof
|
|
316
|
-
107: typeof
|
|
317
|
-
108: typeof
|
|
318
|
-
109: typeof
|
|
319
|
-
110: typeof
|
|
320
|
-
111: typeof
|
|
321
|
-
112: typeof
|
|
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 = {
|