-
Notifications
You must be signed in to change notification settings - Fork 461
Expand file tree
/
Copy pathFrameQueueItem.cs
More file actions
28 lines (27 loc) · 1.15 KB
/
FrameQueueItem.cs
File metadata and controls
28 lines (27 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
using System;
using MLAPI.Security;
using MLAPI.Serialization.Pooled;
namespace MLAPI
{
/// <summary>
/// FrameQueueItem
/// Container structure for RPCs written to the Queue Frame
/// Used for both Inbound and Outbound RPCs
/// NOTE: This structure will change in the near future and is in a state of flux.
/// This will include removing specific properties or changing property types (i.e. Channel could become a byte value)
/// </summary>
public struct FrameQueueItem
{
public RpcQueueContainer.QueueItemType queueItemType;
public SecuritySendFlags sendFlags;
public ulong networkId; //Sender's network Identifier
public string channel;
public ulong[] clientIds; //Server invoked Client RPCs only
public long streamSize;
public float timeStamp;
public PooledBitWriter streamWriter;
public PooledBitReader streamReader;
public PooledBitStream itemStream;
public ArraySegment<byte> messageData;
}
}