mirror of
https://github.com/zeldaret/botw
synced 2026-06-07 11:57:40 -04:00
ksys/res: Implement GParamList EnemyLevel
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user