Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
CComponentTypeScript Class Reference

#include <ScriptComponent.h>

Collaboration diagram for CComponentTypeScript:

Public Member Functions

 CComponentTypeScript (const ScriptInterface &scriptInterface, JS::HandleValue instance)
 
JS::Value GetInstance () const
 
void Init (const CParamNode &paramNode, entity_id_t ent)
 
void Deinit ()
 
void HandleMessage (const CMessage &msg, bool global)
 
void Serialize (ISerializer &serialize)
 
void Deserialize (const CParamNode &paramNode, IDeserializer &deserialize, entity_id_t ent)
 
template<typename R , typename... Ts>
Call (const char *funcname, const Ts &... params) const
 
template<typename R , typename... Ts>
void CallRef (const char *funcname, R ret, const Ts &... params) const
 
template<typename... Ts>
void CallVoid (const char *funcname, const Ts &... params) const
 

Private Member Functions

 NONCOPYABLE (CComponentTypeScript)
 

Private Attributes

const ScriptInterfacem_ScriptInterface
 
JS::PersistentRootedValue m_Instance
 

Constructor & Destructor Documentation

◆ CComponentTypeScript()

CComponentTypeScript::CComponentTypeScript ( const ScriptInterface scriptInterface,
JS::HandleValue  instance 
)

Member Function Documentation

◆ Call()

template<typename R , typename... Ts>
R CComponentTypeScript::Call ( const char *  funcname,
const Ts &...  params 
) const
inline

◆ CallRef()

template<typename R , typename... Ts>
void CComponentTypeScript::CallRef ( const char *  funcname,
ret,
const Ts &...  params 
) const
inline

◆ CallVoid()

template<typename... Ts>
void CComponentTypeScript::CallVoid ( const char *  funcname,
const Ts &...  params 
) const
inline

◆ Deinit()

void CComponentTypeScript::Deinit ( )

◆ Deserialize()

void CComponentTypeScript::Deserialize ( const CParamNode paramNode,
IDeserializer deserialize,
entity_id_t  ent 
)

◆ GetInstance()

JS::Value CComponentTypeScript::GetInstance ( ) const
inline

◆ HandleMessage()

void CComponentTypeScript::HandleMessage ( const CMessage msg,
bool  global 
)

◆ Init()

void CComponentTypeScript::Init ( const CParamNode paramNode,
entity_id_t  ent 
)

◆ NONCOPYABLE()

CComponentTypeScript::NONCOPYABLE ( CComponentTypeScript  )
private

◆ Serialize()

void CComponentTypeScript::Serialize ( ISerializer serialize)

Member Data Documentation

◆ m_Instance

JS::PersistentRootedValue CComponentTypeScript::m_Instance
private

◆ m_ScriptInterface

const ScriptInterface& CComponentTypeScript::m_ScriptInterface
private

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