The condition token the phone sends, as a number a face can index its own art by. More...
Go to the source code of this file.
Functions | |
| WxCond | wx_cond_parse (const char *token, bool *night) |
| Finds the condition for a token, with or without its "_NIGHT" ending. | |
The condition token the phone sends, as a number a face can index its own art by.
The phone sends the sky as a short token, such as "RAIN", with "_NIGHT" on the end after dark. A face that draws its own art for each condition keeps a table indexed by WxCond and reads the token through wx_cond_parse. The numbers and tokens come from the same list the phone sends from, so the two cannot drift.
The face builds the table from WX_COND_EACH rather than writing its rows out. Each condition's row then names a resource after the condition, so a condition added to the list stops the face's build on a resource it has not got, wherever in the list it lands.