21 lines
No EOL
366 B
C#
21 lines
No EOL
366 B
C#
using System.IO;
|
|
using System.IO.Streams;
|
|
using System.Text;
|
|
|
|
namespace TShockAPI.Net
|
|
{
|
|
internal class DisconnectMsg : BaseMsg
|
|
{
|
|
public override PacketTypes ID
|
|
{
|
|
get { return PacketTypes.Disconnect; }
|
|
}
|
|
|
|
public string Reason { get; set; }
|
|
|
|
public override void Pack(Stream stream)
|
|
{
|
|
stream.WriteBytes(Encoding.ASCII.GetBytes(Reason));
|
|
}
|
|
}
|
|
} |