#include "PropertySelectQueryProperty.h" void PropertySelectQueryProperty::Serialize(RakNet::BitStream& stream) const { stream.Write(CloneId); const auto& owner = GeneralUtils::UTF8ToUTF16(OwnerName); stream.Write(owner.size()); for (uint32_t i = 0; i < owner.size(); ++i) { stream.Write(owner[i]); } const auto& name = GeneralUtils::UTF8ToUTF16(Name); stream.Write(name.size()); for (uint32_t i = 0; i < name.size(); ++i) { stream.Write(name[i]); } const auto& description = GeneralUtils::UTF8ToUTF16(Description); stream.Write(description.size()); for (uint32_t i = 0; i < description.size(); ++i) { stream.Write(description[i]); } 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(PerformanceCost); } void PropertySelectQueryProperty::Deserialize(RakNet::BitStream& stream) const { // Do we need this? // no }