|
|
@ -64,11 +64,6 @@ struct plSpawnPointInfo; |
|
|
|
typedef std::vector<plSpawnPointInfo> plSpawnPointVec; |
|
|
|
typedef std::vector<plSpawnPointInfo> plSpawnPointVec; |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
//============================================================================
|
|
|
|
|
|
|
|
// Volatile Vault Node Fields
|
|
|
|
|
|
|
|
//============================================================================
|
|
|
|
|
|
|
|
uint64_t GetNodeVolatileFields(NetVaultNode* node); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//============================================================================
|
|
|
|
//============================================================================
|
|
|
|
// NetVaultNodeAccess
|
|
|
|
// NetVaultNodeAccess
|
|
|
|
//============================================================================
|
|
|
|
//============================================================================
|
|
|
@ -83,22 +78,24 @@ private: |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
#define VNODE_ACCESSOR(type, name, basename) \ |
|
|
|
#define VNODE_ACCESSOR(type, name, basename) \ |
|
|
|
static const uint64_t k##name = NetVaultNode::k##basename; \
|
|
|
|
|
|
|
|
type Get##name () const { return base->Get##basename(); } \
|
|
|
|
type Get##name () const { return base->Get##basename(); } \
|
|
|
|
void Set##name (type v) { base->Set##basename(v); } |
|
|
|
void Set##name (type v) { base->Set##basename(v); } |
|
|
|
|
|
|
|
|
|
|
|
#define VNODE_BLOB(name, basename) \ |
|
|
|
#define VNODE_BLOB(name, basename) \ |
|
|
|
static const uint64_t k##name = NetVaultNode::k##basename; \
|
|
|
|
|
|
|
|
const uint8_t * Get##name () const { return base->Get##basename(); } \
|
|
|
|
const uint8_t * Get##name () const { return base->Get##basename(); } \
|
|
|
|
size_t Get##name##Length () const { return base->Get##basename##Length(); } \
|
|
|
|
size_t Get##name##Length () const { return base->Get##basename##Length(); } \
|
|
|
|
void Set##name (const uint8_t data[], size_t length) { base->Set##basename(data, length); } |
|
|
|
void Set##name (const uint8_t data[], size_t length) { base->Set##basename(data, length); } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#define VNODE_STRING(name, basename) \ |
|
|
|
|
|
|
|
plString Get##name () const { return base->Get##basename(); } \
|
|
|
|
|
|
|
|
void Set##name (const plString& v) { base->Set##basename(v); } |
|
|
|
|
|
|
|
|
|
|
|
//============================================================================
|
|
|
|
//============================================================================
|
|
|
|
// VaultPlayerNode
|
|
|
|
// VaultPlayerNode
|
|
|
|
//============================================================================
|
|
|
|
//============================================================================
|
|
|
|
struct VaultPlayerNode : NetVaultNodeAccess { |
|
|
|
struct VaultPlayerNode : NetVaultNodeAccess { |
|
|
|
VNODE_ACCESSOR(const wchar_t *, PlayerName, IString64_1); |
|
|
|
VNODE_STRING ( PlayerName, IString64_1); |
|
|
|
VNODE_ACCESSOR(const wchar_t *, AvatarShapeName, String64_1); |
|
|
|
VNODE_STRING ( AvatarShapeName, String64_1); |
|
|
|
VNODE_ACCESSOR(int32_t, Disabled, Int32_1); |
|
|
|
VNODE_ACCESSOR(int32_t, Disabled, Int32_1); |
|
|
|
VNODE_ACCESSOR(int32_t, Explorer, Int32_2); // explorer = 1, visitor = 0
|
|
|
|
VNODE_ACCESSOR(int32_t, Explorer, Int32_2); // explorer = 1, visitor = 0
|
|
|
|
VNODE_ACCESSOR(uint32_t, OnlineTime, UInt32_1); |
|
|
|
VNODE_ACCESSOR(uint32_t, OnlineTime, UInt32_1); |
|
|
@ -114,8 +111,8 @@ struct VaultPlayerNode : NetVaultNodeAccess { |
|
|
|
//============================================================================
|
|
|
|
//============================================================================
|
|
|
|
struct VaultPlayerInfoNode : NetVaultNodeAccess { |
|
|
|
struct VaultPlayerInfoNode : NetVaultNodeAccess { |
|
|
|
VNODE_ACCESSOR(uint32_t, PlayerId, UInt32_1); |
|
|
|
VNODE_ACCESSOR(uint32_t, PlayerId, UInt32_1); |
|
|
|
VNODE_ACCESSOR(const wchar_t *, PlayerName, IString64_1); |
|
|
|
VNODE_STRING ( PlayerName, IString64_1); |
|
|
|
VNODE_ACCESSOR(const wchar_t *, AgeInstName, String64_1); // name of age player is currently in
|
|
|
|
VNODE_STRING ( AgeInstName, String64_1); // name of age player is currently in
|
|
|
|
VNODE_ACCESSOR(plUUID, AgeInstUuid, Uuid_1); // guid of age player is currently in
|
|
|
|
VNODE_ACCESSOR(plUUID, AgeInstUuid, Uuid_1); // guid of age player is currently in
|
|
|
|
VNODE_ACCESSOR(int32_t, Online, Int32_1); // whether or not player is online
|
|
|
|
VNODE_ACCESSOR(int32_t, Online, Int32_1); // whether or not player is online
|
|
|
|
VNODE_ACCESSOR(int32_t, CCRLevel, Int32_2); |
|
|
|
VNODE_ACCESSOR(int32_t, CCRLevel, Int32_2); |
|
|
@ -129,7 +126,7 @@ struct VaultPlayerInfoNode : NetVaultNodeAccess { |
|
|
|
//============================================================================
|
|
|
|
//============================================================================
|
|
|
|
struct VaultFolderNode : NetVaultNodeAccess { |
|
|
|
struct VaultFolderNode : NetVaultNodeAccess { |
|
|
|
VNODE_ACCESSOR(int32_t, FolderType, Int32_1); |
|
|
|
VNODE_ACCESSOR(int32_t, FolderType, Int32_1); |
|
|
|
VNODE_ACCESSOR(const wchar_t *, FolderName, String64_1); |
|
|
|
VNODE_STRING ( FolderName, String64_1); |
|
|
|
|
|
|
|
|
|
|
|
VaultFolderNode (NetVaultNode * node) : NetVaultNodeAccess(node) { } |
|
|
|
VaultFolderNode (NetVaultNode * node) : NetVaultNodeAccess(node) { } |
|
|
|
}; |
|
|
|
}; |
|
|
@ -154,8 +151,8 @@ struct VaultAgeInfoListNode : VaultFolderNode { |
|
|
|
//============================================================================
|
|
|
|
//============================================================================
|
|
|
|
struct VaultChronicleNode : NetVaultNodeAccess { |
|
|
|
struct VaultChronicleNode : NetVaultNodeAccess { |
|
|
|
VNODE_ACCESSOR(int32_t, EntryType, Int32_1); |
|
|
|
VNODE_ACCESSOR(int32_t, EntryType, Int32_1); |
|
|
|
VNODE_ACCESSOR(const wchar_t *, EntryName, String64_1); |
|
|
|
VNODE_STRING ( EntryName, String64_1); |
|
|
|
VNODE_ACCESSOR(const wchar_t *, EntryValue, Text_1); |
|
|
|
VNODE_STRING ( EntryValue, Text_1); |
|
|
|
|
|
|
|
|
|
|
|
VaultChronicleNode (NetVaultNode * node) : NetVaultNodeAccess(node) { } |
|
|
|
VaultChronicleNode (NetVaultNode * node) : NetVaultNodeAccess(node) { } |
|
|
|
}; |
|
|
|
}; |
|
|
@ -165,7 +162,7 @@ struct VaultChronicleNode : NetVaultNodeAccess { |
|
|
|
// VaultSDLNode
|
|
|
|
// VaultSDLNode
|
|
|
|
//============================================================================
|
|
|
|
//============================================================================
|
|
|
|
struct VaultSDLNode : NetVaultNodeAccess { |
|
|
|
struct VaultSDLNode : NetVaultNodeAccess { |
|
|
|
VNODE_ACCESSOR(const wchar_t *, SDLName, String64_1); |
|
|
|
VNODE_STRING ( SDLName, String64_1); |
|
|
|
VNODE_ACCESSOR(int32_t, SDLIdent, Int32_1); |
|
|
|
VNODE_ACCESSOR(int32_t, SDLIdent, Int32_1); |
|
|
|
VNODE_BLOB ( SDLData, Blob_1); |
|
|
|
VNODE_BLOB ( SDLData, Blob_1); |
|
|
|
|
|
|
|
|
|
|
@ -174,7 +171,7 @@ struct VaultSDLNode : NetVaultNodeAccess { |
|
|
|
#ifdef CLIENT |
|
|
|
#ifdef CLIENT |
|
|
|
bool GetStateDataRecord (class plStateDataRecord * out, unsigned readOptions = 0); |
|
|
|
bool GetStateDataRecord (class plStateDataRecord * out, unsigned readOptions = 0); |
|
|
|
void SetStateDataRecord (const class plStateDataRecord * rec, unsigned writeOptions = 0); |
|
|
|
void SetStateDataRecord (const class plStateDataRecord * rec, unsigned writeOptions = 0); |
|
|
|
void InitStateDataRecord (const wchar_t sdlRecName[], unsigned writeOptions = 0); |
|
|
|
void InitStateDataRecord (const plString& sdlRecName, unsigned writeOptions = 0); |
|
|
|
#endif // def CLIENT
|
|
|
|
#endif // def CLIENT
|
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
@ -206,7 +203,7 @@ struct VaultImageNode : NetVaultNodeAccess { |
|
|
|
enum ImageTypes { kNone=0, kJPEG=1, kPNG=2 }; |
|
|
|
enum ImageTypes { kNone=0, kJPEG=1, kPNG=2 }; |
|
|
|
|
|
|
|
|
|
|
|
VNODE_ACCESSOR(int32_t, ImageType, Int32_1); |
|
|
|
VNODE_ACCESSOR(int32_t, ImageType, Int32_1); |
|
|
|
VNODE_ACCESSOR(const wchar_t *, ImageTitle, String64_1); |
|
|
|
VNODE_STRING ( ImageTitle, String64_1); |
|
|
|
VNODE_BLOB ( ImageData, Blob_1); |
|
|
|
VNODE_BLOB ( ImageData, Blob_1); |
|
|
|
|
|
|
|
|
|
|
|
VaultImageNode (NetVaultNode * node) : NetVaultNodeAccess(node) { } |
|
|
|
VaultImageNode (NetVaultNode * node) : NetVaultNodeAccess(node) { } |
|
|
@ -234,8 +231,8 @@ struct VaultCliImageNode : VaultImageNode { |
|
|
|
struct VaultTextNoteNode : NetVaultNodeAccess { |
|
|
|
struct VaultTextNoteNode : NetVaultNodeAccess { |
|
|
|
VNODE_ACCESSOR(int32_t, NoteType, Int32_1); |
|
|
|
VNODE_ACCESSOR(int32_t, NoteType, Int32_1); |
|
|
|
VNODE_ACCESSOR(int32_t, NoteSubType, Int32_2); |
|
|
|
VNODE_ACCESSOR(int32_t, NoteSubType, Int32_2); |
|
|
|
VNODE_ACCESSOR(const wchar_t *, NoteTitle, String64_1); |
|
|
|
VNODE_STRING ( NoteTitle, String64_1); |
|
|
|
VNODE_ACCESSOR(const wchar_t *, NoteText, Text_1); |
|
|
|
VNODE_STRING ( NoteText, Text_1); |
|
|
|
|
|
|
|
|
|
|
|
VaultTextNoteNode (NetVaultNode * node) : NetVaultNodeAccess(node) { } |
|
|
|
VaultTextNoteNode (NetVaultNode * node) : NetVaultNodeAccess(node) { } |
|
|
|
|
|
|
|
|
|
|
@ -252,7 +249,7 @@ struct VaultTextNoteNode : NetVaultNodeAccess { |
|
|
|
struct VaultAgeNode : NetVaultNodeAccess { |
|
|
|
struct VaultAgeNode : NetVaultNodeAccess { |
|
|
|
VNODE_ACCESSOR(plUUID, AgeInstanceGuid, Uuid_1); |
|
|
|
VNODE_ACCESSOR(plUUID, AgeInstanceGuid, Uuid_1); |
|
|
|
VNODE_ACCESSOR(plUUID, ParentAgeInstanceGuid, Uuid_2); |
|
|
|
VNODE_ACCESSOR(plUUID, ParentAgeInstanceGuid, Uuid_2); |
|
|
|
VNODE_ACCESSOR(const wchar_t *, AgeName, String64_1); |
|
|
|
VNODE_STRING ( AgeName, String64_1); |
|
|
|
|
|
|
|
|
|
|
|
VaultAgeNode (NetVaultNode * node) : NetVaultNodeAccess(node) { } |
|
|
|
VaultAgeNode (NetVaultNode * node) : NetVaultNodeAccess(node) { } |
|
|
|
}; |
|
|
|
}; |
|
|
@ -261,12 +258,12 @@ struct VaultAgeNode : NetVaultNodeAccess { |
|
|
|
// VaultAgeInfoNode
|
|
|
|
// VaultAgeInfoNode
|
|
|
|
//============================================================================
|
|
|
|
//============================================================================
|
|
|
|
struct VaultAgeInfoNode : NetVaultNodeAccess { |
|
|
|
struct VaultAgeInfoNode : NetVaultNodeAccess { |
|
|
|
VNODE_ACCESSOR(const wchar_t *, AgeFilename, String64_2); // "Garden"
|
|
|
|
VNODE_STRING ( AgeFilename, String64_2); // "Garden"
|
|
|
|
VNODE_ACCESSOR(const wchar_t *, AgeInstanceName, String64_3); // "Eder Kemo"
|
|
|
|
VNODE_STRING ( AgeInstanceName, String64_3); // "Eder Kemo"
|
|
|
|
VNODE_ACCESSOR(const wchar_t *, AgeUserDefinedName, String64_4); // "Joe's"
|
|
|
|
VNODE_STRING ( AgeUserDefinedName, String64_4); // "Joe's"
|
|
|
|
VNODE_ACCESSOR(plUUID, AgeInstanceGuid, Uuid_1); // 6278b081-342a-4229-ac1b-a0b8a2658390
|
|
|
|
VNODE_ACCESSOR(plUUID, AgeInstanceGuid, Uuid_1); // 6278b081-342a-4229-ac1b-a0b8a2658390
|
|
|
|
VNODE_ACCESSOR(plUUID, ParentAgeInstanceGuid, Uuid_2); // 9192be7f-89ef-41bc-83db-79afe451e399
|
|
|
|
VNODE_ACCESSOR(plUUID, ParentAgeInstanceGuid, Uuid_2); // 9192be7f-89ef-41bc-83db-79afe451e399
|
|
|
|
VNODE_ACCESSOR(const wchar_t *, AgeDescription, Text_1); // "Stay out!"
|
|
|
|
VNODE_STRING ( AgeDescription, Text_1); // "Stay out!"
|
|
|
|
VNODE_ACCESSOR(int32_t, AgeSequenceNumber, Int32_1); |
|
|
|
VNODE_ACCESSOR(int32_t, AgeSequenceNumber, Int32_1); |
|
|
|
VNODE_ACCESSOR(int32_t, AgeLanguage, Int32_3); // The language of the client that made this age
|
|
|
|
VNODE_ACCESSOR(int32_t, AgeLanguage, Int32_3); // The language of the client that made this age
|
|
|
|
VNODE_ACCESSOR(uint32_t, AgeId, UInt32_1); |
|
|
|
VNODE_ACCESSOR(uint32_t, AgeId, UInt32_1); |
|
|
@ -299,7 +296,7 @@ struct VaultSystemNode : NetVaultNodeAccess { |
|
|
|
// VaultMarkerGameNode
|
|
|
|
// VaultMarkerGameNode
|
|
|
|
//============================================================================
|
|
|
|
//============================================================================
|
|
|
|
struct VaultMarkerGameNode : NetVaultNodeAccess { |
|
|
|
struct VaultMarkerGameNode : NetVaultNodeAccess { |
|
|
|
VNODE_ACCESSOR(const wchar_t *, GameName, Text_1); |
|
|
|
VNODE_STRING ( GameName, Text_1); |
|
|
|
VNODE_ACCESSOR(plUUID, GameGuid, Uuid_1); |
|
|
|
VNODE_ACCESSOR(plUUID, GameGuid, Uuid_1); |
|
|
|
|
|
|
|
|
|
|
|
VaultMarkerGameNode (NetVaultNode * node) : NetVaultNodeAccess(node) { } |
|
|
|
VaultMarkerGameNode (NetVaultNode * node) : NetVaultNodeAccess(node) { } |
|
|
|