Add NetworkStream::SenderId to detect message sender during object replication or RPC code

This commit is contained in:
Wojtek Figat
2023-04-14 14:25:18 +02:00
parent 4bdeb26e74
commit 62fdfe2519
3 changed files with 22 additions and 10 deletions

View File

@@ -23,6 +23,11 @@ private:
public:
~NetworkStream();
/// <summary>
/// The ClientId of the network client that is a data sender. Can be used to detect who send the incoming RPC or replication data. Set to the current client when writing data.
/// </summary>
API_FIELD(ReadOnly) uint32 SenderId = 0;
/// <summary>
/// Gets the pointer to the native stream memory buffer.
/// </summary>