- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathScriptableFunction.h
More file actions
Latest commit
32 lines (27 loc) · 799 Bytes
/
Copy pathScriptableFunction.h
File metadata and controls
32 lines (27 loc) · 799 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#pragma once
#include"Common.h"
/**
* \brief Script lines from the text file will be parsed into this object structure.
*/
classScriptableFunction
{
public:
/**
* \brief Parameterless constructor.
*/
ScriptableFunction();
/**
* \brief Main constructor.
* \param function_name Name of the function (must match one from the FunctionManager's map).
* \param args List of arguments to pass into the dynamic function.
*/
ScriptableFunction(const std::string& function_name, std::vector<std::string> args); // constructor which populates our members
/**
* \brief Name of the function (must match one from the FunctionManager's map).
*/
std::string FunctionName;
/**
* \brief List of arguments to pass into a dynamic function.
*/
std::vector<std::string> Arguments;
};