2022-08-06 03:01:59 +00:00
|
|
|
#pragma once
|
2021-12-05 17:54:36 +00:00
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
#include "BitStream.h"
|
|
|
|
|
|
|
|
#include "NiPoint3.h"
|
|
|
|
#include "dCommonVars.h"
|
|
|
|
|
2022-07-28 13:39:57 +00:00
|
|
|
namespace GameMessages {
|
2021-12-05 17:54:36 +00:00
|
|
|
class PropertyDataMessage final
|
|
|
|
{
|
|
|
|
public:
|
2022-07-28 13:39:57 +00:00
|
|
|
explicit PropertyDataMessage(uint32_t mapID);
|
2021-12-05 17:54:36 +00:00
|
|
|
|
|
|
|
void Serialize(RakNet::BitStream& stream) const;
|
|
|
|
|
|
|
|
std::string OwnerName = "";
|
|
|
|
LWOOBJID OwnerId = LWOOBJID_EMPTY;
|
|
|
|
|
|
|
|
// Temporary values
|
|
|
|
uint32_t TemplateID = 25166;
|
|
|
|
uint16_t ZoneId = 1150;
|
|
|
|
uint16_t VendorMapId = 1100;
|
|
|
|
std::string SpawnName = "AGSmallProperty";
|
|
|
|
|
|
|
|
std::string Name = "";
|
|
|
|
std::string Description = "";
|
2022-03-30 06:49:04 +00:00
|
|
|
std::string rejectionReason = "";
|
2021-12-05 17:54:36 +00:00
|
|
|
|
2022-03-30 06:49:04 +00:00
|
|
|
bool moderatorRequested = 0;
|
|
|
|
LWOCLONEID cloneId = 0;
|
|
|
|
uint32_t reputation = 0;
|
2021-12-05 17:54:36 +00:00
|
|
|
uint64_t ClaimedTime = 0;
|
2022-03-30 06:49:04 +00:00
|
|
|
uint64_t LastUpdatedTime = 0;
|
2021-12-05 17:54:36 +00:00
|
|
|
|
|
|
|
NiPoint3 ZonePosition = { 548.0f, 406.0f, 178.0f };
|
|
|
|
char PrivacyOption = 0;
|
|
|
|
float MaxBuildHeight = 128.0f;
|
|
|
|
std::vector<NiPoint3> Paths = {};
|
2022-03-30 23:14:24 +00:00
|
|
|
private:
|
|
|
|
enum RejectionStatus : uint32_t {
|
|
|
|
REJECTION_STATUS_APPROVED = 0,
|
|
|
|
REJECTION_STATUS_PENDING = 1,
|
|
|
|
REJECTION_STATUS_REJECTED = 2
|
|
|
|
};
|
2021-12-05 17:54:36 +00:00
|
|
|
};
|
2022-07-28 13:39:57 +00:00
|
|
|
}
|