mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-09 03:40:46 +00:00
23 lines
625 B
C#
23 lines
625 B
C#
using System;
|
|
using System.Linq;
|
|
using UnityEngine.Networking;
|
|
|
|
namespace QSB.Messaging
|
|
{
|
|
public class PlayerLeaveMessage : PlayerMessage
|
|
{
|
|
public uint[] NetIds { get; set; }
|
|
|
|
public override void Deserialize(NetworkReader reader)
|
|
{
|
|
base.Deserialize(reader);
|
|
NetIds = reader.ReadString().Split(',').Select(x => Convert.ToUInt32(x)).ToArray();
|
|
}
|
|
|
|
public override void Serialize(NetworkWriter writer)
|
|
{
|
|
base.Serialize(writer);
|
|
writer.Write(string.Join(",", NetIds.Select(x => x.ToString()).ToArray()));
|
|
}
|
|
}
|
|
} |