quantum-space-buddies/QSB/WorldSync/WorldObjectMessage.cs
Aleksander Waage acbe088651 objectid
2020-08-13 20:47:23 +02:00

23 lines
508 B
C#

using QSB.Messaging;
using UnityEngine.Networking;
namespace QSB.WorldSync
{
public class WorldObjectMessage : PlayerMessage
{
public int ObjectId { get; set; }
public override void Deserialize(NetworkReader reader)
{
base.Deserialize(reader);
ObjectId = reader.ReadInt32();
}
public override void Serialize(NetworkWriter writer)
{
base.Serialize(writer);
writer.Write(ObjectId);
}
}
}