isle/LEGO1/mxvariable.h

35 lines
587 B
C
Raw Normal View History

#ifndef MXVARIABLE_H
#define MXVARIABLE_H
#include "mxcore.h"
2023-10-24 19:38:27 -04:00
#include "mxstring.h"
// VTABLE 0x100d7498
// SIZE 0x24
2023-10-24 19:38:27 -04:00
class MxVariable {
public:
2023-10-24 19:38:27 -04:00
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();
2023-10-24 19:38:27 -04:00
inline const MxString* GetKey() const { return &m_key; }
protected:
2023-10-24 19:38:27 -04:00
MxString m_key;
MxString m_value;
};
#endif // MXVARIABLE_H