XPlor/definitions/cod/gfximageloaddef.xscript
njohnson 7b1f5d34a1 Consolidate XScript definitions with byte order inheritance
- 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>
2026-01-11 16:08:46 -05:00

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");
}
}