mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-12-23 14:03:34 +00:00
0545adfac3
Have fun!
26 lines
664 B
C++
26 lines
664 B
C++
#include "ClearTargetBehavior.h"
|
|
#include "BehaviorBranchContext.h"
|
|
#include "BehaviorContext.h"
|
|
|
|
|
|
void ClearTargetBehavior::Handle(BehaviorContext* context, RakNet::BitStream* bitStream, BehaviorBranchContext branch)
|
|
{
|
|
branch.target = LWOOBJID_EMPTY;
|
|
|
|
this->m_action->Handle(context, bitStream, branch);
|
|
}
|
|
|
|
void ClearTargetBehavior::Calculate(BehaviorContext* context, RakNet::BitStream* bitStream, BehaviorBranchContext branch)
|
|
{
|
|
branch.target = LWOOBJID_EMPTY;
|
|
|
|
this->m_action->Calculate(context, bitStream, branch);
|
|
}
|
|
|
|
void ClearTargetBehavior::Load()
|
|
{
|
|
this->m_action = GetAction("action");
|
|
|
|
this->m_clearIfCaster = GetBoolean("clear_if_caster");
|
|
}
|