mirror of https://github.com/zeldaret/botw.git
ksys/res: Implement GParamList MonsterShop
This commit is contained in:
parent
2daaa04b71
commit
15deb532c2
|
@ -104,6 +104,7 @@ add_executable(uking
|
|||
src/KingSystem/Resource/GeneralParamList/resGParamListObjectLiftable.h
|
||||
src/KingSystem/Resource/GeneralParamList/resGParamListObjectLumberjackTree.h
|
||||
src/KingSystem/Resource/GeneralParamList/resGParamListObjectMasterSword.h
|
||||
src/KingSystem/Resource/GeneralParamList/resGParamListObjectMonsterShop.h
|
||||
src/KingSystem/Resource/GeneralParamList/resGParamListObjectNpc.h
|
||||
src/KingSystem/Resource/GeneralParamList/resGParamListObjectNpcEquipment.h
|
||||
src/KingSystem/Resource/GeneralParamList/resGParamListObjectPlayer.h
|
||||
|
|
|
@ -89204,7 +89204,7 @@
|
|||
0x00000071011a7e3c,sub_71011A7E3C,12,_ZNK4ksys3res30GParamListObjectGiantArmorSlot7getNameEv
|
||||
0x00000071011a7e48,sub_71011A7E48,12,_ZNK4ksys3res26GParamListObjectGiantArmor7getNameEv
|
||||
0x00000071011a7e54,sub_71011A7E54,12,_ZNK4ksys3res24GParamListObjectGuardian7getNameEv
|
||||
0x00000071011a7e60,sub_71011A7E60,12,
|
||||
0x00000071011a7e60,sub_71011A7E60,12,_ZNK4ksys3res27GParamListObjectMonsterShop7getNameEv
|
||||
0x00000071011a7e6c,sub_71011A7E6C,12,
|
||||
0x00000071011a7e78,sub_71011A7E78,12,
|
||||
0x00000071011a7e84,sub_71011A7E84,12,
|
||||
|
|
Can't render this file because it is too large.
|
|
@ -0,0 +1,26 @@
|
|||
#pragma once
|
||||
|
||||
#include <agl/Utils/aglParameter.h>
|
||||
#include "KingSystem/Resource/GeneralParamList/resGParamListObject.h"
|
||||
#include "KingSystem/Utils/Types.h"
|
||||
|
||||
namespace ksys::res {
|
||||
|
||||
class GParamListObjectMonsterShop : public GParamListObject {
|
||||
public:
|
||||
GParamListObjectMonsterShop();
|
||||
const char* getName() const override { return "MonsterShop"; }
|
||||
|
||||
agl::utl::Parameter<s32> mBuyMamo;
|
||||
agl::utl::Parameter<s32> mSellMamo;
|
||||
};
|
||||
KSYS_CHECK_SIZE_NX150(GParamListObjectMonsterShop, 0x78);
|
||||
|
||||
inline GParamListObjectMonsterShop::GParamListObjectMonsterShop() {
|
||||
auto* const obj = &mObj;
|
||||
|
||||
mBuyMamo.init(0, "BuyMamo", "", obj);
|
||||
mSellMamo.init(0, "SellMamo", "", obj);
|
||||
}
|
||||
|
||||
} // namespace ksys::res
|
|
@ -43,6 +43,7 @@
|
|||
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectLiftable.h"
|
||||
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectLumberjackTree.h"
|
||||
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectMasterSword.h"
|
||||
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectMonsterShop.h"
|
||||
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectNpc.h"
|
||||
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectNpcEquipment.h"
|
||||
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectPlayer.h"
|
||||
|
@ -161,6 +162,7 @@ bool GParamList::parse_(u8* data, size_t, sead::Heap* heap) {
|
|||
dummy_list);
|
||||
add<GParamListObjType::GiantArmor>(archive.getRootList(), "GiantArmor", heap, dummy_list);
|
||||
add<GParamListObjType::Guardian>(archive.getRootList(), "Guardian", heap, dummy_list);
|
||||
add<GParamListObjType::MonsterShop>(archive.getRootList(), "MonsterShop", heap, dummy_list);
|
||||
|
||||
// TODO: the rest
|
||||
|
||||
|
|
Loading…
Reference in New Issue