Function for retrieving a qglobal or list of them

This commit is contained in:
KimLS
2013-05-24 00:52:28 -07:00
parent 815c3dc73f
commit a66ef1b778
2 changed files with 83 additions and 2 deletions
+6
View File
@@ -6,6 +6,10 @@
#include <stdlib.h>
#include "../common/timer.h"
class NPC;
class Client;
class Zone;
struct QGlobal
{
QGlobal() { }
@@ -29,6 +33,8 @@ public:
//assumes cacheA is already a valid or empty list and doesn't check for valid items.
static void Combine(std::list<QGlobal> &cacheA, std::list<QGlobal> cacheB, uint32 npcID, uint32 charID, uint32 zoneID);
static void GetQGlobals(std::list<QGlobal> &globals, NPC *n, Client *c, Zone *z);
static bool GetQGlobal(QGlobal &g, std::string name, NPC *n, Client *c, Zone *z);
void PurgeExpiredGlobals();
void LoadByNPCID(uint32 npcID); //npc