refactor: format project
This commit is contained in:
@@ -498,7 +498,7 @@ void WorldRemoveTowerPacket::Deserialize(DataBuffer& data) {
|
||||
DataBuffer SendMobsPacket::Serialize() const {
|
||||
DataBuffer data;
|
||||
data << getID() << static_cast<std::uint8_t>(m_MobSends.size());
|
||||
for(const MobSend& mobSend : m_MobSends){
|
||||
for (const MobSend& mobSend : m_MobSends) {
|
||||
data << mobSend;
|
||||
}
|
||||
return data;
|
||||
@@ -508,7 +508,7 @@ void SendMobsPacket::Deserialize(DataBuffer& data) {
|
||||
std::uint8_t mobSendCount;
|
||||
data >> mobSendCount;
|
||||
protocol::MobSend mobSend;
|
||||
for(int i = 0; i < mobSendCount; i++){
|
||||
for (int i = 0; i < mobSendCount; i++) {
|
||||
data >> mobSend;
|
||||
m_MobSends.push_back(mobSend);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user