2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 05:07:43 +00:00

New code style refactor

This commit is contained in:
Jack Andersen
2018-12-07 19:30:43 -10:00
parent 41ae32be31
commit 636c82a568
1451 changed files with 171430 additions and 203303 deletions

View File

@@ -3,39 +3,31 @@
#include "CIOWin.hpp"
#include "RetroTypes.hpp"
namespace urde
{
namespace urde {
class CErrorOutputWindow : public CIOWin
{
class CErrorOutputWindow : public CIOWin {
public:
enum class State
{
Zero,
One,
Two
};
enum class State { Zero, One, Two };
private:
State x14_state = State::Zero;
union
{
struct
{
bool x18_24_;
bool x18_25_;
bool x18_26_;
bool x18_27_;
bool x18_28_;
};
u16 dummy = 0;
State x14_state = State::Zero;
union {
struct {
bool x18_24_;
bool x18_25_;
bool x18_26_;
bool x18_27_;
bool x18_28_;
};
const wchar_t* x1c_msg;
u16 dummy = 0;
};
const wchar_t* x1c_msg;
public:
CErrorOutputWindow(bool);
EMessageReturn OnMessage(const CArchitectureMessage&, CArchitectureQueue&);
bool GetIsContinueDraw() const { return int(x14_state) < 2; }
void Draw() const;
CErrorOutputWindow(bool);
EMessageReturn OnMessage(const CArchitectureMessage&, CArchitectureQueue&);
bool GetIsContinueDraw() const { return int(x14_state) < 2; }
void Draw() const;
};
}
} // namespace urde