mirror of
https://github.com/zeldaret/botw
synced 2026-05-30 17:05:37 -04:00
CreatePlayerEquipActorMgr
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user