summaryrefslogtreecommitdiff
path: root/include/sim_core.h
diff options
context:
space:
mode:
authorbatsumaru <>2026-08-19 20:38:28 +0900
committerbatsumaru <>2026-08-19 20:38:28 +0900
commit45bec8812c9d5aa1065cf36a8ca878fda5a6b325 (patch)
tree2a24923cc49ed640fce129a291beed038cd47786 /include/sim_core.h
parent8918325808f9e474c473f4e1c1b4e4e73b8187cf (diff)
Added SimStateHEADmaster
Diffstat (limited to 'include/sim_core.h')
-rw-r--r--include/sim_core.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/sim_core.h b/include/sim_core.h
new file mode 100644
index 0000000..88533d0
--- /dev/null
+++ b/include/sim_core.h
@@ -0,0 +1,17 @@
+#ifndef SIM_CORE_H
+#define SIM_CORE_H
+
+#include <type_traits>
+#include "fixed_point.h"
+
+struct SimState {
+ fp_t stage_width;
+ fp_t stage_height;
+ fp_t camera_x;
+ fp_t camera_y;
+};
+
+static_assert(std::is_trivially_copyable_v<SimState>, "SimState must be trivially copyable for rollback");
+static_assert(sizeof(SimState) == 16, "SimState size changed unexpectedly");
+
+#endif // !SIM_CORE_H