diff options
Diffstat (limited to 'src/components/prototypable.h')
| -rw-r--r-- | src/components/prototypable.h | 22 |
1 files changed, 22 insertions, 0 deletions
| diff --git a/src/components/prototypable.h b/src/components/prototypable.h new file mode 100644 index 0000000..4659e7c --- /dev/null +++ b/src/components/prototypable.h | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | #ifndef PROTOTYPABLE_H_817F2205 | ||
| 2 | #define PROTOTYPABLE_H_817F2205 | ||
| 3 | |||
| 4 | #include "component.h" | ||
| 5 | #include "entity_manager.h" | ||
| 6 | |||
| 7 | class PrototypableComponent : public Component { | ||
| 8 | public: | ||
| 9 | |||
| 10 | using id_type = EntityManager::id_type; | ||
| 11 | |||
| 12 | size_t mapObjectIndex; | ||
| 13 | |||
| 14 | std::string prototypeId; | ||
| 15 | |||
| 16 | bool hasBehavior = false; | ||
| 17 | bool runningBehavior = false; | ||
| 18 | |||
| 19 | id_type behaviorScript; | ||
| 20 | }; | ||
| 21 | |||
| 22 | #endif /* end of include guard: PROTOTYPABLE_H_817F2205 */ | ||
