MCPcopy Create free account
hub / github.com/MergHQ/CRYENGINE / SerializeScript

Method SerializeScript

Code/CryEngine/CryAction/Network/ScriptRMI.cpp:549–573  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

547}
548
549bool CScriptRMI::SerializeScript(TSerialize ser, IEntity* pEntity)
550{
551 SSerializeFunctionParams p(ser, pEntity);
552 ScriptHandle hdl(&p);
553 IScriptTable* pTable = pEntity->GetScriptTable();
554 if (pTable)
555 {
556 SmartScriptTable serTable;
557 SmartScriptTable synchedTable;
558 pTable->GetValue("synched", synchedTable);
559 if (synchedTable.GetPtr())
560 {
561 synchedTable->GetValue(HIDDEN_FIELD, serTable);
562 if (serTable.GetPtr())
563 {
564 IScriptSystem* pScriptSystem = pTable->GetScriptSystem();
565 pScriptSystem->BeginCall(serTable.GetPtr(), SERIALIZE_FUNCTION);
566 pScriptSystem->PushFuncParam(serTable);
567 pScriptSystem->PushFuncParam(hdl);
568 return pScriptSystem->EndCall();
569 }
570 }
571 }
572 return true;
573}
574
575int CScriptRMI::SerializeFunction(IFunctionHandler* pH, void* pBuffer, int nSize)
576{

Callers 1

SynchObjectMethod · 0.80

Calls 7

BeginCallMethod · 0.80
GetScriptTableMethod · 0.45
GetValueMethod · 0.45
GetPtrMethod · 0.45
GetScriptSystemMethod · 0.45
PushFuncParamMethod · 0.45
EndCallMethod · 0.45

Tested by

no test coverage detected