MCPcopy Create free account
hub / github.com/StrongPC123/Far-Cry-1-Source-Full / RegisterFunction

Method RegisterFunction

CryCommon/_ScriptableEx.h:142–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140 m_pPropertiesTable=NULL;
141 }
142 static void RegisterFunction(IScriptSystem *pSS,const char *sName,MemberFunc mfunc){
143 if(m_pTemplateTable==NULL)
144 {
145
146 m_pTemplateTable=pSS->CreateObject();
147 }
148
149 int nIdx = (int)m_vFuncs.size();
150 m_vFuncs.push_back(mfunc);
151 m_pTemplateTable->AddFunction(sName,_ScriptableEx<T>::FuncThunk,nIdx);
152 // m_nFuncNum++;
153 }
154 bool EnablePropertiesMapping(void *pBase)
155 {
156 assert(pBase);

Callers

nothing calls this directly

Calls 4

AddFunctionMethod · 0.80
CreateObjectMethod · 0.45
sizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected