mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-11 00:52:19 +00:00
15 lines
361 B
C#
15 lines
361 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();
|
|
}
|
|
} |