DB/WorldStateExpression: Difference between revisions

From wowdev
Jump to navigation Jump to search
mNo edit summary
Line 3: Line 3:
  struct WorldStateExpressionRec {
  struct WorldStateExpressionRec {
   uint32_t m_ID;
   uint32_t m_ID;
   stringref m_expression;
   {{Template:Type|stringref}} m_expression;
  };
  };
[[Category:DBC]]
[[Category:DBC]]
[[Category:DBC_WoD]]
[[Category:DBC_WoD]]
[[Category:6.0.1.18179]]
[[Category:6.0.1.18179]]

Revision as of 00:31, 23 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;
};