fix predictpacket serialization
This commit is contained in:
@@ -44,7 +44,7 @@ struct PlayerLeave {
|
||||
};
|
||||
|
||||
struct PredictCommand {
|
||||
std::unique_ptr<CommandBase> m_Command;
|
||||
CommandPtr m_Command;
|
||||
std::uint16_t m_FrameNumber;
|
||||
};
|
||||
|
||||
|
||||
@@ -2,20 +2,6 @@
|
||||
|
||||
#include <td/protocol/packet/PacketData.h>
|
||||
|
||||
namespace sp {
|
||||
|
||||
class DataBuffer;
|
||||
|
||||
// temp
|
||||
template <>
|
||||
void ReadMessage(DataBuffer& a_Buffer, td::protocol::pdata::PredictCommand& a_Header);
|
||||
|
||||
template <>
|
||||
DataBuffer WriteMessage(const td::protocol::pdata::PredictCommand& a_Header);
|
||||
|
||||
} // namespace sp
|
||||
|
||||
|
||||
namespace td {
|
||||
|
||||
template <typename T>
|
||||
@@ -49,7 +35,6 @@ sp::DataBuffer& operator>>(sp::DataBuffer& a_Buffer, Vec4<T>& a_Vec) {
|
||||
return a_Buffer >> a_Vec.x >> a_Vec.y >> a_Vec.z >> a_Vec.w;
|
||||
}
|
||||
|
||||
|
||||
namespace game {
|
||||
|
||||
sp::DataBuffer& operator<<(sp::DataBuffer& a_Buffer, const TeamCastle& a_Castle);
|
||||
|
||||
Reference in New Issue
Block a user