Class NavHullNames
Namespace: ValveResourceFormat.NavMesh
Assembly: ValveResourceFormat.dll
Reads the names of the navigation hulls from the game's hull presets.
public static class NavHullNamesInheritance
object ← NavHullNames
Fields
PresetsFile
Path of the hull presets file, which lists the hull names of each preset in hull index order.
public const string PresetsFile = "scripts/nav_hulls_presets.vdata_c"Field Value
string
Methods
GetName(IReadOnlyList<string>, int)
Gets the name of a hull, or hull N when it is not named.
public static string GetName(IReadOnlyList<string> hullNames, int hullIndex)Parameters
hullNames IReadOnlyList<string>
hullIndex int
Returns
string
Read(IFileLoader, string?)
Gets the hull names of a preset, in hull index order.
public static string[] Read(IFileLoader fileLoader, string? presetName)Parameters
fileLoader IFileLoader
The loader to read the presets file with.
presetName string?
The preset name stored in NavMeshGenerationParams.HullPresetName, or empty for the default preset.
Returns
string[]
The hull names, or an empty array when the game has no presets file or no such preset.
Remarks
The game itself takes the preset from gameinfo, and skips names missing from scripts/nav_hulls.vdata when numbering the hulls.

