aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/GameAdvancementHook.hpp
diff options
context:
space:
mode:
author hop311 <hop3114@gmail.com>2023-10-29 15:11:10 +0100
committer hop311 <hop3114@gmail.com>2023-10-29 21:08:08 +0100
commit1b5e43fa7750cc4025d32f18390593cbce3ba842 (patch)
treed37fcb69766ec029ea4e3e2816c419f9d7e05f7c /src/openvic-simulation/GameAdvancementHook.hpp
parent164264b047921dbe1567d2af183e1cffb200a8cb (diff)
Clang-format formatting (with manual cleanup)
Diffstat (limited to 'src/openvic-simulation/GameAdvancementHook.hpp')
-rw-r--r--src/openvic-simulation/GameAdvancementHook.hpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/openvic-simulation/GameAdvancementHook.hpp b/src/openvic-simulation/GameAdvancementHook.hpp
index 9d19948..2a27ff9 100644
--- a/src/openvic-simulation/GameAdvancementHook.hpp
+++ b/src/openvic-simulation/GameAdvancementHook.hpp
@@ -20,7 +20,8 @@ namespace OpenVic {
using time_point_t = std::chrono::time_point<std::chrono::high_resolution_clock>;
time_point_t lastPolledTime;
- // A function pointer that advances the simulation, intended to be a capturing lambda or something similar. May need to be reworked later
+ // A function pointer that advances the simulation, intended to be a capturing
+ // lambda or something similar. May need to be reworked later
AdvancementFunction triggerFunction;
RefreshFunction refreshFunction;
speed_t currentSpeed;
@@ -28,8 +29,9 @@ namespace OpenVic {
public:
bool isPaused;
- GameAdvancementHook(AdvancementFunction tickFunction, RefreshFunction updateFunction,
- bool startPaused = true, speed_t startingSpeed = 0);
+ GameAdvancementHook(
+ AdvancementFunction tickFunction, RefreshFunction updateFunction, bool startPaused = true, speed_t startingSpeed = 0
+ );
void setSimulationSpeed(speed_t speed);
speed_t getSimulationSpeed() const;
@@ -42,4 +44,4 @@ namespace OpenVic {
void conditionallyAdvanceGame();
void reset();
};
-} \ No newline at end of file
+}