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

Function InvokeObjectRpc

Source/Engine/Networking/NetworkReplicator.cpp:1041–1052  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1039}
1040
1041void InvokeObjectRpc(const NetworkRpcInfo* info, byte* data, uint32 dataSize, uint32 senderClientId, ScriptingObject* obj)
1042{
1043 // Setup message reading stream
1044 if (CachedReadStream == nullptr)
1045 CachedReadStream = New<NetworkStream>();
1046 NetworkStream* stream = CachedReadStream;
1047 stream->SenderId = senderClientId;
1048 stream->Initialize(data, dataSize);
1049
1050 // Execute RPC
1051 info->Execute(obj, stream, info->Tag);
1052}
1053
1054void InvokeObjectSpawn(const NetworkMessageObjectSpawn& msgData, const Guid& prefabId, const NetworkMessageObjectSpawnItem* msgDataItems)
1055{

Callers 2

Calls 2

InitializeMethod · 0.45
ExecuteMethod · 0.45

Tested by

no test coverage detected