Add aocManager header stub

This commit is contained in:
Léo Lam 2021-01-08 19:24:57 +01:00
parent b128c71629
commit 23b3047f49
No known key found for this signature in database
GPG Key ID: 0DF30F9081000741
3 changed files with 42 additions and 0 deletions

View File

@ -1,4 +1,6 @@
target_sources(uking PRIVATE
aoc2.cpp
aoc2.h
aocManager.cpp
aocManager.h
)

View File

@ -0,0 +1 @@
#include "Game/DLC/aocManager.h"

39
src/Game/DLC/aocManager.h Normal file
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