MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / BeginInvokeRPC

Method BeginInvokeRPC

Source/Engine/Networking/NetworkReplicator.cpp:1809–1818  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1807Dictionary<NetworkRpcName, NetworkRpcInfo> NetworkRpcInfo::RPCsTable;
1808
1809NetworkStream* NetworkReplicator::BeginInvokeRPC()
1810{
1811 PROFILE_MEM(Networking);
1812 if (CachedWriteStream == nullptr)
1813 CachedWriteStream = New<NetworkStream>();
1814 CachedWriteStream->Initialize();
1815 CachedWriteStream->SenderId = NetworkManager::LocalClientId;
1816 Scripting::ObjectsLookupIdMapping.Set(&IdsRemappingTable);
1817 return CachedWriteStream;
1818}
1819
1820bool NetworkReplicator::EndInvokeRPC(ScriptingObject* obj, const ScriptingTypeHandle& type, const StringAnsiView& name, NetworkStream* argsStream, Span<uint32> targetIds)
1821{

Callers

nothing calls this directly

Calls 2

InitializeMethod · 0.45
SetMethod · 0.45

Tested by

no test coverage detected