mirror of
https://github.com/zeldaret/botw
synced 2026-05-26 15:45:05 -04:00
ksys/res: Move ASParamParser to separate source file
It's used for other ASResource parsers
This commit is contained in:
@@ -142,6 +142,8 @@ target_sources(uking PRIVATE
|
||||
resResourceAS.h
|
||||
resResourceASList.cpp
|
||||
resResourceASList.h
|
||||
resResourceASResource.cpp
|
||||
resResourceASResource.h
|
||||
resResourceASSetting.cpp
|
||||
resResourceASSetting.h
|
||||
resResourceAttClient.cpp
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
#include "KingSystem/Resource/resResourceASResource.h"
|
||||
@@ -0,0 +1,36 @@
|
||||
#pragma once
|
||||
|
||||
#include <agl/Utils/aglParameterList.h>
|
||||
#include <agl/Utils/aglResParameter.h>
|
||||
#include <basis/seadTypes.h>
|
||||
#include <prim/seadRuntimeTypeInfo.h>
|
||||
#include "KingSystem/Utils/Types.h"
|
||||
|
||||
namespace sead {
|
||||
class Heap;
|
||||
}
|
||||
|
||||
namespace ksys::res {
|
||||
|
||||
class ASParamParser {
|
||||
SEAD_RTTI_BASE(ASParamParser)
|
||||
public:
|
||||
struct ParseArgs {
|
||||
void* user_data;
|
||||
agl::utl::ResParameterList res_list;
|
||||
sead::Heap* heap;
|
||||
};
|
||||
|
||||
virtual ~ASParamParser() = default;
|
||||
virtual bool parse(const ParseArgs& args) { return true; }
|
||||
|
||||
agl::utl::ParameterList& getList() { return mList; }
|
||||
const agl::utl::ParameterList& getList() const { return mList; }
|
||||
|
||||
protected:
|
||||
u32 _8 = 8;
|
||||
agl::utl::ParameterList mList;
|
||||
};
|
||||
KSYS_CHECK_SIZE_NX150(ASParamParser, 0x58);
|
||||
|
||||
} // namespace ksys::res
|
||||
@@ -10,30 +10,10 @@
|
||||
#include <prim/seadRuntimeTypeInfo.h>
|
||||
#include <prim/seadSafeString.h>
|
||||
#include "KingSystem/Resource/resResource.h"
|
||||
#include "KingSystem/Resource/resResourceASResource.h"
|
||||
|
||||
namespace ksys::res {
|
||||
|
||||
class ASParamParser {
|
||||
SEAD_RTTI_BASE(ASParamParser)
|
||||
public:
|
||||
struct ParseArgs {
|
||||
void* user_data;
|
||||
agl::utl::ResParameterList res_list;
|
||||
sead::Heap* heap;
|
||||
};
|
||||
|
||||
virtual ~ASParamParser() = default;
|
||||
virtual bool parse(const ParseArgs& args) { return true; }
|
||||
|
||||
agl::utl::ParameterList& getList() { return mList; }
|
||||
const agl::utl::ParameterList& getList() const { return mList; }
|
||||
|
||||
protected:
|
||||
u32 _8 = 8;
|
||||
agl::utl::ParameterList mList;
|
||||
};
|
||||
KSYS_CHECK_SIZE_NX150(ASParamParser, 0x58);
|
||||
|
||||
class ASSetting : public agl::utl::IParameterIO, public Resource {
|
||||
SEAD_RTTI_OVERRIDE(ASSetting, Resource)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user