[11475] Provide wrappers for set/get ObjectGuid in InstanceData as uint64

This commit is contained in:
VladimirMangos 2011-05-12 13:58:45 +04:00
parent 94080a2d77
commit 4dbcb424a9
2 changed files with 5 additions and 1 deletions

View file

@ -82,6 +82,10 @@ class MANGOS_DLL_SPEC InstanceData
virtual uint64 GetData64(uint32 /*Data*/) { return 0; }
virtual void SetData64(uint32 /*Data*/, uint64 /*Value*/) { }
//Guid data storage (wrapper for set/get from uint64 storage
ObjectGuid GetGuid(uint32 dataIdx) { return ObjectGuid(GetData64(dataIdx)); }
void SetGuid(uint32 dataIdx, ObjectGuid value) { SetData64(dataIdx, value.GetRawValue()); }
//All-purpose data storage 32 bit
virtual uint32 GetData(uint32 /*Type*/) { return 0; }
virtual void SetData(uint32 /*Type*/, uint32 /*Data*/) {}

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "11474"
#define REVISION_NR "11475"
#endif // __REVISION_NR_H__