(svn r4484) - Newstations: Use StringIDs instead of char*s to reference our custom names.

This commit is contained in:
peter1138
2006-04-20 17:04:08 +00:00
parent 9ed8c6d4ac
commit fe6dadad7b
3 changed files with 9 additions and 8 deletions

View File

@@ -22,6 +22,7 @@ typedef struct stationspec {
int localidx; ///< Index within GRF file of station.
StationClassID sclass; ///< The class to which this spec belongs.
StringID name; ///< Name of this station.
/**
* Bitmask of number of platforms available for the station.
@@ -76,14 +77,13 @@ typedef struct stationspec {
*/
typedef struct stationclass {
uint32 id; ///< ID of this class, e.g. 'DFLT', 'WAYP', etc.
char *name; ///< Name of this class.
StringID name; ///< Name of this class.
uint stations; ///< Number of stations in this class.
StationSpec **spec; ///< Array of station specifications.
} StationClass;
void ResetStationClasses(void);
StationClassID AllocateStationClass(uint32 class);
void SetStationClassName(StationClassID sclass, const char *name);
uint GetNumStationClasses(void);
uint GetNumCustomStations(StationClassID sclass);