#ifndef __Z_REPLAY__ #define __Z_REPLAY__ #include "protocolgame.h" using PacketQueue = std::queue>; struct ZReplayData { bool recording = false; std::string title; PacketQueue packets; }; static constexpr uint8_t Z_MAX_REPLAYS = 5; using ReplayList = std::vector; class ZReplays { public: const ReplayList& getReplays() { return replayList; } void saveReplay(ZReplayData& replay); private: ReplayList replayList; }; #endif