2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2019-09-23 19:00:23 +00:00
|
|
|
|
|
|
|
#include "Runtime/RetroTypes.hpp"
|
|
|
|
|
|
|
|
#include <amuse/amuse.hpp>
|
|
|
|
#include <boo/boo.hpp>
|
|
|
|
#include <boo/audiodev/IAudioVoiceEngine.hpp>
|
|
|
|
#include <hecl/Runtime.hpp>
|
2016-09-17 06:40:45 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
namespace hecl {
|
2018-04-26 21:12:20 +00:00
|
|
|
class Console;
|
2019-09-23 19:00:23 +00:00
|
|
|
class CVarManager;
|
2018-12-08 05:30:43 +00:00
|
|
|
} // namespace hecl
|
2018-01-15 16:00:20 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
namespace urde {
|
2018-10-07 02:59:17 +00:00
|
|
|
class CStopwatch;
|
2018-12-08 05:30:43 +00:00
|
|
|
enum class EGameplayResult { None, Win, Lose, Playing };
|
2016-09-17 06:40:45 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
enum class EFlowState {
|
|
|
|
None,
|
|
|
|
WinBad,
|
|
|
|
WinGood,
|
|
|
|
WinBest,
|
|
|
|
LoseGame,
|
|
|
|
Default,
|
|
|
|
StateSetter,
|
2017-01-17 01:23:19 +00:00
|
|
|
};
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
class IMain {
|
2016-09-17 06:40:45 +00:00
|
|
|
public:
|
2018-12-08 05:30:43 +00:00
|
|
|
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;
|
2016-09-17 06:40:45 +00:00
|
|
|
};
|
2018-12-08 05:30:43 +00:00
|
|
|
} // namespace urde
|