DarkflameServer/dGame/dBehaviors/FallSpeedBehavior.h

26 lines
640 B
C
Raw Normal View History

2022-07-09 00:04:57 +00:00
#pragma once
#include "Behavior.h"
class FallSpeedBehavior final : public Behavior
{
public:
/*
* Inherited
*/
explicit FallSpeedBehavior(const uint32_t behaviorId) : Behavior(behaviorId) {}
void Handle(BehaviorContext* context, RakNet::BitStream* bitStream, BehaviorBranchContext branch) override;
void Timer(BehaviorContext* context, BehaviorBranchContext branch, LWOOBJID second) override;
void End(BehaviorContext* context, BehaviorBranchContext branch, LWOOBJID second) override;
void UnCast(BehaviorContext* context, BehaviorBranchContext branch) override;
void Load() override;
private:
float m_PercentSlowed;
};