1
Fork 0
mirror of https://github.com/Steffo99/better-tee.git synced 2024-11-26 08:44:19 +00:00
better-tee/Assets/Packages/Mirror/Runtime/Transport/Telepathy/Message.cs

18 lines
555 B
C#
Raw Normal View History

2019-09-17 15:43:32 +00:00
// incoming message queue of <connectionId, message>
// (not a HashSet because one connection can have multiple new messages)
// -> a struct to minimize GC
namespace Telepathy
{
public struct Message
{
public readonly int connectionId;
public readonly EventType eventType;
public readonly byte[] data;
public Message(int connectionId, EventType eventType, byte[] data)
{
this.connectionId = connectionId;
this.eventType = eventType;
this.data = data;
}
}
}