summaryrefslogtreecommitdiff
path: root/src/engine/World.cpp
diff options
context:
space:
mode:
authorMegaMech <inkstudios1@hotmail.com>2024-11-16 16:40:39 -0700
committerMegaMech <inkstudios1@hotmail.com>2024-11-16 16:40:39 -0700
commitd29f5c7a64c0563181726af6ee32dbf73247769b (patch)
tree62063854e67404e9c4538279c0aae5d8fe7f1504 /src/engine/World.cpp
parentbe9f49a0be23fbe1343142c1e5b202d1f701b8f2 (diff)
General Cleanup of vehicles
Diffstat (limited to 'src/engine/World.cpp')
-rw-r--r--src/engine/World.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/engine/World.cpp b/src/engine/World.cpp
index 5bdc9e05a..c87bb332d 100644
--- a/src/engine/World.cpp
+++ b/src/engine/World.cpp
@@ -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++;