@wayward/types 2.11.0-beta.dev.20211128.1 → 2.11.0-beta.dev.20211129.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.
@@ -74,6 +74,15 @@ export default abstract class NPC extends Human {
74
74
  */
75
75
  getActions(): ActionType[] | undefined;
76
76
  addAiType(ai: AiType): void;
77
+ /**
78
+ * Removes an AiType from an NPC.
79
+ * @param ai The AiType to remove from the NPC.
80
+ */
81
+ removeAiType(ai: AiType): void;
82
+ /**
83
+ * Closes the merchant trading window for everybody.
84
+ */
85
+ closeInventory(): void;
77
86
  updateDirection(x: number, y: number): void;
78
87
  /**
79
88
  * Sets the default weightCapacity of an NPC (based on their equipment and starting items).
@@ -19,4 +19,5 @@ export default class IslandDropdown<OTHER_OPTIONS extends string = never> extend
19
19
  protected shouldIncludeOtherOptionsInGroupFilter(): boolean;
20
20
  protected isInGroup(islandId: IslandId, biome: BiomeType): boolean;
21
21
  protected getGroups(): BiomeType[];
22
+ protected onRefresh(): void;
22
23
  }
@@ -12,5 +12,5 @@ import { NPCType } from "game/entity/npc/INPCs";
12
12
  import type { IDropdownOption } from "ui/component/Dropdown";
13
13
  import EnumDropdown from "ui/component/dropdown/EnumDropdown";
14
14
  export default class NPCDropdown<OTHER_OPTIONS extends string = never> extends EnumDropdown<typeof NPCType, OTHER_OPTIONS> {
15
- constructor(defaultOption: OTHER_OPTIONS | NPCType, options: Iterable<IDropdownOption<OTHER_OPTIONS>>);
15
+ constructor(defaultOption: OTHER_OPTIONS | NPCType, options?: Iterable<IDropdownOption<OTHER_OPTIONS>>);
16
16
  }
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.11.0-beta.dev.20211128.1",
4
+ "version": "2.11.0-beta.dev.20211129.1",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",