metaforce/Runtime/World/CHUDMemoParms.hpp

29 lines
843 B
C++
Raw Normal View History

2018-10-06 20:42:33 -07:00
#pragma once
2016-05-20 02:17:51 -07:00
#include "Runtime/Streams/IOStreams.hpp"
2016-05-20 02:17:51 -07:00
2021-04-10 01:42:06 -07:00
namespace metaforce {
2018-01-01 02:15:26 -08:00
2018-12-07 21:30:43 -08:00
class CHUDMemoParms {
float x0_dispTime = 0.f;
bool x4_clearMemoWindow = false;
bool x5_fadeOutOnly = false;
bool x6_hintMemo = false;
2018-01-01 02:15:26 -08:00
2016-05-20 02:17:51 -07:00
public:
2018-12-07 21:30:43 -08:00
CHUDMemoParms() = default;
CHUDMemoParms(float dispTime, bool clearMemoWindow, bool fadeOutOnly, bool hintMemo)
: x0_dispTime(dispTime), x4_clearMemoWindow(clearMemoWindow), x5_fadeOutOnly(fadeOutOnly), x6_hintMemo(hintMemo) {}
explicit CHUDMemoParms(CInputStream& in) {
x0_dispTime = in.ReadFloat();
x4_clearMemoWindow = in.ReadBool();
2018-12-07 21:30:43 -08:00
}
2018-01-01 02:15:26 -08:00
2018-12-07 21:30:43 -08:00
float GetDisplayTime() const { return x0_dispTime; }
bool IsClearMemoWindow() const { return x4_clearMemoWindow; }
bool IsFadeOutOnly() const { return x5_fadeOutOnly; }
bool IsHintMemo() const { return x6_hintMemo; }
2016-05-20 02:17:51 -07:00
};
2018-01-01 02:15:26 -08:00
2021-04-10 01:42:06 -07:00
} // namespace metaforce