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

24 lines
587 B
Plaintext

type expressionentry ui("Expression Entry")
{
const PTR_INLINE = -1;
// int type - EET_OPERATOR(0) or EET_OPERAND(1)
i32 entry_type ui("Type");
// entryInternalData union - 8 bytes
if (entry_type == 0) {
// Operator
i32 op_code ui("Op Code");
skip 4;
} else {
// Operand - dataType (4) + value union (4)
i32 data_type ui("Data Type");
i32 value_raw ui("Value/Ptr");
// If data_type == 2 (STRING) and value is -1, string is inline
if (data_type == 2 && value_raw == PTR_INLINE) {
string_val = cstring() ui("String Value");
}
}
}