2021-12-05 17:54:36 +00:00
|
|
|
#include "ClearTargetBehavior.h"
|
|
|
|
#include "BehaviorBranchContext.h"
|
|
|
|
#include "BehaviorContext.h"
|
|
|
|
|
|
|
|
|
2024-02-27 07:25:44 +00:00
|
|
|
void ClearTargetBehavior::Handle(BehaviorContext* context, RakNet::BitStream& bitStream, BehaviorBranchContext branch) {
|
2021-12-05 17:54:36 +00:00
|
|
|
branch.target = LWOOBJID_EMPTY;
|
|
|
|
|
|
|
|
this->m_action->Handle(context, bitStream, branch);
|
|
|
|
}
|
|
|
|
|
2024-02-27 07:25:44 +00:00
|
|
|
void ClearTargetBehavior::Calculate(BehaviorContext* context, RakNet::BitStream& bitStream, BehaviorBranchContext branch) {
|
2021-12-05 17:54:36 +00:00
|
|
|
branch.target = LWOOBJID_EMPTY;
|
|
|
|
|
|
|
|
this->m_action->Calculate(context, bitStream, branch);
|
|
|
|
}
|
|
|
|
|
|
|
|
void ClearTargetBehavior::Load() {
|
|
|
|
this->m_action = GetAction("action");
|
2022-07-28 13:39:57 +00:00
|
|
|
|
2021-12-05 17:54:36 +00:00
|
|
|
this->m_clearIfCaster = GetBoolean("clear_if_caster");
|
|
|
|
}
|