mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
43 lines
1.3 KiB
C#
43 lines
1.3 KiB
C#
using Robust.Shared.Player;
|
|
using Robust.Shared.Toolshed;
|
|
using Robust.Shared.Toolshed.Errors;
|
|
|
|
namespace Robust.Server.Console
|
|
{
|
|
internal sealed class ConGroupController : IConGroupController, IPermissionController
|
|
{
|
|
public IConGroupControllerImplementation? Implementation { get; set; }
|
|
|
|
public bool CanCommand(ICommonSession session, string cmdName)
|
|
{
|
|
return Implementation?.CanCommand(session, cmdName) ?? false;
|
|
}
|
|
|
|
public bool CanAdminPlace(ICommonSession session)
|
|
{
|
|
return Implementation?.CanAdminPlace(session) ?? false;
|
|
}
|
|
|
|
public bool CanScript(ICommonSession session)
|
|
{
|
|
return Implementation?.CanScript(session) ?? false;
|
|
}
|
|
|
|
public bool CanAdminMenu(ICommonSession session)
|
|
{
|
|
return Implementation?.CanAdminMenu(session) ?? false;
|
|
}
|
|
|
|
public bool CanAdminReloadPrototypes(ICommonSession session)
|
|
{
|
|
return Implementation?.CanAdminReloadPrototypes(session) ?? false;
|
|
}
|
|
|
|
public bool CheckInvokable(CommandSpec command, ICommonSession? user, out IConError? error)
|
|
{
|
|
error = null;
|
|
return Implementation?.CheckInvokable(command, user, out error) ?? false;
|
|
}
|
|
}
|
|
}
|