newgrf_station.h
changeset 3751 ce6408fdb788
parent 3743 9eb8bdd90532
child 3752 7c28dc5a1698
equal deleted inserted replaced
3750:ffe5ba5de494 3751:ce6408fdb788
    94 
    94 
    95 void SetCustomStationSpec(StationSpec *statspec);
    95 void SetCustomStationSpec(StationSpec *statspec);
    96 const StationSpec *GetCustomStationSpec(StationClassID sclass, uint station);
    96 const StationSpec *GetCustomStationSpec(StationClassID sclass, uint station);
    97 
    97 
    98 /* Get sprite offset for a given custom station and station structure (may be
    98 /* Get sprite offset for a given custom station and station structure (may be
    99  * NULL if ctype is set - that means we are in a build dialog). The station
    99  * NULL - that means we are in a build dialog). The station structure is used
   100  * structure is used for variational sprite groups. */
   100  * for variational sprite groups. */
   101 SpriteID GetCustomStationRelocation(const StationSpec *statspec, const Station *st, TileIndex tile, CargoID ctype);
   101 SpriteID GetCustomStationRelocation(const StationSpec *statspec, const Station *st, TileIndex tile);
   102 
   102 
   103 /* Allocate a StationSpec to a Station. This is called once per build operation. */
   103 /* Allocate a StationSpec to a Station. This is called once per build operation. */
   104 int AllocateSpecToStation(const StationSpec *statspec, Station *st, bool exec);
   104 int AllocateSpecToStation(const StationSpec *statspec, Station *st, bool exec);
   105 
   105 
   106 /* Deallocate a StationSpec from a Station. Called when removing a single station tile. */
   106 /* Deallocate a StationSpec from a Station. Called when removing a single station tile. */