This commit is contained in:
David Markowitz 2024-11-10 12:12:45 -08:00
parent ff1523b43f
commit b79406c27d
2 changed files with 14 additions and 0 deletions

View File

@ -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);

View File

@ -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; };