Eluna: Implement utility GetRow()

This commit is contained in:
Rochet2
2014-09-13 21:37:28 +03:00
parent 10c81df2cd
commit 42ffd8aff8
7 changed files with 290 additions and 228 deletions

View File

@@ -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()