- Volition VPP: Unified BE/LE types using inheritance pattern - THQA PAK: Child types now inherit byte order from parent - Various XScript definition updates and fixes Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
21 lines
563 B
Plaintext
21 lines
563 B
Plaintext
type gfximageloaddef ui("GFX Image Load Def")
|
|
{
|
|
u8 level_count ui("Level Count");
|
|
u8 flags ui("Flags");
|
|
|
|
// Dimensions (3 x u16)
|
|
u16 dimension_0 ui("Dimension 0");
|
|
u16 dimension_1 ui("Dimension 1");
|
|
u16 dimension_2 ui("Dimension 2");
|
|
|
|
u32 format ui("Format");
|
|
|
|
// Resource size - when inline, this contains the size of pixel data that follows
|
|
i32 resource_size ui("Resource Size");
|
|
|
|
// Read pixel data if present (resource_size > 0 indicates inline data)
|
|
if (resource_size > 0) {
|
|
pixel_data = read(resource_size) ui("Pixel Data");
|
|
}
|
|
}
|