@wayward/types 2.14.4-beta.dev.20250307.1 → 2.14.4-beta.dev.20250310.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.
@@ -96,6 +96,7 @@ export default class Island extends EventEmitter.Host<IIslandEvents> implements
96
96
  biomeOptions?: unknown;
97
97
  biomeType: BiomeTypes;
98
98
  contaminatedWater: IWaterContamination[];
99
+ lastPlayerGameTimeTicks?: number;
99
100
  loadCount: number;
100
101
  name?: string;
101
102
  position: IVector2;
@@ -280,6 +281,7 @@ export default class Island extends EventEmitter.Host<IIslandEvents> implements
280
281
  * In manual turn mode, it will tick the humans stat timers & the game
281
282
  */
282
283
  passTurn(human: Human, turnType?: TurnTypeFlag, dueToAction?: boolean): void;
284
+ private travelTimeFastForward;
283
285
  /**
284
286
  * Fast forwards an island by running lots of ticks.
285
287
  * Defaults to IslandFastForward tick flag with no playing humans.
@@ -67,13 +67,13 @@ export declare class GlobalMouseInfo extends EventEmitter.Host<IGlobalMouseInfoE
67
67
  * @param what A component, element, or selector.
68
68
  * @param recalcTarget Whether to recalculate the target before this operation. Defaults to `false`
69
69
  */
70
- isWithin<W extends Component | Element | string | undefined>(what?: W, recalcTarget?: boolean): (W extends Component ? W : HTMLElement) | undefined;
70
+ isWithin<W extends Component | Element | string | undefined>(what?: W, recalcTarget?: boolean): W extends undefined ? undefined : W extends Component ? W : W extends Element | string ? HTMLElement | undefined : never;
71
71
  /**
72
72
  * Returns whether the mouse is currently within the given component, element, or selector.
73
73
  * @param what A component, element, or selector.
74
74
  * @param recalcTarget Whether to recalculate the target before this operation. Defaults to `false`
75
75
  */
76
- isTarget<W extends Component | Element | string | undefined>(what?: W, recalcTarget?: boolean): (W extends Component ? W : HTMLElement) | undefined;
76
+ isTarget<W extends Component | Element | string | undefined>(what?: W, recalcTarget?: boolean): W extends undefined ? undefined : W extends Component ? W : W extends Element | string ? HTMLElement | undefined : never;
77
77
  clearTarget(target?: Element): void;
78
78
  private _updateTarget;
79
79
  }
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.20250307.1",
4
+ "version": "2.14.4-beta.dev.20250310.1",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",