mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-10 06:51:36 +00:00
26 lines
582 B
C#
26 lines
582 B
C#
using QuantumUNET.Messages;
|
|
using QuantumUNET.Transport;
|
|
|
|
namespace QSB.Messaging
|
|
{
|
|
public class PlayerMessage : QMessageBase
|
|
{
|
|
public uint FromId { get; set; }
|
|
public uint AboutId { get; set; }
|
|
public bool OnlySendToServer { get; set; }
|
|
|
|
public override void Deserialize(QNetworkReader reader)
|
|
{
|
|
FromId = reader.ReadUInt32();
|
|
AboutId = reader.ReadUInt32();
|
|
OnlySendToServer = reader.ReadBoolean();
|
|
}
|
|
|
|
public override void Serialize(QNetworkWriter writer)
|
|
{
|
|
writer.Write(FromId);
|
|
writer.Write(AboutId);
|
|
writer.Write(OnlySendToServer);
|
|
}
|
|
}
|
|
} |