mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-11 00:52:19 +00:00
22b028ce26
* probe.SetState * sectormessage enum
24 lines
612 B
C#
24 lines
612 B
C#
using UnityEngine.Networking;
|
|
|
|
namespace QSB.Messaging
|
|
{
|
|
public class SectorMessage : PlayerMessage
|
|
{
|
|
public Sector.Name SectorId;
|
|
public string SectorName;
|
|
|
|
public override void Deserialize(NetworkReader reader)
|
|
{
|
|
base.Deserialize(reader);
|
|
SectorId = (Sector.Name)reader.ReadInt32();
|
|
SectorName = reader.ReadString();
|
|
}
|
|
|
|
public override void Serialize(NetworkWriter writer)
|
|
{
|
|
base.Serialize(writer);
|
|
writer.Write((int)SectorId);
|
|
writer.Write(SectorName);
|
|
}
|
|
}
|
|
} |