#include <string>
#include <unordered_map>
#include "Entity.h"
#include "Component.h"
#include "glm/detail/type_vec.hpp"
Go to the source code of this file.
|
| #define | SCRIPT_CLASS(ClassName) |
| |
| #define | SCRIPT_VAR(Type, Name, Default) Type Name = Default |
| |
| #define | REGISTER_VAR(Name, Type) register_property(#Name, &Name, PropertyType::Type) |
| |
◆ REGISTER_VAR
| #define REGISTER_VAR |
( |
|
Name, |
|
|
|
Type |
|
) |
| register_property(#Name, &Name, PropertyType::Type) |
◆ SCRIPT_CLASS
| #define SCRIPT_CLASS |
( |
|
ClassName | ) |
|
Value: public: \
const char* get_class_name() const override { return #ClassName; } \
static const char* static_class_name() { return #ClassName; }
Definition at line 13 of file ScriptComponent.h.
◆ SCRIPT_VAR
| #define SCRIPT_VAR |
( |
|
Type, |
|
|
|
Name, |
|
|
|
Default |
|
) |
| Type Name = Default |