* Get a variable value. Default implementation has no available variables. * @param variable Variable to read * @param parameter Parameter for 60+x variables * @param[out] available Set to false, in case the variable does not exist. * @return Value */ virtual */
| 102 | * @return Value |
| 103 | */ |
| 104 | /* virtual */ uint32_t ScopeResolver::GetVariable(uint8_t variable, [[maybe_unused]] uint32_t parameter, bool &available) const |
| 105 | { |
| 106 | Debug(grf, 1, "Unhandled scope variable 0x{:X}", variable); |
| 107 | available = false; |
| 108 | return UINT_MAX; |
| 109 | } |
| 110 | |
| 111 | /** |
| 112 | * Store a value into the persistent storage area (PSA). Default implementation does nothing (for newgrf classes without storage). |