quantum-space-buddies/QSB/WorldSync/Events/WorldObjectMessage.cs
Mister_Nebula 65792732b2 cleanup
2020-11-10 13:36:28 +00:00

22 lines
514 B
C#

using QSB.Messaging;
using UnityEngine.Networking;
namespace QSB.WorldSync.Events
{
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);
}
}
}