2021-12-05 17:54:36 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "Behavior.h"
|
|
|
|
|
2023-04-03 13:21:23 +00:00
|
|
|
class ChangeOrientationBehavior final : public Behavior {
|
2021-12-05 17:54:36 +00:00
|
|
|
public:
|
2023-04-03 13:21:23 +00:00
|
|
|
explicit ChangeOrientationBehavior(const uint32_t behaviorId) : Behavior(behaviorId) {}
|
2021-12-05 17:54:36 +00:00
|
|
|
void Calculate(BehaviorContext* context, RakNet::BitStream* bitStream, BehaviorBranchContext branch) override;
|
|
|
|
void Load() override;
|
2023-04-03 13:21:23 +00:00
|
|
|
private:
|
|
|
|
bool m_orientCaster;
|
|
|
|
bool m_toTarget;
|
|
|
|
bool m_toAngle;
|
|
|
|
float m_angle;
|
|
|
|
bool m_relative;
|
2021-12-05 17:54:36 +00:00
|
|
|
};
|