GodotTicTacToe/scripts/net/packethandling/packets/TextMessagePkt.cs

16 lines
387 B
C#

namespace Network.PacketHandling.Packets {
public class TextMessagePkt : Serializable {
public string Text = "";
public override void WriteContents(PacketBuffer packetBuffer) {
packetBuffer.Write(Text);
}
public override void ReadContents(PacketBuffer packetBuffer) {
Text = packetBuffer.ReadString();
}
}
}