summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--game/network/rail.h1
-rw-r--r--game/terrain.h1
-rw-r--r--game/vehicles/train.h2
-rw-r--r--game/vehicles/vehicle.h1
-rw-r--r--game/worldobject.h4
-rw-r--r--lib/chronology.hpp8
6 files changed, 13 insertions, 4 deletions
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 <gfx/models/mesh.h>
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 <collection.hpp>
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 <game/activity.h>
#include <game/network/link.h>
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 <chrono>
+#include "chronology.hpp"
#include <special_members.hpp>
-using TickDuration = std::chrono::duration<float, std::chrono::seconds::period>;
-
class WorldObject {
public:
WorldObject() = default;
diff --git a/lib/chronology.hpp b/lib/chronology.hpp
new file mode 100644
index 0000000..5edf95a
--- /dev/null
+++ b/lib/chronology.hpp
@@ -0,0 +1,8 @@
+#ifndef CHRONOLOGY_H
+#define CHRONOLOGY_H
+
+#include <chrono>
+
+using TickDuration = std::chrono::duration<float, std::chrono::seconds::period>;
+
+#endif