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

22 lines
684 B
Plaintext

type sunlightparseparams ui("Sun Light Parse Params")
{
// PC version: Fixed 128-byte struct (embedded in GfxWorld header)
// Name is a fixed 64-byte char array, NOT a pointer!
name = read(64) ui("Name");
// Ambient settings
ambient_scale = read(4) ui("Ambient Scale");
ambient_color = read(12) ui("Ambient Color");
// Diffuse/Sun settings
diffuse_fraction = read(4) ui("Diffuse Fraction");
sun_light = read(4) ui("Sun Light");
sun_color = read(12) ui("Sun Color");
diffuse_color = read(12) ui("Diffuse Color");
// Flags and angles
u8 diffuse_color_has_been_set ui("Diffuse Color Has Been Set");
skip(3); // padding
angles = read(12) ui("Angles");
}