29 lines
608 B
C#
Raw Normal View History

2020-12-07 18:49:51 +00:00
using QSB.Messaging;
using QuantumUNET.Transport;
2020-12-07 18:49:51 +00:00
namespace QSB.OrbSync.Events
{
public class OrbSlotMessage : PlayerMessage
{
public int SlotId { get; set; }
public int OrbId { get; set; }
public bool SlotState { get; set; }
2020-12-23 12:58:45 +00:00
public override void Deserialize(QNetworkReader reader)
2020-12-07 18:49:51 +00:00
{
base.Deserialize(reader);
SlotId = reader.ReadInt32();
OrbId = reader.ReadInt32();
SlotState = reader.ReadBoolean();
}
2020-12-23 12:58:45 +00:00
public override void Serialize(QNetworkWriter writer)
2020-12-07 18:49:51 +00:00
{
base.Serialize(writer);
writer.Write(SlotId);
writer.Write(OrbId);
writer.Write(SlotState);
}
}
}