mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-25 15:35:22 +00:00
26 lines
577 B
C#
26 lines
577 B
C#
using QuantumUNET;
|
|
using QuantumUNET.Messages;
|
|
|
|
namespace QSB.Messages
|
|
{
|
|
public class PlayerMessage : QSBMessageBase
|
|
{
|
|
public uint FromId { get; set; }
|
|
public uint AboutId { get; set; }
|
|
public bool OnlySendToServer { get; set; }
|
|
|
|
public override void Deserialize(QSBNetworkReader reader)
|
|
{
|
|
FromId = reader.ReadUInt32();
|
|
AboutId = reader.ReadUInt32();
|
|
OnlySendToServer = reader.ReadBoolean();
|
|
}
|
|
|
|
public override void Serialize(QSBNetworkWriter writer)
|
|
{
|
|
writer.Write(FromId);
|
|
writer.Write(AboutId);
|
|
writer.Write(OnlySendToServer);
|
|
}
|
|
}
|
|
} |