TrnNWN2MegatilePayload

Megatile information (TRRN)

Constructors

this
this(ubyte[] payload)

Build packet with raw data

Members

Functions

serialize
ubyte[] serialize()
toGenericMesh
GenericMesh toGenericMesh()

Export terrain mesh to a GenericMesh struct

validate
void validate()

Check if the TRRN contains valid data

Structs

Grass
struct Grass
Texture
struct Texture
Triangle
struct Triangle
Vertex
struct Vertex

Variables

dds_a
ubyte[] dds_a;

32 bit DDS bitmap. r,g,b,a defines the intensity of textures 0,1,2,3

dds_b
ubyte[] dds_b;

32 bit DDS bitmap. r,g defines the intensity of textures 4,5

grass
Grass[] grass;

Grass "objects"

name
char[128] name;

name of the terrain

textures
Texture[6] textures;

Textures on the megatile, with their blend color

triangles
Triangle[] triangles;

Walkmesh grid triangles positions. Each uint16_t an index in vertices corresponding to a triangle vertex

vertices
Vertex[] vertices;

Terrain geometry

Meta