@wayward/types 2.13.2-beta.dev.20230612.1 → 2.13.3-beta.dev.20230614.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.
@@ -10,7 +10,7 @@
10
10
  */
11
11
  import type Doodad from "game/doodad/Doodad";
12
12
  import type { DoodadType } from "game/doodad/IDoodad";
13
- import { TerrainType } from "game/tile/ITerrain";
13
+ import type { TerrainType } from "game/tile/ITerrain";
14
14
  import type WorldLayer from "renderer/world/WorldLayer";
15
15
  import Vector2 from "utilities/math/Vector2";
16
16
  import type TileAtlas from "renderer/tile/atlas/TileAtlas";
@@ -41,5 +41,4 @@ export interface IDoodadAdaptor {
41
41
  adapt(worldLayer: WorldLayer, tileAtlas: TileAtlas, x: number, y: number, doodadType: DoodadType, result: ITileAdaptation): void;
42
42
  }
43
43
  export declare function isDoor(doodad?: Doodad): boolean;
44
- export declare function baseWaterTypesMatch(baseWaterType: TerrainType, comparisonBaseWaterType: TerrainType): boolean;
45
44
  export declare const emptyTileAdaptor: ITileAdaptation;
@@ -54,6 +54,8 @@ export default class WorldLayer implements IPreSerializeCallback {
54
54
  isTilled(terrain: TerrainData): boolean;
55
55
  isDoodadOverHidden(terrain: TerrainData): boolean;
56
56
  isDoodadAnimationDisabled(terrain: TerrainData): boolean;
57
+ terrainTypesMatch(terrain: TerrainData, otherTerrainType: TerrainType): boolean;
58
+ baseWaterTypesMatch(baseWaterType: TerrainType, comparisonBaseWaterType: TerrainType): boolean;
57
59
  setTile(x: number, y: number, terrainType: TerrainType, terrainMasks?: TerrainMask): void;
58
60
  updateAll(): void;
59
61
  /**
@@ -74,7 +74,7 @@ export default class WorldLayerRenderer extends EventEmitter.Host<IWorldLayerRen
74
74
  * Tiles & doodads are flushed the first time they are visible within the fov
75
75
  * @returns True when there's more rendering to be done
76
76
  */
77
- ensureRendered({ min, max }: IBound3): boolean;
77
+ ensureRendered({ min, max }: IBound3, ignoreFieldOfView?: boolean): boolean;
78
78
  /**
79
79
  * Processes pending tile/doodad updates
80
80
  */
@@ -77,8 +77,9 @@ export interface IWorldRendererEvents {
77
77
  * @param tileScale The tile scale
78
78
  * @param viewWidth The width of the view port
79
79
  * @param viewHeight The height of the view port
80
+ * @param timeStamp The animation frame timestamp
80
81
  */
81
- preRenderWorld(tileScale: number, viewWidth: number, viewHeight: number): void;
82
+ preRenderWorld(tileScale: number, viewWidth: number, viewHeight: number, timeStamp: number): void;
82
83
  /**
83
84
  * Caller after rendering the world
84
85
  * @param tileScale The tile scale
@@ -8,7 +8,7 @@
8
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
9
  * https://github.com/WaywardGame/types/wiki
10
10
  */
11
- export declare const gameVersionStage = "beta", gameVersionMajor = 2, gameVersionMinor = 13, gameVersionPatch = 2, gameVersionName = "Beacon's Call";
11
+ export declare const gameVersionStage = "beta", gameVersionMajor = 2, gameVersionMinor = 13, gameVersionPatch = 3, gameVersionName = "Beacon's Call";
12
12
  export declare const gameVersion: string;
13
13
  export declare const gameVersionTitleMajor: string;
14
14
  export declare const gameVersionTitleMinor: string;
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.2-beta.dev.20230612.1",
4
+ "version": "2.13.3-beta.dev.20230614.1",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",