Mirror/Unity-Technologies-networking/Runtime/Telepathy/Message.cs

17 lines
500 B
C#
Raw Normal View History

2018-08-14 09:13:02 +00:00
// 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;
}
}
}