DarkflameServer/dGame/dBehaviors/TargetCasterBehavior.cpp

26 lines
751 B
C++
Raw Permalink Normal View History

2022-08-06 03:01:59 +00:00
#include "TargetCasterBehavior.h"
#include "BehaviorBranchContext.h"
#include "BehaviorContext.h"
2022-07-28 13:39:57 +00:00
void TargetCasterBehavior::Handle(BehaviorContext* context, RakNet::BitStream* bit_stream, BehaviorBranchContext branch) {
branch.target = context->caster;
this->m_action->Handle(context, bit_stream, branch);
}
2022-07-28 13:39:57 +00:00
void TargetCasterBehavior::UnCast(BehaviorContext* context, BehaviorBranchContext branch) {
this->m_action->UnCast(context, branch);
}
2022-07-28 13:39:57 +00:00
void TargetCasterBehavior::Calculate(BehaviorContext* context, RakNet::BitStream* bit_stream, BehaviorBranchContext branch) {
branch.target = context->caster;
this->m_action->Calculate(context, bit_stream, branch);
}
2022-07-28 13:39:57 +00:00
void TargetCasterBehavior::Load() {
this->m_action = GetAction("action");
}