mirror of
https://github.com/isledecomp/isle-portable.git
synced 2024-11-22 23:48:12 -05:00
516e16faf6
* Fix inline functions * Whitespace * Try this * Fix MxEntity * Further fixes * Move main out * Replace tickle code
40 lines
759 B
C++
40 lines
759 B
C++
#ifndef MXVARIABLE_H
|
|
#define MXVARIABLE_H
|
|
|
|
#include "mxcore.h"
|
|
#include "mxstring.h"
|
|
|
|
// VTABLE: LEGO1 0x100d7498
|
|
// SIZE 0x24
|
|
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;
|
|
}
|
|
|
|
// FUNCTION: LEGO1 0x1003bea0
|
|
virtual MxString* GetValue() { return &m_value; };
|
|
|
|
// FUNCTION: LEGO1 0x1003beb0
|
|
virtual void SetValue(const char* p_value) { m_value = p_value; };
|
|
|
|
// FUNCTION: LEGO1 0x1003bec0
|
|
virtual void Destroy() { delete this; };
|
|
|
|
inline const MxString* GetKey() const { return &m_key; }
|
|
|
|
protected:
|
|
MxString m_key;
|
|
MxString m_value;
|
|
};
|
|
|
|
#endif // MXVARIABLE_H
|