mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-10 06:51:36 +00:00
d7c0c06698
* refactoring
26 lines
605 B
C#
26 lines
605 B
C#
using QSB.Messaging;
|
|
using UnityEngine.Networking;
|
|
|
|
namespace QSB.TransformSync
|
|
{
|
|
public class SectorMessage : QSBMessage
|
|
{
|
|
public override MessageType MessageType => MessageType.Sector;
|
|
|
|
public int SectorId;
|
|
public uint SenderId;
|
|
|
|
public override void Deserialize(NetworkReader reader)
|
|
{
|
|
SectorId = reader.ReadInt32();
|
|
SenderId = reader.ReadPackedUInt32();
|
|
}
|
|
|
|
public override void Serialize(NetworkWriter writer)
|
|
{
|
|
writer.Write(SectorId);
|
|
writer.Write(SenderId);
|
|
}
|
|
|
|
}
|
|
} |