@wayward/types 2.14.1-beta.dev.20241217.2 → 2.14.2-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/definitions/game/game/doodad/Doodad.d.ts +1 -0
- package/definitions/game/game/entity/Entity.d.ts +6 -3
- package/definitions/game/game/entity/EntityMovable.d.ts +2 -1
- package/definitions/game/game/entity/action/IAction.d.ts +4 -0
- package/definitions/game/game/entity/action/usable/UsableAction.d.ts +0 -1
- package/definitions/game/game/entity/creature/Creature.d.ts +1 -0
- package/definitions/game/game/entity/creature/corpse/Corpse.d.ts +1 -0
- package/definitions/game/game/entity/npc/NPC.d.ts +2 -1
- package/definitions/game/game/entity/player/Player.d.ts +1 -0
- package/definitions/game/game/inspection/InfoProvider.d.ts +1 -0
- package/definitions/game/game/inspection/InspectionsHandler.d.ts +1 -1
- package/definitions/game/game/item/Item.d.ts +5 -1
- package/definitions/game/game/item/ItemManager.d.ts +2 -0
- package/definitions/game/game/tile/Tile.d.ts +2 -0
- package/definitions/game/game/tile/TileEvent.d.ts +1 -0
- package/definitions/game/language/dictionary/UiTranslation.d.ts +60 -60
- package/definitions/game/ui/input/Bind.d.ts +3 -1
- package/definitions/game/ui/screen/screens/GameScreen.d.ts +2 -0
- package/definitions/game/ui/screen/screens/game/component/InspectionsList.d.ts +4 -2
- package/definitions/game/ui/screen/screens/game/component/ItemComponent.d.ts +1 -1
- package/definitions/game/ui/screen/screens/game/component/container/ContainerBucketItemList.d.ts +5 -1
- package/definitions/game/ui/screen/screens/game/dialog/EquipmentDialog.d.ts +1 -1
- package/definitions/game/ui/screen/screens/game/static/actions/ActionBarBindableManager.d.ts +0 -4
- package/definitions/game/ui/screen/screens/game/static/actions/ActionBarDefaultSlots.d.ts +14 -0
- package/definitions/game/ui/screen/screens/game/static/actions/ActionSlotConfigurationColumn.d.ts +0 -1
- package/definitions/game/ui/screen/screens/menu/menus/main/component/IWebsite.d.ts +2 -1
- package/definitions/game/ui/util/HighlightManager.d.ts +1 -1
- package/definitions/game/ui/util/IHighlight.d.ts +1 -1
- package/definitions/game/utilities/dev/Debug.d.ts +15 -0
- package/definitions/hosts/shared/globals.d.ts +2 -2
- package/definitions/utilities/console/ConsoleUtility.d.ts +20 -0
- package/definitions/utilities/promise/PromiseSequence.d.ts +20 -0
- package/package.json +1 -1
- /package/definitions/utilities/{Encoding.d.ts → RunLengthEncoding.d.ts} +0 -0
|
@@ -133,6 +133,7 @@ export default class Doodad extends EntityMovable<IDoodadDescription, DoodadType
|
|
|
133
133
|
private _isWell?;
|
|
134
134
|
private readonly _doodadGroupCache;
|
|
135
135
|
constructor(entityOptions?: IEntityConstructorOptions<DoodadType>, options?: IDoodadOptions);
|
|
136
|
+
protected get typeEnum(): typeof DoodadType;
|
|
136
137
|
get asCorpse(): undefined;
|
|
137
138
|
get asCreature(): undefined;
|
|
138
139
|
get asDoodad(): Doodad | undefined;
|
|
@@ -31,7 +31,7 @@ import type { EntityReferenceTypes, IReferenceable, Reference } from "@wayward/g
|
|
|
31
31
|
import type { ITemperatureSource } from "@wayward/game/game/temperature/ITemperature";
|
|
32
32
|
import type Tile from "@wayward/game/game/tile/Tile";
|
|
33
33
|
import type TileEvent from "@wayward/game/game/tile/TileEvent";
|
|
34
|
-
import type
|
|
34
|
+
import { type ISerializedTranslation } from "@wayward/game/language/ITranslation";
|
|
35
35
|
import type Translation from "@wayward/game/language/Translation";
|
|
36
36
|
import type { RenderSource, UpdateRenderFlag } from "@wayward/game/renderer/IRenderer";
|
|
37
37
|
import type { INotificationLocation, ItemNotifierType, MarkerIconType, StatNotificationType } from "@wayward/game/renderer/notifier/INotifier";
|
|
@@ -75,11 +75,14 @@ export default abstract class Entity<DescriptionType = unknown, TypeType extends
|
|
|
75
75
|
* Get the entities description
|
|
76
76
|
*/
|
|
77
77
|
get description(): Readonly<DescriptionType> | undefined;
|
|
78
|
+
protected abstract get typeEnum(): PartialRecord<string | TypeType, TypeType | string>;
|
|
78
79
|
/**
|
|
79
80
|
* Adds a referenceId to the entity if it doesn't already have one
|
|
80
81
|
*/
|
|
81
82
|
addReferenceId(): void;
|
|
82
83
|
abstract getName(): Translation;
|
|
84
|
+
/** @deprecated Console helper */
|
|
85
|
+
protected get debug(): any;
|
|
83
86
|
/**
|
|
84
87
|
* Called when filling out the entities description for the first time
|
|
85
88
|
*/
|
|
@@ -96,8 +99,8 @@ export default abstract class Entity<DescriptionType = unknown, TypeType extends
|
|
|
96
99
|
*/
|
|
97
100
|
get tile(): Tile | undefined;
|
|
98
101
|
get tilesAround(): Tile[] | undefined;
|
|
99
|
-
protected setCachedTile(tile: Tile): void;
|
|
100
|
-
clearTileCache():
|
|
102
|
+
protected setCachedTile(tile: Tile | undefined): void;
|
|
103
|
+
clearTileCache(): Tile | undefined;
|
|
101
104
|
isNearby(entity: Entity | Tile, includeCurrentTile?: boolean): boolean;
|
|
102
105
|
/**
|
|
103
106
|
* Updates the world renderer & flow field state for the tile
|
|
@@ -22,7 +22,7 @@ import { FieldOfView } from "@wayward/game/renderer/fieldOfView/FieldOfView";
|
|
|
22
22
|
import type { CanASeeBType } from "@wayward/game/renderer/fieldOfView/IFieldOfView";
|
|
23
23
|
import type { INotificationLocation } from "@wayward/game/renderer/notifier/INotifier";
|
|
24
24
|
import type { Direction } from "@wayward/game/utilities/math/Direction";
|
|
25
|
-
import type { IVector2 } from "@wayward/game/utilities/math/IVector";
|
|
25
|
+
import type { IVector2, IVector3 } from "@wayward/game/utilities/math/IVector";
|
|
26
26
|
import Vector2 from "@wayward/game/utilities/math/Vector2";
|
|
27
27
|
import type { IEventEmitter } from "@wayward/utilities/event/EventEmitter";
|
|
28
28
|
export interface IEntityMovableEvents extends IEntityEvents {
|
|
@@ -107,6 +107,7 @@ export default abstract class EntityMovable<DescriptionType = unknown, TypeType
|
|
|
107
107
|
canSeeTile(type: CanASeeBType, tile: Tile, fieldOfView?: FieldOfView, customRadius?: number): boolean;
|
|
108
108
|
canSeePosition(type: CanASeeBType, islandId: IslandId, x: number, y: number, z: number, fieldOfView?: FieldOfView | undefined, customRadius?: number): boolean;
|
|
109
109
|
queueSoundEffectInFront(type: SfxType, delay?: number, speed?: number): void;
|
|
110
|
+
runWhileFacing<T>(lambda: () => T, position: IVector3, direction?: Direction.Cardinal): T;
|
|
110
111
|
getMovementDelay(): number;
|
|
111
112
|
/**
|
|
112
113
|
* Move the entity to the tile
|
|
@@ -208,8 +208,11 @@ export declare enum ActionFlag {
|
|
|
208
208
|
* Used for hiding actions that can't currently be used from context menus.
|
|
209
209
|
*/
|
|
210
210
|
export declare enum ActionDisplayLevel {
|
|
211
|
+
/** This action is always displayed, whether usable or not. */
|
|
211
212
|
Always = 0,
|
|
213
|
+
/** When the action can't be used, it is not displayed, *unless* you are right clicking on an item that has the action. */
|
|
212
214
|
Direct = 1,
|
|
215
|
+
/** When the action can't be used, it is not displayed. */
|
|
213
216
|
Never = 2
|
|
214
217
|
}
|
|
215
218
|
export interface IActionUsable {
|
|
@@ -229,6 +232,7 @@ export interface IActionNotUsable {
|
|
|
229
232
|
mobCheckTile?: Tile;
|
|
230
233
|
message?: Message | INotUsableMessage;
|
|
231
234
|
sources?: ArrayOr<Source>;
|
|
235
|
+
/** Whether the action should display or not in context menus due to this error. */
|
|
232
236
|
errorDisplayLevel?: ActionDisplayLevel;
|
|
233
237
|
args?: never;
|
|
234
238
|
arg?: never;
|
|
@@ -27,7 +27,6 @@ import Message from "@wayward/game/language/dictionary/Message";
|
|
|
27
27
|
import type { HighlightSelector } from "@wayward/game/ui/util/IHighlight";
|
|
28
28
|
import Observer from "@wayward/game/utilities/Observer";
|
|
29
29
|
import EventEmitter from "@wayward/utilities/event/EventEmitter";
|
|
30
|
-
export declare const USABLE_ACTION_USE_ON_MOVE_UNLOCK_AT = 20;
|
|
31
30
|
export interface IUsableActionEvents {
|
|
32
31
|
preExecute(player: Player, using: IUsableActionPossibleUsing, context: IUsableActionExecutionContext): any;
|
|
33
32
|
postExecute(player: Player, using: IUsableActionPossibleUsing, context: IUsableActionExecutionContext): any;
|
|
@@ -83,6 +83,7 @@ export default class Creature extends EntityWithStats<ICreatureDescription, Crea
|
|
|
83
83
|
* - `creature.getName(undefined, 3)` // "acid spitter demons"
|
|
84
84
|
*/
|
|
85
85
|
getName(article?: Article, count?: number): Translation;
|
|
86
|
+
protected get typeEnum(): typeof CreatureType;
|
|
86
87
|
protected getDescription(): ICreatureDescription | undefined;
|
|
87
88
|
get isHostile(): boolean;
|
|
88
89
|
get canAlert(): boolean;
|
|
@@ -90,6 +90,7 @@ export default class Corpse extends Entity<ICorpseDescription, CreatureType, Ref
|
|
|
90
90
|
* - `corpse.getName(undefined, 3)` // "acid spitter demons"
|
|
91
91
|
*/
|
|
92
92
|
getName(article?: Article, count?: number): Translation;
|
|
93
|
+
protected get typeEnum(): typeof CreatureType;
|
|
93
94
|
protected getDescription(): ICorpseDescription | undefined;
|
|
94
95
|
creatureDescription(): ICreatureDescription | undefined;
|
|
95
96
|
get isValid(): boolean;
|
|
@@ -21,7 +21,7 @@ import { AiType, ChangeAiType } from "@wayward/game/game/entity/ai/AI";
|
|
|
21
21
|
import type { IEntityAiEvents } from "@wayward/game/game/entity/ai/AiManager";
|
|
22
22
|
import AiManager from "@wayward/game/game/entity/ai/AiManager";
|
|
23
23
|
import type { INPCDescription } from "@wayward/game/game/entity/npc/INPC";
|
|
24
|
-
import
|
|
24
|
+
import { NPCType } from "@wayward/game/game/entity/npc/INPCs";
|
|
25
25
|
import type MerchantNPC from "@wayward/game/game/entity/npc/npcs/Merchant";
|
|
26
26
|
import type ShipperNPC from "@wayward/game/game/entity/npc/npcs/Shipper";
|
|
27
27
|
import { MessageManagerNoOp } from "@wayward/game/game/entity/player/MessageManager";
|
|
@@ -66,6 +66,7 @@ export default abstract class NPC extends Human<INPCDescription, NPCType, Refere
|
|
|
66
66
|
static getRegistrarId(): number;
|
|
67
67
|
static setRegistrarId(id: number): void;
|
|
68
68
|
constructor(entityOptions?: IEntityConstructorOptions<NPCType>);
|
|
69
|
+
protected get typeEnum(): typeof NPCType;
|
|
69
70
|
getDescription(): INPCDescription | undefined;
|
|
70
71
|
getWeightCapacity(): number;
|
|
71
72
|
getRegistrarId(): number;
|
|
@@ -63,6 +63,7 @@ export default class Player extends Human<undefined, number, ReferenceType.Playe
|
|
|
63
63
|
delete(): void;
|
|
64
64
|
get isValid(): boolean;
|
|
65
65
|
get clientStore(): IClientStore;
|
|
66
|
+
protected get typeEnum(): {};
|
|
66
67
|
getDescription(): undefined;
|
|
67
68
|
createNoteManager(): NoteManager;
|
|
68
69
|
createMessageManager(): MessageManager;
|
|
@@ -93,6 +93,7 @@ export declare abstract class InfoProvider extends EventEmitter.Host<IInfoProvid
|
|
|
93
93
|
protected component?: Component;
|
|
94
94
|
protected context?: InfoProviderContext;
|
|
95
95
|
private componentClass?;
|
|
96
|
+
private listeningForRequestRemove?;
|
|
96
97
|
abstract get(context: InfoProviderContext): ArrayOr<TranslationGenerator | InfoProvider>;
|
|
97
98
|
abstract getClass(context: InfoProviderContext): string[];
|
|
98
99
|
getDefaultDisplayLevel(_context: InfoProviderContext): InfoDisplayLevel | Set<InfoDisplayLevel>;
|
|
@@ -32,7 +32,7 @@ export default abstract class InspectionsHandler extends EventEmitter.Host<IInsp
|
|
|
32
32
|
all(): IteratorObject<[InspectType, HashSet<Inspection<any>>]>;
|
|
33
33
|
getInspectTypes(): InspectType[];
|
|
34
34
|
register(): void;
|
|
35
|
-
deregister(): void;
|
|
35
|
+
deregister(isBeingRemoved?: boolean): void;
|
|
36
36
|
protected getInspections?(inspectType: InspectType): HashSet<Inspection<any>>;
|
|
37
37
|
protected createInspectionSet(...values: Array<IterableOr<Inspection<any> | undefined>>): HashSet<Inspection<any>>;
|
|
38
38
|
protected updateInspections(...inspectTypes: InspectType[]): void;
|
|
@@ -29,7 +29,8 @@ import type Corpse from "@wayward/game/game/entity/creature/corpse/Corpse";
|
|
|
29
29
|
import type NPC from "@wayward/game/game/entity/npc/NPC";
|
|
30
30
|
import type Player from "@wayward/game/game/entity/player/Player";
|
|
31
31
|
import type { IMobCheck, IslandId } from "@wayward/game/game/island/IIsland";
|
|
32
|
-
import type { ContainerReference, DisplayableItemType, IConstructedInfo, IContainable, IContainer, IItemChangeIntoOptions, IItemDescription, IItemDisassembleResult, IItemDisassembly, IItemGetNameOptions, IItemUsed, IItemVehicle, IMagicalPropertyInfo, IItemMovementResult as IMoveToTileMobCheckResult, IMoveToTileOptions, ItemTag
|
|
32
|
+
import type { ContainerReference, DisplayableItemType, IConstructedInfo, IContainable, IContainer, IItemChangeIntoOptions, IItemDescription, IItemDisassembleResult, IItemDisassembly, IItemGetNameOptions, IItemUsed, IItemVehicle, IMagicalPropertyInfo, IItemMovementResult as IMoveToTileMobCheckResult, IMoveToTileOptions, ItemTag } from "@wayward/game/game/item/IItem";
|
|
33
|
+
import { ItemTypeExtra } from "@wayward/game/game/item/IItem";
|
|
33
34
|
import { BookType, ContainerSort, ItemDamageResult, ItemType, ItemTypeGroup, ItemWeightChange, SYMBOL_CONTAINER_CACHED_REFERENCE } from "@wayward/game/game/item/IItem";
|
|
34
35
|
import type { IPlaceOnTileOptions } from "@wayward/game/game/item/IItemManager";
|
|
35
36
|
import ItemMapManager from "@wayward/game/game/item/ItemMapManager";
|
|
@@ -198,6 +199,9 @@ export default class Item extends EntityMovable<IItemDescription, ItemType, Refe
|
|
|
198
199
|
* - `item.getName(undefined, 3)` // "stone axes"
|
|
199
200
|
*/
|
|
200
201
|
getName(article?: Article, options?: Partial<IItemGetNameOptions>): TranslationImpl;
|
|
202
|
+
protected get debug(): any;
|
|
203
|
+
private getDebug;
|
|
204
|
+
protected get typeEnum(): typeof ItemType;
|
|
201
205
|
protected getDescription(): IItemDescription | undefined;
|
|
202
206
|
get isTransient(): boolean;
|
|
203
207
|
get isValid(): boolean;
|
|
@@ -69,6 +69,8 @@ export interface IItemManagerEvents extends Events<EntityManager<Item>> {
|
|
|
69
69
|
containerUpdateOrder(container: IContainer): any;
|
|
70
70
|
containerStack(container: IContainer, type: ItemType): any;
|
|
71
71
|
containerUnstack(container: IContainer, type: ItemType): any;
|
|
72
|
+
/** Called at the end of inserting new items into a container, specifically when sorting the container was not necessary. */
|
|
73
|
+
containerItemAddDidNotSort(container: IContainer): any;
|
|
72
74
|
/**
|
|
73
75
|
* Called when an item is crafted
|
|
74
76
|
* @param human The human object
|
|
@@ -113,6 +113,8 @@ export default class Tile implements IVector4, Partial<ITileContainer>, IFieldOf
|
|
|
113
113
|
constructor(island: Island, x: number, y: number, z: number, id: number, rendererData: number, quality: Quality, isFake?: true);
|
|
114
114
|
get point(): IVector3;
|
|
115
115
|
get description(): ITerrainDescription | undefined;
|
|
116
|
+
/** @deprecated Console helper */
|
|
117
|
+
protected get debug(): any;
|
|
116
118
|
toString(): string;
|
|
117
119
|
getName(layerIndex?: number, article?: Article, options?: ITileGetNameOptions): Translation;
|
|
118
120
|
get type(): TerrainType;
|
|
@@ -88,6 +88,7 @@ export default class TileEvent extends EntityMovable<ITileEventDescription, Tile
|
|
|
88
88
|
get point(): IVector3;
|
|
89
89
|
get tile(): Tile;
|
|
90
90
|
toString(): string;
|
|
91
|
+
protected get typeEnum(): typeof TileEventType;
|
|
91
92
|
protected getDescription(): ITileEventDescription | undefined;
|
|
92
93
|
getName(article?: Article, count?: number): TranslationImpl;
|
|
93
94
|
getProducedTemperature(): number | undefined;
|
|
@@ -314,66 +314,66 @@ declare enum UiTranslation {
|
|
|
314
314
|
GameActionBarConfigurationDrawerButtonUseOnMoveDescription = 299,
|
|
315
315
|
GameActionBarConfigurationDrawerButtonUseOnHoveredTile = 300,
|
|
316
316
|
GameActionBarConfigurationDrawerButtonUseOnHoveredTileDescription = 301,
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
317
|
+
GameActionBarConfigurationDrawerModeUseExact = 302,
|
|
318
|
+
GameActionBarConfigurationDrawerModeUseExactNoItemSelected = 303,
|
|
319
|
+
GameActionBarConfigurationDrawerModeUseBest = 304,
|
|
320
|
+
GameActionBarConfigurationDrawerModeUseNone = 305,
|
|
321
|
+
GameActionBarConfigurationDrawerModeUseHovered = 306,
|
|
322
|
+
GameActionBarConfigurationDrawerItemDropdownAny = 307,
|
|
323
|
+
GameActionBarConfigurationDrawerItemDropdownNoTypeSelected = 308,
|
|
324
|
+
GameActionBarConfigurationDrawerButtonDone = 309,
|
|
325
|
+
GameActionBarConfigurationDrawerButtonCraftType = 310,
|
|
326
|
+
GameActionBarSlotTooltipHintUse = 311,
|
|
327
|
+
GameActionBarSlotTooltipHintConfigure = 312,
|
|
328
|
+
GameActionBarSlotTooltipHintUseOnMove = 313,
|
|
329
|
+
GameActionBarSlotTooltipHintUseSlottedItem = 314,
|
|
330
|
+
GameActionBarSlotTooltipHintClear = 315,
|
|
331
|
+
GameActionBarButtonToggleUseWhenMovingTooltip = 316,
|
|
332
|
+
GameActionBarButtonRemoveActionBarRowTooltip = 317,
|
|
333
|
+
GameActionBarButtonAddActionBarRowTooltip = 318,
|
|
334
|
+
GameActionBarButtonConfigureOptions = 319,
|
|
335
|
+
GameMessagesButtonSend = 320,
|
|
336
|
+
GameMessagesContextMenuShowAsDialog = 321,
|
|
337
|
+
GameMessagesContextMenuClear = 322,
|
|
338
|
+
GameMessagesContextMenuCopy = 323,
|
|
339
|
+
GameMessagesContextMenuExport = 324,
|
|
340
|
+
GameMessagesFilter = 325,
|
|
341
|
+
GameMessagesFiltersEdit = 326,
|
|
342
|
+
GameMessagesNewNote = 327,
|
|
343
|
+
GameMessagesTurn = 328,
|
|
344
|
+
GameMessagesDedicatedServerBackup = 329,
|
|
345
|
+
GameMessagesDedicatedServerBackupLimitReached = 330,
|
|
346
|
+
GameMessagesPlaceholderChat = 331,
|
|
347
|
+
GameMessagesButtonShowNewest = 332,
|
|
348
|
+
GameTileInspectionCannotSeeTile = 333,
|
|
349
|
+
MenuAboutTitle = 334,
|
|
350
|
+
MenuAboutDescription = 335,
|
|
351
|
+
MenuAboutGameDescription = 336,
|
|
352
|
+
MenuAboutSectionTeam = 337,
|
|
353
|
+
MenuAboutTeamMemberName = 338,
|
|
354
|
+
MenuAboutTeamMemberNickname = 339,
|
|
355
|
+
MenuAboutSectionContributors = 340,
|
|
356
|
+
MenuAboutSectionSpecialThanks = 341,
|
|
357
|
+
MenuAboutTextSpecialThanksTestorsAndDonators = 342,
|
|
358
|
+
MenuAboutSectionLibraries = 343,
|
|
359
|
+
MenuAboutSectionLibrariesDescription = 344,
|
|
360
|
+
MenuAboutLabelVersion = 345,
|
|
361
|
+
MenuAboutLabelVersionBuild = 346,
|
|
362
|
+
MenuAboutLabelVersionBuildTime = 347,
|
|
363
|
+
MenuBindings = 348,
|
|
364
|
+
MenuBindingsDescription = 349,
|
|
365
|
+
MenuBindingsTooltipBindConflicts = 350,
|
|
366
|
+
MenuBindingsManagedBindableGameActionBarUseSlot = 351,
|
|
367
|
+
MenuBindingsManagedBindableGameActionBarAssignSlot = 352,
|
|
368
|
+
MenuBindingsManagedBindableGameActionBarToggleUseOnMoveSlot = 353,
|
|
369
|
+
MenuChangelogTitle = 354,
|
|
370
|
+
MenuChangelogDescription = 355,
|
|
371
|
+
MenuChangelogHeadingUnchartedWaters = 356,
|
|
372
|
+
MenuChangelogFailedToLoadTitle = 357,
|
|
373
|
+
MenuChangelogFailedToLoadDescription = 358,
|
|
374
|
+
MenuChangelogHeadingChangeCount = 359,
|
|
375
|
+
MenuChangelogButtonCopyChangelog = 360,
|
|
376
|
+
MenuChangelogButtonCopyAltChangelog = 361,
|
|
377
377
|
MenuCharacterCreationButtonRandomizeName = 362,
|
|
378
378
|
MenuCharacterCreationButtonExportTooltip = 363,
|
|
379
379
|
MenuCharacterCreationButtonImportTooltip = 364,
|
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
*/
|
|
11
11
|
import Bindable from "@wayward/game/ui/input/Bindable";
|
|
12
12
|
import { IInput } from "@wayward/game/ui/input/IInput";
|
|
13
|
-
import type { GlobalInputInfo, GlobalMouseInfo
|
|
13
|
+
import type { GlobalInputInfo, GlobalMouseInfo } from "@wayward/game/ui/input/InputManager";
|
|
14
|
+
import { InputInfo } from "@wayward/game/ui/input/InputManager";
|
|
14
15
|
import type { Macro } from "@wayward/game/ui/input/Macros";
|
|
15
16
|
import type { TypedPropertyDescriptorFunctionAnyNOfParams } from "@wayward/utilities/event/EventManager";
|
|
16
17
|
export interface IBindHandlerApi {
|
|
@@ -156,6 +157,7 @@ declare namespace Bind {
|
|
|
156
157
|
function deregisterHandlers(host: any): void;
|
|
157
158
|
const shouldLogHoldingEvent = false;
|
|
158
159
|
function emitEvent(event: BindingEventName, input: IInput, info: InputInfo, mouse: GlobalMouseInfo, globalInput: GlobalInputInfo): Set<Bindable>;
|
|
160
|
+
function handleMaybeNothingPressed(input: GlobalInputInfo, mouse: GlobalMouseInfo): void;
|
|
159
161
|
namespace Modifiers {
|
|
160
162
|
/**
|
|
161
163
|
* Registers a handler for when the modifiers of the given `Bindable` are pressed. This event won't be fired again until the modifiers of the `Bindable` are then *released*.
|
|
@@ -153,6 +153,8 @@ export default class GameScreen extends Screen {
|
|
|
153
153
|
protected onRespawn(): void;
|
|
154
154
|
protected onEntityMoved(object: EntityMovable, lastTile: Tile, tile: Tile): void;
|
|
155
155
|
protected onAscendDescend(api: IBindHandlerApi): boolean;
|
|
156
|
+
protected onPickUpItem(api: IBindHandlerApi): boolean;
|
|
157
|
+
protected onPickUpAllItems(api: IBindHandlerApi): boolean;
|
|
156
158
|
protected onZoom(api: IBindHandlerApi): boolean;
|
|
157
159
|
protected onInspect(api: IBindHandlerApi): boolean;
|
|
158
160
|
protected onScreenshotMode(): boolean;
|
|
@@ -18,7 +18,7 @@ import Component from "@wayward/game/ui/component/Component";
|
|
|
18
18
|
import type { TranslationGenerator } from "@wayward/game/ui/component/IComponent";
|
|
19
19
|
import type HashSet from "@wayward/utilities/collection/set/HashSet";
|
|
20
20
|
import type { Events, IEventEmitter } from "@wayward/utilities/event/EventEmitter";
|
|
21
|
-
import
|
|
21
|
+
import { PromiseSequence } from "@wayward/utilities/promise/PromiseSequence";
|
|
22
22
|
export interface ITileInspectionsEvents extends Events<Component> {
|
|
23
23
|
refreshed(isValid?: boolean): any;
|
|
24
24
|
updateInspectTypeFilter(): any;
|
|
@@ -30,8 +30,9 @@ export default abstract class InspectionsList<INSPECTIONS_HANDLER extends Inspec
|
|
|
30
30
|
event: IEventEmitter<this, ITileInspectionsEvents>;
|
|
31
31
|
private readonly paragraphInspectionsInvalid;
|
|
32
32
|
private inspectTypeFilter;
|
|
33
|
+
private _removed?;
|
|
33
34
|
protected inspectionsHandler?: InspectionsHandler;
|
|
34
|
-
protected
|
|
35
|
+
protected refreshPromiseSequence: PromiseSequence;
|
|
35
36
|
protected inspectionsHandlerUpdatedInspectionsCallback?: (_: any, inspectType: InspectType, inspections: HashSet<Inspection<any>>, oldInspections: HashSet<Inspection<any>> | undefined) => void;
|
|
36
37
|
private displayLevel;
|
|
37
38
|
private readonly inspectTypeWrappers;
|
|
@@ -50,5 +51,6 @@ export default abstract class InspectionsList<INSPECTIONS_HANDLER extends Inspec
|
|
|
50
51
|
protected getInvalidTranslation?(): TranslationGenerator | undefined;
|
|
51
52
|
private deregisterInspectionsHandler;
|
|
52
53
|
private refreshInspectionsOfType;
|
|
54
|
+
private _refreshInspectionsOfType;
|
|
53
55
|
private initializeTooltipSection;
|
|
54
56
|
}
|
|
@@ -241,7 +241,7 @@ export default class ItemComponent extends Component implements ItemSlot {
|
|
|
241
241
|
get actionSlots(): ReadonlySet<number> | undefined;
|
|
242
242
|
private _equipSlot;
|
|
243
243
|
get equipSlot(): EquipType;
|
|
244
|
-
refresh(refreshType: ItemRefreshType): this;
|
|
244
|
+
refresh(refreshType: ItemRefreshType, skipPlayingCheck?: boolean): this;
|
|
245
245
|
clone(): this | undefined;
|
|
246
246
|
setItemMenu(initialiser?: (contextMenu: ContextMenu<ActionId>) => any): this;
|
|
247
247
|
private registeredItemHighlights;
|
package/definitions/game/ui/screen/screens/game/component/container/ContainerBucketItemList.d.ts
CHANGED
|
@@ -82,7 +82,9 @@ export default class ContainerBucketItemList extends Component implements ISorta
|
|
|
82
82
|
get container(): IContainer | undefined;
|
|
83
83
|
isStacked(type?: ItemType): boolean;
|
|
84
84
|
isStacked(item?: Item): boolean;
|
|
85
|
-
|
|
85
|
+
isFirstVisiblyStacked(item?: Item, excluding?: Item): boolean;
|
|
86
|
+
getStackedItemsThatAreVisible(type?: ItemType, excluding?: Item): Item[];
|
|
87
|
+
getStackedItems(type?: ItemType, excluding?: Item): Item[];
|
|
86
88
|
getStackIndex(type?: ItemType): number | undefined;
|
|
87
89
|
constructor(container?: IContainer);
|
|
88
90
|
private readonly activeReasons;
|
|
@@ -132,8 +134,10 @@ export default class ContainerBucketItemList extends Component implements ISorta
|
|
|
132
134
|
protected onContainerOrderUpdate(manager: ItemManager, container: IContainer): void;
|
|
133
135
|
protected onItemToggleProtected(item: Item): void;
|
|
134
136
|
private getAppendStrategy;
|
|
137
|
+
private addItemAddedStacks?;
|
|
135
138
|
protected onAddItem(manager: ItemManager, items: Item[], container: IContainer, index: number, options?: IMoveItemOptions): Promise<void>;
|
|
136
139
|
protected onRemoveItem(manager: ItemManager, items: Item[], container?: IContainer, containerTile?: Tile): void;
|
|
140
|
+
protected onAddItemDidNotSort(manager: ItemManager, container: IContainer): void;
|
|
137
141
|
protected onTransformItem(item: Item, newType: ItemType, oldType: ItemType): void;
|
|
138
142
|
protected onStack(manager: ItemManager, container: IContainer, type: ItemType): void;
|
|
139
143
|
protected onUnstack(manager: ItemManager, container: IContainer, type: ItemType): void;
|
|
@@ -45,7 +45,7 @@ export declare class EquipmentSlot extends ItemComponent {
|
|
|
45
45
|
private overriddenItem?;
|
|
46
46
|
equipItem(item: Item): Promise<void>;
|
|
47
47
|
clear(): void;
|
|
48
|
-
refresh(refreshType: ItemRefreshType): this;
|
|
48
|
+
refresh(refreshType: ItemRefreshType, skipPlayingCheck?: boolean): this;
|
|
49
49
|
protected onEquipEvent(): void;
|
|
50
50
|
protected onPickUp(api: IItemPickUpApi): void;
|
|
51
51
|
protected onDropInto(api: IItemDropApi, fromSlot?: ItemSlot): boolean;
|
package/definitions/game/ui/screen/screens/game/static/actions/ActionBarBindableManager.d.ts
CHANGED
|
@@ -10,10 +10,6 @@
|
|
|
10
10
|
*/
|
|
11
11
|
import BindableManager from "@wayward/game/ui/input/BindableManager";
|
|
12
12
|
export default class ActionBarBindableManager extends BindableManager {
|
|
13
|
-
/**
|
|
14
|
-
* Default to 1 full action bar
|
|
15
|
-
*/
|
|
16
|
-
static readonly DEFAULT_ACTION_BAR_SLOTS = 12;
|
|
17
13
|
static readonly DEFAULT_ACTION_BAR_ROW_MODIFIER_ORDER: string;
|
|
18
14
|
static readonly INSTANCE: ActionBarBindableManager;
|
|
19
15
|
private requiredSlots;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2011-2024 Unlok
|
|
3
|
+
* https://www.unlok.ca
|
|
4
|
+
*
|
|
5
|
+
* Credits & Thanks:
|
|
6
|
+
* https://www.unlok.ca/credits-thanks/
|
|
7
|
+
*
|
|
8
|
+
* Wayward is a copyrighted and licensed work. Modification and/or distribution of any source files is prohibited. If you wish to modify the game in any way, please refer to the modding guide:
|
|
9
|
+
* https://github.com/WaywardGame/types/wiki
|
|
10
|
+
*/
|
|
11
|
+
import type { IActionBarSlotData } from "@wayward/game/ui/screen/screens/game/static/actions/IActionBar";
|
|
12
|
+
export declare const ACTION_BAR_DEFAULT_SLOT_COUNT = 12;
|
|
13
|
+
declare const ACTION_BAR_DEFAULT_SLOTS: readonly IActionBarSlotData[];
|
|
14
|
+
export default ACTION_BAR_DEFAULT_SLOTS;
|
package/definitions/game/ui/screen/screens/game/static/actions/ActionSlotConfigurationColumn.d.ts
CHANGED
|
@@ -72,7 +72,6 @@ export default class ActionSlotConfigurationColumn extends Component {
|
|
|
72
72
|
readonly hr0: HorizontalLine;
|
|
73
73
|
readonly targetHoveredTileCheckButton: CheckButton;
|
|
74
74
|
readonly autoUseCheckButton: CheckButton;
|
|
75
|
-
readonly hintDiscoverMore: Paragraph;
|
|
76
75
|
readonly hr1: HorizontalLine;
|
|
77
76
|
readonly clearSlotButton: Button;
|
|
78
77
|
readonly hr2: HorizontalLine;
|
|
@@ -18,7 +18,7 @@ export default class HighlightManager {
|
|
|
18
18
|
*
|
|
19
19
|
* Note: When not providing `until` events, the `remove` event will be subscribed to automatically.
|
|
20
20
|
*/
|
|
21
|
-
register<C extends Component>(component: C, selector: HighlightSelector, ...until: Array<keyof Events<C>>): void;
|
|
21
|
+
register<C extends Component>(component: C, selector: HighlightSelector | undefined, ...until: Array<keyof Events<C>>): void;
|
|
22
22
|
is(component: Component, selector: HighlightSelector): boolean;
|
|
23
23
|
private getHighlightSelectorId;
|
|
24
24
|
private getHighlightableComponents;
|
|
@@ -18,7 +18,7 @@ export interface IHighlight {
|
|
|
18
18
|
class?: string;
|
|
19
19
|
}
|
|
20
20
|
export declare namespace IHighlight {
|
|
21
|
-
function item(item: Item): HighlightSelector;
|
|
21
|
+
function item(item: Item): HighlightSelector | undefined;
|
|
22
22
|
function optionalItem(item?: Item): HighlightSelector | undefined;
|
|
23
23
|
function optionalEquipSlot(item?: Item): HighlightSelector | undefined;
|
|
24
24
|
function container(container: IContainer): HighlightSelector;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2011-2024 Unlok
|
|
3
|
+
* https://www.unlok.ca
|
|
4
|
+
*
|
|
5
|
+
* Credits & Thanks:
|
|
6
|
+
* https://www.unlok.ca/credits-thanks/
|
|
7
|
+
*
|
|
8
|
+
* Wayward is a copyrighted and licensed work. Modification and/or distribution of any source files is prohibited. If you wish to modify the game in any way, please refer to the modding guide:
|
|
9
|
+
* https://github.com/WaywardGame/types/wiki
|
|
10
|
+
*/
|
|
11
|
+
declare namespace Debug {
|
|
12
|
+
function typeIfRelevant(type: string, name: string): string | undefined;
|
|
13
|
+
function where(thing: unknown): string | undefined;
|
|
14
|
+
}
|
|
15
|
+
export default Debug;
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
11
|
import type { IWaywardTitle } from "@wayward/hosts/shared/globalTypes";
|
|
12
|
-
export declare const gameVersionStage = "beta", gameVersionMajor = 2, gameVersionMinor = 14, gameVersionPatch =
|
|
13
|
-
export declare const gameVersion = "beta2.14.
|
|
12
|
+
export declare const gameVersionStage = "beta", gameVersionMajor = 2, gameVersionMinor = 14, gameVersionPatch = 2, gameVersionName = "Runekeeper", gameVersionColor = 11015763;
|
|
13
|
+
export declare const gameVersion = "beta2.14.2";
|
|
14
14
|
export declare const gameVersionTitleMajor = "Wayward: Runekeeper";
|
|
15
15
|
export declare const gameVersionTitleMinor: string;
|
|
16
16
|
export declare const gameVersionTitle: string;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2011-2024 Unlok
|
|
3
|
+
* https://www.unlok.ca
|
|
4
|
+
*
|
|
5
|
+
* Credits & Thanks:
|
|
6
|
+
* https://www.unlok.ca/credits-thanks/
|
|
7
|
+
*
|
|
8
|
+
* Wayward is a copyrighted and licensed work. Modification and/or distribution of any source files is prohibited. If you wish to modify the game in any way, please refer to the modding guide:
|
|
9
|
+
* https://github.com/WaywardGame/types/wiki
|
|
10
|
+
*/
|
|
11
|
+
export type ConsoleCreateMagic = <HOST extends WeakKey>(value: HOST, getter?: (value?: HOST) => any) => void;
|
|
12
|
+
export interface ConsoleMagic extends Record<string, any> {
|
|
13
|
+
magic: Record<string, ConsoleCreateMagic>;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* A proxy for `window` when it's available. Assigning to this does nothing when it's not.
|
|
17
|
+
* Used to add utilities availble in the console
|
|
18
|
+
*/
|
|
19
|
+
declare const _default: ConsoleMagic;
|
|
20
|
+
export default _default;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2011-2024 Unlok
|
|
3
|
+
* https://www.unlok.ca
|
|
4
|
+
*
|
|
5
|
+
* Credits & Thanks:
|
|
6
|
+
* https://www.unlok.ca/credits-thanks/
|
|
7
|
+
*
|
|
8
|
+
* Wayward is a copyrighted and licensed work. Modification and/or distribution of any source files is prohibited. If you wish to modify the game in any way, please refer to the modding guide:
|
|
9
|
+
* https://github.com/WaywardGame/types/wiki
|
|
10
|
+
*/
|
|
11
|
+
/**
|
|
12
|
+
* Allows queuing up a promise and resolving it once it runs.
|
|
13
|
+
* Promises will run sequentially in FIFO
|
|
14
|
+
*/
|
|
15
|
+
export declare class PromiseSequence {
|
|
16
|
+
private readonly _promises;
|
|
17
|
+
get length(): number;
|
|
18
|
+
wait(): Promise<void>;
|
|
19
|
+
run<T>(executor: () => Promise<T>): Promise<T>;
|
|
20
|
+
}
|
package/package.json
CHANGED
|
File without changes
|