- 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>
24 lines
587 B
Plaintext
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");
|
|
}
|
|
}
|
|
}
|