TShock/TShockAPI/Net/DisconnectMsg.cs
high b2f47f57ac Updated to new binary (with the api merged).
Removed System.Drawing dependency
2011-09-24 18:30:19 -04:00

22 lines
462 B
C#

using System.IO;
using System.IO.Streams;
using System.Text;
namespace TShockAPI.Net
{
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));
}
}
}