Table of Contents

Class NavMeshFile

Namespace
ValveResourceFormat.NavMesh
Assembly
ValveResourceFormat.dll

Represents a navigation mesh file.

public class NavMeshFile

Inheritance

Inherited Members

Fields

MAGIC

Magic number for navigation mesh files.

public const uint MAGIC = 4277009102

Field Value

uint

Properties

Areas

Gets the navigation mesh areas indexed by area ID.

public Dictionary<uint, NavMeshArea> Areas { get; }

Property Value

Dictionary<uint, NavMeshArea>

CustomData

Gets or sets custom data associated with the navigation mesh.

public KVObject CustomData { get; set; }

Property Value

KVObject

GenerationParams

Gets the generation parameters.

public NavMeshGenerationParams GenerationParams { get; }

Property Value

NavMeshGenerationParams

IsAnalyzed

Gets whether the navigation mesh has been analyzed.

public bool IsAnalyzed { get; }

Property Value

bool

Ladders

Gets the ladders in the navigation mesh.

public NavMeshLadder[] Ladders { get; }

Property Value

NavMeshLadder[]

SubVersion

Gets or sets the sub-version.

public uint SubVersion { get; set; }

Property Value

uint

Version

Gets or sets the file version.

public uint Version { get; set; }

Property Value

uint

Methods

GetArea(uint)

Gets a navigation mesh area by its identifier.

public NavMeshArea GetArea(uint areaId)

Parameters

areaId uint

Returns

NavMeshArea

GetHullAreas(byte)

Gets all navigation mesh areas for the specified hull index.

public List<NavMeshArea> GetHullAreas(byte hullIndex)

Parameters

hullIndex byte

Returns

List<NavMeshArea>

Read(string)

Reads the navigation mesh from a file.

public void Read(string filename)

Parameters

filename string

Read(Stream)

Reads the navigation mesh from a stream.

public void Read(Stream stream)

Parameters

stream Stream

Read(BinaryReader)

Reads the navigation mesh from a binary reader.

public void Read(BinaryReader binaryReader)

Parameters

binaryReader BinaryReader

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.

Remarks

Returns a formatted summary of the navigation mesh including version, area count, and generation parameters.