23 lines
532 B
C#
Raw Normal View History

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