|
OpenTTD Source 20260206-master-g4d4e37dbf1
|
Public Member Functions | |
| IndustryProductionSpriteGroup (SpriteGroupID index) | |
| Public Member Functions inherited from SpecializedSpriteGroup< IndustryProductionSpriteGroup > | |
| SpecializedSpriteGroup (SpriteGroupID index) | |
Data Fields | |
| uint8_t | version = 0 |
| Production callback version used, or 0xFF if marked invalid. | |
| uint8_t | num_input = 0 |
| How many subtract_input values are valid. | |
| std::array< int16_t, INDUSTRY_NUM_INPUTS > | subtract_input {} |
| Take this much of the input cargo (can be negative, is indirect in cb version 1+). | |
| std::array< CargoType, INDUSTRY_NUM_INPUTS > | cargo_input {} |
| Which input cargoes to take from (only cb version 2). | |
| uint8_t | num_output = 0 |
| How many add_output values are valid. | |
| std::array< uint16_t, INDUSTRY_NUM_OUTPUTS > | add_output {} |
| Add this much output cargo when successful (unsigned, is indirect in cb version 1+). | |
| std::array< CargoType, INDUSTRY_NUM_OUTPUTS > | cargo_output {} |
| Which output cargoes to add to (only cb version 2). | |
| uint8_t | again = 0 |
| 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< IndustryProductionSpriteGroup > | |
| static IndustryProductionSpriteGroup * | 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 273 of file newgrf_spritegroup.h.
|
inline |
Definition at line 274 of file newgrf_spritegroup.h.
|
inlineoverrideprotectedvirtual |
Resolves a callback or rerandomisation callback to a NewGRF.
| object | Information needed to resolve the group. |
Implements SpriteGroup.
Definition at line 286 of file newgrf_spritegroup.h.
| std::array<uint16_t, INDUSTRY_NUM_OUTPUTS> IndustryProductionSpriteGroup::add_output {} |
Add this much output cargo when successful (unsigned, is indirect in cb version 1+).
Definition at line 281 of file newgrf_spritegroup.h.
| uint8_t IndustryProductionSpriteGroup::again = 0 |
Definition at line 283 of file newgrf_spritegroup.h.
| std::array<CargoType, INDUSTRY_NUM_INPUTS> IndustryProductionSpriteGroup::cargo_input {} |
Which input cargoes to take from (only cb version 2).
Definition at line 279 of file newgrf_spritegroup.h.
| std::array<CargoType, INDUSTRY_NUM_OUTPUTS> IndustryProductionSpriteGroup::cargo_output {} |
Which output cargoes to add to (only cb version 2).
Definition at line 282 of file newgrf_spritegroup.h.
| uint8_t IndustryProductionSpriteGroup::num_input = 0 |
How many subtract_input values are valid.
Definition at line 277 of file newgrf_spritegroup.h.
| uint8_t IndustryProductionSpriteGroup::num_output = 0 |
How many add_output values are valid.
Definition at line 280 of file newgrf_spritegroup.h.
| std::array<int16_t, INDUSTRY_NUM_INPUTS> IndustryProductionSpriteGroup::subtract_input {} |
Take this much of the input cargo (can be negative, is indirect in cb version 1+).
Definition at line 278 of file newgrf_spritegroup.h.
| uint8_t IndustryProductionSpriteGroup::version = 0 |
Production callback version used, or 0xFF if marked invalid.
Definition at line 276 of file newgrf_spritegroup.h.