mirror of https://github.com/zeldaret/botw.git
ksys/res: Implement GParamList HorseObject
This commit is contained in:
parent
c6d573f6d7
commit
ac66ce82e2
|
@ -91,6 +91,7 @@ add_executable(uking
|
|||
src/KingSystem/Resource/GeneralParamList/resGParamListObjectGrab.h
|
||||
src/KingSystem/Resource/GeneralParamList/resGParamListObjectGuardianMiniWeapon.h
|
||||
src/KingSystem/Resource/GeneralParamList/resGParamListObjectHorse.h
|
||||
src/KingSystem/Resource/GeneralParamList/resGParamListObjectHorseObject.h
|
||||
src/KingSystem/Resource/GeneralParamList/resGParamListObjectHorseUnit.h
|
||||
src/KingSystem/Resource/GeneralParamList/resGParamListObjectInsect.h
|
||||
src/KingSystem/Resource/GeneralParamList/resGParamListObjectItem.h
|
||||
|
|
|
@ -89198,7 +89198,7 @@
|
|||
0x00000071011a7df4,sub_71011A7DF4,12,_ZNK4ksys3res20GParamListObjectRope7getNameEv
|
||||
0x00000071011a7e00,sub_71011A7E00,12,_ZNK4ksys3res21GParamListObjectHorse7getNameEv
|
||||
0x00000071011a7e0c,sub_71011A7E0C,12,_ZNK4ksys3res25GParamListObjectHorseUnit7getNameEv
|
||||
0x00000071011a7e18,sub_71011A7E18,12,
|
||||
0x00000071011a7e18,sub_71011A7E18,12,_ZNK4ksys3res27GParamListObjectHorseObject7getNameEv
|
||||
0x00000071011a7e24,sub_71011A7E24,12,
|
||||
0x00000071011a7e30,sub_71011A7E30,12,
|
||||
0x00000071011a7e3c,sub_71011A7E3C,12,
|
||||
|
|
Can't render this file because it is too large.
|
|
@ -0,0 +1,25 @@
|
|||
#pragma once
|
||||
|
||||
#include <agl/Utils/aglParameter.h>
|
||||
#include "KingSystem/Resource/GeneralParamList/resGParamListObject.h"
|
||||
#include "KingSystem/Utils/Types.h"
|
||||
|
||||
namespace ksys::res {
|
||||
|
||||
class GParamListObjectHorseObject : public GParamListObject {
|
||||
public:
|
||||
GParamListObjectHorseObject();
|
||||
const char* getName() const override { return "HorseObject"; }
|
||||
|
||||
agl::utl::Parameter<bool> mHideHorseMane;
|
||||
agl::utl::Parameter<bool> mIsHorseClothDisable;
|
||||
};
|
||||
|
||||
inline GParamListObjectHorseObject::GParamListObjectHorseObject() {
|
||||
auto* const obj = &mObj;
|
||||
|
||||
mHideHorseMane.init(false, "HideHorseMane", "", obj);
|
||||
mIsHorseClothDisable.init(false, "IsHorseClothDisable", "", obj);
|
||||
}
|
||||
|
||||
} // namespace ksys::res
|
|
@ -30,6 +30,7 @@
|
|||
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectGrab.h"
|
||||
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectGuardianMiniWeapon.h"
|
||||
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectHorse.h"
|
||||
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectHorseObject.h"
|
||||
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectHorseUnit.h"
|
||||
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectInsect.h"
|
||||
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectItem.h"
|
||||
|
@ -148,6 +149,7 @@ bool GParamList::parse_(u8* data, size_t, sead::Heap* heap) {
|
|||
add<GParamListObjType::Rope>(archive.getRootList(), "Rope", heap, dummy_list);
|
||||
add<GParamListObjType::Horse>(archive.getRootList(), "Horse", heap, dummy_list);
|
||||
add<GParamListObjType::HorseUnit>(archive.getRootList(), "HorseUnit", heap, dummy_list);
|
||||
add<GParamListObjType::HorseObject>(archive.getRootList(), "HorseObject", heap, dummy_list);
|
||||
|
||||
// TODO: the rest
|
||||
|
||||
|
|
Loading…
Reference in New Issue