Remove NetMessage deprecated boilerplate (#4196)
This commit is contained in:
@@ -8,13 +8,7 @@ namespace Content.Shared.Sandbox
|
||||
{
|
||||
protected sealed class MsgSandboxStatus : NetMessage
|
||||
{
|
||||
#region REQUIRED
|
||||
|
||||
public const MsgGroups GROUP = MsgGroups.Command;
|
||||
public const string NAME = nameof(MsgSandboxStatus);
|
||||
public MsgSandboxStatus(INetChannel channel) : base(NAME, GROUP) { }
|
||||
|
||||
#endregion
|
||||
public override MsgGroups MsgGroup => MsgGroups.Command;
|
||||
|
||||
public bool SandboxAllowed { get; set; }
|
||||
|
||||
@@ -31,13 +25,7 @@ namespace Content.Shared.Sandbox
|
||||
|
||||
protected sealed class MsgSandboxRespawn : NetMessage
|
||||
{
|
||||
#region REQUIRED
|
||||
|
||||
public const MsgGroups GROUP = MsgGroups.Command;
|
||||
public const string NAME = nameof(MsgSandboxRespawn);
|
||||
public MsgSandboxRespawn(INetChannel channel) : base(NAME, GROUP) { }
|
||||
|
||||
#endregion
|
||||
public override MsgGroups MsgGroup => MsgGroups.Command;
|
||||
|
||||
public override void ReadFromBuffer(NetIncomingMessage buffer)
|
||||
{
|
||||
@@ -50,13 +38,8 @@ namespace Content.Shared.Sandbox
|
||||
|
||||
protected sealed class MsgSandboxGiveAccess : NetMessage
|
||||
{
|
||||
#region REQUIRED
|
||||
public override MsgGroups MsgGroup => MsgGroups.Command;
|
||||
|
||||
public const MsgGroups GROUP = MsgGroups.Command;
|
||||
public const string NAME = nameof(MsgSandboxGiveAccess);
|
||||
public MsgSandboxGiveAccess(INetChannel channel) : base(NAME, GROUP) { }
|
||||
|
||||
#endregion
|
||||
public override void ReadFromBuffer(NetIncomingMessage buffer)
|
||||
{
|
||||
}
|
||||
@@ -69,13 +52,8 @@ namespace Content.Shared.Sandbox
|
||||
|
||||
protected sealed class MsgSandboxGiveAghost : NetMessage
|
||||
{
|
||||
#region REQUIRED
|
||||
public override MsgGroups MsgGroup => MsgGroups.Command;
|
||||
|
||||
public const MsgGroups GROUP = MsgGroups.Command;
|
||||
public const string NAME = nameof(MsgSandboxGiveAghost);
|
||||
public MsgSandboxGiveAghost(INetChannel channel) : base(NAME, GROUP) { }
|
||||
|
||||
#endregion
|
||||
public override void ReadFromBuffer(NetIncomingMessage buffer)
|
||||
{
|
||||
}
|
||||
@@ -88,13 +66,8 @@ namespace Content.Shared.Sandbox
|
||||
|
||||
protected sealed class MsgSandboxSuicide : NetMessage
|
||||
{
|
||||
#region REQUIRED
|
||||
public override MsgGroups MsgGroup => MsgGroups.Command;
|
||||
|
||||
public const MsgGroups GROUP = MsgGroups.Command;
|
||||
public const string NAME = nameof(MsgSandboxSuicide);
|
||||
public MsgSandboxSuicide(INetChannel channel) : base(NAME, GROUP) { }
|
||||
|
||||
#endregion
|
||||
public override void ReadFromBuffer(NetIncomingMessage buffer)
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user