-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
40530f0
commit 03bcb5b
Showing
4 changed files
with
60 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#include "KingSystem/ActorSystem/actLinkTag.h" | ||
|
||
namespace ksys::act { | ||
|
||
LinkTag* LinkTag::construct(const BaseProc::CreateArg& arg, sead::Heap* heap){ | ||
return new (heap, std::nothrow) LinkTag(arg); | ||
} | ||
|
||
LinkTag::LinkTag(const BaseProc::CreateArg& arg) : BaseProc(arg), mJob(this,&LinkTag::calc) { | ||
mJobHandlers[3] = &mJob; | ||
} | ||
|
||
} // namespace ksys::act |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#pragma once | ||
|
||
#include "KingSystem/ActorSystem/actBaseProc.h" | ||
#include "KingSystem/ActorSystem/actBaseProcJobHandler.h" | ||
#include "KingSystem/Map/mapMubinIter.h" | ||
#include "KingSystem/Utils/Types.h" | ||
|
||
namespace ksys::map { | ||
class Object; | ||
} // namespace ksys::map | ||
|
||
namespace ksys::act { | ||
|
||
class LinkTag : public BaseProc { | ||
public: | ||
enum Type : u8 { And, Or, NAnd, NOr, XOr, Count, Pulse, None }; | ||
|
||
SEAD_RTTI_OVERRIDE(LinkTag, BaseProc) | ||
|
||
static LinkTag* construct(const BaseProc::CreateArg& arg, sead::Heap* heap); | ||
|
||
LinkTag(const BaseProc::CreateArg& arg); | ||
void calc(); | ||
|
||
BaseProcJobHandlerT<LinkTag> mJob; | ||
unsigned int triggeredLinkFlags[3] = {0,0,0}; | ||
LinkTag::Type linkTagType = And; | ||
char field_1DD = 0xFF; | ||
char field_1DE = 0; | ||
char field_1DF = 0xFF; | ||
unsigned short flags = 0; | ||
char tagCount = 0; | ||
char field_1E3 = 0; | ||
u32 counter = 0; | ||
int field_1E8 = 0; | ||
unsigned int mCalcFrameFlags = 0; | ||
int hashId = 0; | ||
int field_1F4 = 0; | ||
map::MubinIter mMubinIter; | ||
map::Object* mMapObj = nullptr; | ||
}; | ||
KSYS_CHECK_SIZE_NX150(LinkTag, 0x210); | ||
|
||
} // namespace ksys::act |