From 3acea6d17bee24c2079c0eeb33694c2539debabd Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Mon, 13 Dec 2021 17:46:59 +0000 Subject: Move TickDuration to its own files --- game/network/rail.h | 1 + game/terrain.h | 1 + game/vehicles/train.h | 2 +- game/vehicles/vehicle.h | 1 + game/worldobject.h | 4 +--- 5 files changed, 5 insertions(+), 4 deletions(-) (limited to 'game') diff --git a/game/network/rail.h b/game/network/rail.h index bfbb928..47969d6 100644 --- a/game/network/rail.h +++ b/game/network/rail.h @@ -1,6 +1,7 @@ #ifndef RAILLINKS_H #define RAILLINKS_H +#include "chronology.hpp" #include "game/worldobject.h" #include "gfx/models/mesh.h" #include "gfx/renderable.h" diff --git a/game/terrain.h b/game/terrain.h index 979a8e0..c32f092 100644 --- a/game/terrain.h +++ b/game/terrain.h @@ -1,6 +1,7 @@ #ifndef TERRAIN_H #define TERRAIN_H +#include "chronology.hpp" #include "collection.hpp" #include "game/worldobject.h" #include diff --git a/game/vehicles/train.h b/game/vehicles/train.h index e3dad73..ef49209 100644 --- a/game/vehicles/train.h +++ b/game/vehicles/train.h @@ -1,11 +1,11 @@ #ifndef TRAIN_H #define TRAIN_H +#include "chronology.hpp" #include "game/activities/go.h" // IWYU pragma: keep #include "game/activities/idle.h" // IWYU pragma: keep #include "game/activity.h" #include "game/network/link.h" -#include "game/worldobject.h" #include "railVehicle.h" #include "vehicle.h" #include diff --git a/game/vehicles/vehicle.h b/game/vehicles/vehicle.h index 1fc8365..07bd492 100644 --- a/game/vehicles/vehicle.h +++ b/game/vehicles/vehicle.h @@ -1,6 +1,7 @@ #ifndef VEHICLE_H #define VEHICLE_H +#include "chronology.hpp" #include "linkHistory.h" #include #include diff --git a/game/worldobject.h b/game/worldobject.h index 0340ac4..ba77cd0 100644 --- a/game/worldobject.h +++ b/game/worldobject.h @@ -1,11 +1,9 @@ #ifndef WORLDOBJECT_H #define WORLDOBJECT_H -#include +#include "chronology.hpp" #include -using TickDuration = std::chrono::duration; - class WorldObject { public: WorldObject() = default; -- cgit v1.2.3