quantum-space-buddies/QSB.Messaging/SectorMessage.cs

22 lines
508 B
C#
Raw Normal View History

2020-02-12 19:58:42 +00:00
using UnityEngine.Networking;
2020-02-15 19:48:02 +00:00
namespace QSB.Messaging
{
public class SectorMessage : MessageBase
{
public int SectorId;
public uint SenderId;
2020-02-12 19:58:42 +00:00
2020-02-15 19:48:02 +00:00
public override void Deserialize(NetworkReader reader)
{
SectorId = reader.ReadInt32();
SenderId = reader.ReadPackedUInt32();
2020-02-12 19:58:42 +00:00
}
2020-02-15 19:48:02 +00:00
public override void Serialize(NetworkWriter writer)
{
writer.Write(SectorId);
writer.Write(SenderId);
2020-02-12 19:58:42 +00:00
}
}
}