splib transition

This commit is contained in:
2025-07-10 16:34:28 +02:00
parent c0473e5a65
commit cc57e03bc4
29 changed files with 146 additions and 1127 deletions

1
src/td/game/Game.cpp Normal file
View File

@@ -0,0 +1 @@
#include <td/game/Game.h>

View File

@@ -32,12 +32,12 @@ void GameHistory::FromPacket(td::protocol::pdata::LockSteps&& a_Steps) {
}
}
td::protocol::packets::LockSteps GameHistory::ToPacket(HistorySizeType a_StartIndex) {
std::array<protocol::LockStep, LOCKSTEP_BUFFER_SIZE> steps;
td::protocol::packets::LockStepsPacket GameHistory::ToPacket(HistorySizeType a_StartIndex) {
Array<protocol::LockStep, LOCKSTEP_BUFFER_SIZE> steps;
for (int i = 0; i < LOCKSTEP_BUFFER_SIZE; i++) {
steps[i] = GetLockStep(a_StartIndex + i);
}
return {{a_StartIndex, std::move(steps)}};
return {a_StartIndex, std::move(steps)};
}
} // namespace game