@wayward/types 2.13.0-beta.dev.20230310.1 → 2.13.0-beta.dev.20230312.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.
@@ -0,0 +1,13 @@
1
+ /*!
2
+ * Copyright 2011-2021 Unlok
3
+ * https://www.unlok.ca
4
+ *
5
+ * Credits & Thanks:
6
+ * https://www.unlok.ca/credits-thanks/
7
+ *
8
+ * Wayward is a copyrighted and licensed work. Modification and/or distribution of any source files is prohibited. If you wish to modify the game in any way, please refer to the modding guide:
9
+ * https://github.com/WaywardGame/types/wiki
10
+ */
11
+ import { UsableActionGenerator } from "game/entity/action/usable/UsableActionRegistrar";
12
+ declare const _default: UsableActionGenerator<[]>;
13
+ export default _default;
@@ -18,27 +18,28 @@ export declare enum UsableActionSet {
18
18
  */
19
19
  First = 0,
20
20
  Vehicle = 1,
21
- WithHands = 2,
22
- PickUp = 3,
23
- Rest = 4,
24
- Extinguish = 5,
25
- Misc = 6,
26
- Till = 7,
27
- UseItem = 8,
28
- CloseContainer = 9,
29
- Equip = 10,
30
- Craft = 11,
31
- XWithY = 12,
32
- ItemMisc = 13,
33
- ItemDrop = 14,
34
- ItemMoveMenus = 15,
35
- Doodads = 16,
36
- Creatures = 17,
37
- Commands = 18,
38
- UseNPC = 19,
39
- Rename = 20,
40
- Protect = 21,
41
- Main = 22
21
+ Drink = 2,
22
+ Doodads = 3,
23
+ Extinguish = 4,
24
+ UseItem = 5,
25
+ PickUp = 6,
26
+ Containers = 7,
27
+ Creatures = 8,
28
+ Commands = 9,
29
+ UseNPC = 10,
30
+ Rest = 11,
31
+ WithHands = 12,
32
+ Till = 13,
33
+ Misc = 14,
34
+ Equip = 15,
35
+ Craft = 16,
36
+ XWithY = 17,
37
+ ItemMisc = 18,
38
+ ItemMoveMenus = 19,
39
+ ItemDrop = 20,
40
+ Rename = 21,
41
+ Protect = 22,
42
+ Main = 23
42
43
  }
43
44
  export declare const usableActionSets: {
44
45
  0: UsableActionGenerator<[]>;
@@ -46,22 +47,23 @@ export declare const usableActionSets: {
46
47
  2: UsableActionGenerator<[]>;
47
48
  3: UsableActionGenerator<[]>;
48
49
  4: UsableActionGenerator<[]>;
49
- 5: UsableActionGenerator<[]>;
50
+ 5: import("./UsableActionsDynamic").default<import("game/entity/action/usable/actions/item/UsableActionsUseItem").IUseItemAction, import("game/entity/action/usable/IUsableAction").IUsableActionRequirements>;
50
51
  6: UsableActionGenerator<[]>;
51
52
  7: UsableActionGenerator<[]>;
52
- 8: import("./UsableActionsDynamic").default<import("game/entity/action/usable/actions/item/UsableActionsUseItem").IUseItemAction, import("game/entity/action/usable/IUsableAction").IUsableActionRequirements>;
53
- 9: UsableActionGenerator<[]>;
54
- 10: UsableActionGenerator<[]>;
53
+ 8: UsableActionGenerator<[]>;
54
+ 9: UsableActionGenerator<[isCommandMenu?: true | undefined]>;
55
+ 10: import("./UsableActionsDynamic").default<import("game/entity/action/usable/actions/UsableActionsUseNPC").IUseNPCAction, import("game/entity/action/usable/IUsableAction").IUsableActionRequirements>;
55
56
  11: UsableActionGenerator<[]>;
56
57
  12: UsableActionGenerator<[]>;
57
58
  13: UsableActionGenerator<[]>;
58
- 14: UsableActionGenerator<[isDropMenu?: true | undefined]>;
59
+ 14: UsableActionGenerator<[]>;
59
60
  15: UsableActionGenerator<[]>;
60
61
  16: UsableActionGenerator<[]>;
61
62
  17: UsableActionGenerator<[]>;
62
- 18: UsableActionGenerator<[isCommandMenu?: true | undefined]>;
63
- 19: import("./UsableActionsDynamic").default<import("game/entity/action/usable/actions/UsableActionsUseNPC").IUseNPCAction, import("game/entity/action/usable/IUsableAction").IUsableActionRequirements>;
64
- 20: UsableActionGenerator<[]>;
63
+ 18: UsableActionGenerator<[]>;
64
+ 19: UsableActionGenerator<[]>;
65
+ 20: UsableActionGenerator<[isDropMenu?: true | undefined]>;
65
66
  21: UsableActionGenerator<[]>;
66
67
  22: UsableActionGenerator<[]>;
68
+ 23: UsableActionGenerator<[]>;
67
69
  };
@@ -21,7 +21,6 @@ import { ContainerType, CraftResult, ItemType, ItemTypeExtra, ItemTypeGroup } fr
21
21
  import type { IAddToContainerOptions, IDoodadsUsed, IGetBestItemsOptions, IGetItemOptions, IGetItemsOptions, IRequirementInfo } from "game/item/IItemManager";
22
22
  import { ContainerReferenceSource, CraftStatus, ICraftResultChances, WeightType } from "game/item/IItemManager";
23
23
  import Item from "game/item/Item";
24
- import type ItemRecipeRequirementChecker from "game/item/ItemRecipeRequirementChecker";
25
24
  import { ObjectManager } from "game/ObjectManager";
26
25
  import { TerrainType } from "game/tile/ITerrain";
27
26
  import type Tile from "game/tile/Tile";
@@ -58,14 +57,6 @@ export interface IItemManagerEvents {
58
57
  * @param container The container object the item was added to. This container might be inventory or a container within the inventory.
59
58
  */
60
59
  containerItemAdd(item: Item, container: IContainer): any;
61
- /**
62
- * Called when a craft is "requested". This currently happens when clicking an item in the crafting dialog.
63
- * @param requirementsMet Whether the requirements are currently met. This hook is a `reduce` hook, so this will contain
64
- * whatever the result of the last hook host was, or the value of `checker.requirementsMet()`, by default.
65
- * @param item The item to be crafted.
66
- * @param checker The recipe requirement checker for this craft.
67
- */
68
- shouldCraft(requirementsMet: boolean, item: ItemType, checker: ItemRecipeRequirementChecker): boolean | undefined;
69
60
  /**
70
61
  * Called when an item is crafted
71
62
  * @param human The human object
@@ -97,7 +97,7 @@ export default class Renderer extends EventEmitter.Host<IRendererEvents> {
97
97
  getAmbientLightLevel(z: number): number;
98
98
  updateAmbientLightLevel(z: number): number;
99
99
  updateView(source: RenderSource, updateFov: boolean | UpdateRenderFlag.FieldOfView | UpdateRenderFlag.FieldOfViewSkipTransition): void;
100
- updateThumbnail(): Promise<boolean>;
100
+ updateThumbnail(): Promise<string | undefined>;
101
101
  update(timeStamp: number): void;
102
102
  computeSpritesInViewport(): void;
103
103
  private getFadeInProgress;
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.13.0-beta.dev.20230310.1",
4
+ "version": "2.13.0-beta.dev.20230312.1",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",