DarkflameServer/dGame/dBehaviors/AreaOfEffectBehavior.h

35 lines
654 B
C
Raw Normal View History

#pragma once
#include "Behavior.h"
class AreaOfEffectBehavior final : public Behavior
{
public:
Behavior* m_action;
uint32_t m_maxTargets;
float m_radius;
int32_t m_ignoreFaction;
int32_t m_includeFaction;
2022-07-28 13:39:57 +00:00
int32_t m_TargetSelf;
int32_t m_targetEnemy;
int32_t m_targetFriend;
2022-07-28 13:39:57 +00:00
/*
* Inherited
*/
2022-07-28 13:39:57 +00:00
explicit AreaOfEffectBehavior(const uint32_t behaviorId) : Behavior(behaviorId) {
}
void Handle(BehaviorContext* context, RakNet::BitStream* bitStream, BehaviorBranchContext branch) override;
2022-07-28 13:39:57 +00:00
void Calculate(BehaviorContext* context, RakNet::BitStream* bitStream, BehaviorBranchContext branch) override;
void Load() override;
};