Add aocManager header stub

This commit is contained in:
Léo Lam
2021-01-08 19:24:57 +01:00
parent b128c71629
commit 23b3047f49
3 changed files with 42 additions and 0 deletions
+2
View File
@@ -1,4 +1,6 @@
target_sources(uking PRIVATE
aoc2.cpp
aoc2.h
aocManager.cpp
aocManager.h
)
+1
View File
@@ -0,0 +1 @@
#include "Game/DLC/aocManager.h"
+39
View File
@@ -0,0 +1,39 @@
#pragma once
#include <heap/seadDisposer.h>
#include <prim/seadSafeString.h>
#include "KingSystem/Resource/resHandle.h"
#include "KingSystem/Resource/resResourceMgrTask.h"
namespace sead {
class FileDevice;
}
namespace uking::aoc {
// TODO
class Manager {
SEAD_SINGLETON_DISPOSER(Manager)
Manager();
~Manager();
public:
u32 getVersion() const { return mVersion; }
/// @return Whether the Master Trials DLC is supported.
bool hasAoc2() const { return mVersion >= 0x200; }
/// @return Whether the Champion's Ballad DLC is supported.
bool hasAoc3() const { return mVersion >= 0x300; }
private:
sead::FileDevice* mFileDevice{};
ksys::res::FileDevicePrefix mFileDevicePrefix;
ksys::res::Handle mVersionResHandle;
sead::FixedSafeString<16> mVersionString;
u32 mVersion{};
// TODO: more fields
};
} // namespace uking::aoc