ksys/act: Add Actor getDummyBaseProcLink()

This commit is contained in:
Léo Lam 2021-07-06 18:16:57 +02:00
parent a638e3dba1
commit f726f3b68d
No known key found for this signature in database
GPG Key ID: 0DF30F9081000741
3 changed files with 14 additions and 1 deletions

View File

@ -91935,7 +91935,7 @@
0x00000071011c2d6c,sub_71011C2D6C,96,_ZNK4ksys3act2ai7Actions18updateForPreDeleteEv
0x00000071011c2dcc,sub_71011C2DCC,68,_ZNK4ksys3act2ai7Actions11onPreDeleteEv
0x00000071011c2e10,Dummy::construct,68,
0x00000071011c2e54,getDummyBaseProcLink,12,
0x00000071011c2e54,getDummyBaseProcLink,12,_ZN4ksys3act20getDummyBaseProcLinkEv
0x00000071011c2e60,Actor::ctor,1208,
0x00000071011c3318,Actor::job0_1,3008,
0x00000071011c3ed8,Actor::job0_2,324,

Can't render this file because it is too large.

View File

@ -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();
}

View File

@ -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