39 virtual uint32
GetVariable(byte variable, uint32 parameter,
bool *available)
const;
40 virtual void StorePSA(uint reg, int32 value);
Resolver of town properties.
Interface to query and set values specific to a single VarSpriteGroupScope (action 2 scope)...
ResolverObject & ro
Surrounding resolver object.
TownScopeResolver(ResolverObject &ro, Town *t, bool readonly)
Resolver of a town scope.
Interface for SpriteGroup-s to access the gamestate.
bool readonly
When set, persistent storage of the town is read-only,.
virtual ScopeResolver * GetScope(VarSpriteGroupScope scope=VSG_SCOPE_SELF, byte relative=0)
Get a resolver for the scope.
virtual uint32 GetVariable(byte variable, uint32 parameter, bool *available) const
Get a variable value.
ScopeResolver * GetScope(VarSpriteGroupScope scope=VSG_SCOPE_SELF, byte relative=0)
Get a resolver for the scope.
Scope resolver for a town.
Town * t
Town of the scope.
TownScopeResolver town_scope
Scope resolver specific for towns.
virtual void StorePSA(uint reg, int32 value)
Store a value into the persistent storage area (PSA).
Dynamic data of a loaded NewGRF.