Temporary data during loading of GRFs.
More...
Temporary data during loading of GRFs.
Definition at line 89 of file newgrf.cpp.
◆ AddSpriteSets()
void GrfProcessingState::AddSpriteSets |
( |
uint8_t |
feature, |
|
|
SpriteID |
first_sprite, |
|
|
uint |
first_set, |
|
|
uint |
numsets, |
|
|
uint |
numents |
|
) |
| |
|
inline |
Records new spritesets.
- Parameters
-
feature | GrfSpecFeature the set is defined for. |
first_sprite | SpriteID of the first sprite in the set. |
first_set | First spriteset to define. |
numsets | Number of sets to define. |
numents | Number of sprites per set to define. |
Definition at line 138 of file newgrf.cpp.
◆ GetNumEnts()
uint GrfProcessingState::GetNumEnts |
( |
uint8_t |
feature, |
|
|
uint |
set |
|
) |
| const |
|
inline |
Returns the number of sprites in a spriteset.
- Parameters
-
feature | GrfSpecFeature to query. |
set | Set to query. |
- Returns
- Number of sprites in the set.
Definition at line 191 of file newgrf.cpp.
References IsValidSpriteSet().
◆ GetSprite()
SpriteID GrfProcessingState::GetSprite |
( |
uint8_t |
feature, |
|
|
uint |
set |
|
) |
| const |
|
inline |
Returns the first sprite of a spriteset.
- Parameters
-
feature | GrfSpecFeature to query. |
set | Set to query. |
- Returns
- First sprite of the set.
Definition at line 179 of file newgrf.cpp.
References IsValidSpriteSet().
◆ HasValidSpriteSets()
bool GrfProcessingState::HasValidSpriteSets |
( |
uint8_t |
feature | ) |
const |
|
inline |
Check whether there are any valid spritesets for a feature.
- Parameters
-
feature | GrfSpecFeature to check. |
- Returns
- true if there are any valid sets.
- Note
- Spritesets with zero sprites are valid to allow callback-failures.
Definition at line 154 of file newgrf.cpp.
◆ IsValidSpriteSet()
bool GrfProcessingState::IsValidSpriteSet |
( |
uint8_t |
feature, |
|
|
uint |
set |
|
) |
| const |
|
inline |
Check whether a specific set is defined.
- Parameters
-
feature | GrfSpecFeature to check. |
set | Set to check. |
- Returns
- true if the set is valid.
- Note
- Spritesets with zero sprites are valid to allow callback-failures.
Definition at line 167 of file newgrf.cpp.
Referenced by GetNumEnts(), and GetSprite().
The documentation for this struct was generated from the following file: