37 uint32_t
GetVariable(uint8_t variable, [[maybe_unused]] uint32_t parameter,
bool &available)
const override;
38 void StorePSA(uint reg, int32_t value)
override;
@ VSG_SCOPE_SELF
Resolved object itself.
Dynamic data of a loaded NewGRF.
Interface for SpriteGroup-s to access the gamestate.
const GRFFile * grffile
GRFFile the resolved SpriteGroup belongs to.
virtual ScopeResolver * GetScope(VarSpriteGroupScope scope=VSG_SCOPE_SELF, uint8_t relative=0)
Get a resolver for the scope.
Interface to query and set values specific to a single VarSpriteGroupScope (action 2 scope).
ResolverObject & ro
Surrounding resolver object.
Resolver of town properties.
TownScopeResolver town_scope
Scope resolver specific for towns.
ScopeResolver * GetScope(VarSpriteGroupScope scope=VSG_SCOPE_SELF, uint8_t relative=0) override
Get a resolver for the scope.
Scope resolver for a town.
uint32_t GetVariable(uint8_t variable, uint32_t parameter, bool &available) const override
Get a variable value.
bool readonly
When set, persistent storage of the town is read-only,.
void StorePSA(uint reg, int32_t value) override
Store a value into the persistent storage area (PSA).
TownScopeResolver(ResolverObject &ro, Town *t, bool readonly)
Resolver of a town scope.
Town * t
Town of the scope.