(svn r22566) -Codechange: Define and use OverrideManagerBase::GetGRFID function.
This commit is contained in:
@@ -141,6 +141,16 @@ uint16 OverrideManagerBase::AddEntityID(byte grf_local_id, uint32 grfid, byte su
|
||||
return invalid_ID;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gives the GRFID of the file the entity belongs to.
|
||||
* @param entity_id ID of the entity being queried.
|
||||
* @return GRFID.
|
||||
*/
|
||||
uint16 OverrideManagerBase::GetGRFID(uint16 entity_id) const
|
||||
{
|
||||
return mapping_ID[entity_id].grfid;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gives the substitute of the entity, as specified by the grf file
|
||||
* @param entity_id of the entity being queried
|
||||
|
Reference in New Issue
Block a user