5#include "game/physics_manager.h"
8#include <condition_variable>
19 std::array<PhysicsState, maxPlayerNmb> serverStates{};
20 std::array<PhysicsState, maxPlayerNmb> localStates{};
21 Frame lastLocalValidateFrame{};
22 Frame validateFrame{};
28 void Open(std::string_view path);
29 void StorePacket(
const PlayerInputPacket* inputPacket);
30 void StorePhysicsState(
const DbPhysicsState& physicsState);
34 void CreateTables()
const;
35 sqlite3* db =
nullptr;
36 std::atomic<bool> isOver_ =
false;
38 mutable std::mutex m_;
39 std::condition_variable cv_;
40 std::vector<std::string> commands_;