Infohazard.HyperNav 1.1.5
3D Navigation for Flying Characters
Loading...
Searching...
No Matches
Infohazard.HyperNav.NavRegionData Class Reference

The serialized data representing a single region in a NavVolume. More...

Public Member Functions

void SetExternalLinks (NavExternalLinkData[] externalConnections)
 Update the ExternalLinks of the region. More...
 

Static Public Member Functions

static NavRegionData Create (int id, int[] indices, Bounds bounds, NavInternalLinkData[] internalLinks, NavRegionBoundPlane[] boundPlanes)
 Construct a new NavRegionData with the given values. More...
 

Properties

int ID [get]
 The ID of the region. More...
 
Bounds Bounds [get]
 The bounds of the region in local space of the volume. More...
 
IReadOnlyList< int > Indices [get]
 The indices of the region's triangle vertices in the volume's vertices array. More...
 
IReadOnlyList< NavInternalLinkDataInternalLinks [get]
 The links between this region and other regions in the same volume. More...
 
IReadOnlyList< NavExternalLinkDataExternalLinks [get]
 The links between this region and regions in other volumes. More...
 
IReadOnlyList< NavRegionBoundPlaneBoundPlanes [get]
 The planes that form the boundaries of this region, to check if a point is inside or not. More...
 

Private Attributes

int _id
 (Serialized) The ID of the region. More...
 
Bounds _bounds
 (Serialized) The bounds of the region in local space of the volume. More...
 
int[] _indices
 (Serialized) The indices of the region's triangle vertices in the volume's vertices array. More...
 
NavInternalLinkData[] _internalLinks
 (Serialized) The links between this region and other regions in the same volume. More...
 
NavExternalLinkData[] _externalLinks
 (Serialized) The links between this region and regions in other volumes. More...
 
NavRegionBoundPlane[] _boundPlanes
 (Serialized) The planes that form the boundaries of this region, to check if a point is inside or not. More...
 

Detailed Description

The serialized data representing a single region in a NavVolume.

Member Function Documentation

◆ Create()

static NavRegionData Infohazard.HyperNav.NavRegionData.Create ( int  id,
int[]  indices,
Bounds  bounds,
NavInternalLinkData[]  internalLinks,
NavRegionBoundPlane[]  boundPlanes 
)
static

Construct a new NavRegionData with the given values.

No value for ExternalLinks is provided here because that must be calculated later.

Parameters
idID of the region.
indicesIndices of the region triangles.
boundsBounds of the region.
internalLinksLinks to other regions in same volume.
boundPlanesPlanes that form the boundaries of the region.
Returns
The created NavRegionData.

◆ SetExternalLinks()

void Infohazard.HyperNav.NavRegionData.SetExternalLinks ( NavExternalLinkData[]  externalConnections)

Update the ExternalLinks of the region.

Parameters
externalConnectionsThe list of external links to use.

Member Data Documentation

◆ _boundPlanes

NavRegionBoundPlane [] Infohazard.HyperNav.NavRegionData._boundPlanes
private

(Serialized) The planes that form the boundaries of this region, to check if a point is inside or not.

◆ _bounds

Bounds Infohazard.HyperNav.NavRegionData._bounds
private

(Serialized) The bounds of the region in local space of the volume.

◆ _externalLinks

NavExternalLinkData [] Infohazard.HyperNav.NavRegionData._externalLinks
private

(Serialized) The links between this region and regions in other volumes.

◆ _id

int Infohazard.HyperNav.NavRegionData._id
private

(Serialized) The ID of the region.

◆ _indices

int [] Infohazard.HyperNav.NavRegionData._indices
private

(Serialized) The indices of the region's triangle vertices in the volume's vertices array.

◆ _internalLinks

NavInternalLinkData [] Infohazard.HyperNav.NavRegionData._internalLinks
private

(Serialized) The links between this region and other regions in the same volume.

Property Documentation

◆ BoundPlanes

IReadOnlyList<NavRegionBoundPlane> Infohazard.HyperNav.NavRegionData.BoundPlanes
get

The planes that form the boundaries of this region, to check if a point is inside or not.

◆ Bounds

Bounds Infohazard.HyperNav.NavRegionData.Bounds
get

The bounds of the region in local space of the volume.

◆ ExternalLinks

IReadOnlyList<NavExternalLinkData> Infohazard.HyperNav.NavRegionData.ExternalLinks
get

The links between this region and regions in other volumes.

◆ ID

int Infohazard.HyperNav.NavRegionData.ID
get

The ID of the region.

◆ Indices

IReadOnlyList<int> Infohazard.HyperNav.NavRegionData.Indices
get

The indices of the region's triangle vertices in the volume's vertices array.

◆ InternalLinks

IReadOnlyList<NavInternalLinkData> Infohazard.HyperNav.NavRegionData.InternalLinks
get

The links between this region and other regions in the same volume.


The documentation for this class was generated from the following file: