mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 08:24:16 +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:
34
LEGO1/mxvariable.h
Normal file
34
LEGO1/mxvariable.h
Normal file
@@ -0,0 +1,34 @@
|
||||
#ifndef MXVARIABLE_H
|
||||
#define MXVARIABLE_H
|
||||
|
||||
#include "mxstring.h"
|
||||
#include "mxcore.h"
|
||||
|
||||
//VTABLE: 0x100d74a8
|
||||
class MxVariable
|
||||
{
|
||||
public:
|
||||
MxVariable() {}
|
||||
MxVariable(const char *p_key)
|
||||
{
|
||||
m_key = p_key;
|
||||
m_key.ToUpperCase();
|
||||
}
|
||||
MxVariable(const char *p_key, const char *p_value)
|
||||
{
|
||||
m_key = p_key;
|
||||
m_key.ToUpperCase();
|
||||
m_value = p_value;
|
||||
}
|
||||
virtual MxString *GetValue();
|
||||
virtual void SetValue(const char *);
|
||||
virtual void Destroy();
|
||||
|
||||
inline const MxString *GetKey() const { return &m_key; }
|
||||
|
||||
protected:
|
||||
MxString m_key;
|
||||
MxString m_value;
|
||||
};
|
||||
|
||||
#endif // MXVARIABLE_H
|
Reference in New Issue
Block a user