quantum-space-buddies/QSB/WorldSync/Events/WorldObjectMessage.cs
Mister_Nebula 9f4d886903 more
2020-12-15 16:37:52 +00:00

22 lines
432 B
C#

using QSB.Messaging;
using QuantumUNET.Transport;
namespace QSB.WorldSync.Events
{
public class WorldObjectMessage : PlayerMessage
{
public int ObjectId { get; set; }
public override void Deserialize(QSBNetworkReader reader)
{
base.Deserialize(reader);
ObjectId = reader.ReadInt32();
}
public override void Serialize(QSBNetworkWriter writer)
{
base.Serialize(writer);
writer.Write(ObjectId);
}
}
}