quantum-space-buddies/QSB/WorldSync/Events/WorldObjectMessage.cs
Mister_Nebula 66d804ad5c cleanup
2020-11-03 22:18:22 +00:00

23 lines
515 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);
}
}
}