mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
Eluna: Implement utility GetRow()
This commit is contained in:
@@ -10,14 +10,17 @@
|
||||
#include "Common.h"
|
||||
#include "SharedDefines.h"
|
||||
#ifdef TRINITY
|
||||
#include "QueryResult.h"
|
||||
#ifdef CATA
|
||||
#include "Object.h"
|
||||
#endif
|
||||
#else
|
||||
#include "ObjectGuid.h"
|
||||
#include "Database/QueryResult.h"
|
||||
#endif
|
||||
|
||||
#ifdef TRINITY
|
||||
typedef QueryResult ElunaQuery;
|
||||
#ifndef CATA
|
||||
typedef uint64 ObjectGuid;
|
||||
#endif
|
||||
@@ -26,6 +29,7 @@ typedef uint64 ObjectGuid;
|
||||
#define ELUNA_LOG_DEBUG(...) TC_LOG_DEBUG("eluna", __VA_ARGS__);
|
||||
#define GET_GUID GetGUID
|
||||
#else
|
||||
typedef QueryNamedResult ElunaQuery;
|
||||
#define MAKE_NEW_GUID(l, e, h) ObjectGuid(h, e, l)
|
||||
#define GUID_ENPART(guid) ObjectGuid(guid).GetEntry()
|
||||
#define GUID_LOPART(guid) ObjectGuid(guid).GetCounter()
|
||||
|
||||
Reference in New Issue
Block a user