2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2019-09-23 19:00:23 +00:00
|
|
|
|
|
|
|
#include "Runtime/RetroTypes.hpp"
|
2022-02-01 00:06:54 +00:00
|
|
|
#include "Runtime/CMainFlowBase.hpp"
|
2022-02-21 02:28:07 +00:00
|
|
|
#include "Runtime/ConsoleVariables/FileStoreManager.hpp"
|
|
|
|
|
2023-10-22 16:21:20 +00:00
|
|
|
//#include <amuse/amuse.hpp>
|
|
|
|
//#include <boo/audiodev/IAudioVoiceEngine.hpp>
|
2016-09-17 06:40:45 +00:00
|
|
|
|
2022-02-21 02:28:07 +00:00
|
|
|
namespace metaforce {
|
2018-04-26 21:12:20 +00:00
|
|
|
class Console;
|
2019-09-23 19:00:23 +00:00
|
|
|
class CVarManager;
|
2022-02-23 06:28:35 +00:00
|
|
|
enum class ERegion { USA, JPN, PAL, KOR };
|
2022-02-21 02:28:07 +00:00
|
|
|
enum class EGame {
|
|
|
|
Invalid = 0,
|
|
|
|
MetroidPrime1,
|
|
|
|
MetroidPrime2,
|
|
|
|
MetroidPrime3,
|
2022-02-23 06:28:35 +00:00
|
|
|
MetroidPrimeTrilogy,
|
2022-02-21 02:28:07 +00:00
|
|
|
};
|
2022-02-23 07:04:31 +00:00
|
|
|
enum class EPlatform {
|
|
|
|
GameCube,
|
|
|
|
Wii,
|
|
|
|
};
|
2018-01-15 16:00:20 +00:00
|
|
|
|
2022-02-21 02:28:07 +00:00
|
|
|
struct MetaforceVersionInfo {
|
|
|
|
std::string version;
|
|
|
|
ERegion region;
|
|
|
|
EGame game;
|
2022-02-23 07:04:31 +00:00
|
|
|
EPlatform platform;
|
2022-02-23 06:38:01 +00:00
|
|
|
std::string gameTitle;
|
2022-02-21 02:28:07 +00:00
|
|
|
};
|
2020-04-16 05:26:14 +00:00
|
|
|
|
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
|
|
|
class IMain {
|
2016-09-17 06:40:45 +00:00
|
|
|
public:
|
2018-12-08 05:30:43 +00:00
|
|
|
virtual ~IMain() = default;
|
2023-10-22 16:21:20 +00:00
|
|
|
virtual std::string Init(int argc, char** argv, const FileStoreManager& storeMgr, CVarManager* cvarMgr) = 0;
|
2018-12-08 05:30:43 +00:00
|
|
|
virtual void Draw() = 0;
|
2021-05-24 21:25:31 +00:00
|
|
|
virtual bool Proc(float dt) = 0;
|
2018-12-08 05:30:43 +00:00
|
|
|
virtual void Shutdown() = 0;
|
2021-06-03 23:47:04 +00:00
|
|
|
virtual EClientFlowStates GetFlowState() const = 0;
|
|
|
|
virtual void SetFlowState(EClientFlowStates) = 0;
|
2018-12-08 05:30:43 +00:00
|
|
|
virtual size_t GetExpectedIdSize() const = 0;
|
2021-05-25 16:24:05 +00:00
|
|
|
virtual EGame GetGame() const = 0;
|
|
|
|
virtual ERegion GetRegion() const = 0;
|
2020-04-16 05:26:14 +00:00
|
|
|
virtual bool IsPAL() const = 0;
|
|
|
|
virtual bool IsJapanese() const = 0;
|
|
|
|
virtual bool IsUSA() const = 0;
|
2022-02-23 06:28:35 +00:00
|
|
|
virtual bool IsKorean() const = 0;
|
2020-04-16 05:26:14 +00:00
|
|
|
virtual bool IsTrilogy() const = 0;
|
2022-02-23 06:38:01 +00:00
|
|
|
virtual std::string GetGameTitle() const = 0;
|
2021-05-25 16:24:05 +00:00
|
|
|
virtual std::string_view GetVersionString() const = 0;
|
|
|
|
virtual void Quit() = 0;
|
|
|
|
virtual bool IsPaused() const = 0;
|
|
|
|
virtual void SetPaused(bool b) = 0;
|
2016-09-17 06:40:45 +00:00
|
|
|
};
|
2021-04-10 08:42:06 +00:00
|
|
|
} // namespace metaforce
|