mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-06 01:00:16 +00:00
fb349c78c6
* just formatting * * moved message stuff to new project * generated .gitignore from https://gitignore.io/api/unity,visualstudio * fixed build event for message project
22 lines
508 B
C#
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);
|
|
}
|
|
}
|
|
} |