Platformer
Platformer
PyScriptWrapper.hpp
1 #ifndef PY_SCRIPT_WRAPPER
2 #define PY_SCRIPT_WRAPPER
3 
4 #include "GameObject.hpp"
5 
6 class ScriptComponent;
7 
10  public:
15  std::shared_ptr<GameObject> GetGameObject();
16 
18  void SetScriptComponent(
19  std::shared_ptr<ScriptComponent> sc);
20 
21  private:
23  std::weak_ptr<ScriptComponent> scriptComp;
24 };
25 
26 #endif
void SetScriptComponent(std::shared_ptr< ScriptComponent > sc)
Sets the script component for this wrapper.
Definition: PyScriptWrapper.cpp:11
std::weak_ptr< ScriptComponent > scriptComp
The script component for this python script wrapper.
Definition: PyScriptWrapper.hpp:23
A class for attaching python scripts as components.
Definition: ScriptComponent.hpp:9
std::shared_ptr< GameObject > GetGameObject()
Gets a shared ptr reference to this component&#39;s GameObject.
Definition: PyScriptWrapper.cpp:7
A wrapper class for python script components.
Definition: PyScriptWrapper.hpp:9