mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-16 03:37:01 +00:00
New code style refactor
This commit is contained in:
@@ -5,52 +5,38 @@
|
||||
#include "amuse/amuse.hpp"
|
||||
#include "RetroTypes.hpp"
|
||||
|
||||
namespace hecl
|
||||
{
|
||||
namespace hecl {
|
||||
class CVarManager;
|
||||
class Console;
|
||||
}
|
||||
} // namespace hecl
|
||||
|
||||
namespace urde
|
||||
{
|
||||
namespace urde {
|
||||
class CStopwatch;
|
||||
enum class EGameplayResult
|
||||
{
|
||||
None,
|
||||
Win,
|
||||
Lose,
|
||||
Playing
|
||||
enum class EGameplayResult { None, Win, Lose, Playing };
|
||||
|
||||
enum class EFlowState {
|
||||
None,
|
||||
WinBad,
|
||||
WinGood,
|
||||
WinBest,
|
||||
LoseGame,
|
||||
Default,
|
||||
StateSetter,
|
||||
};
|
||||
|
||||
enum class EFlowState
|
||||
{
|
||||
None,
|
||||
WinBad,
|
||||
WinGood,
|
||||
WinBest,
|
||||
LoseGame,
|
||||
Default,
|
||||
StateSetter,
|
||||
};
|
||||
|
||||
class IMain
|
||||
{
|
||||
class IMain {
|
||||
public:
|
||||
virtual ~IMain() = default;
|
||||
virtual void Init(const hecl::Runtime::FileStoreManager& storeMgr,
|
||||
hecl::CVarManager* cvarMgr,
|
||||
boo::IWindow* window,
|
||||
boo::IAudioVoiceEngine* voiceEngine,
|
||||
amuse::IBackendVoiceAllocator& backend)=0;
|
||||
virtual void Draw()=0;
|
||||
virtual bool Proc()=0;
|
||||
virtual void Shutdown()=0;
|
||||
virtual boo::IWindow* GetMainWindow() const= 0;
|
||||
virtual EFlowState GetFlowState() const = 0;
|
||||
virtual void SetFlowState(EFlowState) = 0;
|
||||
virtual size_t GetExpectedIdSize() const = 0;
|
||||
virtual void WarmupShaders() = 0;
|
||||
virtual hecl::Console* Console() const = 0;
|
||||
virtual ~IMain() = default;
|
||||
virtual void Init(const hecl::Runtime::FileStoreManager& storeMgr, hecl::CVarManager* cvarMgr, boo::IWindow* window,
|
||||
boo::IAudioVoiceEngine* voiceEngine, amuse::IBackendVoiceAllocator& backend) = 0;
|
||||
virtual void Draw() = 0;
|
||||
virtual bool Proc() = 0;
|
||||
virtual void Shutdown() = 0;
|
||||
virtual boo::IWindow* GetMainWindow() const = 0;
|
||||
virtual EFlowState GetFlowState() const = 0;
|
||||
virtual void SetFlowState(EFlowState) = 0;
|
||||
virtual size_t GetExpectedIdSize() const = 0;
|
||||
virtual void WarmupShaders() = 0;
|
||||
virtual hecl::Console* Console() const = 0;
|
||||
};
|
||||
}
|
||||
|
||||
} // namespace urde
|
||||
|
||||
Reference in New Issue
Block a user