DB/WorldStateExpression: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (Marlamin moved page WorldStateExpression.dbc to DB/WorldStateExpression) |
(No difference)
|
Revision as of 01:20, 13 February 2016
expression is a flattened AST. is bytewise. First is enabled == always 1. then, operand {0 (disabled), 1 (uint32), 2 (worldStateID (evals to something other than id, likely something in worldStateRec)), 3 (uint8 op, recurse left, recurse right; where op <=0xc: none, random, month, day, timeofday, region, clockHour, difficultyID, holidayStart, holidayLeft, holidayActive, currentTime, weeknumber)}, then op {1: +, 2:-, 3:*, 4*/, 5:%, 0: no op}, then op2 {…. See CGWorldStateInfo::EvalWorldStateExpression.
6.0.1.18179
struct WorldStateExpressionRec { uint32_t m_ID; stringref m_expression; };