mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-12-22 05:23:34 +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) {
|
||||
// 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 {
|
||||
return true;
|
||||
}
|
||||
|
||||
bool Action::Running() const noexcept {
|
||||
return false;
|
||||
}
|
||||
|
||||
void Action::SendBehaviorBlocksToClient(AMFArrayValue& args) const {
|
||||
auto* const actionArgs = args.PushArray();
|
||||
actionArgs->Insert("Type", m_Type);
|
||||
|
@ -23,6 +23,8 @@ public:
|
||||
|
||||
bool Done() const noexcept;
|
||||
|
||||
bool Running() const noexcept;
|
||||
|
||||
[[nodiscard]] const std::string& GetType() const { return m_Type; };
|
||||
[[nodiscard]] const std::string& GetValueParameterName() const { return m_ValueParameterName; };
|
||||
[[nodiscard]] const std::string& GetValueParameterString() const { return m_ValueParameterString; };
|
||||
|
Loading…
Reference in New Issue
Block a user