2023-02-16 17:30:33 +00:00
|
|
|
#ifndef __ACTION__H__
|
|
|
|
#define __ACTION__H__
|
|
|
|
|
2024-01-03 13:34:38 +00:00
|
|
|
#include <string>
|
|
|
|
|
|
|
|
class AMFArrayValue;
|
2023-02-16 17:30:33 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Sent if a ControlBehavior message has an Action associated with it
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
class Action {
|
|
|
|
public:
|
|
|
|
Action();
|
|
|
|
Action(AMFArrayValue* arguments);
|
2024-01-03 13:34:38 +00:00
|
|
|
const std::string& GetType() const { return type; };
|
|
|
|
const std::string& GetValueParameterName() const { return valueParameterName; };
|
|
|
|
const std::string& GetValueParameterString() const { return valueParameterString; };
|
|
|
|
const double GetValueParameterDouble() const { return valueParameterDouble; };
|
|
|
|
|
|
|
|
void SendBehaviorBlocksToClient(AMFArrayValue& args) const;
|
2023-02-16 17:30:33 +00:00
|
|
|
private:
|
|
|
|
std::string type;
|
|
|
|
std::string valueParameterName;
|
|
|
|
std::string valueParameterString;
|
|
|
|
double valueParameterDouble;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif //!__ACTION__H__
|