mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-25 06:35:45 +00:00
29 lines
621 B
C#
29 lines
621 B
C#
|
using QSB.Messaging;
|
|||
|
using QuantumUNET.Transport;
|
|||
|
|
|||
|
namespace QSB.ItemSync.Events
|
|||
|
{
|
|||
|
public class SocketItemMessage : PlayerMessage
|
|||
|
{
|
|||
|
public int SocketId { get; set; }
|
|||
|
public int ItemId { get; set; }
|
|||
|
public bool Inserting { get; set; }
|
|||
|
|
|||
|
public override void Deserialize(QNetworkReader reader)
|
|||
|
{
|
|||
|
base.Deserialize(reader);
|
|||
|
SocketId = reader.ReadInt32();
|
|||
|
ItemId = reader.ReadInt32();
|
|||
|
Inserting = reader.ReadBoolean();
|
|||
|
}
|
|||
|
|
|||
|
public override void Serialize(QNetworkWriter writer)
|
|||
|
{
|
|||
|
base.Serialize(writer);
|
|||
|
writer.Write(SocketId);
|
|||
|
writer.Write(ItemId);
|
|||
|
writer.Write(Inserting);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|