Struct TrnNWN2MegatilePayload
Megatile information (TRRN)
struct TrnNWN2MegatilePayload
;
Constructors
Name | Description |
---|---|
this
(payload)
|
Build packet with raw data |
Fields
Name | Type | Description |
---|---|---|
dds_a
|
ubyte[] | 32 bit DDS bitmap. r,g,b,a defines the intensity of textures 0,1,2,3 |
dds_b
|
ubyte[] | 32 bit DDS bitmap. r,g defines the intensity of textures 4,5 |
grass
|
TrnNWN2MegatilePayload | Grass "objects" |
name
|
char[128] | name of the terrain |
textures
|
TrnNWN2MegatilePayload | Textures on the megatile, with their blend color |
triangles
|
TrnNWN2MegatilePayload | Walkmesh grid triangles positions.
Each uint16_t an index in vertices corresponding to a triangle vertex
|
vertices
|
TrnNWN2MegatilePayload | Terrain geometry |
Methods
Name | Description |
---|---|
serialize
()
|
|
toGenericMesh
()
|
Export terrain mesh to a GenericMesh struct
|
validate
()
|
Check if the TRRN contains valid data |
Inner structs
Name | Description |
---|---|
Grass
|
|
Texture
|
|
Triangle
|
|
Vertex
|