Implement NewGRF road stop root sprite group selection

This commit is contained in:
Jonathan G Rennison
2022-02-14 00:26:52 +00:00
parent 1084bb8566
commit a69eba31fe
3 changed files with 33 additions and 5 deletions

View File

@@ -110,8 +110,13 @@ struct RoadStopResolverObject : public ResolverObject {
/** Road stop specification. */
struct RoadStopSpec {
// We'll have a default and a fence "cargo". Or maybe just a default one?
GRFFilePropsBase<NUM_CARGO + 1> grf_prop;
/**
* Properties related the the grf file.
* NUM_CARGO real cargo plus three pseudo cargo sprite groups.
* Used for obtaining the sprite offset of custom sprites, and for
* evaluating callbacks.
*/
GRFFilePropsBase<NUM_CARGO + 3> grf_prop;
RoadStopClassID cls_id; ///< The class to which this spec belongs.
int spec_id; ///< The ID of this spec inside the class.
StringID name; ///< Name of this stop