|
OpenTTD Source 20260206-master-g4d4e37dbf1
|
Action 2 sprite layout for houses, industry tiles, objects and airport tiles. More...
#include <newgrf_spritegroup.h>
Public Member Functions | |
| TileLayoutSpriteGroup (SpriteGroupID index) | |
| SpriteLayoutProcessor | ProcessRegisters (const ResolverObject &object, uint8_t *stage) const |
| Process registers and the construction stage into the sprite layout. | |
| Public Member Functions inherited from SpecializedSpriteGroup< TileLayoutSpriteGroup > | |
| SpecializedSpriteGroup (SpriteGroupID index) | |
Data Fields | |
| NewGRFSpriteLayout | dts {} |
| Data Fields inherited from SpriteGroup | |
| uint32_t | nfo_line = 0 |
Protected Member Functions | |
| ResolverResult | Resolve (ResolverObject &) 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< TileLayoutSpriteGroup > | |
| static TileLayoutSpriteGroup * | 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. | |
Action 2 sprite layout for houses, industry tiles, objects and airport tiles.
Definition at line 262 of file newgrf_spritegroup.h.
|
inline |
Definition at line 263 of file newgrf_spritegroup.h.
| SpriteLayoutProcessor TileLayoutSpriteGroup::ProcessRegisters | ( | const ResolverObject & | object, |
| uint8_t * | stage ) const |
Process registers and the construction stage into the sprite layout.
The passed construction stage might get reset to zero, if it gets incorporated into the layout during the preprocessing.
| object | ResolverObject owning the temporary storage. | |
| [in,out] | stage | Construction stage (0-3), or nullptr if not applicable. |
Definition at line 294 of file newgrf_spritegroup.cpp.
References GetConstructionStageOffset(), and SpriteLayoutProcessor::ProcessRegisters().
Referenced by DrawNewObjectTile(), DrawNewObjectTileInGUI(), and DrawRoadStopTile().
|
inlineoverrideprotectedvirtual |
Resolves a callback or rerandomisation callback to a NewGRF.
| object | Information needed to resolve the group. |
Implements SpriteGroup.
Definition at line 270 of file newgrf_spritegroup.h.
| NewGRFSpriteLayout TileLayoutSpriteGroup::dts {} |
Definition at line 265 of file newgrf_spritegroup.h.