@wayward/types 2.14.4-beta.dev.20250106.1 → 2.14.4-beta.dev.20250108.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.
@@ -323,6 +323,11 @@ export default class Doodad extends EntityMovable<IDoodadDescription, DoodadType
323
323
  * Regenerate (heal durability) over time
324
324
  */
325
325
  private processRegeneration;
326
+ /**
327
+ * Process the magical properties of the doodad when updating
328
+ * @param ticks the number of ticks to process
329
+ */
330
+ private processMagicalProperties;
326
331
  /**
327
332
  * Melt doodads (or things on doodads over time)
328
333
  * @param description Doodad description
@@ -51,6 +51,7 @@ export declare namespace IUsableActionRequirement {
51
51
  validate(player: Player, value: TYPE): boolean;
52
52
  }
53
53
  type Always = true;
54
+ function isValid<T>(result: false | T | undefined, option: true | IUsableActionRequirement<T> | undefined): boolean;
54
55
  }
55
56
  export interface IUsableActionItemRequirement extends Omit<IUsableActionRequirement<Item>, "find"> {
56
57
  validateType?(player: Player, value: ItemType, description?: IItemDescription): boolean;
@@ -66,6 +66,8 @@ declare class UsableAction<REQUIREMENTS extends IUsableActionRequirements = IUsa
66
66
  private _disposed;
67
67
  get disposed(): boolean;
68
68
  constructor(requirements: REQUIREMENTS, definition: DEFINITION);
69
+ /** @deprecated For console use only */
70
+ protected get debug(): any;
69
71
  addUser(user: UsableActionRegistrar): this;
70
72
  removeUser(user: UsableActionRegistrar): this;
71
73
  is(id?: ActionId): boolean;
@@ -106,6 +106,7 @@ export default class ItemComponent extends Component implements ItemSlot {
106
106
  readonly draggable?: Draggable;
107
107
  private transient;
108
108
  protected constructor(handler: ItemComponentHandler, ...params: any[]);
109
+ /** @deprecated For console use only */
109
110
  protected get debug(): any;
110
111
  private tickEndHandlerReasons?;
111
112
  private registerTickEndHandler;
@@ -49,6 +49,15 @@ declare namespace Objects {
49
49
  };
50
50
  function getDirections(target: any, within: any): Generator<string[]>;
51
51
  function stringify(object: any, pretty?: boolean, noDepth?: boolean, maxIterations?: number): string;
52
+ namespace stringify {
53
+ const SYMBOL_EXCLUDED_PROPERTIES: unique symbol;
54
+ export function excludeProperties(...properties: Array<string | object>): {
55
+ [SYMBOL_EXCLUDED_PROPERTIES]: string[];
56
+ };
57
+ export function isExcluded(object: any, property: string): boolean;
58
+ export function getExcluded(object: any): string[];
59
+ export {};
60
+ }
52
61
  function mutable<T>(object: T): Mutable<T>;
53
62
  function removeUndefinedProperties<T extends object>(object: T): T;
54
63
  function filterProperties<T extends object>(object: T, filter: (key: keyof T, value: T[keyof T]) => any): T;
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.14.4-beta.dev.20250106.1",
4
+ "version": "2.14.4-beta.dev.20250108.1",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",