CreatePlayerEquipActorMgr

This commit is contained in:
Pistonight
2025-05-03 21:27:10 -07:00
parent f18a3f4f94
commit 3d92031404
23 changed files with 787 additions and 214 deletions
@@ -1,4 +1,6 @@
#include "KingSystem/ActorSystem/actActorLinkConstDataAccess.h"
#include <prim/seadRuntimeTypeInfo.h>
#include "KingSystem/ActorSystem/actActor.h"
#include "KingSystem/ActorSystem/actBaseProc.h"
#include "KingSystem/ActorSystem/actBaseProcMgr.h"
#include "KingSystem/Utils/Debug.h"
@@ -25,6 +27,19 @@ bool ActorLinkConstDataAccess::acquire(BaseProc* proc) {
return proc && proc->acquire(*this);
}
const Actor* ActorLinkConstDataAccess::getActor() const {
if (!mProc)
return nullptr;
return sead::DynamicCast<Actor>(mProc);
}
const sead::Matrix34f& ActorLinkConstDataAccess::getActorMtx() {
const Actor* actor = getActor();
if (actor)
return actor->getMtx();
return sead::Matrix34f::ident;
}
bool acquireProc(ActorLinkConstDataAccess* accessor, BaseProc* proc, const sead::SafeString& from,
s32) {
bool acquired = false;