@wayward/types 2.13.3-beta.dev.20230613.1 → 2.13.3-beta.dev.20230615.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
|
package/package.json
CHANGED