From f726f3b68d320da7d3e45a7514e78d6965c4dfed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Lam?= Date: Tue, 6 Jul 2021 18:16:57 +0200 Subject: ksys/act: Add Actor getDummyBaseProcLink() --- src/KingSystem/ActorSystem/actActor.cpp | 9 +++++++++ src/KingSystem/ActorSystem/actActor.h | 4 ++++ 2 files changed, 13 insertions(+) (limited to 'src') diff --git a/src/KingSystem/ActorSystem/actActor.cpp b/src/KingSystem/ActorSystem/actActor.cpp index ec5da1c3..7d93a0a5 100644 --- a/src/KingSystem/ActorSystem/actActor.cpp +++ b/src/KingSystem/ActorSystem/actActor.cpp @@ -1,8 +1,17 @@ #include "KingSystem/ActorSystem/actActor.h" #include "KingSystem/ActorSystem/actActorParam.h" +#include "KingSystem/ActorSystem/actBaseProcLink.h" namespace ksys::act { +namespace { +BaseProcLink sDummyBaseProcLink; +} // namespace + +BaseProcLink& getDummyBaseProcLink() { + return sDummyBaseProcLink; +} + const sead::SafeString& Actor::getProfile() const { return mActorParam->getProfile(); } diff --git a/src/KingSystem/ActorSystem/actActor.h b/src/KingSystem/ActorSystem/actActor.h index 6b077653..71d5d0f8 100644 --- a/src/KingSystem/ActorSystem/actActor.h +++ b/src/KingSystem/ActorSystem/actActor.h @@ -21,6 +21,7 @@ class RootAi; class LifeRecoverInfo; class ActorCreator; class ActorParam; +class BaseProcLink; class Actor : public BaseProc { public: @@ -111,6 +112,9 @@ protected: /* 0x7d0 */ u8 TEMP_0x7d0[0x838 - 0x7d0]; }; KSYS_CHECK_SIZE_NX150(Actor, 0x838); + +BaseProcLink& getDummyBaseProcLink(); + } // namespace act } // namespace ksys -- cgit v1.2.3