From 3d920314042fc84ccffc5f4b503e85e3b77fc4a2 Mon Sep 17 00:00:00 2001 From: Pistonight Date: Sat, 3 May 2025 21:27:10 -0700 Subject: CreatePlayerEquipActorMgr --- .../ActorSystem/Profiles/actWeaponBase.cpp | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/KingSystem/ActorSystem/Profiles/actWeaponBase.cpp (limited to 'src/KingSystem/ActorSystem/Profiles/actWeaponBase.cpp') diff --git a/src/KingSystem/ActorSystem/Profiles/actWeaponBase.cpp b/src/KingSystem/ActorSystem/Profiles/actWeaponBase.cpp new file mode 100644 index 00000000..d206224e --- /dev/null +++ b/src/KingSystem/ActorSystem/Profiles/actWeaponBase.cpp @@ -0,0 +1,23 @@ +#include "KingSystem/ActorSystem/Profiles/actWeaponBase.h" +#include "KingSystem/ActorSystem/actActorCreator.h" +#include "KingSystem/ActorSystem/actInstParamPack.h" + +namespace ksys::act { + +void WeaponBase::requestCreateWeaponActor(const char* actor, const sead::Matrix34f& matrix, + f32 scale, sead::Heap* heap, + ksys::act::BaseProcHandle* handle, s32 life, + ksys::act::InstParamPack* params_in, s32 task_lane_id) { + ksys::act::InstParamPack params; + if (params_in) { + params = *params_in; + } + + ksys::act::ActorCreator::addScale(params, scale); + params->add(life, "Life"); + params->addMatrix(matrix); + ksys::act::ActorCreator::instance()->requestCreateActor(actor, heap, handle, ¶ms, nullptr, + task_lane_id); +} + +} // namespace ksys::act -- cgit v1.2.3