|
OpenTTD Source 20260208-master-g43af8e94d0
|
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 CallbackResultSpriteGroup * | Create (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. | |
Definition at line 225 of file newgrf_spritegroup.h.
|
inline |
Creates a spritegroup representing a callback result.
| index | Unique (pool) identifier of the SpriteGroup. |
| value | The value that was used to represent this callback result |
Definition at line 231 of file newgrf_spritegroup.h.
References CallbackResultSpriteGroup().
Referenced by CallbackResultSpriteGroup().
|
overrideprotectedvirtual |
Resolves a callback or rerandomisation callback to a NewGRF.
| object | Information needed to resolve the group. |
Implements SpriteGroup.
Definition at line 273 of file newgrf_spritegroup.cpp.
| CallbackResult CallbackResultSpriteGroup::result = 0 |
Definition at line 233 of file newgrf_spritegroup.h.