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

27 lines
447 B
Plaintext

type materialconstantdef [display="Material Constant Def"]
{
u32 name_hash;
ui("name_hash", "Name Hash");
// Name is 12 bytes of raw data (null-padded string)
name_bytes = read(12);
name = ascii(name_bytes);
ui("name", "Name");
u32 literal_1;
ui("literal_1", "Literal 1");
u32 literal_2;
ui("literal_2", "Literal 2");
u32 literal_3;
ui("literal_3", "Literal 3");
u32 literal_4;
ui("literal_4", "Literal 4");
}