blob: 22d985963395632ade1c7583e58c4d7eb05c3637 (
plain) (
blame)
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
32
33
34
|
#ifndef AUTOMATABLE_H_FACB42A5
#define AUTOMATABLE_H_FACB42A5
#include "component.h"
#include "entity_manager.h"
class AutomatableComponent : public Component {
public:
using id_type = EntityManager::id_type;
/**
* Controls what script will be run as this entity's behavior. It should refer
* to a table in the global namespace of the script engine state, and that
* table should contain a function called "Behavior".
*/
std::string table;
/**
* Whether or not the behavior script is running.
*
* @managed_by ScriptingSystem
*/
bool running = false;
/**
* The entity ID of the running script, if there is one.
*
* @managed_by ScriptingSystem
*/
id_type script;
};
#endif /* end of include guard: AUTOMATABLE_H_FACB42A5 */
|