|
OpenTTD Source 20260711-master-g3fb3006dff
|
Public Member Functions | |
| uint64_t | Key () const |
| Create a 64 bit key from this mapping. | |
| EngineIDMapping () | |
| Create a new mapping. | |
| EngineIDMapping (GrfID grfid, uint16_t internal_id, VehicleType type, uint8_t substitute_id, EngineID engine) | |
| Create the mapping. | |
Static Public Member Functions | |
| static uint64_t | Key (GrfID grfid, uint16_t internal_id) |
| Create a 64 bit key from the GRFID and internal ID for mappings. | |
Data Fields | |
| GrfID | grfid {} |
| The GRF ID of the file the entity belongs to. | |
| uint16_t | internal_id = 0 |
| The internal ID within the GRF file. | |
| VehicleType | type {} |
| The engine type. | |
| uint8_t | substitute_id = 0 |
| The (original) entity ID to use if this GRF is not available (currently not used). | |
| EngineID | engine {} |
Definition at line 203 of file engine_base.h.
|
inline |
Create a new mapping.
Definition at line 225 of file engine_base.h.
|
inline |
Create the mapping.
| grfid | The unique identifer of the NewGRF. |
| internal_id | The internal identifier of the engine within the NewGRF. |
| type | The vehicle type. |
| substitute_id | The original vehicle to fall back to. |
| engine | The engine the mapping is for. |
Definition at line 235 of file engine_base.h.
References grfid, internal_id, substitute_id, and type.
|
inline |
Create a 64 bit key from this mapping.
Definition at line 222 of file engine_base.h.
References Key().
Referenced by EngineOverrideManager::GetID(), Key(), EngineOverrideManager::SetID(), and EngineOverrideManager::UseUnreservedID().
|
inlinestatic |
Create a 64 bit key from the GRFID and internal ID for mappings.
| grfid | The NewGRF id. |
| internal_id | The internal ID within the GRF file. |
Definition at line 216 of file engine_base.h.
References grfid, and internal_id.
Referenced by EngineOverrideManager::UseUnreservedID().
| EngineID EngineIDMapping::engine {} |
Definition at line 208 of file engine_base.h.
| GrfID EngineIDMapping::grfid {} |
The GRF ID of the file the entity belongs to.
Definition at line 204 of file engine_base.h.
Referenced by EngineIDMapping(), Key(), and EIDSChunkHandler::Load().
| uint16_t EngineIDMapping::internal_id = 0 |
The internal ID within the GRF file.
Definition at line 205 of file engine_base.h.
Referenced by EngineIDMapping(), Key(), and EIDSChunkHandler::Load().
| uint8_t EngineIDMapping::substitute_id = 0 |
The (original) entity ID to use if this GRF is not available (currently not used).
Definition at line 207 of file engine_base.h.
Referenced by EngineIDMapping(), and EIDSChunkHandler::Load().
| VehicleType EngineIDMapping::type {} |
The engine type.
Definition at line 206 of file engine_base.h.
Referenced by EngineIDMapping(), and EIDSChunkHandler::Load().