metaforce/Runtime/GuiSys/CGuiMessage.hpp

39 lines
663 B
C++
Raw Normal View History

2016-03-14 23:32:44 +00:00
#ifndef __URDE_CGUIMESSAGE_HPP__
#define __URDE_CGUIMESSAGE_HPP__
#include "RetroTypes.hpp"
#include "CGuiFuncParm.hpp"
namespace urde
{
class CGuiMessage
{
public:
enum class Type
{
Eighteen = 18,
Nineteen = 19
};
private:
Type x4_type;
CGuiFuncParm x8_a;
CGuiFuncParm x10_b;
public:
2016-03-15 04:55:57 +00:00
CGuiMessage(Type type, intptr_t a, intptr_t b)
2016-03-14 23:32:44 +00:00
: x4_type(type), x8_a(a), x10_b(b) {}
2016-03-15 04:55:57 +00:00
Type GetType() const {return x4_type;}
intptr_t GetInt(u32 val) const
2016-03-14 23:32:44 +00:00
{
if (val == 0x60EF4DB0)
return x8_a.x4_int;
else
return x10_b.x4_int;
}
};
}
#endif // __URDE_CGUIMESSAGE_HPP__