16 lines
387 B
C#
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();
|
|
}
|
|
}
|
|
}
|