Loading...
Searching...
No Matches
ScriptComponent.h File Reference
#include <string>
#include <unordered_map>
#include "Entity.h"
#include "Component.h"
#include "glm/detail/type_vec.hpp"
Include dependency graph for ScriptComponent.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  hellfire::ScriptComponent
 
struct  hellfire::ScriptComponent::PropertyInfo
 

Namespaces

namespace  hellfire
 

Macros

#define SCRIPT_CLASS(ClassName)
 
#define SCRIPT_VAR(Type, Name, Default)   Type Name = Default
 
#define REGISTER_VAR(Name, Type)   register_property(#Name, &Name, PropertyType::Type)
 

Macro Definition Documentation

◆ REGISTER_VAR

#define REGISTER_VAR (   Name,
  Type 
)    register_property(#Name, &Name, PropertyType::Type)

Definition at line 23 of file ScriptComponent.h.

◆ 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

Definition at line 19 of file ScriptComponent.h.