XPlor/definitions/cod/gfxlightgrid.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

26 lines
711 B
Plaintext

type gfxlightgrid ui("GFX Light Grid")
{
// PC version: 56 bytes (mins/maxs are uint16_t[3], not float[3])
u8 has_light_regions ui("Has Light Regions");
skip(3); // padding
u32 sun_primary_light_index ui("Sun Primary Light Index");
// Bounds are uint16_t[3] on PC (6 bytes each)
mins = read(6) ui("Mins");
maxs = read(6) ui("Maxs");
u32 row_axis ui("Row Axis");
u32 col_axis ui("Col Axis");
i32 row_data_start_ptr ui("Row Data Start Ptr");
u32 raw_row_data_size ui("Raw Row Data Size");
i32 raw_row_data_ptr ui("Raw Row Data Ptr");
u32 entry_count ui("Entry Count");
i32 entries_ptr ui("Entries Ptr");
u32 color_count ui("Color Count");
i32 colors_ptr ui("Colors Ptr");
}