mirror of https://github.com/zeldaret/botw.git
ksys/res: Implement GParamList PictureBook
This commit is contained in:
parent
8b3aed47e6
commit
b8a3ac571c
|
@ -119,6 +119,7 @@ add_executable(uking
|
|||
src/KingSystem/Resource/GeneralParamList/resGParamListObjectNest.h
|
||||
src/KingSystem/Resource/GeneralParamList/resGParamListObjectNpc.h
|
||||
src/KingSystem/Resource/GeneralParamList/resGParamListObjectNpcEquipment.h
|
||||
src/KingSystem/Resource/GeneralParamList/resGParamListObjectPictureBook.h
|
||||
src/KingSystem/Resource/GeneralParamList/resGParamListObjectPlayer.h
|
||||
src/KingSystem/Resource/GeneralParamList/resGParamListObjectPrey.h
|
||||
src/KingSystem/Resource/GeneralParamList/resGParamListObjectRod.h
|
||||
|
|
|
@ -89121,7 +89121,7 @@
|
|||
0x00000071011a4ef8,BgparamlistObjectWolfLink::ctor,4548,_ZN4ksys3res24GParamListObjectWolfLinkC2Ev
|
||||
0x00000071011a60bc,BgparamlistObjectEvent::ctor,852,_ZN4ksys3res21GParamListObjectEventC2Ev
|
||||
0x00000071011a6410,BgparamlistObjectGolemIK::ctor,1792,_ZN4ksys3res23GParamListObjectGolemIKC2Ev
|
||||
0x00000071011a6b10,BgparamlistObjectPictureBook::ctor,344,
|
||||
0x00000071011a6b10,BgparamlistObjectPictureBook::ctor,344,_ZN4ksys3res27GParamListObjectPictureBookC2Ev
|
||||
0x00000071011a6c68,BgparamlistObjectMotorcycle::ctor,2736,
|
||||
0x00000071011a7718,sub_71011A7718,52,_ZN4ksys3res10GParamListD2Ev
|
||||
0x00000071011a774c,sub_71011A774C,40,_ZN4ksys3res10GParamListD0Ev
|
||||
|
@ -89221,7 +89221,7 @@
|
|||
0x00000071011a7f08,sub_71011A7F08,12,_ZNK4ksys3res24GParamListObjectWolfLink7getNameEv
|
||||
0x00000071011a7f14,sub_71011A7F14,12,_ZNK4ksys3res21GParamListObjectEvent7getNameEv
|
||||
0x00000071011a7f20,sub_71011A7F20,12,_ZNK4ksys3res23GParamListObjectGolemIK7getNameEv
|
||||
0x00000071011a7f2c,sub_71011A7F2C,12,
|
||||
0x00000071011a7f2c,sub_71011A7F2C,12,_ZNK4ksys3res27GParamListObjectPictureBook7getNameEv
|
||||
0x00000071011a7f38,sub_71011A7F38,12,
|
||||
0x00000071011a7f44,sub_71011A7F44,12,
|
||||
0x00000071011a80c4,sub_71011A80C4,140,_ZNK4sead15RuntimeTypeInfo6DeriveIN4ksys3res10GParamListEE9isDerivedEPKNS0_9InterfaceE
|
||||
|
|
Can't render this file because it is too large.
|
|
@ -0,0 +1,27 @@
|
|||
#pragma once
|
||||
|
||||
#include <agl/Utils/aglParameter.h>
|
||||
#include "KingSystem/Resource/GeneralParamList/resGParamListObject.h"
|
||||
#include "KingSystem/Utils/Types.h"
|
||||
|
||||
namespace ksys::res {
|
||||
|
||||
class GParamListObjectPictureBook : public GParamListObject {
|
||||
public:
|
||||
GParamListObjectPictureBook() {
|
||||
auto* const obj = &mObj;
|
||||
|
||||
mLiveSpot1.init(-1, "LiveSpot1", "", obj);
|
||||
mLiveSpot2.init(-1, "LiveSpot2", "", obj);
|
||||
mSpecialDrop.init(-1, "SpecialDrop", "", obj);
|
||||
}
|
||||
|
||||
const char* getName() const override { return "PictureBook"; }
|
||||
|
||||
agl::utl::Parameter<s32> mLiveSpot1;
|
||||
agl::utl::Parameter<s32> mLiveSpot2;
|
||||
agl::utl::Parameter<s32> mSpecialDrop;
|
||||
};
|
||||
KSYS_CHECK_SIZE_NX150(GParamListObjectPictureBook, 0x98);
|
||||
|
||||
} // namespace ksys::res
|
|
@ -58,6 +58,7 @@
|
|||
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectNest.h"
|
||||
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectNpc.h"
|
||||
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectNpcEquipment.h"
|
||||
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectPictureBook.h"
|
||||
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectPlayer.h"
|
||||
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectPrey.h"
|
||||
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectRod.h"
|
||||
|
@ -196,6 +197,7 @@ bool GParamList::parse_(u8* data, size_t, sead::Heap* heap) {
|
|||
add<GParamListObjType::WolfLink>(archive.getRootList(), "WolfLink", heap, dummy_list);
|
||||
add<GParamListObjType::Event>(archive.getRootList(), "Event", heap, dummy_list);
|
||||
add<GParamListObjType::GolemIK>(archive.getRootList(), "GolemIK", heap, dummy_list);
|
||||
add<GParamListObjType::PictureBook>(archive.getRootList(), "PictureBook", heap, dummy_list);
|
||||
|
||||
// TODO: the rest
|
||||
|
||||
|
|
Loading…
Reference in New Issue