- 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>
23 lines
440 B
Plaintext
23 lines
440 B
Plaintext
type sndcurve ui("Sound Curve")
|
|
{
|
|
const PTR_INLINE = -1;
|
|
|
|
i32 name_ptr ui("Name Ptr");
|
|
u16 knot_count ui("Knot Count");
|
|
|
|
skip 2;
|
|
|
|
i32 knots_ptr ui("Knots Ptr");
|
|
|
|
// Inline data
|
|
if (name_ptr == PTR_INLINE) {
|
|
name = cstring() ui("Name");
|
|
set_name(name);
|
|
}
|
|
|
|
// Parse inline knots (each knot is 2 floats = 8 bytes)
|
|
if (knots_ptr == PTR_INLINE && knot_count > 0) {
|
|
knots = read(knot_count * 8) ui("Knots");
|
|
}
|
|
}
|