| 547 | } |
| 548 | |
| 549 | bool 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 | |
| 575 | int CScriptRMI::SerializeFunction(IFunctionHandler* pH, void* pBuffer, int nSize) |
| 576 | { |
no test coverage detected