Changeset View
Changeset View
Standalone View
Standalone View
source/simulation2/scripting/ScriptComponent.h
Show First 20 Lines • Show All 64 Lines • ▼ Show 20 Lines | public: | ||||
{ | { | ||||
if (!m_ScriptInterface.CallFunctionVoid(m_Instance, funcname, params...)) | if (!m_ScriptInterface.CallFunctionVoid(m_Instance, funcname, params...)) | ||||
LOGERROR("Error calling component script function %s", funcname); | LOGERROR("Error calling component script function %s", funcname); | ||||
} | } | ||||
private: | private: | ||||
const ScriptInterface& m_ScriptInterface; | const ScriptInterface& m_ScriptInterface; | ||||
JS::PersistentRootedValue m_Instance; | JS::PersistentRootedValue m_Instance; | ||||
bool m_HasCustomSerialize; | |||||
bool m_HasCustomDeserialize; | |||||
bool m_HasNullSerialize; | |||||
}; | }; | ||||
#endif // INCLUDED_SCRIPTCOMPONENT | #endif // INCLUDED_SCRIPTCOMPONENT |
Wildfire Games · Phabricator