2021-12-05 17:54:36 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
#include "Behavior.h"
|
|
|
|
|
|
|
|
class ApplyBuffBehavior final : public Behavior
|
|
|
|
{
|
|
|
|
public:
|
2022-12-24 14:08:51 +00:00
|
|
|
/*
|
2021-12-05 17:54:36 +00:00
|
|
|
* Inherited
|
|
|
|
*/
|
|
|
|
explicit ApplyBuffBehavior(const uint32_t behaviorId) : Behavior(behaviorId) {
|
|
|
|
}
|
|
|
|
|
|
|
|
void Handle(BehaviorContext* context, RakNet::BitStream* bitStream, BehaviorBranchContext branch) override;
|
|
|
|
|
|
|
|
void UnCast(BehaviorContext* context, BehaviorBranchContext branch) override;
|
|
|
|
|
|
|
|
void Calculate(BehaviorContext* context, RakNet::BitStream* bitStream, BehaviorBranchContext branch) override;
|
2022-07-28 13:39:57 +00:00
|
|
|
|
2021-12-05 17:54:36 +00:00
|
|
|
void Load() override;
|
2022-12-24 14:08:51 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
int32_t m_BuffId;
|
|
|
|
float m_Duration;
|
|
|
|
bool m_IgnoreUncast;
|
|
|
|
bool m_TargetCaster;
|
|
|
|
bool m_AddImmunity;
|
|
|
|
bool m_ApplyOnTeammates;
|
|
|
|
bool m_CancelOnDamaged;
|
|
|
|
bool m_CancelOnDeath;
|
|
|
|
bool m_CancelOnLogout;
|
|
|
|
bool m_CancelOnRemoveBuff;
|
|
|
|
bool m_CancelOnUi;
|
|
|
|
bool m_CancelOnUnequip;
|
|
|
|
bool m_CancelOnZone;
|
|
|
|
bool m_CancelOnDamageAbsDone;
|
|
|
|
bool m_UseRefCount;
|
2021-12-05 17:54:36 +00:00
|
|
|
};
|