1 #ifndef SCRIPT_COMPONENT_HPP 2 #define SCRIPT_COMPONENT_HPP 4 #include <pybind11/pybind11.h> 6 #include "Component.hpp" 14 const std::string& module,
16 const std::string& pyClass);
pybind11::object wrapper_
The wrapper object for this script component.
Definition: ScriptComponent.hpp:29
const std::string moduleName
The name of this script component's python module.
Definition: ScriptComponent.hpp:23
void Init() override
Initializes this component.
Definition: ScriptComponent.cpp:12
void Update() override
Updates this component.
Definition: ScriptComponent.cpp:26
A class for attaching python scripts as components.
Definition: ScriptComponent.hpp:9
Class representing a component of a GameObject.
Definition: Component.hpp:12
const std::string className
The name of this script component's python class.
Definition: ScriptComponent.hpp:25
ScriptComponent(const std::string &module, const std::string &pyClass)
Construts a new script component.
Definition: ScriptComponent.cpp:7