mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-19 03:20:33 +00:00
17 lines
500 B
C#
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;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|