mirror of
https://github.com/scp-fs2open/fs2open.github.com.git
synced 2026-11-08 07:28:22 -10:00
This introduces action definitions which can then be instantiated to form actual actions with expressions as their parameters.
21 lines
411 B
C++
21 lines
411 B
C++
|
|
#include "ActionDefinition.h"
|
|
|
|
namespace actions {
|
|
|
|
ActionDefinition::ActionDefinition(SCP_string name, SCP_vector<ActionParameter> parameters)
|
|
: m_name(std::move(name)), m_parameters(std::move(parameters))
|
|
{
|
|
}
|
|
|
|
const SCP_string& ActionDefinition::getName() const
|
|
{
|
|
return m_name;
|
|
}
|
|
const SCP_vector<ActionParameter>& ActionDefinition::getParameters() const
|
|
{
|
|
return m_parameters;
|
|
}
|
|
|
|
} // namespace actions
|