2021-12-05 17:54:36 +00:00
|
|
|
|
#include "PropertySelectQueryProperty.h"
|
2022-03-28 10:24:49 +00:00
|
|
|
|
#include <iostream>
|
2021-12-05 17:54:36 +00:00
|
|
|
|
|
|
|
|
|
void PropertySelectQueryProperty::Serialize(RakNet::BitStream& stream) const
|
|
|
|
|
{
|
|
|
|
|
stream.Write(CloneId);
|
|
|
|
|
|
|
|
|
|
const auto& owner = GeneralUtils::ASCIIToUTF16(OwnerName);
|
|
|
|
|
stream.Write(uint32_t(owner.size()));
|
|
|
|
|
for (uint32_t i = 0; i < owner.size(); ++i) {
|
|
|
|
|
stream.Write(static_cast<uint16_t>(owner[i]));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const auto& name = GeneralUtils::ASCIIToUTF16(Name);
|
|
|
|
|
stream.Write(uint32_t(name.size()));
|
|
|
|
|
for (uint32_t i = 0; i < name.size(); ++i) {
|
|
|
|
|
stream.Write(static_cast<uint16_t>(name[i]));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const auto& description = GeneralUtils::ASCIIToUTF16(Description);
|
|
|
|
|
stream.Write(uint32_t(description.size()));
|
|
|
|
|
for (uint32_t i = 0; i < description.size(); ++i) {
|
|
|
|
|
stream.Write(static_cast<uint16_t>(description[i]));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
stream.Write(Reputation);
|
|
|
|
|
stream.Write(IsBestFriend);
|
|
|
|
|
stream.Write(IsFriend);
|
|
|
|
|
stream.Write(IsModeratorApproved);
|
|
|
|
|
stream.Write(IsAlt);
|
2022-03-28 06:46:43 +00:00
|
|
|
|
stream.Write(IsOwned);
|
2021-12-05 17:54:36 +00:00
|
|
|
|
stream.Write(AccessType);
|
2022-03-29 02:58:23 +00:00
|
|
|
|
stream.Write(DateLastPublished);
|
2021-12-05 17:54:36 +00:00
|
|
|
|
stream.Write(PerformanceCost);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void PropertySelectQueryProperty::Deserialize(RakNet::BitStream& stream) const
|
|
|
|
|
{
|
|
|
|
|
// Do we need this?
|
|
|
|
|
}
|