mirror of
https://github.com/smyalygames/monopoly.git
synced 2025-12-29 07:48:48 +01:00
Added multiplayer plugin
This commit is contained in:
18
Assets/Mirror/Runtime/Transport/Telepathy/Message.cs
Normal file
18
Assets/Mirror/Runtime/Transport/Telepathy/Message.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
// 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user