This commit is contained in:
2024-10-25 17:12:13 +02:00
parent c0473e5a65
commit cd03175b98
12 changed files with 143 additions and 16 deletions

View File

@@ -9,12 +9,10 @@ namespace game {
class GameHistory {
private:
using HistorySizeType = std::uint16_t;
using HistorySizeType = StepsType;
std::vector<std::optional<protocol::LockStep>> m_History;
HistorySizeType m_Cursor;
public:
GameHistory();
@@ -24,10 +22,6 @@ class GameHistory {
bool HasLockStep(HistorySizeType a_Index) const;
const protocol::LockStep& GetNextStep();
bool HasNextStep() const;
void FromPacket(td::protocol::pdata::LockSteps&& a_Steps);
td::protocol::packets::LockSteps ToPacket(HistorySizeType a_StartIndex);