Platformer
Platformer
Public Member Functions | Private Attributes | List of all members
PyScriptWrapper Class Reference

A wrapper class for python script components. More...

#include <PyScriptWrapper.hpp>

Collaboration diagram for PyScriptWrapper:
Collaboration graph

Public Member Functions

std::shared_ptr< GameObjectGetGameObject ()
 Gets a shared ptr reference to this component's GameObject. More...
 
void SetScriptComponent (std::shared_ptr< ScriptComponent > sc)
 Sets the script component for this wrapper. More...
 

Private Attributes

std::weak_ptr< ScriptComponentscriptComp
 The script component for this python script wrapper.
 

Detailed Description

A wrapper class for python script components.

Member Function Documentation

◆ GetGameObject()

std::shared_ptr< GameObject > PyScriptWrapper::GetGameObject ( )

Gets a shared ptr reference to this component's GameObject.

Returns
A shared ptr reference to this component's GameObject

◆ SetScriptComponent()

void PyScriptWrapper::SetScriptComponent ( std::shared_ptr< ScriptComponent sc)

Sets the script component for this wrapper.

Parameters
scThe script component to be set

The documentation for this class was generated from the following files: