mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-08-09 20:24:16 +00:00
Public release of the DLU server code!
Have fun!
This commit is contained in:
25
dGame/dBehaviors/ClearTargetBehavior.cpp
Normal file
25
dGame/dBehaviors/ClearTargetBehavior.cpp
Normal file
@@ -0,0 +1,25 @@
|
||||
#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");
|
||||
}
|
Reference in New Issue
Block a user