mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 00:14:22 +00:00
lego1: MxVariableTable (#87)
* MxStringVariable -> MxVariable * cursor test * GetVariable to 100 * meh * node insert inline * move to header file * use reference to match available code * variable table init in mxomni, some reshuffling
This commit is contained in:
@@ -1,16 +1,28 @@
|
||||
#ifndef MXVARIABLETABLE_H
|
||||
#define MXVARIABLETABLE_H
|
||||
|
||||
class MxVariable;
|
||||
#include "mxtypes.h"
|
||||
#include "mxhashtable.h"
|
||||
#include "mxvariable.h"
|
||||
|
||||
|
||||
// VTABLE 0x100dc1c8
|
||||
// SIZE 0x28
|
||||
class MxVariableTable
|
||||
class MxVariableTable : public MxHashTable<MxVariable>
|
||||
{
|
||||
public:
|
||||
__declspec(dllexport) const char * GetVariable(const char *key);
|
||||
__declspec(dllexport) void SetVariable(MxVariable *var);
|
||||
MxVariableTable() {
|
||||
m_customDestructor = Destroy;
|
||||
}
|
||||
__declspec(dllexport) void SetVariable(const char *key, const char *value);
|
||||
__declspec(dllexport) void SetVariable(MxVariable *var);
|
||||
__declspec(dllexport) const char * GetVariable(const char *key);
|
||||
|
||||
// OFFSET: LEGO1 0x100afdb0
|
||||
static void Destroy(MxVariable *p_obj) { p_obj->Destroy(); }
|
||||
|
||||
virtual MxS8 Compare(MxVariable *, MxVariable *); // +0x14
|
||||
virtual MxU32 Hash(MxVariable *); // +0x18
|
||||
};
|
||||
|
||||
#endif // MXVARIABLETABLE_H
|
||||
|
Reference in New Issue
Block a user