General Cleanup of vehicles

This commit is contained in:
MegaMech
2024-11-16 16:40:39 -07:00
parent be9f49a0be
commit d29f5c7a64
6 changed files with 47 additions and 49 deletions
+5
View File
@@ -46,6 +46,11 @@ static size_t busses;
static size_t tankerTrucks;
static size_t cars;
static size_t boats;
/**
* Note that you can only remove the tender if there are no carriages
* @arg waypoint initial waypoint to spawn at.
*/
void World::AddTrain(ATrain::TenderStatus tender, size_t numCarriages, f32 speed, uint32_t waypoint) {
Vehicles.push_back(std::make_unique<ATrain>(trains, tender, numCarriages, speed, waypoint));
trains++;