Class NavMeshFile
- Namespace
- ValveResourceFormat.NavMesh
- Assembly
- ValveResourceFormat.dll
Represents a navigation mesh file.
public class NavMeshFileInheritance
Inherited Members
Fields
MAGIC
Magic number for navigation mesh files.
public const uint MAGIC = 4277009102Field Value
Properties
Areas
Gets the navigation mesh areas indexed by area ID.
public Dictionary<uint, NavMeshArea> Areas { get; }Property Value
CustomData
Gets or sets custom data associated with the navigation mesh.
public KVObject CustomData { get; set; }Property Value
GenerationParams
Gets the generation parameters.
public NavMeshGenerationParams GenerationParams { get; }Property Value
IsAnalyzed
Gets whether the navigation mesh has been analyzed.
public bool IsAnalyzed { get; }Property Value
Ladders
Gets the ladders in the navigation mesh.
public NavMeshLadder[] Ladders { get; }Property Value
SubVersion
Gets or sets the sub-version.
public uint SubVersion { get; set; }Property Value
Version
Gets or sets the file version.
public uint Version { get; set; }Property Value
Methods
GetArea(uint)
Gets a navigation mesh area by its identifier.
public NavMeshArea GetArea(uint areaId)Parameters
areaIduint
Returns
GetHullAreas(byte)
Gets all navigation mesh areas for the specified hull index.
public List<NavMeshArea> GetHullAreas(byte hullIndex)Parameters
hullIndexbyte
Returns
Read(string)
Reads the navigation mesh from a file.
public void Read(string filename)Parameters
filenamestring
Read(Stream)
Reads the navigation mesh from a stream.
public void Read(Stream stream)Parameters
streamStream
Read(BinaryReader)
Reads the navigation mesh from a binary reader.
public void Read(BinaryReader binaryReader)Parameters
binaryReaderBinaryReader
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.