quantum-space-buddies/QSB/Messaging/SectorMessage.cs
2020-08-09 12:42:17 +01:00

23 lines
533 B
C#

using QSB.Messaging;
using UnityEngine.Networking;
namespace QSB.Messaging
{
public class SectorMessage : PlayerMessage
{
public int SectorId;
public string SectorName;
public override void Deserialize(NetworkReader reader)
{
SectorId = reader.ReadInt32();
SectorName = reader.ReadString();
}
public override void Serialize(NetworkWriter writer)
{
writer.Write(SectorId);
writer.Write(SectorName);
}
}
}