Mirror/Unity-Technologies-networking/Runtime/Telepathy/Message.cs
2018-08-17 14:07:54 +02:00

17 lines
500 B
C#

// incoming message queue of <connectionId, message>
// (not a HashSet because one connection can have multiple new messages)
namespace Telepathy
{
public struct Message
{
public uint connectionId;
public EventType eventType;
public byte[] data;
public Message(uint connectionId, EventType eventType, byte[] data)
{
this.connectionId = connectionId;
this.eventType = eventType;
this.data = data;
}
}
}