XPlor/definitions/cod/sndcurve.xscript
njohnson 0fa26e5256 Expand Call of Duty XScript definitions
Add new asset type definitions:
- GfxWorld and related structures (cells, lights, probes)
- Menu system (menudef, itemdef, windowdef, listboxdef)
- Sound system (soundalias, soundfile, speakermap, sndcurve)
- D3D resources (vertex/index buffers)
- Font glyphs and expression entries

Update existing definitions with improved field annotations
and UI display properties.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-07 16:36:40 -05:00

20 lines
550 B
Plaintext

type sndcurve [display="Sound Curve"]
{
i32 name_ptr [ui, readonly, display="Name Ptr"];
u16 knot_count [ui, readonly, display="Knot Count"];
skip(2); // padding
i32 knots_ptr [ui, readonly, display="Knots Ptr"];
// Parse inline name
if (name_ptr == -1) {
name = cstring() [ui, readonly, display="Name"];
_name = name;
}
// Parse inline knots (each knot is 2 floats = 8 bytes)
if (knots_ptr == -1 && knot_count > 0) {
_knots_size = knot_count * 8;
knots = read(_knots_size) [ui, readonly, display="Knots"];
}
}