DarkflameServer/dGame/dGameMessages/PropertySelectQueryProperty.cpp

32 lines
764 B
C++
Raw Normal View History

2022-08-06 03:01:59 +00:00
#include "PropertySelectQueryProperty.h"
2022-07-28 13:39:57 +00:00
void PropertySelectQueryProperty::Serialize(RakNet::BitStream& stream) const {
stream.Write(CloneId);
2023-07-11 07:02:59 +00:00
stream.Write<uint32_t>(OwnerName.size());
for (const auto& c : OwnerName) {
stream.Write<uint16_t>(c);
}
2023-07-11 07:02:59 +00:00
stream.Write<uint32_t>(Name.size());
for (const auto& c : Name) {
stream.Write<uint16_t>(c);
}
2023-07-11 07:02:59 +00:00
stream.Write<uint32_t>(Description.size());
for (const auto& c : Description) {
stream.Write<uint16_t>(c);
}
2022-03-30 02:47:15 +00:00
stream.Write(Reputation);
stream.Write(IsBestFriend);
stream.Write(IsFriend);
stream.Write(IsModeratorApproved);
stream.Write(IsAlt);
stream.Write(IsOwned);
stream.Write(AccessType);
stream.Write(DateLastPublished);
stream.Write(PerformanceIndex);
stream.Write(PerformanceCost);
}