mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-26 18:35:34 +00:00
18 lines
369 B
C#
18 lines
369 B
C#
|
using QuantumUNET.Transport;
|
|||
|
|
|||
|
namespace QuantumUNET.Messages
|
|||
|
{
|
|||
|
public class QStringMessage : QMessageBase
|
|||
|
{
|
|||
|
public string value;
|
|||
|
|
|||
|
public QStringMessage(string v)
|
|||
|
{
|
|||
|
value = v;
|
|||
|
}
|
|||
|
|
|||
|
public override void Serialize(QNetworkWriter writer) => writer.Write(value);
|
|||
|
|
|||
|
public override void Deserialize(QNetworkReader reader) => value = reader.ReadString();
|
|||
|
}
|
|||
|
}
|