pass model component to update

This commit is contained in:
David Markowitz
2024-11-03 21:40:36 -08:00
parent 56ec037eb6
commit ff1523b43f
9 changed files with 37 additions and 33 deletions

View File

@@ -22,7 +22,7 @@ Action::Action(const AMFArrayValue& arguments) {
}
}
void Action::Update(float deltaTime) {
void Action::Update(float deltaTime, const ModelComponent& modelComponent) {
// Do nothing
}

View File

@@ -8,6 +8,7 @@ namespace tinyxml2 {
};
class AMFArrayValue;
class ModelComponent;
/**
* @brief Sent if a ControlBehavior message has an Action associated with it
@@ -18,7 +19,7 @@ public:
Action() = default;
Action(const AMFArrayValue& arguments);
void Update(float deltaTime);
void Update(float deltaTime, const ModelComponent& modelComponent);
bool Done() const noexcept;