Codechange: introduce ConvertibleThroughBase helpers
This commit is contained in:
@@ -33,7 +33,9 @@ extern NewGrfDebugSpritePicker _newgrf_debug_sprite_picker;
|
||||
bool IsNewGRFInspectable(GrfSpecFeature feature, uint index);
|
||||
void ShowNewGRFInspectWindow(GrfSpecFeature feature, uint index, const uint32_t grfid = 0);
|
||||
void InvalidateNewGRFInspectWindow(GrfSpecFeature feature, uint index);
|
||||
void InvalidateNewGRFInspectWindow(GrfSpecFeature feature, ConvertibleThroughBase auto index) { InvalidateNewGRFInspectWindow(feature, index.base()); }
|
||||
void DeleteNewGRFInspectWindow(GrfSpecFeature feature, uint index);
|
||||
void DeleteNewGRFInspectWindow(GrfSpecFeature feature, ConvertibleThroughBase auto index) { DeleteNewGRFInspectWindow(feature, index.base()); }
|
||||
|
||||
GrfSpecFeature GetGrfSpecFeature(TileIndex tile);
|
||||
GrfSpecFeature GetGrfSpecFeature(VehicleType type);
|
||||
|
||||
Reference in New Issue
Block a user