mirror of
https://github.com/zeldaret/botw
synced 2026-08-15 12:39:14 -04:00
ksys/res: Implement GParamList Rupee
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
#pragma once
|
||||
|
||||
#include <agl/Utils/aglParameter.h>
|
||||
#include "KingSystem/Resource/GeneralParamList/resGParamListObject.h"
|
||||
#include "KingSystem/Utils/Types.h"
|
||||
|
||||
namespace ksys::res {
|
||||
|
||||
class GParamListObjectRupee : public GParamListObject {
|
||||
public:
|
||||
GParamListObjectRupee();
|
||||
const char* getName() const override { return "Rupee"; }
|
||||
|
||||
agl::utl::Parameter<s32> mRupeeValue;
|
||||
};
|
||||
KSYS_CHECK_SIZE_NX150(GParamListObjectRupee, 0x58);
|
||||
|
||||
inline GParamListObjectRupee::GParamListObjectRupee() {
|
||||
auto* const obj = &mObj;
|
||||
|
||||
mRupeeValue.init(1, "RupeeValue", "", obj);
|
||||
}
|
||||
|
||||
} // namespace ksys::res
|
||||
@@ -25,6 +25,7 @@
|
||||
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectMasterSword.h"
|
||||
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectPlayer.h"
|
||||
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectRod.h"
|
||||
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectRupee.h"
|
||||
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectSandworm.h"
|
||||
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectSeriesArmor.h"
|
||||
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectShiekerStone.h"
|
||||
@@ -103,6 +104,7 @@ bool GParamList::parse_(u8* data, size_t, sead::Heap* heap) {
|
||||
add<GParamListObjType::SeriesArmor>(archive.getRootList(), "SeriesArmor", heap, dummy_list);
|
||||
add<GParamListObjType::Liftable>(archive.getRootList(), "Liftable", heap, dummy_list);
|
||||
add<GParamListObjType::Item>(archive.getRootList(), "Item", heap, dummy_list);
|
||||
add<GParamListObjType::Rupee>(archive.getRootList(), "Rupee", heap, dummy_list);
|
||||
|
||||
// TODO: the rest
|
||||
|
||||
|
||||
Reference in New Issue
Block a user