mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-05-15 19:11:20 +00:00
f
This commit is contained in:
parent
ff1523b43f
commit
b79406c27d
@ -24,12 +24,24 @@ Action::Action(const AMFArrayValue& arguments) {
|
|||||||
|
|
||||||
void Action::Update(float deltaTime, const ModelComponent& modelComponent) {
|
void Action::Update(float deltaTime, const ModelComponent& modelComponent) {
|
||||||
// Do nothing
|
// Do nothing
|
||||||
|
if (Running()) return;
|
||||||
|
|
||||||
|
// model component default speed is 3.0f
|
||||||
|
if (m_Type == "FlyUp") {
|
||||||
|
|
||||||
|
} else if (m_Type == "FlyDown") {
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Action::Done() const noexcept {
|
bool Action::Done() const noexcept {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool Action::Running() const noexcept {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
void Action::SendBehaviorBlocksToClient(AMFArrayValue& args) const {
|
void Action::SendBehaviorBlocksToClient(AMFArrayValue& args) const {
|
||||||
auto* const actionArgs = args.PushArray();
|
auto* const actionArgs = args.PushArray();
|
||||||
actionArgs->Insert("Type", m_Type);
|
actionArgs->Insert("Type", m_Type);
|
||||||
|
@ -23,6 +23,8 @@ public:
|
|||||||
|
|
||||||
bool Done() const noexcept;
|
bool Done() const noexcept;
|
||||||
|
|
||||||
|
bool Running() const noexcept;
|
||||||
|
|
||||||
[[nodiscard]] const std::string& GetType() const { return m_Type; };
|
[[nodiscard]] const std::string& GetType() const { return m_Type; };
|
||||||
[[nodiscard]] const std::string& GetValueParameterName() const { return m_ValueParameterName; };
|
[[nodiscard]] const std::string& GetValueParameterName() const { return m_ValueParameterName; };
|
||||||
[[nodiscard]] const std::string& GetValueParameterString() const { return m_ValueParameterString; };
|
[[nodiscard]] const std::string& GetValueParameterString() const { return m_ValueParameterString; };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user