Files
tbd-station-14/Content.Shared/Sandbox/SharedSandboxManager.cs
Acruid ca4fd649fe Massive Namespace Cleanup (#3120)
* Engine namespace changes.

* Automated remove redundant using statements.

* Simplified Graphics namespace.

* Apparently the container system stores full type names in the map file.😞 This updates those names.

* API Changes to LocalizationManager.LoadCulture.

* Update submodule to v0.3.2
2021-02-11 01:13:03 -08:00

108 lines
3.0 KiB
C#

using Lidgren.Network;
using Robust.Shared.Network;
namespace Content.Shared.Sandbox
{
public abstract class SharedSandboxManager
{
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 bool SandboxAllowed { get; set; }
public override void ReadFromBuffer(NetIncomingMessage buffer)
{
SandboxAllowed = buffer.ReadBoolean();
}
public override void WriteToBuffer(NetOutgoingMessage buffer)
{
buffer.Write(SandboxAllowed);
}
}
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 void ReadFromBuffer(NetIncomingMessage buffer)
{
}
public override void WriteToBuffer(NetOutgoingMessage buffer)
{
}
}
protected sealed class MsgSandboxGiveAccess : NetMessage
{
#region REQUIRED
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)
{
}
public override void WriteToBuffer(NetOutgoingMessage buffer)
{
}
}
protected sealed class MsgSandboxGiveAghost : NetMessage
{
#region REQUIRED
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)
{
}
public override void WriteToBuffer(NetOutgoingMessage buffer)
{
}
}
protected sealed class MsgSandboxSuicide : NetMessage
{
#region REQUIRED
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)
{
}
public override void WriteToBuffer(NetOutgoingMessage buffer)
{
}
}
}
}