mirror of
https://github.com/zeldaret/botw
synced 2026-07-31 07:56:30 -04:00
ksys/res: Implement GParamList EnemyShown
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
#pragma once
|
||||
|
||||
#include <agl/Utils/aglParameter.h>
|
||||
#include "KingSystem/Resource/GeneralParamList/resGParamListObject.h"
|
||||
#include "KingSystem/Utils/Types.h"
|
||||
|
||||
namespace ksys::res {
|
||||
|
||||
class GParamListObjectEnemyShown : public GParamListObject {
|
||||
public:
|
||||
GParamListObjectEnemyShown();
|
||||
const char* getName() const override { return "EnemyShown"; }
|
||||
|
||||
agl::utl::Parameter<bool> mIsHappy;
|
||||
agl::utl::Parameter<bool> mIsCasebyCase;
|
||||
agl::utl::Parameter<bool> mIsSit;
|
||||
agl::utl::Parameter<bool> mIsNoise;
|
||||
};
|
||||
KSYS_CHECK_SIZE_NX150(GParamListObjectEnemyShown, 0xb8);
|
||||
|
||||
inline GParamListObjectEnemyShown::GParamListObjectEnemyShown() {
|
||||
auto* const obj = &mObj;
|
||||
|
||||
mIsHappy.init(false, "IsHappy", "", obj);
|
||||
mIsCasebyCase.init(false, "IsCasebyCase", "", obj);
|
||||
mIsSit.init(false, "IsSit", "", obj);
|
||||
mIsNoise.init(false, "IsNoise", "", obj);
|
||||
}
|
||||
|
||||
} // namespace ksys::res
|
||||
@@ -7,6 +7,7 @@
|
||||
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectEnemy.h"
|
||||
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectEnemyLevel.h"
|
||||
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectEnemyRace.h"
|
||||
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectEnemyShown.h"
|
||||
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectGeneral.h"
|
||||
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectSystem.h"
|
||||
#include "KingSystem/Resource/GeneralParamList/resGParamListTraits.h"
|
||||
@@ -50,6 +51,7 @@ bool GParamList::parse_(u8* data, size_t, sead::Heap* heap) {
|
||||
add<GParamListObjType::EnemyRace>(archive.getRootList(), "EnemyRace", heap, dummy_list);
|
||||
add<GParamListObjType::AttackInterval>(archive.getRootList(), "AttackInterval", heap,
|
||||
dummy_list);
|
||||
add<GParamListObjType::EnemyShown>(archive.getRootList(), "EnemyShown", heap, dummy_list);
|
||||
|
||||
// TODO: the rest
|
||||
|
||||
|
||||
Reference in New Issue
Block a user