ksys/res: Implement GParamList StalEnemy

This commit is contained in:
Léo Lam
2020-09-20 12:24:15 +02:00
parent b7b1f6a28b
commit acccdd5b96
4 changed files with 30 additions and 2 deletions
@@ -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 GParamListObjectStalEnemy : public GParamListObject {
public:
GParamListObjectStalEnemy() {
auto* const obj = &mObj;
mHeadActorName.init("", "HeadActorName", "", obj);
mLeftArmActorName.init("", "LeftArmActorName", "", obj);
}
const char* getName() const override { return "StalEnemy"; }
agl::utl::Parameter<sead::SafeString> mHeadActorName;
agl::utl::Parameter<sead::SafeString> mLeftArmActorName;
};
KSYS_CHECK_SIZE_NX150(GParamListObjectStalEnemy, 0x88);
} // namespace ksys::res
@@ -59,6 +59,7 @@
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectShield.h"
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectSmallSword.h"
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectSpear.h"
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectStalEnemy.h"
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectSwarm.h"
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectSystem.h"
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectTraveler.h"
@@ -171,6 +172,7 @@ bool GParamList::parse_(u8* data, size_t, sead::Heap* heap) {
add<GParamListObjType::GelEnemy>(archive.getRootList(), "GelEnemy", heap, dummy_list);
add<GParamListObjType::Nest>(archive.getRootList(), "Nest", heap, dummy_list);
add<GParamListObjType::Wizzrobe>(archive.getRootList(), "Wizzrobe", heap, dummy_list);
add<GParamListObjType::StalEnemy>(archive.getRootList(), "StalEnemy", heap, dummy_list);
// TODO: the rest