@wayward/types 2.12.0-beta.dev.20220830.1 → 2.12.0-beta.dev.20220902.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/definitions/game/game/Game.d.ts +2 -2
- package/definitions/game/game/entity/Entity.d.ts +1 -0
- package/definitions/game/game/entity/Human.d.ts +3 -3
- package/definitions/game/game/entity/IHuman.d.ts +3 -1
- package/definitions/game/game/entity/action/ActionExecutor.d.ts +2 -2
- package/definitions/game/game/entity/action/IAction.d.ts +2 -2
- package/definitions/game/game/entity/action/usable/actions/UsableActionsDynamic.d.ts +4 -3
- package/definitions/game/game/entity/creature/corpse/Corpse.d.ts +22 -0
- package/definitions/game/game/entity/creature/corpse/ICorpse.d.ts +1 -0
- package/definitions/game/game/entity/npc/NPC.d.ts +2 -1
- package/definitions/game/game/entity/npc/npcs/Merchant.d.ts +6 -0
- package/definitions/game/game/entity/player/IPlayer.d.ts +8 -4
- package/definitions/game/game/item/IItem.d.ts +1 -1
- package/definitions/game/game/item/Item.d.ts +1 -1
- package/definitions/game/game/item/ItemManager.d.ts +6 -1
- package/definitions/game/game/tile/ITerrain.d.ts +2 -1
- package/definitions/game/renderer/world/WorldRenderer.d.ts +1 -0
- package/definitions/game/ui/input/Bindable.d.ts +189 -186
- package/definitions/game/ui/input/BindableManager.d.ts +2 -2
- package/definitions/game/ui/input/IIInput.d.ts +6 -3
- package/definitions/game/ui/input/IInput.d.ts +1 -1
- package/definitions/game/ui/old/functional/IFunctionalSortable.d.ts +1 -0
- package/definitions/game/ui/old/screens/InGameScreen.d.ts +2 -2
- package/definitions/game/ui/screen/screens/game/Dialogs.d.ts +7 -2
- package/definitions/game/ui/screen/screens/game/static/ActionBar.d.ts +2 -2
- package/definitions/game/ui/screen/screens/game/static/actions/ActionBarBindableManager.d.ts +1 -1
- package/definitions/game/ui/screen/screens/menu/menus/LoadGameMenu.d.ts +1 -1
- package/package.json +1 -1
|
@@ -16,7 +16,7 @@ import type Human from "game/entity/Human";
|
|
|
16
16
|
import type { Defense } from "game/entity/IEntity";
|
|
17
17
|
import { DamageType } from "game/entity/IEntity";
|
|
18
18
|
import type { Delay } from "game/entity/IHuman";
|
|
19
|
-
import type {
|
|
19
|
+
import type { TurnTypeFlag } from "game/entity/player/IPlayer";
|
|
20
20
|
import type { IGameEvents, IMovementTime, IPlayOptions, ISynchronizeState } from "game/IGame";
|
|
21
21
|
import { PauseSource, SaveType, TickFlag, TurnMode } from "game/IGame";
|
|
22
22
|
import type Island from "game/island/Island";
|
|
@@ -132,7 +132,7 @@ export declare class Game extends EventEmitter.Host<IGameEvents> {
|
|
|
132
132
|
* Marks that the human had a turn
|
|
133
133
|
* In manual turn mode, it will tick the humans stat timers & the game
|
|
134
134
|
*/
|
|
135
|
-
passTurn(human: Human, turnType?:
|
|
135
|
+
passTurn(human: Human, turnType?: TurnTypeFlag): void;
|
|
136
136
|
tickRealtime(): void;
|
|
137
137
|
updateView(source: RenderSource, updateFov?: boolean, computeSpritesNow?: boolean): void;
|
|
138
138
|
updateTablesAndWeight(): void;
|
|
@@ -66,6 +66,7 @@ export default abstract class Entity extends EventEmitter.Host<IEntityEvents> im
|
|
|
66
66
|
attackAnimationType: DamageType | undefined;
|
|
67
67
|
attackAnimationTime: IMovementTime | undefined;
|
|
68
68
|
isMovingClientside: boolean;
|
|
69
|
+
allowSmartMovementClientside: boolean;
|
|
69
70
|
protected _movementTime: {
|
|
70
71
|
start: number;
|
|
71
72
|
end: number;
|
|
@@ -21,7 +21,7 @@ import type { IStat } from "game/entity/IStats";
|
|
|
21
21
|
import { Stat } from "game/entity/IStats";
|
|
22
22
|
import type { IMessageManager } from "game/entity/player/IMessageManager";
|
|
23
23
|
import type { ILoadOnIslandOptions, IMobCheck, IMovementIntent, IWalkPath } from "game/entity/player/IPlayer";
|
|
24
|
-
import { PlayerState,
|
|
24
|
+
import { PlayerState, TurnTypeFlag, WeightStatus } from "game/entity/player/IPlayer";
|
|
25
25
|
import type { INoteManager } from "game/entity/player/note/NoteManager";
|
|
26
26
|
import PlayerDefense from "game/entity/player/PlayerDefense";
|
|
27
27
|
import type { IQuestManager } from "game/entity/player/quest/QuestManager";
|
|
@@ -241,12 +241,12 @@ export default abstract class Human extends Entity implements IHasInsulation {
|
|
|
241
241
|
private recalculateInsulation;
|
|
242
242
|
private getEquipmentInsulation;
|
|
243
243
|
discoverRecipe(recipeType: ItemType, crafted?: ICrafted, discoveredClientSide?: boolean): void;
|
|
244
|
-
passTurn(turnType?:
|
|
244
|
+
passTurn(turnType?: TurnTypeFlag): void;
|
|
245
245
|
/**
|
|
246
246
|
* Ticks a player
|
|
247
247
|
* @returns True if the game should tick after this
|
|
248
248
|
*/
|
|
249
|
-
tick(isPassTurn?: boolean): boolean;
|
|
249
|
+
tick(isPassTurn?: boolean, turnType?: TurnTypeFlag): boolean;
|
|
250
250
|
private restTick;
|
|
251
251
|
getDamage(causesDamage: ICausesDamage, equipType?: EquipType): number;
|
|
252
252
|
private slitherSuckerDamage;
|
|
@@ -25,6 +25,7 @@ import { ItemType, ItemTypeGroup, RecipeLevel } from "game/item/IItem";
|
|
|
25
25
|
import type Item from "game/item/Item";
|
|
26
26
|
import { TempType } from "game/temperature/ITemperature";
|
|
27
27
|
import type { ITile } from "game/tile/ITerrain";
|
|
28
|
+
import Message from "language/dictionary/Message";
|
|
28
29
|
import type { IModdable } from "mod/ModRegistry";
|
|
29
30
|
import type { IOptions } from "save/data/ISaveDataGlobal";
|
|
30
31
|
import type { IRGB } from "utilities/Color";
|
|
@@ -332,6 +333,7 @@ export declare enum RestCancelReason {
|
|
|
332
333
|
Canceled = 5,
|
|
333
334
|
Dying = 6
|
|
334
335
|
}
|
|
336
|
+
export declare const restCancelReasonMessageMap: Record<RestCancelReason, Message | undefined>;
|
|
335
337
|
export interface IRestData {
|
|
336
338
|
type: RestType;
|
|
337
339
|
startHealth: number;
|
|
@@ -339,7 +341,7 @@ export interface IRestData {
|
|
|
339
341
|
itemId?: number;
|
|
340
342
|
doodadId?: number;
|
|
341
343
|
cycle?: number;
|
|
342
|
-
cancelReason?: RestCancelReason
|
|
344
|
+
cancelReason?: Set<RestCancelReason>;
|
|
343
345
|
}
|
|
344
346
|
export declare enum RestType {
|
|
345
347
|
Resting = 0,
|
|
@@ -14,7 +14,7 @@ import type { AnyActionDescription, IActionApi, IActionArgumentTypeMap, IActionC
|
|
|
14
14
|
import { ActionArgument, ActionType } from "game/entity/action/IAction";
|
|
15
15
|
import type Entity from "game/entity/Entity";
|
|
16
16
|
import type { SkillType } from "game/entity/IHuman";
|
|
17
|
-
import type {
|
|
17
|
+
import type { TurnTypeFlag } from "game/entity/player/IPlayer";
|
|
18
18
|
import type Item from "game/item/Item";
|
|
19
19
|
import type { IPromptDescriptionBase, PromptDescriptionArgs } from "game/meta/prompt/IPrompt";
|
|
20
20
|
import { Milestone } from "game/milestones/IMilestone";
|
|
@@ -106,7 +106,7 @@ export default class ActionExecutor<A extends Array<ActionArgument | ActionArgum
|
|
|
106
106
|
prompt<PROMPT extends IPromptDescriptionBase<any[]>>(prompt: PROMPT, ...args: PromptDescriptionArgs<PROMPT>): Promise<boolean>;
|
|
107
107
|
isArgumentType<AA extends ActionArgument>(argument: any, index: number, argumentType: AA): argument is IActionArgumentTypeMap[AA];
|
|
108
108
|
setDelay(delay: number, replace?: boolean): this;
|
|
109
|
-
setPassTurn(turnType?:
|
|
109
|
+
setPassTurn(turnType?: TurnTypeFlag): this;
|
|
110
110
|
setUpdateView(updateFov?: boolean): this;
|
|
111
111
|
setUpdateRender(): this;
|
|
112
112
|
setUpdateTablesAndWeight(): this;
|
|
@@ -20,7 +20,7 @@ import type { EquipType, RestType, SkillType } from "game/entity/IHuman";
|
|
|
20
20
|
import type NPC from "game/entity/npc/NPC";
|
|
21
21
|
import type { MessageType } from "game/entity/player/IMessageManager";
|
|
22
22
|
import { Source } from "game/entity/player/IMessageManager";
|
|
23
|
-
import type {
|
|
23
|
+
import type { TurnTypeFlag } from "game/entity/player/IPlayer";
|
|
24
24
|
import type Player from "game/entity/player/Player";
|
|
25
25
|
import type { Quality } from "game/IObject";
|
|
26
26
|
import type Island from "game/island/Island";
|
|
@@ -249,7 +249,7 @@ export interface IActionApi<E extends Entity = Entity, CU extends IActionUsable
|
|
|
249
249
|
*/
|
|
250
250
|
isCreatureBlocking(tile: ITile): boolean;
|
|
251
251
|
setDelay(delay: number, replace?: boolean): this;
|
|
252
|
-
setPassTurn(turnType?:
|
|
252
|
+
setPassTurn(turnType?: TurnTypeFlag): this;
|
|
253
253
|
setUpdateView(updateFov?: boolean): this;
|
|
254
254
|
setUpdateRender(): this;
|
|
255
255
|
setUpdateTablesAndWeight(): this;
|
|
@@ -18,15 +18,16 @@ export interface IUsableActionDynamicDefinition {
|
|
|
18
18
|
icon?: UsableActionIconReference;
|
|
19
19
|
bindable: Bindable;
|
|
20
20
|
displayLevel?: ActionDisplayLevel;
|
|
21
|
+
order?: number;
|
|
21
22
|
}
|
|
22
23
|
export interface IUsableActionsDynamicConfig<DEFINITION extends IUsableActionDynamicDefinition, REQUIREMENTS extends IUsableActionRequirements> {
|
|
23
24
|
id: string;
|
|
24
25
|
record: PartialRecord<ActionType, DEFINITION | false>;
|
|
25
26
|
getDynamic(actions: Set<ActionType>): any;
|
|
26
27
|
requirements?(action: ActionType, definition?: DEFINITION): REQUIREMENTS;
|
|
27
|
-
isUsable(action: ActionType, player: Player, using: IUsableActionUsing<REQUIREMENTS
|
|
28
|
-
execute(action: ActionType, player: Player, using: IUsableActionUsing<REQUIREMENTS
|
|
29
|
-
order?(action: ActionType, using: IUsableActionPossibleUsing): number | undefined;
|
|
28
|
+
isUsable(action: ActionType, player: Player, using: IUsableActionUsing<REQUIREMENTS>, definition?: DEFINITION): ReturnableUsableActionUsability;
|
|
29
|
+
execute(action: ActionType, player: Player, using: IUsableActionUsing<REQUIREMENTS>, definition?: DEFINITION): any;
|
|
30
|
+
order?(action: ActionType, using: IUsableActionPossibleUsing, definition?: DEFINITION): number | undefined;
|
|
30
31
|
}
|
|
31
32
|
export default class UsableActionsDynamic<DEFINITION extends IUsableActionDynamicDefinition, REQUIREMENTS extends IUsableActionRequirements> extends UsableActionGenerator {
|
|
32
33
|
constructor(config: IUsableActionsDynamicConfig<DEFINITION, REQUIREMENTS>);
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
11
|
import EventEmitter from "event/EventEmitter";
|
|
12
|
+
import type { ICorpseDescription } from "game/entity/creature/corpse/ICorpse";
|
|
12
13
|
import { CreatureType } from "game/entity/creature/ICreature";
|
|
13
14
|
import type { CreationId } from "game/IGame";
|
|
14
15
|
import type { IObject } from "game/IObject";
|
|
@@ -20,7 +21,19 @@ import type { ISerializedTranslation } from "language/ITranslation";
|
|
|
20
21
|
import type Translation from "language/Translation";
|
|
21
22
|
import type { IVector3 } from "utilities/math/IVector";
|
|
22
23
|
export interface ICorpseEvents {
|
|
24
|
+
/**
|
|
25
|
+
* Called when the entity is created in the game
|
|
26
|
+
* Also called for players that "rejoin" the game
|
|
27
|
+
*/
|
|
28
|
+
created(): void;
|
|
29
|
+
/**
|
|
30
|
+
* Called when the entity is removed from the game
|
|
31
|
+
*/
|
|
32
|
+
removed(): void;
|
|
23
33
|
}
|
|
34
|
+
/**
|
|
35
|
+
* TODO: extends Entity?
|
|
36
|
+
*/
|
|
24
37
|
export default class Corpse extends EventEmitter.Host<ICorpseEvents> implements IObject<CreatureType>, IVector3, IReferenceable {
|
|
25
38
|
static is(value: any): value is Corpse;
|
|
26
39
|
readonly objectType: CreationId.Corpse;
|
|
@@ -38,6 +51,7 @@ export default class Corpse extends EventEmitter.Host<ICorpseEvents> implements
|
|
|
38
51
|
y: number;
|
|
39
52
|
z: number;
|
|
40
53
|
islandId: IslandId;
|
|
54
|
+
private _description;
|
|
41
55
|
constructor(type?: CreatureType, islandId?: `${number},${number}`, x?: number, y?: number, z?: number, decay?: number);
|
|
42
56
|
get island(): import("../../../island/Island").default;
|
|
43
57
|
toString(): string;
|
|
@@ -51,9 +65,17 @@ export default class Corpse extends EventEmitter.Host<ICorpseEvents> implements
|
|
|
51
65
|
* - `corpse.getName(undefined, 3)` // "acid spitter demons"
|
|
52
66
|
*/
|
|
53
67
|
getName(article?: false | "definite" | "indefinite", count?: number): Translation;
|
|
68
|
+
description(): ICorpseDescription | undefined;
|
|
54
69
|
getTile(): ITile;
|
|
55
70
|
isValid(): boolean;
|
|
56
71
|
getDecayAtStart(): number;
|
|
57
72
|
update(): void;
|
|
58
73
|
getResources(clientSide?: boolean): ItemType[];
|
|
74
|
+
protected onCreated(): void;
|
|
75
|
+
protected onRemoved(): void;
|
|
76
|
+
/**
|
|
77
|
+
* Updates the DoodadOverHidden tile flag if the creature is large.
|
|
78
|
+
* Large creatures should render over the doodad over layer, which means we should hide the doodad over layer for doodads on the creatures tile.
|
|
79
|
+
*/
|
|
80
|
+
updateDoodadOverHiddenState(shouldBeHidden: boolean): void;
|
|
59
81
|
}
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
import type { Events, IEventEmitter } from "event/EventEmitter";
|
|
12
12
|
import type { ActionType } from "game/entity/action/IAction";
|
|
13
13
|
import Human from "game/entity/Human";
|
|
14
|
-
import { AiType, EntityType, MoveType } from "game/entity/IEntity";
|
|
14
|
+
import { AiType, EntityType, MoveType, StatusType } from "game/entity/IEntity";
|
|
15
15
|
import type { ICustomizations } from "game/entity/IHuman";
|
|
16
16
|
import { EquipType } from "game/entity/IHuman";
|
|
17
17
|
import type { NPCType } from "game/entity/npc/INPCs";
|
|
@@ -63,6 +63,7 @@ export default abstract class NPC extends Human {
|
|
|
63
63
|
createMessageManager(): MessageManagerNoOp;
|
|
64
64
|
createQuestManager(): QuestManagerNoOp;
|
|
65
65
|
addMilestone(): void;
|
|
66
|
+
protected getApplicableStatusEffects(): Set<StatusType>;
|
|
66
67
|
/**
|
|
67
68
|
* Creates inventory, equips items, and scales stats
|
|
68
69
|
*/
|
|
@@ -38,6 +38,10 @@ export default class MerchantNPC extends NPC {
|
|
|
38
38
|
* Stop stat timers when they would kill
|
|
39
39
|
*/
|
|
40
40
|
private capStatTimers;
|
|
41
|
+
/**
|
|
42
|
+
* Equip better things when available
|
|
43
|
+
*/
|
|
44
|
+
private processEquipment;
|
|
41
45
|
/**
|
|
42
46
|
* Try to do something when health is below 20%
|
|
43
47
|
*/
|
|
@@ -51,4 +55,6 @@ export default class MerchantNPC extends NPC {
|
|
|
51
55
|
*/
|
|
52
56
|
private processThirst;
|
|
53
57
|
get asMerchant(): MerchantNPC;
|
|
58
|
+
private calculateWeaponEquipItemScore;
|
|
59
|
+
private calculateDefenseEquipItemScore;
|
|
54
60
|
}
|
|
@@ -111,10 +111,14 @@ export interface IPlayerEvents extends Events<Human> {
|
|
|
111
111
|
*/
|
|
112
112
|
idChanged(currentId: number, newId: number, isAbsentPlayer: boolean): any;
|
|
113
113
|
}
|
|
114
|
-
export declare enum
|
|
115
|
-
CheckUnderPlayer =
|
|
116
|
-
DontEnterCaves =
|
|
117
|
-
Idle =
|
|
114
|
+
export declare enum TurnTypeFlag {
|
|
115
|
+
CheckUnderPlayer = 1,
|
|
116
|
+
DontEnterCaves = 2,
|
|
117
|
+
Idle = 4,
|
|
118
|
+
/**
|
|
119
|
+
* Indicates the turn is passing due to a movement
|
|
120
|
+
*/
|
|
121
|
+
Movement = 8
|
|
118
122
|
}
|
|
119
123
|
export interface IAttackHand {
|
|
120
124
|
mainHand: number;
|
|
@@ -68,6 +68,7 @@ export declare const SYMBOL_CONTAINER_ITEMS_TEMPERATURE: unique symbol;
|
|
|
68
68
|
export declare const SYMBOL_CONTAINER_TILE_TEMPERATURE: unique symbol;
|
|
69
69
|
export interface IContainable {
|
|
70
70
|
containedWithin?: IContainer;
|
|
71
|
+
containerType?: ContainerType;
|
|
71
72
|
[SYMBOL_CONTAINER_CACHED_REFERENCE]?: ContainerReference;
|
|
72
73
|
}
|
|
73
74
|
export interface IContainer extends IContainable {
|
|
@@ -77,7 +78,6 @@ export interface IContainer extends IContainable {
|
|
|
77
78
|
containedItems: Item[];
|
|
78
79
|
transientItems?: Item[];
|
|
79
80
|
itemOrders?: number[];
|
|
80
|
-
containerType?: ContainerType;
|
|
81
81
|
}
|
|
82
82
|
export interface IItemDisassembleResult {
|
|
83
83
|
items: IItemDisassembly[];
|
|
@@ -183,8 +183,8 @@ export default class Item extends EventEmitter.Host<IItemEvents> implements IRef
|
|
|
183
183
|
getDamageModifier(): number;
|
|
184
184
|
isDamaged(): boolean;
|
|
185
185
|
isInTradeContainer(): boolean;
|
|
186
|
+
getEquippedHuman(): Human | undefined;
|
|
186
187
|
isEquipped(includeDisabled?: true): boolean;
|
|
187
|
-
getEquippedPlayer(): Human | undefined;
|
|
188
188
|
getEquipSlot(includeDisabled?: true): EquipType | undefined;
|
|
189
189
|
isDecayed(): boolean;
|
|
190
190
|
changeInto(type: ItemType, disableNotify?: boolean, emitTransformation?: boolean): void;
|
|
@@ -234,6 +234,11 @@ export default class ItemManager extends ObjectManager<Item, IItemManagerEvents>
|
|
|
234
234
|
* @returns whether the given containable is, or is contained within, the given container
|
|
235
235
|
*/
|
|
236
236
|
isContainableInContainer(containable: IContainable, container: IContainer): boolean;
|
|
237
|
+
/**
|
|
238
|
+
* @returns whether the given containable is, or is contained within, a trade container
|
|
239
|
+
*/
|
|
240
|
+
isContainableInTradeContainer(containable: IContainable): boolean;
|
|
241
|
+
getTradeContainerForContainer(containable: IContainer | undefined): IContainer | undefined;
|
|
237
242
|
getAdjacentContainers(humanOrPosition: Human | IVector3, includeNpcs?: boolean, ignoreOptions?: boolean): IContainer[];
|
|
238
243
|
isContainableInAdjacentContainer(human: Human, containable: IContainable, includeNpcs?: boolean, ignoreOptions?: boolean): boolean;
|
|
239
244
|
isInInventory(containable: IContainable): boolean;
|
|
@@ -298,7 +303,7 @@ export default class ItemManager extends ObjectManager<Item, IItemManagerEvents>
|
|
|
298
303
|
*/
|
|
299
304
|
loadReference(container: IContainer, loadChildReferences?: boolean): boolean;
|
|
300
305
|
private removeFromContainerInternal;
|
|
301
|
-
private
|
|
306
|
+
private onItemMoveOrRemove;
|
|
302
307
|
private getCraftTierBonus;
|
|
303
308
|
computeCraftQualityBonus(itemType: ItemType, itemsToRequire: Item[], itemsToConsume: Item[], doodadsUsed: IDoodadsUsed[] | undefined): number;
|
|
304
309
|
getCraftChance(human: Human, recipe: IRecipe, qualityBonus: number, returnQuality?: boolean, alwaysReturn?: boolean): number;
|
|
@@ -221,6 +221,7 @@ export default class WorldRenderer extends EventEmitter.Host<IWorldRendererEvent
|
|
|
221
221
|
*/
|
|
222
222
|
private renderStatusEffect;
|
|
223
223
|
private spriteBatchForLayer;
|
|
224
|
+
addTileToViewport(visibleTiles: Set<ITile>, x: number, y: number, itemBatch: ISpriteBatch | undefined): void;
|
|
224
225
|
computeSpritesInViewportImmediately(): void;
|
|
225
226
|
private batchItems;
|
|
226
227
|
private batchItem;
|
|
@@ -33,192 +33,195 @@ declare enum Bindable {
|
|
|
33
33
|
GameIdle = 14,
|
|
34
34
|
GameItemMove = 15,
|
|
35
35
|
GameItemMoveAll = 16,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
36
|
+
GameItemMoveAllByQuality = 17,
|
|
37
|
+
GameItemMenu = 18,
|
|
38
|
+
GameItemQuickMove = 19,
|
|
39
|
+
GameItemQuickMoveAll = 20,
|
|
40
|
+
GameItemQuickMoveAllByQuality = 21,
|
|
41
|
+
GameItemDrop = 22,
|
|
42
|
+
GameItemDropAll = 23,
|
|
43
|
+
GameItemDropAllByQuality = 24,
|
|
44
|
+
GameItemEquipToggle = 25,
|
|
45
|
+
GameItemProtectToggle = 26,
|
|
46
|
+
GameInspect = 27,
|
|
47
|
+
GameInspectItem = 28,
|
|
48
|
+
GameMoreInformation = 29,
|
|
49
|
+
GameZoomIn = 30,
|
|
50
|
+
GameZoomOut = 31,
|
|
51
|
+
GamePause = 32,
|
|
52
|
+
GameSave = 33,
|
|
53
|
+
GameFullscreen = 34,
|
|
54
|
+
GameScreenshotMode = 35,
|
|
55
|
+
GameActionBarClear = 36,
|
|
56
|
+
GameActionBarConfigure = 37,
|
|
57
|
+
GameActionBarCopy = 38,
|
|
58
|
+
GameActions = 39,
|
|
59
|
+
GameActionsItems = 40,
|
|
60
|
+
GameActionQuickSlotAdd = 41,
|
|
61
|
+
GameActionQuickSlotAddToFree = 42,
|
|
62
|
+
GameActionQuickSlotAddToSlot1 = 43,
|
|
63
|
+
GameActionQuickSlotAddToSlot2 = 44,
|
|
64
|
+
GameActionQuickSlotAddToSlot3 = 45,
|
|
65
|
+
GameActionQuickSlotAddToSlot4 = 46,
|
|
66
|
+
GameActionQuickSlotAddToSlot5 = 47,
|
|
67
|
+
GameActionQuickSlotAddToSlot6 = 48,
|
|
68
|
+
GameActionQuickSlotAddToSlot7 = 49,
|
|
69
|
+
GameActionQuickSlotAddToSlot8 = 50,
|
|
70
|
+
GameActionQuickSlotAddToSlot9 = 51,
|
|
71
|
+
GameActionQuickSlotAddToSlot10 = 52,
|
|
72
|
+
GameActionQuickSlotAddToSlot11 = 53,
|
|
73
|
+
GameActionQuickSlotAddToSlot12 = 54,
|
|
74
|
+
GameActionQuickSlotRemove = 55,
|
|
75
|
+
GameActionEquip = 56,
|
|
76
|
+
GameActionEquipLeft = 57,
|
|
77
|
+
GameActionEquipRight = 58,
|
|
78
|
+
GameActionUnequip = 59,
|
|
79
|
+
GameActionCloseContainer = 60,
|
|
80
|
+
GameActionOpenContainer = 61,
|
|
81
|
+
GameActionButcher = 62,
|
|
82
|
+
GameActionHarvest = 63,
|
|
83
|
+
GameActionChop = 64,
|
|
84
|
+
GameActionMine = 65,
|
|
85
|
+
GameActionMelee = 66,
|
|
86
|
+
GameActionGatherLiquid = 67,
|
|
87
|
+
GameActionAttachContainer = 68,
|
|
88
|
+
GameActionDetachContainer = 69,
|
|
89
|
+
GameActionPour = 70,
|
|
90
|
+
GameActionPourOnYourself = 71,
|
|
91
|
+
GameActionDrink = 72,
|
|
92
|
+
GameActionBuild = 73,
|
|
93
|
+
GameActionCraft = 74,
|
|
94
|
+
GameActionDisassemble = 75,
|
|
95
|
+
GameActionDismantle = 76,
|
|
96
|
+
GameActionOffer = 77,
|
|
97
|
+
GameActionRepair = 78,
|
|
98
|
+
GameActionThrow = 79,
|
|
99
|
+
GameActionRename = 80,
|
|
100
|
+
GameActionStartFire = 81,
|
|
101
|
+
GameActionExtinguish = 82,
|
|
102
|
+
GameActionDrop = 83,
|
|
103
|
+
GameActionDropAll = 84,
|
|
104
|
+
GameActionDropAllOfSameQuality = 85,
|
|
105
|
+
GameActionDig = 86,
|
|
106
|
+
GameActionTill = 87,
|
|
107
|
+
GameActionEat = 88,
|
|
108
|
+
GameActionCast = 89,
|
|
109
|
+
GameActionRest = 90,
|
|
110
|
+
GameActionSleep = 91,
|
|
111
|
+
GameActionCure = 92,
|
|
112
|
+
GameActionLockpick = 93,
|
|
113
|
+
GameActionOperate = 94,
|
|
114
|
+
GameActionPaddle = 95,
|
|
115
|
+
GameActionGrasp = 96,
|
|
116
|
+
GameActionAbsorb = 97,
|
|
117
|
+
GameActionExude = 98,
|
|
118
|
+
GameActionIgnite = 99,
|
|
119
|
+
GameActionSetDown = 100,
|
|
120
|
+
GameActionRubClockwise = 101,
|
|
121
|
+
GameActionRubCounterclockwise = 102,
|
|
122
|
+
GameActionRead = 103,
|
|
123
|
+
GameActionLearn = 104,
|
|
124
|
+
GameActionOpenBottle = 105,
|
|
125
|
+
GameActionSqueeze = 106,
|
|
126
|
+
GameActionGatherWithHands = 107,
|
|
127
|
+
GameActionHarvestWithHands = 108,
|
|
128
|
+
GameActionDigWithHands = 109,
|
|
129
|
+
GameActionTillWithHands = 110,
|
|
130
|
+
GameActionPickUpExcrementWithHands = 111,
|
|
131
|
+
GameActionPickUpItem = 112,
|
|
132
|
+
GameActionPickUpAllItems = 113,
|
|
133
|
+
GameActionPickUpDoodad = 114,
|
|
134
|
+
GameActionTame = 115,
|
|
135
|
+
GameActionRelease = 116,
|
|
136
|
+
GameActionPet = 117,
|
|
137
|
+
GameActionHitch = 118,
|
|
138
|
+
GameActionUnhitch = 119,
|
|
139
|
+
GameActionToggleHitch = 120,
|
|
140
|
+
GameActionJump = 121,
|
|
141
|
+
GameActionAttack = 122,
|
|
142
|
+
GameActionPlant = 123,
|
|
143
|
+
GameActionPlaceDown = 124,
|
|
144
|
+
GameActionTrade = 125,
|
|
145
|
+
GameActionShoot = 126,
|
|
146
|
+
GameActionFire = 127,
|
|
147
|
+
GameActionProtect = 128,
|
|
148
|
+
GameActionUnprotect = 129,
|
|
149
|
+
GameActionSmotherFire = 130,
|
|
150
|
+
GameActionStokeFire = 131,
|
|
151
|
+
GameActionHeal = 132,
|
|
152
|
+
GameActionHealOther = 133,
|
|
153
|
+
GameActionTestDepth = 134,
|
|
154
|
+
GameActionReadMap = 135,
|
|
155
|
+
GameActionPreserve = 136,
|
|
156
|
+
GameActionReinforce = 137,
|
|
157
|
+
GameActionTellTime = 138,
|
|
158
|
+
GameActionEnchant = 139,
|
|
159
|
+
GameActionSailToCivilization = 140,
|
|
160
|
+
GameActionTeleport = 141,
|
|
161
|
+
GameActionDrawMap = 142,
|
|
162
|
+
GameActionApply = 143,
|
|
163
|
+
GameActionRefine = 144,
|
|
164
|
+
GameActionTransmogrify = 145,
|
|
165
|
+
GameActionNavigate = 146,
|
|
166
|
+
GameActionUpgrade = 147,
|
|
167
|
+
GameActionEnhance = 148,
|
|
168
|
+
GameActionAlter = 149,
|
|
169
|
+
GameActionExudeWithItem = 150,
|
|
170
|
+
GameActionAbsorbWithItem = 151,
|
|
171
|
+
GameActionIgniteWithItem = 152,
|
|
172
|
+
GameActionAddFuelWithItem = 153,
|
|
173
|
+
GameActionPreserveWithItem = 154,
|
|
174
|
+
GameActionRefineWithItem = 155,
|
|
175
|
+
GameActionAlterWithItem = 156,
|
|
176
|
+
GameActionUpgradeWithItem = 157,
|
|
177
|
+
GameActionTransmogrifyWithItem = 158,
|
|
178
|
+
GameActionEnchantWithItem = 159,
|
|
179
|
+
GameActionEnhanceWithItem = 160,
|
|
180
|
+
GameActionReinforceWithItem = 161,
|
|
181
|
+
GameActionRepairWithItem = 162,
|
|
182
|
+
GameActionItemMove = 163,
|
|
183
|
+
GameActionItemMoveAll = 164,
|
|
184
|
+
GameActionItemMoveAllOfSameQuality = 165,
|
|
185
|
+
GameActionItemMoveToInventory = 166,
|
|
186
|
+
GameActionTradeBuyFromTrader = 167,
|
|
187
|
+
GameActionTradeSellToTrader = 168,
|
|
188
|
+
GameActionItemMoveToActiveContainer = 169,
|
|
189
|
+
GameActionItemMoveToFacingContainer = 170,
|
|
190
|
+
GameActionOpenDoor = 171,
|
|
191
|
+
GameActionCloseDoor = 172,
|
|
192
|
+
DialogCloseAll = 173,
|
|
193
|
+
DialogOptions = 174,
|
|
194
|
+
DialogHelp = 175,
|
|
195
|
+
DialogMilestones = 176,
|
|
196
|
+
DialogNotes = 177,
|
|
197
|
+
DialogMessages = 178,
|
|
198
|
+
DialogMessagesChatFocus = 179,
|
|
199
|
+
DialogInventory = 180,
|
|
200
|
+
DialogCrafting = 181,
|
|
201
|
+
DialogDismantle = 182,
|
|
202
|
+
DialogEquipment = 183,
|
|
203
|
+
DialogSkills = 184,
|
|
204
|
+
DialogQuests = 185,
|
|
205
|
+
DialogIslands = 186,
|
|
206
|
+
MenuEnter = 187,
|
|
207
|
+
MenuSubmit = 188,
|
|
208
|
+
MenuNext = 189,
|
|
209
|
+
MenuPrevious = 190,
|
|
210
|
+
MenuUp = 191,
|
|
211
|
+
MenuDown = 192,
|
|
212
|
+
MenuLeft = 193,
|
|
213
|
+
MenuRight = 194,
|
|
214
|
+
MenuCancel = 195,
|
|
215
|
+
MenuNextOption = 196,
|
|
216
|
+
MenuPreviousOption = 197,
|
|
217
|
+
MenuContextMenu = 198,
|
|
218
|
+
MenuSelect = 199,
|
|
219
|
+
DeveloperToggleDeveloperMode = 200,
|
|
220
|
+
DeveloperToggleDeveloperTools = 201,
|
|
221
|
+
DeveloperReloadGame = 202,
|
|
222
|
+
DeveloperReloadAndContinueGame = 203,
|
|
223
|
+
DeveloperReloadStylesheets = 204,
|
|
224
|
+
DeveloperReloadVariableUIImages = 205
|
|
222
225
|
}
|
|
223
226
|
export default Bindable;
|
|
224
227
|
export declare enum BindableType {
|
|
@@ -26,9 +26,9 @@ export default abstract class BindableManager {
|
|
|
26
26
|
private static BINDABLES;
|
|
27
27
|
private static BINDABLES_BY_VALUE;
|
|
28
28
|
private static needsUpdate;
|
|
29
|
-
static getNames(): readonly ("None" | "GameMoveDirection" | "GameMoveUp" | "GameMoveLeft" | "GameMoveDown" | "GameMoveRight" | "GameMoveToTile" | "GameMoveToTilePreview" | "GameMoveToTileCancel" | "GameFaceDirection" | "GameFaceUp" | "GameFaceLeft" | "GameFaceDown" | "GameFaceRight" | "GameIdle" | "GameItemMove" | "GameItemMoveAll" | "GameItemMenu" | "GameItemQuickMove" | "GameItemQuickMoveAll" | "GameItemDrop" | "GameItemDropAll" | "GameItemEquipToggle" | "GameItemProtectToggle" | "GameInspect" | "GameInspectItem" | "GameMoreInformation" | "GameZoomIn" | "GameZoomOut" | "GamePause" | "GameSave" | "GameFullscreen" | "GameScreenshotMode" | "GameActionBarClear" | "GameActionBarConfigure" | "GameActionBarCopy" | "GameActions" | "GameActionsItems" | "GameActionQuickSlotAdd" | "GameActionQuickSlotAddToFree" | "GameActionQuickSlotAddToSlot1" | "GameActionQuickSlotAddToSlot2" | "GameActionQuickSlotAddToSlot3" | "GameActionQuickSlotAddToSlot4" | "GameActionQuickSlotAddToSlot5" | "GameActionQuickSlotAddToSlot6" | "GameActionQuickSlotAddToSlot7" | "GameActionQuickSlotAddToSlot8" | "GameActionQuickSlotAddToSlot9" | "GameActionQuickSlotAddToSlot10" | "GameActionQuickSlotAddToSlot11" | "GameActionQuickSlotAddToSlot12" | "GameActionQuickSlotRemove" | "GameActionEquip" | "GameActionEquipLeft" | "GameActionEquipRight" | "GameActionUnequip" | "GameActionCloseContainer" | "GameActionOpenContainer" | "GameActionButcher" | "GameActionHarvest" | "GameActionChop" | "GameActionMine" | "GameActionMelee" | "GameActionGatherLiquid" | "GameActionAttachContainer" | "GameActionDetachContainer" | "GameActionPour" | "GameActionPourOnYourself" | "GameActionDrink" | "GameActionBuild" | "GameActionCraft" | "GameActionDisassemble" | "GameActionDismantle" | "GameActionOffer" | "GameActionRepair" | "GameActionThrow" | "GameActionRename" | "GameActionStartFire" | "GameActionExtinguish" | "GameActionDrop" | "GameActionDropAll" | "GameActionDropAllOfSameQuality" | "GameActionDig" | "GameActionTill" | "GameActionEat" | "GameActionCast" | "GameActionRest" | "GameActionSleep" | "GameActionCure" | "GameActionLockpick" | "GameActionOperate" | "GameActionPaddle" | "GameActionGrasp" | "GameActionAbsorb" | "GameActionExude" | "GameActionIgnite" | "GameActionSetDown" | "GameActionRubClockwise" | "GameActionRubCounterclockwise" | "GameActionRead" | "GameActionLearn" | "GameActionOpenBottle" | "GameActionSqueeze" | "GameActionGatherWithHands" | "GameActionHarvestWithHands" | "GameActionDigWithHands" | "GameActionTillWithHands" | "GameActionPickUpExcrementWithHands" | "GameActionPickUpItem" | "GameActionPickUpAllItems" | "GameActionPickUpDoodad" | "GameActionTame" | "GameActionRelease" | "GameActionPet" | "GameActionHitch" | "GameActionUnhitch" | "GameActionToggleHitch" | "GameActionJump" | "GameActionAttack" | "GameActionPlant" | "GameActionPlaceDown" | "GameActionTrade" | "GameActionShoot" | "GameActionFire" | "GameActionProtect" | "GameActionUnprotect" | "GameActionSmotherFire" | "GameActionStokeFire" | "GameActionHeal" | "GameActionHealOther" | "GameActionTestDepth" | "GameActionReadMap" | "GameActionPreserve" | "GameActionReinforce" | "GameActionTellTime" | "GameActionEnchant" | "GameActionSailToCivilization" | "GameActionTeleport" | "GameActionDrawMap" | "GameActionApply" | "GameActionRefine" | "GameActionTransmogrify" | "GameActionNavigate" | "GameActionUpgrade" | "GameActionEnhance" | "GameActionAlter" | "GameActionExudeWithItem" | "GameActionAbsorbWithItem" | "GameActionIgniteWithItem" | "GameActionAddFuelWithItem" | "GameActionPreserveWithItem" | "GameActionRefineWithItem" | "GameActionAlterWithItem" | "GameActionUpgradeWithItem" | "GameActionTransmogrifyWithItem" | "GameActionEnchantWithItem" | "GameActionEnhanceWithItem" | "GameActionReinforceWithItem" | "GameActionRepairWithItem" | "GameActionItemMove" | "GameActionItemMoveAll" | "GameActionItemMoveAllOfSameQuality" | "GameActionItemMoveToInventory" | "GameActionTradeBuyFromTrader" | "GameActionTradeSellToTrader" | "GameActionItemMoveToActiveContainer" | "GameActionItemMoveToFacingContainer" | "GameActionOpenDoor" | "GameActionCloseDoor" | "DialogCloseAll" | "DialogOptions" | "DialogHelp" | "DialogMilestones" | "DialogNotes" | "DialogMessages" | "DialogMessagesChatFocus" | "DialogInventory" | "DialogCrafting" | "DialogDismantle" | "DialogEquipment" | "DialogSkills" | "DialogQuests" | "DialogIslands" | "MenuEnter" | "MenuSubmit" | "MenuNext" | "MenuPrevious" | "MenuUp" | "MenuDown" | "MenuLeft" | "MenuRight" | "MenuCancel" | "MenuNextOption" | "MenuPreviousOption" | "MenuContextMenu" | "MenuSelect" | "DeveloperToggleDeveloperMode" | "DeveloperToggleDeveloperTools" | "DeveloperReloadGame" | "DeveloperReloadAndContinueGame" | "DeveloperReloadStylesheets" | "DeveloperReloadVariableUIImages")[];
|
|
29
|
+
static getNames(): readonly ("None" | "GameMoveDirection" | "GameMoveUp" | "GameMoveLeft" | "GameMoveDown" | "GameMoveRight" | "GameMoveToTile" | "GameMoveToTilePreview" | "GameMoveToTileCancel" | "GameFaceDirection" | "GameFaceUp" | "GameFaceLeft" | "GameFaceDown" | "GameFaceRight" | "GameIdle" | "GameItemMove" | "GameItemMoveAll" | "GameItemMoveAllByQuality" | "GameItemMenu" | "GameItemQuickMove" | "GameItemQuickMoveAll" | "GameItemQuickMoveAllByQuality" | "GameItemDrop" | "GameItemDropAll" | "GameItemDropAllByQuality" | "GameItemEquipToggle" | "GameItemProtectToggle" | "GameInspect" | "GameInspectItem" | "GameMoreInformation" | "GameZoomIn" | "GameZoomOut" | "GamePause" | "GameSave" | "GameFullscreen" | "GameScreenshotMode" | "GameActionBarClear" | "GameActionBarConfigure" | "GameActionBarCopy" | "GameActions" | "GameActionsItems" | "GameActionQuickSlotAdd" | "GameActionQuickSlotAddToFree" | "GameActionQuickSlotAddToSlot1" | "GameActionQuickSlotAddToSlot2" | "GameActionQuickSlotAddToSlot3" | "GameActionQuickSlotAddToSlot4" | "GameActionQuickSlotAddToSlot5" | "GameActionQuickSlotAddToSlot6" | "GameActionQuickSlotAddToSlot7" | "GameActionQuickSlotAddToSlot8" | "GameActionQuickSlotAddToSlot9" | "GameActionQuickSlotAddToSlot10" | "GameActionQuickSlotAddToSlot11" | "GameActionQuickSlotAddToSlot12" | "GameActionQuickSlotRemove" | "GameActionEquip" | "GameActionEquipLeft" | "GameActionEquipRight" | "GameActionUnequip" | "GameActionCloseContainer" | "GameActionOpenContainer" | "GameActionButcher" | "GameActionHarvest" | "GameActionChop" | "GameActionMine" | "GameActionMelee" | "GameActionGatherLiquid" | "GameActionAttachContainer" | "GameActionDetachContainer" | "GameActionPour" | "GameActionPourOnYourself" | "GameActionDrink" | "GameActionBuild" | "GameActionCraft" | "GameActionDisassemble" | "GameActionDismantle" | "GameActionOffer" | "GameActionRepair" | "GameActionThrow" | "GameActionRename" | "GameActionStartFire" | "GameActionExtinguish" | "GameActionDrop" | "GameActionDropAll" | "GameActionDropAllOfSameQuality" | "GameActionDig" | "GameActionTill" | "GameActionEat" | "GameActionCast" | "GameActionRest" | "GameActionSleep" | "GameActionCure" | "GameActionLockpick" | "GameActionOperate" | "GameActionPaddle" | "GameActionGrasp" | "GameActionAbsorb" | "GameActionExude" | "GameActionIgnite" | "GameActionSetDown" | "GameActionRubClockwise" | "GameActionRubCounterclockwise" | "GameActionRead" | "GameActionLearn" | "GameActionOpenBottle" | "GameActionSqueeze" | "GameActionGatherWithHands" | "GameActionHarvestWithHands" | "GameActionDigWithHands" | "GameActionTillWithHands" | "GameActionPickUpExcrementWithHands" | "GameActionPickUpItem" | "GameActionPickUpAllItems" | "GameActionPickUpDoodad" | "GameActionTame" | "GameActionRelease" | "GameActionPet" | "GameActionHitch" | "GameActionUnhitch" | "GameActionToggleHitch" | "GameActionJump" | "GameActionAttack" | "GameActionPlant" | "GameActionPlaceDown" | "GameActionTrade" | "GameActionShoot" | "GameActionFire" | "GameActionProtect" | "GameActionUnprotect" | "GameActionSmotherFire" | "GameActionStokeFire" | "GameActionHeal" | "GameActionHealOther" | "GameActionTestDepth" | "GameActionReadMap" | "GameActionPreserve" | "GameActionReinforce" | "GameActionTellTime" | "GameActionEnchant" | "GameActionSailToCivilization" | "GameActionTeleport" | "GameActionDrawMap" | "GameActionApply" | "GameActionRefine" | "GameActionTransmogrify" | "GameActionNavigate" | "GameActionUpgrade" | "GameActionEnhance" | "GameActionAlter" | "GameActionExudeWithItem" | "GameActionAbsorbWithItem" | "GameActionIgniteWithItem" | "GameActionAddFuelWithItem" | "GameActionPreserveWithItem" | "GameActionRefineWithItem" | "GameActionAlterWithItem" | "GameActionUpgradeWithItem" | "GameActionTransmogrifyWithItem" | "GameActionEnchantWithItem" | "GameActionEnhanceWithItem" | "GameActionReinforceWithItem" | "GameActionRepairWithItem" | "GameActionItemMove" | "GameActionItemMoveAll" | "GameActionItemMoveAllOfSameQuality" | "GameActionItemMoveToInventory" | "GameActionTradeBuyFromTrader" | "GameActionTradeSellToTrader" | "GameActionItemMoveToActiveContainer" | "GameActionItemMoveToFacingContainer" | "GameActionOpenDoor" | "GameActionCloseDoor" | "DialogCloseAll" | "DialogOptions" | "DialogHelp" | "DialogMilestones" | "DialogNotes" | "DialogMessages" | "DialogMessagesChatFocus" | "DialogInventory" | "DialogCrafting" | "DialogDismantle" | "DialogEquipment" | "DialogSkills" | "DialogQuests" | "DialogIslands" | "MenuEnter" | "MenuSubmit" | "MenuNext" | "MenuPrevious" | "MenuUp" | "MenuDown" | "MenuLeft" | "MenuRight" | "MenuCancel" | "MenuNextOption" | "MenuPreviousOption" | "MenuContextMenu" | "MenuSelect" | "DeveloperToggleDeveloperMode" | "DeveloperToggleDeveloperTools" | "DeveloperReloadGame" | "DeveloperReloadAndContinueGame" | "DeveloperReloadStylesheets" | "DeveloperReloadVariableUIImages")[];
|
|
30
30
|
static getAll(): readonly Bindable[];
|
|
31
|
-
static getName(bindable: Bindable): "None" | "GameMoveDirection" | "GameMoveUp" | "GameMoveLeft" | "GameMoveDown" | "GameMoveRight" | "GameMoveToTile" | "GameMoveToTilePreview" | "GameMoveToTileCancel" | "GameFaceDirection" | "GameFaceUp" | "GameFaceLeft" | "GameFaceDown" | "GameFaceRight" | "GameIdle" | "GameItemMove" | "GameItemMoveAll" | "GameItemMenu" | "GameItemQuickMove" | "GameItemQuickMoveAll" | "GameItemDrop" | "GameItemDropAll" | "GameItemEquipToggle" | "GameItemProtectToggle" | "GameInspect" | "GameInspectItem" | "GameMoreInformation" | "GameZoomIn" | "GameZoomOut" | "GamePause" | "GameSave" | "GameFullscreen" | "GameScreenshotMode" | "GameActionBarClear" | "GameActionBarConfigure" | "GameActionBarCopy" | "GameActions" | "GameActionsItems" | "GameActionQuickSlotAdd" | "GameActionQuickSlotAddToFree" | "GameActionQuickSlotAddToSlot1" | "GameActionQuickSlotAddToSlot2" | "GameActionQuickSlotAddToSlot3" | "GameActionQuickSlotAddToSlot4" | "GameActionQuickSlotAddToSlot5" | "GameActionQuickSlotAddToSlot6" | "GameActionQuickSlotAddToSlot7" | "GameActionQuickSlotAddToSlot8" | "GameActionQuickSlotAddToSlot9" | "GameActionQuickSlotAddToSlot10" | "GameActionQuickSlotAddToSlot11" | "GameActionQuickSlotAddToSlot12" | "GameActionQuickSlotRemove" | "GameActionEquip" | "GameActionEquipLeft" | "GameActionEquipRight" | "GameActionUnequip" | "GameActionCloseContainer" | "GameActionOpenContainer" | "GameActionButcher" | "GameActionHarvest" | "GameActionChop" | "GameActionMine" | "GameActionMelee" | "GameActionGatherLiquid" | "GameActionAttachContainer" | "GameActionDetachContainer" | "GameActionPour" | "GameActionPourOnYourself" | "GameActionDrink" | "GameActionBuild" | "GameActionCraft" | "GameActionDisassemble" | "GameActionDismantle" | "GameActionOffer" | "GameActionRepair" | "GameActionThrow" | "GameActionRename" | "GameActionStartFire" | "GameActionExtinguish" | "GameActionDrop" | "GameActionDropAll" | "GameActionDropAllOfSameQuality" | "GameActionDig" | "GameActionTill" | "GameActionEat" | "GameActionCast" | "GameActionRest" | "GameActionSleep" | "GameActionCure" | "GameActionLockpick" | "GameActionOperate" | "GameActionPaddle" | "GameActionGrasp" | "GameActionAbsorb" | "GameActionExude" | "GameActionIgnite" | "GameActionSetDown" | "GameActionRubClockwise" | "GameActionRubCounterclockwise" | "GameActionRead" | "GameActionLearn" | "GameActionOpenBottle" | "GameActionSqueeze" | "GameActionGatherWithHands" | "GameActionHarvestWithHands" | "GameActionDigWithHands" | "GameActionTillWithHands" | "GameActionPickUpExcrementWithHands" | "GameActionPickUpItem" | "GameActionPickUpAllItems" | "GameActionPickUpDoodad" | "GameActionTame" | "GameActionRelease" | "GameActionPet" | "GameActionHitch" | "GameActionUnhitch" | "GameActionToggleHitch" | "GameActionJump" | "GameActionAttack" | "GameActionPlant" | "GameActionPlaceDown" | "GameActionTrade" | "GameActionShoot" | "GameActionFire" | "GameActionProtect" | "GameActionUnprotect" | "GameActionSmotherFire" | "GameActionStokeFire" | "GameActionHeal" | "GameActionHealOther" | "GameActionTestDepth" | "GameActionReadMap" | "GameActionPreserve" | "GameActionReinforce" | "GameActionTellTime" | "GameActionEnchant" | "GameActionSailToCivilization" | "GameActionTeleport" | "GameActionDrawMap" | "GameActionApply" | "GameActionRefine" | "GameActionTransmogrify" | "GameActionNavigate" | "GameActionUpgrade" | "GameActionEnhance" | "GameActionAlter" | "GameActionExudeWithItem" | "GameActionAbsorbWithItem" | "GameActionIgniteWithItem" | "GameActionAddFuelWithItem" | "GameActionPreserveWithItem" | "GameActionRefineWithItem" | "GameActionAlterWithItem" | "GameActionUpgradeWithItem" | "GameActionTransmogrifyWithItem" | "GameActionEnchantWithItem" | "GameActionEnhanceWithItem" | "GameActionReinforceWithItem" | "GameActionRepairWithItem" | "GameActionItemMove" | "GameActionItemMoveAll" | "GameActionItemMoveAllOfSameQuality" | "GameActionItemMoveToInventory" | "GameActionTradeBuyFromTrader" | "GameActionTradeSellToTrader" | "GameActionItemMoveToActiveContainer" | "GameActionItemMoveToFacingContainer" | "GameActionOpenDoor" | "GameActionCloseDoor" | "DialogCloseAll" | "DialogOptions" | "DialogHelp" | "DialogMilestones" | "DialogNotes" | "DialogMessages" | "DialogMessagesChatFocus" | "DialogInventory" | "DialogCrafting" | "DialogDismantle" | "DialogEquipment" | "DialogSkills" | "DialogQuests" | "DialogIslands" | "MenuEnter" | "MenuSubmit" | "MenuNext" | "MenuPrevious" | "MenuUp" | "MenuDown" | "MenuLeft" | "MenuRight" | "MenuCancel" | "MenuNextOption" | "MenuPreviousOption" | "MenuContextMenu" | "MenuSelect" | "DeveloperToggleDeveloperMode" | "DeveloperToggleDeveloperTools" | "DeveloperReloadGame" | "DeveloperReloadAndContinueGame" | "DeveloperReloadStylesheets" | "DeveloperReloadVariableUIImages" | undefined;
|
|
31
|
+
static getName(bindable: Bindable): "None" | "GameMoveDirection" | "GameMoveUp" | "GameMoveLeft" | "GameMoveDown" | "GameMoveRight" | "GameMoveToTile" | "GameMoveToTilePreview" | "GameMoveToTileCancel" | "GameFaceDirection" | "GameFaceUp" | "GameFaceLeft" | "GameFaceDown" | "GameFaceRight" | "GameIdle" | "GameItemMove" | "GameItemMoveAll" | "GameItemMoveAllByQuality" | "GameItemMenu" | "GameItemQuickMove" | "GameItemQuickMoveAll" | "GameItemQuickMoveAllByQuality" | "GameItemDrop" | "GameItemDropAll" | "GameItemDropAllByQuality" | "GameItemEquipToggle" | "GameItemProtectToggle" | "GameInspect" | "GameInspectItem" | "GameMoreInformation" | "GameZoomIn" | "GameZoomOut" | "GamePause" | "GameSave" | "GameFullscreen" | "GameScreenshotMode" | "GameActionBarClear" | "GameActionBarConfigure" | "GameActionBarCopy" | "GameActions" | "GameActionsItems" | "GameActionQuickSlotAdd" | "GameActionQuickSlotAddToFree" | "GameActionQuickSlotAddToSlot1" | "GameActionQuickSlotAddToSlot2" | "GameActionQuickSlotAddToSlot3" | "GameActionQuickSlotAddToSlot4" | "GameActionQuickSlotAddToSlot5" | "GameActionQuickSlotAddToSlot6" | "GameActionQuickSlotAddToSlot7" | "GameActionQuickSlotAddToSlot8" | "GameActionQuickSlotAddToSlot9" | "GameActionQuickSlotAddToSlot10" | "GameActionQuickSlotAddToSlot11" | "GameActionQuickSlotAddToSlot12" | "GameActionQuickSlotRemove" | "GameActionEquip" | "GameActionEquipLeft" | "GameActionEquipRight" | "GameActionUnequip" | "GameActionCloseContainer" | "GameActionOpenContainer" | "GameActionButcher" | "GameActionHarvest" | "GameActionChop" | "GameActionMine" | "GameActionMelee" | "GameActionGatherLiquid" | "GameActionAttachContainer" | "GameActionDetachContainer" | "GameActionPour" | "GameActionPourOnYourself" | "GameActionDrink" | "GameActionBuild" | "GameActionCraft" | "GameActionDisassemble" | "GameActionDismantle" | "GameActionOffer" | "GameActionRepair" | "GameActionThrow" | "GameActionRename" | "GameActionStartFire" | "GameActionExtinguish" | "GameActionDrop" | "GameActionDropAll" | "GameActionDropAllOfSameQuality" | "GameActionDig" | "GameActionTill" | "GameActionEat" | "GameActionCast" | "GameActionRest" | "GameActionSleep" | "GameActionCure" | "GameActionLockpick" | "GameActionOperate" | "GameActionPaddle" | "GameActionGrasp" | "GameActionAbsorb" | "GameActionExude" | "GameActionIgnite" | "GameActionSetDown" | "GameActionRubClockwise" | "GameActionRubCounterclockwise" | "GameActionRead" | "GameActionLearn" | "GameActionOpenBottle" | "GameActionSqueeze" | "GameActionGatherWithHands" | "GameActionHarvestWithHands" | "GameActionDigWithHands" | "GameActionTillWithHands" | "GameActionPickUpExcrementWithHands" | "GameActionPickUpItem" | "GameActionPickUpAllItems" | "GameActionPickUpDoodad" | "GameActionTame" | "GameActionRelease" | "GameActionPet" | "GameActionHitch" | "GameActionUnhitch" | "GameActionToggleHitch" | "GameActionJump" | "GameActionAttack" | "GameActionPlant" | "GameActionPlaceDown" | "GameActionTrade" | "GameActionShoot" | "GameActionFire" | "GameActionProtect" | "GameActionUnprotect" | "GameActionSmotherFire" | "GameActionStokeFire" | "GameActionHeal" | "GameActionHealOther" | "GameActionTestDepth" | "GameActionReadMap" | "GameActionPreserve" | "GameActionReinforce" | "GameActionTellTime" | "GameActionEnchant" | "GameActionSailToCivilization" | "GameActionTeleport" | "GameActionDrawMap" | "GameActionApply" | "GameActionRefine" | "GameActionTransmogrify" | "GameActionNavigate" | "GameActionUpgrade" | "GameActionEnhance" | "GameActionAlter" | "GameActionExudeWithItem" | "GameActionAbsorbWithItem" | "GameActionIgniteWithItem" | "GameActionAddFuelWithItem" | "GameActionPreserveWithItem" | "GameActionRefineWithItem" | "GameActionAlterWithItem" | "GameActionUpgradeWithItem" | "GameActionTransmogrifyWithItem" | "GameActionEnchantWithItem" | "GameActionEnhanceWithItem" | "GameActionReinforceWithItem" | "GameActionRepairWithItem" | "GameActionItemMove" | "GameActionItemMoveAll" | "GameActionItemMoveAllOfSameQuality" | "GameActionItemMoveToInventory" | "GameActionTradeBuyFromTrader" | "GameActionTradeSellToTrader" | "GameActionItemMoveToActiveContainer" | "GameActionItemMoveToFacingContainer" | "GameActionOpenDoor" | "GameActionCloseDoor" | "DialogCloseAll" | "DialogOptions" | "DialogHelp" | "DialogMilestones" | "DialogNotes" | "DialogMessages" | "DialogMessagesChatFocus" | "DialogInventory" | "DialogCrafting" | "DialogDismantle" | "DialogEquipment" | "DialogSkills" | "DialogQuests" | "DialogIslands" | "MenuEnter" | "MenuSubmit" | "MenuNext" | "MenuPrevious" | "MenuUp" | "MenuDown" | "MenuLeft" | "MenuRight" | "MenuCancel" | "MenuNextOption" | "MenuPreviousOption" | "MenuContextMenu" | "MenuSelect" | "DeveloperToggleDeveloperMode" | "DeveloperToggleDeveloperTools" | "DeveloperReloadGame" | "DeveloperReloadAndContinueGame" | "DeveloperReloadStylesheets" | "DeveloperReloadVariableUIImages" | undefined;
|
|
32
32
|
static get(name: keyof typeof Bindable): Bindable | undefined;
|
|
33
33
|
static getDefaultBindings(bindable: Bindable): Binding[] | undefined;
|
|
34
34
|
static getTranslation(bindable: Bindable, which?: BindableTranslation): Translation;
|
|
@@ -8,7 +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 type { InputCatalyst } from "ui/input/IInput";
|
|
11
|
+
import type { InputCatalyst, Modifier } from "ui/input/IInput";
|
|
12
12
|
export declare enum InputCatalystType {
|
|
13
13
|
Key = 0,
|
|
14
14
|
MouseButton = 1,
|
|
@@ -21,8 +21,11 @@ export declare enum InputIcon {
|
|
|
21
21
|
ClickRight = 2,
|
|
22
22
|
ScrollUp = 3,
|
|
23
23
|
ScrollDown = 4,
|
|
24
|
-
HoverItem = 5
|
|
24
|
+
HoverItem = 5,
|
|
25
|
+
Shift = 6,
|
|
26
|
+
Ctrl = 7,
|
|
27
|
+
Alt = 8
|
|
25
28
|
}
|
|
26
29
|
export declare namespace InputIcon {
|
|
27
|
-
function get(catalyst: InputCatalyst): InputIcon | undefined;
|
|
30
|
+
function get(catalyst: InputCatalyst | Modifier): InputIcon | undefined;
|
|
28
31
|
}
|
|
@@ -49,7 +49,7 @@ declare enum ModifierType {
|
|
|
49
49
|
export declare type Modifier = keyof typeof ModifierType;
|
|
50
50
|
export declare module Modifier {
|
|
51
51
|
function is(value: unknown): value is Modifier;
|
|
52
|
-
function translate(modifier: Modifier): TranslationImpl;
|
|
52
|
+
function translate(modifier: Modifier, simplify?: boolean): TranslationImpl;
|
|
53
53
|
function getTranslationId(modifier: Modifier): string;
|
|
54
54
|
function setsEqual(modifiersA: Set<Modifier>, modifiersB: Set<Modifier>): boolean;
|
|
55
55
|
function all(): readonly Modifier[];
|
|
@@ -127,7 +127,7 @@ export default class InGameScreen extends BaseScreen {
|
|
|
127
127
|
onAddItemsToContainer(containerElement: JQuery, containerDialogElement: JQuery | undefined, isInventoryContainer: boolean, updateTables?: boolean): void;
|
|
128
128
|
afterAddingMultipleItemsToContainer(container: IContainer): void;
|
|
129
129
|
removeItemFromContainer(item: Item, container: IContainer): void;
|
|
130
|
-
refreshContainerName(container: IContainer): void;
|
|
130
|
+
refreshContainerName(container: IContainer, nestedUpdate?: boolean): void;
|
|
131
131
|
getInventoryItemsInOrder(): any[];
|
|
132
132
|
saveItemOrder(containerElement: JQuery, activeSort?: boolean): void;
|
|
133
133
|
craftItem(itemType: ItemType): void;
|
|
@@ -169,7 +169,7 @@ export default class InGameScreen extends BaseScreen {
|
|
|
169
169
|
closeStaticContainers(): void;
|
|
170
170
|
hasOpenContainer(): boolean;
|
|
171
171
|
closeAllContainers(closeType?: "close" | "destroy"): boolean;
|
|
172
|
-
updateContainerName(containerDialogElement: JQuery): void;
|
|
172
|
+
updateContainerName(containerDialogElement: JQuery, nestedUpdate?: boolean): void;
|
|
173
173
|
updateActiveContainer(): void;
|
|
174
174
|
getActiveContainer(): IUiContainer | undefined;
|
|
175
175
|
getOpenContainers(): IUiContainer[];
|
|
@@ -42,9 +42,14 @@ export declare type IEdges = [
|
|
|
42
42
|
]
|
|
43
43
|
];
|
|
44
44
|
export interface IDialogDescription<SQUARE = boolean> extends IModdable {
|
|
45
|
-
|
|
45
|
+
/**
|
|
46
|
+
* The minimum resolution of this dialog, in pixels.
|
|
47
|
+
*/
|
|
48
|
+
minResolution: SQUARE extends true ? number : IVector2;
|
|
49
|
+
/**
|
|
50
|
+
* The default size of this dialog, in percentages. For square dialogs, this is the Y axis.
|
|
51
|
+
*/
|
|
46
52
|
size: SQUARE extends true ? number : IVector2;
|
|
47
|
-
maxSize: SQUARE extends true ? number : IVector2;
|
|
48
53
|
edges: IEdges | "center";
|
|
49
54
|
/**
|
|
50
55
|
* Whether to save if the dialog is open. If this is false, the dialog will always be closed when a game loads. Defaults to true.
|
|
@@ -26,7 +26,7 @@ import QuadrantComponent from "ui/screen/screens/game/component/QuadrantComponen
|
|
|
26
26
|
import ActionsConfigurationDrawer from "ui/screen/screens/game/static/actions/ActionsDrawer";
|
|
27
27
|
import ActionSlotTooltipHandler from "ui/screen/screens/game/static/actions/ActionSlotTooltip";
|
|
28
28
|
import { IActionBarSlotData } from "ui/screen/screens/game/static/actions/IActionBar";
|
|
29
|
-
export declare const MAX_SLOTS =
|
|
29
|
+
export declare const MAX_SLOTS = 48;
|
|
30
30
|
export declare enum ActionBarClasses {
|
|
31
31
|
Main = "game-action-bar",
|
|
32
32
|
Configuring = "game-action-bar-configuring",
|
|
@@ -107,7 +107,7 @@ export declare class ActionSlot extends Button implements IRefreshable {
|
|
|
107
107
|
clear(): void;
|
|
108
108
|
equipItem(item: Item, configure?: boolean): void;
|
|
109
109
|
protected onConfigureBind(api: IBindHandlerApi): boolean;
|
|
110
|
-
configure(): void;
|
|
110
|
+
configure(emitToActionBar?: boolean): void;
|
|
111
111
|
protected onAppend(): void;
|
|
112
112
|
protected onItemMaybeInaccessible(): void;
|
|
113
113
|
postExecuteAction(action: IActionApi): void;
|
package/definitions/game/ui/screen/screens/game/static/actions/ActionBarBindableManager.d.ts
CHANGED
|
@@ -19,5 +19,5 @@ export default class ActionBarBindableManager extends BindableManager {
|
|
|
19
19
|
getSlotToggleBindable(slot: number): Bindable | undefined;
|
|
20
20
|
requireSlots(slotCount: number): void;
|
|
21
21
|
private generateBindings;
|
|
22
|
-
private
|
|
22
|
+
private generateBinding;
|
|
23
23
|
}
|
|
@@ -19,7 +19,7 @@ export default class LoadGameMenu extends Menu {
|
|
|
19
19
|
private sort;
|
|
20
20
|
private sortDirection;
|
|
21
21
|
private newGameButton;
|
|
22
|
-
private
|
|
22
|
+
private milestonesNotUnlockableWarning;
|
|
23
23
|
private readonly selectedRow;
|
|
24
24
|
constructor();
|
|
25
25
|
protected onSelect(api: IBindHandlerApi): boolean;
|
package/package.json
CHANGED