@wayward/types 2.15.5-beta.dev.20260607.1 → 2.15.5-beta.dev.20260702.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.
|
@@ -42,6 +42,13 @@ export declare class FieldOfView extends EventEmitter.Host<IFieldOfViewEvents> {
|
|
|
42
42
|
* Note: CanASeeBType.ClientSide is used to skip adding a sync check for the result
|
|
43
43
|
*/
|
|
44
44
|
static canSeePosition(origin: IFieldOfViewOrigin, type: CanASeeBType, islandId: IslandId, tileX: number, tileY: number, tileZ: number, fieldOfView?: FieldOfView | undefined, customRadius?: number): boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Diagnostic helper that replicates the C++ `FieldOfView::Bresenham` walk to find the first
|
|
47
|
+
* vision-blocking tile between two points. Used only for multiplayer sync check reporting so
|
|
48
|
+
* that light-block map divergences between server and client can be pinpointed when line of
|
|
49
|
+
* sight forks. Must stay in sync with `FieldOfView::Bresenham` in the C++ source.
|
|
50
|
+
*/
|
|
51
|
+
private static findVisionBlocker;
|
|
45
52
|
static getBounds(origin: IVector3, mapSize: number, radius: number): IBound3;
|
|
46
53
|
/**
|
|
47
54
|
* Gets the field of view radius based on either the field of view object, player, or the default value
|
package/package.json
CHANGED