restructure project
This commit is contained in:
20
src/td/protocol/packets/UpdatePlayerTeamPacket.cpp
Normal file
20
src/td/protocol/packets/UpdatePlayerTeamPacket.cpp
Normal file
@@ -0,0 +1,20 @@
|
||||
#include "td/protocol/packets/UpdatePlayerTeamPacket.h"
|
||||
|
||||
namespace td {
|
||||
namespace protocol {
|
||||
|
||||
|
||||
DataBuffer UpdatePlayerTeamPacket::Serialize(bool packetID) const {
|
||||
DataBuffer data;
|
||||
|
||||
WritePacketID(data, packetID);
|
||||
data << m_PlayerID << m_SelectedTeam;
|
||||
return data;
|
||||
}
|
||||
|
||||
void UpdatePlayerTeamPacket::Deserialize(DataBuffer& data) {
|
||||
data >> m_PlayerID >> m_SelectedTeam;
|
||||
}
|
||||
|
||||
} // namespace protocol
|
||||
} // namespace td
|
||||
Reference in New Issue
Block a user