quantum-space-buddies/QSB.Messaging/SectorMessage.cs
amazingalek fb349c78c6
Separate messaging into its own project
* just formatting

* * moved message stuff to new project
* generated .gitignore from https://gitignore.io/api/unity,visualstudio

* fixed build event for message project
2020-02-15 20:55:37 +01:00

22 lines
508 B
C#

using UnityEngine.Networking;
namespace QSB.Messaging
{
public class SectorMessage : MessageBase
{
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);
}
}
}