mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-11 00:52:19 +00:00
23 lines
533 B
C#
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);
|
|
}
|
|
}
|
|
} |