@wayward/types 2.12.2-beta.dev.20221130.1 → 2.12.2-beta.dev.20221202.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.
@@ -85,6 +85,7 @@ export default abstract class Human extends Entity implements IHasInsulation {
85
85
  readonly movementIntent: IMovementIntent;
86
86
  walkPath: IWalkPath | undefined;
87
87
  identifier: string;
88
+ lastAttackedBy: Human | Creature | undefined;
88
89
  skill: SkillManager;
89
90
  quests: IQuestManager;
90
91
  messages: IMessageManager;
@@ -9,7 +9,6 @@
9
9
  * https://github.com/WaywardGame/types/wiki
10
10
  */
11
11
  import type { IEventEmitter } from "event/EventEmitter";
12
- import Creature from "game/entity/creature/Creature";
13
12
  import { CreatureType } from "game/entity/creature/ICreature";
14
13
  import Human from "game/entity/Human";
15
14
  import { EntityType } from "game/entity/IEntity";
@@ -40,7 +39,6 @@ export default class Player extends Human implements IUnserializedCallback {
40
39
  dialogInfo: Record<string, IDialogInfo>;
41
40
  hintSeen: boolean[];
42
41
  islandId: IslandId;
43
- lastAttackedBy: Human | Creature | undefined;
44
42
  name: string;
45
43
  actionBar: IActionBarSlotData[];
46
44
  revealedItems: Record<number, boolean>;
@@ -16,7 +16,7 @@ import Creature from "game/entity/creature/Creature";
16
16
  import CreatureManager from "game/entity/creature/CreatureManager";
17
17
  import type { IDamageInfo, IDamageOutcome, IDamageOutcomeInput } from "game/entity/creature/ICreature";
18
18
  import FlowFieldManager from "game/entity/flowfield/FlowFieldManager";
19
- import type Human from "game/entity/Human";
19
+ import Human from "game/entity/Human";
20
20
  import { SkillType } from "game/entity/IHuman";
21
21
  import NPCManager from "game/entity/npc/NPCManager";
22
22
  import type { IGameOld } from "game/IGame";
@@ -403,6 +403,7 @@ export interface IMoveToTileOptions {
403
403
  toContainer?: IContainer;
404
404
  toContainerOptions?: IAddToContainerOptions;
405
405
  beforeMovement?: IMoveToTileBeforeMovementOptions;
406
+ extinguishTorches?: boolean;
406
407
  /**
407
408
  * Note: Everything done in afterMovement must be clientside only
408
409
  */
@@ -135,7 +135,7 @@ export default class ItemManager extends ObjectManager<Item, IItemManagerEvents>
135
135
  removeContainerItems(container: IContainer, removeContainedItems?: boolean): void;
136
136
  isItemExtra(type: number): type is ItemTypeExtra;
137
137
  exists(item: Item): boolean;
138
- remove(item: Item, removeContainedItems?: boolean): void;
138
+ remove(item: Item, removeContainedItems?: boolean, extinguishTorches?: boolean): void;
139
139
  getDisassemblyComponents(description: IItemDescription, quality: Quality | undefined): Item[];
140
140
  getDisassemblyComponentsAsItemTypes(description: IItemDescription): Array<ItemType | ItemTypeGroup>;
141
141
  getWeightCapacity(container: IContainer, includeMagic?: boolean): number | undefined;
@@ -22,8 +22,8 @@ export default class ItemRecipeRequirementChecker {
22
22
  itemComponentsCanBurn: boolean;
23
23
  private numComponentsNeeded;
24
24
  private baseComponent;
25
- private components;
26
- private componentItems;
25
+ private readonly components;
26
+ private readonly componentItems;
27
27
  private recipe;
28
28
  private adjacentContainers;
29
29
  private readonly cachedItems;
@@ -15,7 +15,7 @@ export default class ReplayManager {
15
15
  private recording;
16
16
  private readonly gameVersion;
17
17
  private log;
18
- private playbackState;
18
+ private readonly playbackState;
19
19
  private _recordingStartTime;
20
20
  private _skipTicks;
21
21
  isRecording(): boolean;
@@ -48,7 +48,7 @@ export default class Steamworks extends EventEmitter.Host<ISteamworksEvents> {
48
48
  private _isGameOverlayActive;
49
49
  private _isTraceRecording;
50
50
  private _osPlatform;
51
- private _intervalIds;
51
+ private readonly _intervalIds;
52
52
  get isGameOverlayActive(): boolean;
53
53
  get isRunningOnSteamDeck(): boolean;
54
54
  get isRunningOnBatteryPower(): boolean;
@@ -11,7 +11,7 @@
11
11
  export declare class LogFile {
12
12
  private fileStreamInfoPromise;
13
13
  private fileStreamInfo;
14
- private buffer;
14
+ private readonly buffer;
15
15
  private closed;
16
16
  logsPath: string | undefined;
17
17
  append(message: string): Promise<void>;
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.2-beta.dev.20221130.1",
4
+ "version": "2.12.2-beta.dev.20221202.1",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",