summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/KingSystem/Resource/GeneralParamList/resGParamListObjectEnemyLevel.h46
-rw-r--r--src/KingSystem/Resource/resResourceGParamList.cpp2
2 files changed, 48 insertions, 0 deletions
diff --git a/src/KingSystem/Resource/GeneralParamList/resGParamListObjectEnemyLevel.h b/src/KingSystem/Resource/GeneralParamList/resGParamListObjectEnemyLevel.h
new file mode 100644
index 00000000..7a27776e
--- /dev/null
+++ b/src/KingSystem/Resource/GeneralParamList/resGParamListObjectEnemyLevel.h
@@ -0,0 +1,46 @@
+#pragma once
+
+#include <agl/Utils/aglParameter.h>
+#include "KingSystem/Resource/GeneralParamList/resGParamListObject.h"
+#include "KingSystem/Utils/Types.h"
+
+namespace ksys::res {
+
+class GParamListObjectEnemyLevel : public GParamListObject {
+public:
+ GParamListObjectEnemyLevel();
+ const char* getName() const override { return "EnemyLevel"; }
+
+ agl::utl::Parameter<bool> mIsAvoidDanger;
+ agl::utl::Parameter<bool> mIsGuardArrow;
+ agl::utl::Parameter<bool> mIsHideArrowAttack;
+ agl::utl::Parameter<bool> mIsSwiftAttack;
+ agl::utl::Parameter<bool> mIsBackSwiftAttack;
+ agl::utl::Parameter<bool> mIsCounterAttack;
+ agl::utl::Parameter<bool> mIsEscapeBomb;
+ agl::utl::Parameter<bool> mIsKickBomb;
+ agl::utl::Parameter<bool> mIsShootBomb;
+ agl::utl::Parameter<bool> mIsThrowWeapon;
+ agl::utl::Parameter<s32> mGuardPer;
+ agl::utl::Parameter<bool> mIsJustGuard;
+};
+KSYS_CHECK_SIZE_NX150(GParamListObjectEnemyLevel, 0x1b8);
+
+inline GParamListObjectEnemyLevel::GParamListObjectEnemyLevel() {
+ auto* const obj = &mObj;
+
+ mIsAvoidDanger.init(false, "IsAvoidDanger", "", obj);
+ mIsGuardArrow.init(false, "IsGuardArrow", "", obj);
+ mIsHideArrowAttack.init(false, "IsHideArrowAttack", "", obj);
+ mIsSwiftAttack.init(false, "IsSwiftAttack", "", obj);
+ mIsBackSwiftAttack.init(false, "IsBackSwiftAttack", "", obj);
+ mIsCounterAttack.init(false, "IsCounterAttack", "", obj);
+ mIsEscapeBomb.init(false, "IsEscapeBomb", "", obj);
+ mIsKickBomb.init(false, "IsKickBomb", "", obj);
+ mIsShootBomb.init(false, "IsShootBomb", "", obj);
+ mIsThrowWeapon.init(false, "IsThrowWeapon", "", obj);
+ mGuardPer.init(0, "GuardPer", "", obj);
+ mIsJustGuard.init(false, "IsJustGuard", "", obj);
+}
+
+} // namespace ksys::res
diff --git a/src/KingSystem/Resource/resResourceGParamList.cpp b/src/KingSystem/Resource/resResourceGParamList.cpp
index 743bd6fe..96c3eab9 100644
--- a/src/KingSystem/Resource/resResourceGParamList.cpp
+++ b/src/KingSystem/Resource/resResourceGParamList.cpp
@@ -4,6 +4,7 @@
#include "KingSystem/ActorSystem/actActorParamMgr.h"
#include "KingSystem/Resource/GeneralParamList/resGParamListObject.h"
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectEnemy.h"
+#include "KingSystem/Resource/GeneralParamList/resGParamListObjectEnemyLevel.h"
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectGeneral.h"
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectSystem.h"
#include "KingSystem/Resource/GeneralParamList/resGParamListTraits.h"
@@ -43,6 +44,7 @@ bool GParamList::parse_(u8* data, size_t, sead::Heap* heap) {
add<GParamListObjType::System>(archive.getRootList(), "System", heap, dummy_list);
add<GParamListObjType::General>(archive.getRootList(), "General", heap, dummy_list);
add<GParamListObjType::Enemy>(archive.getRootList(), "Enemy", heap, dummy_list);
+ add<GParamListObjType::EnemyLevel>(archive.getRootList(), "EnemyLevel", heap, dummy_list);
// TODO: the rest