ksys/res: Add AS header

This commit is contained in:
Léo Lam 2020-11-14 12:31:34 +01:00
parent c59f8d3dce
commit dcdb1fa70e
No known key found for this signature in database
GPG Key ID: 0DF30F9081000741
3 changed files with 45 additions and 0 deletions

View File

@ -130,6 +130,8 @@ target_sources(uking PRIVATE
resResourceActorLink.h
resResourceAIProgram.cpp
resResourceAIProgram.h
resResourceAS.cpp
resResourceAS.h
resResourceASList.cpp
resResourceASList.h
resResourceAttClientList.cpp

View File

@ -0,0 +1 @@
#include "KingSystem/Resource/resResourceAS.h"

View File

@ -0,0 +1,42 @@
#pragma once
#include <agl/Utils/aglParameter.h>
#include <agl/Utils/aglParameterList.h>
#include <agl/Utils/aglParameterObj.h>
#include <container/seadBuffer.h>
#include "KingSystem/Resource/resResource.h"
#include "KingSystem/Utils/ParamIO.h"
#include "KingSystem/Utils/Types.h"
namespace ksys::res {
class AS : public ParamIO, public Resource {
SEAD_RTTI_OVERRIDE(AS, Resource)
public:
struct Element {};
AS();
void doCreate_(u8*, u32, sead::Heap*) override {}
bool needsParse() const override { return true; }
bool parse_(u8* data, size_t size, sead::Heap* heap) override;
void finalize_() override;
private:
sead::Buffer<Element*> mElements;
agl::utl::ParameterList mElementsList;
agl::utl::ParameterObj mCommonParams;
agl::utl::Parameter<f32> mRandomRateMin;
agl::utl::Parameter<f32> mRandomRateMax;
agl::utl::Parameter<bool> mForbidPartialDemoAS;
agl::utl::Parameter<bool> mUseIK;
u8 _3b8{};
u8 _3b9{};
u8 _3ba{};
u8 _3bb{};
sead::Heap* mHeap{};
};
KSYS_CHECK_SIZE_NX150(AS, 0x3c8);
} // namespace ksys::res