2021-12-05 17:54:36 +00:00
|
|
|
|
#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;
|
2021-12-11 10:59:29 +00:00
|
|
|
|
|
2022-01-02 21:00:01 +00:00
|
|
|
|
int32_t m_TargetSelf;
|
2022-01-02 20:37:03 +00:00
|
|
|
|
|
|
|
|
|
int32_t m_targetEnemy;
|
|
|
|
|
|
|
|
|
|
int32_t m_targetFriend;
|
2021-12-05 17:54:36 +00:00
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* Inherited
|
|
|
|
|
*/
|
|
|
|
|
explicit AreaOfEffectBehavior(const uint32_t behaviorId) : Behavior(behaviorId)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void Handle(BehaviorContext* context, RakNet::BitStream* bitStream, BehaviorBranchContext branch) override;
|
|
|
|
|
|
|
|
|
|
void Calculate(BehaviorContext* context, RakNet::BitStream* bitStream, BehaviorBranchContext branch) override;
|
|
|
|
|
|
|
|
|
|
void Load() override;
|
|
|
|
|
};
|