mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-10 02:08:20 +00:00
0545adfac3
Have fun!
27 lines
712 B
C++
27 lines
712 B
C++
#include "PlayEffectBehavior.h"
|
|
|
|
#include "BehaviorContext.h"
|
|
#include "BehaviorBranchContext.h"
|
|
|
|
void PlayEffectBehavior::Handle(BehaviorContext* context, RakNet::BitStream* bitStream, BehaviorBranchContext branch)
|
|
{
|
|
// On managed behaviors this is handled by the client
|
|
if (!context->unmanaged)
|
|
return;
|
|
|
|
const auto& target = branch.target == LWOOBJID_EMPTY ? context->originator : branch.target;
|
|
|
|
PlayFx(u"", target);
|
|
}
|
|
|
|
void PlayEffectBehavior::Calculate(BehaviorContext* context, RakNet::BitStream* bitStream, BehaviorBranchContext branch)
|
|
{
|
|
const auto& target = branch.target == LWOOBJID_EMPTY ? context->originator : branch.target;
|
|
|
|
//PlayFx(u"", target);
|
|
}
|
|
|
|
void PlayEffectBehavior::Load()
|
|
{
|
|
}
|