NAVM Record – Navigation Mesh
NAVM record type.
Classes:
|
Navigation Mesh. |
-
class
NAVM(flags, id, revision=0, version=15, unknown=b'\x00\x00', data=[])[source] Bases:
RecordNavigation Mesh.
- Parameters
Classes:
DATA(cell, vertex_count, triangle_count, ...)Data.
NVCA([iterable])Unknown.
NVDP([iterable])Doors.
NVER(*args, **kwargs)Version.
NVGD([cstring])NavMesh Grid.
NVTR([iterable])Triangles.
NVVX([iterable])Vertices.
NvdpDoor(reference, unknown, unused)Individual element in
NVDP.NvtrTriangle(vertex1, vertex2, vertex3, ...)Individual element in
NVTR.NvvxVertex(x, y, z)Individual element in
NVVX.Attributes:
Subrecords of this record.
Record flags
4-byte form ID
Used for revision control by the Creation Kit, if enabled.
Form version
Methods:
parse_subrecords(raw_bytes)Parse this record's subrecords.
-
class
DATA(cell, vertex_count, triangle_count, external_connections_count, nvca_count, doors_count)[source] Bases:
StructRecordData.
- Parameters
Attributes:
Form ID of a
CELLrecord.Methods:
Returns a list of attributes on this class in the order they should be packed.
Returns the pack/unpack struct string and the corresponding size.
-
static
get_field_names()[source] Returns a list of attributes on this class in the order they should be packed.
-
class
NVCA(iterable=(), /)[source] Bases:
List[int],RecordTypeUnknown.
Unknown, may be triangle IDs.
Methods:
parse(raw_bytes)Parse this subrecord.
unparse()Turn this subrecord back into raw bytes for an ESP file.
-
class
NVDP(iterable=(), /)[source] Bases:
List[NvdpDoor],RecordTypeDoors.
Methods:
parse(raw_bytes)Parse this subrecord.
unparse()Turn this subrecord back into raw bytes for an ESP file.
-
class
NVER(*args, **kwargs)[source] Bases:
Uint32RecordVersion.
-
class
NVTR(iterable=(), /)[source] Bases:
List[NvtrTriangle],RecordTypeTriangles.
Methods:
parse(raw_bytes)Parse this subrecord.
unparse()Turn this subrecord back into raw bytes for an ESP file.
-
class
NVVX(iterable=(), /)[source] Bases:
List[NvvxVertex],RecordTypeVertices.
Methods:
parse(raw_bytes)Parse this subrecord.
unparse()Turn this subrecord back into raw bytes for an ESP file.
-
namedtuple
NvdpDoor(reference, unknown, unused)[source] Bases:
NamedTupleIndividual element in
NVDP.- Fields
-
classmethod
unpack(raw_bytes)[source] Unpack bytes for the
NvtrTriangle.
-
namedtuple
NvtrTriangle(vertex1, vertex2, vertex3, edge_vertices_12, edge_vertices_23, edge_vertices_31, flags)[source] Bases:
NamedTupleIndividual element in
NVTR.- Fields
vertex1 (
int) – Alias for field number 0vertex2 (
int) – Alias for field number 1vertex3 (
int) – Alias for field number 2edge_vertices_12 (
int) – Alias for field number 3edge_vertices_23 (
int) – Alias for field number 4edge_vertices_31 (
int) – Alias for field number 5flags (
int) – Alias for field number 6
-
pack()[source] Pack the
NvtrTriangleto bytes.- Return type
-
classmethod
unpack(raw_bytes)[source] Unpack bytes for the
NvtrTriangle.
-
namedtuple
NvvxVertex(x, y, z)[source] Bases:
NamedTupleIndividual element in
NVVX.- Fields
-
pack()[source] Pack the
NvvxVertexto bytes.- Return type
-
classmethod
unpack(raw_bytes)[source] Unpack bytes for the
NvvxVertex.
-
data Type:
List[RecordType]