Allow cloning trains directly from the template train list

See: #312
This commit is contained in:
Jonathan G Rennison
2021-08-22 14:59:33 +01:00
parent a4c73e71c3
commit a026d82c6b
7 changed files with 88 additions and 0 deletions

View File

@@ -823,6 +823,13 @@ public:
*/
virtual bool OnVehicleSelect(const struct Vehicle *v) { return false; }
/**
* The user clicked on a template vehicle while HT_VEHICLE has been set.
* @param v clicked vehicle. It is guaranteed to be v->IsPrimaryVehicle() == true
* @return True if the click is handled, false if it is ignored.
*/
virtual bool OnTemplateVehicleSelect(const struct TemplateVehicle *v) { return false; }
/**
* The user cancelled a tile highlight mode that has been set.
*/