MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / GetVariable

Method GetVariable

src/newgrf_spritegroup.cpp:104–109  ·  view source on GitHub ↗

* 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 */

Source from the content-addressed store, hash-verified

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).

Callers 1

GetVariableFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected