mirror of
https://github.com/zeldaret/botw
synced 2026-07-29 23:38:20 -04:00
ksys/res: Implement GParamList Bullet
This commit is contained in:
@@ -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 GParamListObjectBullet : public GParamListObject {
|
||||
public:
|
||||
GParamListObjectBullet();
|
||||
const char* getName() const override { return "Bullet"; }
|
||||
|
||||
agl::utl::Parameter<bool> mNoHitParent;
|
||||
agl::utl::Parameter<bool> mIsLimitCount;
|
||||
};
|
||||
KSYS_CHECK_SIZE_NX150(GParamListObjectBullet, 0x78);
|
||||
|
||||
inline GParamListObjectBullet::GParamListObjectBullet() {
|
||||
auto* const obj = &mObj;
|
||||
|
||||
mNoHitParent.init(true, "NoHitParent", "", obj);
|
||||
mIsLimitCount.init(false, "IsLimitCount", "", obj);
|
||||
}
|
||||
|
||||
} // namespace ksys::res
|
||||
@@ -12,6 +12,7 @@
|
||||
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectAttackInterval.h"
|
||||
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectBindBone.h"
|
||||
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectBow.h"
|
||||
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectBullet.h"
|
||||
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectCamera.h"
|
||||
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectEnemy.h"
|
||||
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectEnemyLevel.h"
|
||||
@@ -107,6 +108,7 @@ bool GParamList::parse_(u8* data, size_t, sead::Heap* heap) {
|
||||
add<GParamListObjType::Item>(archive.getRootList(), "Item", heap, dummy_list);
|
||||
add<GParamListObjType::Rupee>(archive.getRootList(), "Rupee", heap, dummy_list);
|
||||
add<GParamListObjType::Arrow>(archive.getRootList(), "Arrow", heap, dummy_list);
|
||||
add<GParamListObjType::Bullet>(archive.getRootList(), "Bullet", heap, dummy_list);
|
||||
|
||||
// TODO: the rest
|
||||
|
||||
|
||||
Reference in New Issue
Block a user