mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-15 04:38:21 +00:00
d52ce8000b
Conflicts: CMakeLists.txt dGame/CMakeLists.txt dGame/Entity.cpp dGame/dBehaviors/AttackDelayBehavior.cpp dGame/dBehaviors/PlayEffectBehavior.cpp
28 lines
814 B
C++
28 lines
814 B
C++
#include "PlayEffectBehavior.h"
|
|
|
|
#include "BehaviorContext.h"
|
|
#include "BehaviorBranchContext.h"
|
|
|
|
#include "Recorder.h"
|
|
|
|
void PlayEffectBehavior::Handle(BehaviorContext* context, RakNet::BitStream& bitStream, BehaviorBranchContext branch) {
|
|
const auto& target = branch.target == LWOOBJID_EMPTY ? context->originator : branch.target;
|
|
|
|
Cinema::Recording::Recorder::RegisterEffectForActor(target, this->m_effectId);
|
|
|
|
// On managed behaviors this is handled by the client
|
|
if (!context->unmanaged)
|
|
return;
|
|
|
|
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() {
|
|
}
|