forked from ElunaLuaEngine/Eluna
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTableMgr.h
More file actions
33 lines (26 loc) · 688 Bytes
/
TableMgr.h
File metadata and controls
33 lines (26 loc) · 688 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
* Copyright (C) 2010 - 2015 Eluna Lua Engine <http://emudevs.com/>
* This program is free software licensed under GPL version 3
* Please see the included DOCS/LICENSE.md for more information
*/
#ifndef _TABLE_MGR_H
#define _TABLE_MGR_H
#include "ObjectGuid.h"
#include <unordered_map>
class Eluna;
class WorldObject;
struct lua_State;
class TableMgr
{
private:
typedef std::unordered_map<ObjectGuid, int> RefMap;
RefMap tableRefMap;
Eluna* owner;
public:
TableMgr(Eluna* eluna);
void DeleteAllTableRefs();
void DeleteTableRef(ObjectGuid const& guid);
void PushTableRef(ObjectGuid const& guid);
void CreateTable(ObjectGuid const& guid);
};
#endif