Turn SandboxManager into a system (#6867)

This commit is contained in:
metalgearsloth
2022-02-24 11:00:30 +11:00
committed by GitHub
parent ec30db79f8
commit bee627ac6a
13 changed files with 193 additions and 267 deletions

View File

@@ -0,0 +1,28 @@
using Robust.Shared.Prototypes;
using Robust.Shared.Serialization;
namespace Content.Shared.Sandbox
{
public abstract class SharedSandboxSystem : EntitySystem
{
[Dependency] protected readonly IPrototypeManager PrototypeManager = default!;
[Serializable, NetSerializable]
protected sealed class MsgSandboxStatus : EntityEventArgs
{
public bool SandboxAllowed { get; set; }
}
[Serializable, NetSerializable]
protected sealed class MsgSandboxRespawn : EntityEventArgs {}
[Serializable, NetSerializable]
protected sealed class MsgSandboxGiveAccess : EntityEventArgs {}
[Serializable, NetSerializable]
protected sealed class MsgSandboxGiveAghost : EntityEventArgs {}
[Serializable, NetSerializable]
protected sealed class MsgSandboxSuicide : EntityEventArgs {}
}
}