XPlor/definitions/cod/gfxlightgrid.xscript
njohnson f3bca6871e Update COD XScript definitions with new syntax
- Migrate from set_global/get_global to ctx_set/ctx_get
- Replace if-else chains with match() expressions
- Update inline pointer handling patterns
- Improve GfxWorld and asset parsing structures
- Clean up redundant code across 60+ definition files

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-11 12:09:57 -05:00

57 lines
984 B
Plaintext

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