@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.
Files changed (28) hide show
  1. package/definitions/game/game/Game.d.ts +2 -2
  2. package/definitions/game/game/entity/Entity.d.ts +1 -0
  3. package/definitions/game/game/entity/Human.d.ts +3 -3
  4. package/definitions/game/game/entity/IHuman.d.ts +3 -1
  5. package/definitions/game/game/entity/action/ActionExecutor.d.ts +2 -2
  6. package/definitions/game/game/entity/action/IAction.d.ts +2 -2
  7. package/definitions/game/game/entity/action/usable/actions/UsableActionsDynamic.d.ts +4 -3
  8. package/definitions/game/game/entity/creature/corpse/Corpse.d.ts +22 -0
  9. package/definitions/game/game/entity/creature/corpse/ICorpse.d.ts +1 -0
  10. package/definitions/game/game/entity/npc/NPC.d.ts +2 -1
  11. package/definitions/game/game/entity/npc/npcs/Merchant.d.ts +6 -0
  12. package/definitions/game/game/entity/player/IPlayer.d.ts +8 -4
  13. package/definitions/game/game/item/IItem.d.ts +1 -1
  14. package/definitions/game/game/item/Item.d.ts +1 -1
  15. package/definitions/game/game/item/ItemManager.d.ts +6 -1
  16. package/definitions/game/game/tile/ITerrain.d.ts +2 -1
  17. package/definitions/game/renderer/world/WorldRenderer.d.ts +1 -0
  18. package/definitions/game/ui/input/Bindable.d.ts +189 -186
  19. package/definitions/game/ui/input/BindableManager.d.ts +2 -2
  20. package/definitions/game/ui/input/IIInput.d.ts +6 -3
  21. package/definitions/game/ui/input/IInput.d.ts +1 -1
  22. package/definitions/game/ui/old/functional/IFunctionalSortable.d.ts +1 -0
  23. package/definitions/game/ui/old/screens/InGameScreen.d.ts +2 -2
  24. package/definitions/game/ui/screen/screens/game/Dialogs.d.ts +7 -2
  25. package/definitions/game/ui/screen/screens/game/static/ActionBar.d.ts +2 -2
  26. package/definitions/game/ui/screen/screens/game/static/actions/ActionBarBindableManager.d.ts +1 -1
  27. package/definitions/game/ui/screen/screens/menu/menus/LoadGameMenu.d.ts +1 -1
  28. 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 { TurnType } from "game/entity/player/IPlayer";
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?: TurnType): void;
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, TurnType, WeightStatus } from "game/entity/player/IPlayer";
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?: TurnType): void;
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 { TurnType } from "game/entity/player/IPlayer";
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?: TurnType): this;
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 { TurnType } from "game/entity/player/IPlayer";
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?: TurnType): this;
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>): ReturnableUsableActionUsability;
28
- execute(action: ActionType, player: Player, using: IUsableActionUsing<REQUIREMENTS>): any;
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
  }
@@ -23,6 +23,7 @@ export interface ICorpseDescription extends IModdable {
23
23
  lightColor?: IRGB;
24
24
  animated?: boolean;
25
25
  isFlammable?: boolean;
26
+ isTall?: boolean;
26
27
  respawns?: boolean;
27
28
  }
28
29
  export interface ICorpseResourceDrop {
@@ -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 TurnType {
115
- CheckUnderPlayer = 0,
116
- DontEnterCaves = 1,
117
- Idle = 2
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 updateUiOnItemRemove;
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;
@@ -195,7 +195,8 @@ export declare enum TileTemplateType {
195
195
  IceHouses = 9,
196
196
  SnowHouses = 10,
197
197
  AshCementHouses = 11,
198
- StoneHouses = 12
198
+ StoneHouses = 12,
199
+ Railways = 13
199
200
  }
200
201
  export interface ITemplate {
201
202
  mapTile?: MapTile;
@@ -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
- GameItemMenu = 17,
37
- GameItemQuickMove = 18,
38
- GameItemQuickMoveAll = 19,
39
- GameItemDrop = 20,
40
- GameItemDropAll = 21,
41
- GameItemEquipToggle = 22,
42
- GameItemProtectToggle = 23,
43
- GameInspect = 24,
44
- GameInspectItem = 25,
45
- GameMoreInformation = 26,
46
- GameZoomIn = 27,
47
- GameZoomOut = 28,
48
- GamePause = 29,
49
- GameSave = 30,
50
- GameFullscreen = 31,
51
- GameScreenshotMode = 32,
52
- GameActionBarClear = 33,
53
- GameActionBarConfigure = 34,
54
- GameActionBarCopy = 35,
55
- GameActions = 36,
56
- GameActionsItems = 37,
57
- GameActionQuickSlotAdd = 38,
58
- GameActionQuickSlotAddToFree = 39,
59
- GameActionQuickSlotAddToSlot1 = 40,
60
- GameActionQuickSlotAddToSlot2 = 41,
61
- GameActionQuickSlotAddToSlot3 = 42,
62
- GameActionQuickSlotAddToSlot4 = 43,
63
- GameActionQuickSlotAddToSlot5 = 44,
64
- GameActionQuickSlotAddToSlot6 = 45,
65
- GameActionQuickSlotAddToSlot7 = 46,
66
- GameActionQuickSlotAddToSlot8 = 47,
67
- GameActionQuickSlotAddToSlot9 = 48,
68
- GameActionQuickSlotAddToSlot10 = 49,
69
- GameActionQuickSlotAddToSlot11 = 50,
70
- GameActionQuickSlotAddToSlot12 = 51,
71
- GameActionQuickSlotRemove = 52,
72
- GameActionEquip = 53,
73
- GameActionEquipLeft = 54,
74
- GameActionEquipRight = 55,
75
- GameActionUnequip = 56,
76
- GameActionCloseContainer = 57,
77
- GameActionOpenContainer = 58,
78
- GameActionButcher = 59,
79
- GameActionHarvest = 60,
80
- GameActionChop = 61,
81
- GameActionMine = 62,
82
- GameActionMelee = 63,
83
- GameActionGatherLiquid = 64,
84
- GameActionAttachContainer = 65,
85
- GameActionDetachContainer = 66,
86
- GameActionPour = 67,
87
- GameActionPourOnYourself = 68,
88
- GameActionDrink = 69,
89
- GameActionBuild = 70,
90
- GameActionCraft = 71,
91
- GameActionDisassemble = 72,
92
- GameActionDismantle = 73,
93
- GameActionOffer = 74,
94
- GameActionRepair = 75,
95
- GameActionThrow = 76,
96
- GameActionRename = 77,
97
- GameActionStartFire = 78,
98
- GameActionExtinguish = 79,
99
- GameActionDrop = 80,
100
- GameActionDropAll = 81,
101
- GameActionDropAllOfSameQuality = 82,
102
- GameActionDig = 83,
103
- GameActionTill = 84,
104
- GameActionEat = 85,
105
- GameActionCast = 86,
106
- GameActionRest = 87,
107
- GameActionSleep = 88,
108
- GameActionCure = 89,
109
- GameActionLockpick = 90,
110
- GameActionOperate = 91,
111
- GameActionPaddle = 92,
112
- GameActionGrasp = 93,
113
- GameActionAbsorb = 94,
114
- GameActionExude = 95,
115
- GameActionIgnite = 96,
116
- GameActionSetDown = 97,
117
- GameActionRubClockwise = 98,
118
- GameActionRubCounterclockwise = 99,
119
- GameActionRead = 100,
120
- GameActionLearn = 101,
121
- GameActionOpenBottle = 102,
122
- GameActionSqueeze = 103,
123
- GameActionGatherWithHands = 104,
124
- GameActionHarvestWithHands = 105,
125
- GameActionDigWithHands = 106,
126
- GameActionTillWithHands = 107,
127
- GameActionPickUpExcrementWithHands = 108,
128
- GameActionPickUpItem = 109,
129
- GameActionPickUpAllItems = 110,
130
- GameActionPickUpDoodad = 111,
131
- GameActionTame = 112,
132
- GameActionRelease = 113,
133
- GameActionPet = 114,
134
- GameActionHitch = 115,
135
- GameActionUnhitch = 116,
136
- GameActionToggleHitch = 117,
137
- GameActionJump = 118,
138
- GameActionAttack = 119,
139
- GameActionPlant = 120,
140
- GameActionPlaceDown = 121,
141
- GameActionTrade = 122,
142
- GameActionShoot = 123,
143
- GameActionFire = 124,
144
- GameActionProtect = 125,
145
- GameActionUnprotect = 126,
146
- GameActionSmotherFire = 127,
147
- GameActionStokeFire = 128,
148
- GameActionHeal = 129,
149
- GameActionHealOther = 130,
150
- GameActionTestDepth = 131,
151
- GameActionReadMap = 132,
152
- GameActionPreserve = 133,
153
- GameActionReinforce = 134,
154
- GameActionTellTime = 135,
155
- GameActionEnchant = 136,
156
- GameActionSailToCivilization = 137,
157
- GameActionTeleport = 138,
158
- GameActionDrawMap = 139,
159
- GameActionApply = 140,
160
- GameActionRefine = 141,
161
- GameActionTransmogrify = 142,
162
- GameActionNavigate = 143,
163
- GameActionUpgrade = 144,
164
- GameActionEnhance = 145,
165
- GameActionAlter = 146,
166
- GameActionExudeWithItem = 147,
167
- GameActionAbsorbWithItem = 148,
168
- GameActionIgniteWithItem = 149,
169
- GameActionAddFuelWithItem = 150,
170
- GameActionPreserveWithItem = 151,
171
- GameActionRefineWithItem = 152,
172
- GameActionAlterWithItem = 153,
173
- GameActionUpgradeWithItem = 154,
174
- GameActionTransmogrifyWithItem = 155,
175
- GameActionEnchantWithItem = 156,
176
- GameActionEnhanceWithItem = 157,
177
- GameActionReinforceWithItem = 158,
178
- GameActionRepairWithItem = 159,
179
- GameActionItemMove = 160,
180
- GameActionItemMoveAll = 161,
181
- GameActionItemMoveAllOfSameQuality = 162,
182
- GameActionItemMoveToInventory = 163,
183
- GameActionTradeBuyFromTrader = 164,
184
- GameActionTradeSellToTrader = 165,
185
- GameActionItemMoveToActiveContainer = 166,
186
- GameActionItemMoveToFacingContainer = 167,
187
- GameActionOpenDoor = 168,
188
- GameActionCloseDoor = 169,
189
- DialogCloseAll = 170,
190
- DialogOptions = 171,
191
- DialogHelp = 172,
192
- DialogMilestones = 173,
193
- DialogNotes = 174,
194
- DialogMessages = 175,
195
- DialogMessagesChatFocus = 176,
196
- DialogInventory = 177,
197
- DialogCrafting = 178,
198
- DialogDismantle = 179,
199
- DialogEquipment = 180,
200
- DialogSkills = 181,
201
- DialogQuests = 182,
202
- DialogIslands = 183,
203
- MenuEnter = 184,
204
- MenuSubmit = 185,
205
- MenuNext = 186,
206
- MenuPrevious = 187,
207
- MenuUp = 188,
208
- MenuDown = 189,
209
- MenuLeft = 190,
210
- MenuRight = 191,
211
- MenuCancel = 192,
212
- MenuNextOption = 193,
213
- MenuPreviousOption = 194,
214
- MenuContextMenu = 195,
215
- MenuSelect = 196,
216
- DeveloperToggleDeveloperMode = 197,
217
- DeveloperToggleDeveloperTools = 198,
218
- DeveloperReloadGame = 199,
219
- DeveloperReloadAndContinueGame = 200,
220
- DeveloperReloadStylesheets = 201,
221
- DeveloperReloadVariableUIImages = 202
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[];
@@ -15,6 +15,7 @@ export interface ISortableEvent {
15
15
  initialContainer: JQuery;
16
16
  targetContainer?: JQuery;
17
17
  all?: true;
18
+ quality?: true;
18
19
  }
19
20
  export interface ISortableOptions {
20
21
  connectWith?: string;
@@ -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
- minSize: SQUARE extends true ? number : IVector2;
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 = 50;
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;
@@ -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 generateCatalyst;
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 readonly milestonesNotUnlockableWarning;
22
+ private milestonesNotUnlockableWarning;
23
23
  private readonly selectedRow;
24
24
  constructor();
25
25
  protected onSelect(api: IBindHandlerApi): boolean;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wayward/types",
3
3
  "description": "TypeScript declarations for Wayward, used for modding.",
4
- "version": "2.12.0-beta.dev.20220830.1",
4
+ "version": "2.12.0-beta.dev.20220902.1",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",