ReSharper code reformat to match naming conventions and stuff
This commit is contained in:
parent
1147788154
commit
c6abbfe4d2
45 changed files with 11639 additions and 11342 deletions
|
|
@ -4,19 +4,18 @@ 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));
|
||||
}
|
||||
}
|
||||
}
|
||||
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));
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue