OpenTTD Source 20260208-master-g43af8e94d0
CallbackResultSpriteGroup Struct Reference
Inheritance diagram for CallbackResultSpriteGroup:
SpecializedSpriteGroup< CallbackResultSpriteGroup > SpriteGroup

Public Member Functions

 CallbackResultSpriteGroup (SpriteGroupID index, CallbackResult value)
 Creates a spritegroup representing a callback result.
Public Member Functions inherited from SpecializedSpriteGroup< CallbackResultSpriteGroup >
 SpecializedSpriteGroup (SpriteGroupID index)

Data Fields

CallbackResult result = 0
Data Fields inherited from SpriteGroup
uint32_t nfo_line = 0

Protected Member Functions

ResolverResult Resolve (ResolverObject &object) const override
 Resolves a callback or rerandomisation callback to a NewGRF.
Protected Member Functions inherited from SpriteGroup
 SpriteGroup (SpriteGroupID index)

Additional Inherited Members

Static Public Member Functions inherited from SpecializedSpriteGroup< CallbackResultSpriteGroup >
static CallbackResultSpriteGroupCreate (Targs &&... args)
 Creates a new T-object in the SpriteGroup pool.
Static Public Member Functions inherited from SpriteGroup
static ResolverResult Resolve (const SpriteGroup *group, ResolverObject &object, bool top_level=true)
 ResolverObject (re)entry point.

Detailed Description

Definition at line 225 of file newgrf_spritegroup.h.

Constructor & Destructor Documentation

◆ CallbackResultSpriteGroup()

CallbackResultSpriteGroup::CallbackResultSpriteGroup ( SpriteGroupID index,
CallbackResult value )
inline

Creates a spritegroup representing a callback result.

Parameters
indexUnique (pool) identifier of the SpriteGroup.
valueThe value that was used to represent this callback result

Definition at line 231 of file newgrf_spritegroup.h.

References CallbackResultSpriteGroup().

Referenced by CallbackResultSpriteGroup().

Member Function Documentation

◆ Resolve()

ResolverResult CallbackResultSpriteGroup::Resolve ( ResolverObject & object) const
overrideprotectedvirtual

Resolves a callback or rerandomisation callback to a NewGRF.

Parameters
objectInformation needed to resolve the group.
Returns
The result of resolving this SpriteGroup.

Implements SpriteGroup.

Definition at line 273 of file newgrf_spritegroup.cpp.

Field Documentation

◆ result

CallbackResult CallbackResultSpriteGroup::result = 0

Definition at line 233 of file newgrf_spritegroup.h.


The documentation for this struct was generated from the following files: