mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-09-03 18:47:10 +02:00
* Implement hot reloading for entity prototypes * Implement automatic prototype hot-reloading * Merge fixes * Add yaml hot reloading and a message to notify the client * Add reloading only changed files, remove cooldown, add retries and remove IPrototype * Remove reload command * Make the client listen for reloads instead and only when focused * Fix errors * Only queue a reload when the queue has items in it * Make fails after 10 retries log instead of throw if reloading Co-authored-by: Jackson Lewis <inquisitivepenguin@protonmail.com>
40 lines
1.1 KiB
C#
40 lines
1.1 KiB
C#
using Robust.Server.Player;
|
|
|
|
namespace Robust.Server.Console
|
|
{
|
|
internal sealed class ConGroupController : IConGroupController
|
|
{
|
|
public IConGroupControllerImplementation? Implementation { get; set; }
|
|
|
|
public bool CanCommand(IPlayerSession session, string cmdName)
|
|
{
|
|
return Implementation?.CanCommand(session, cmdName) ?? false;
|
|
}
|
|
|
|
public bool CanViewVar(IPlayerSession session)
|
|
{
|
|
return Implementation?.CanViewVar(session) ?? false;
|
|
}
|
|
|
|
public bool CanAdminPlace(IPlayerSession session)
|
|
{
|
|
return Implementation?.CanAdminPlace(session) ?? false;
|
|
}
|
|
|
|
public bool CanScript(IPlayerSession session)
|
|
{
|
|
return Implementation?.CanScript(session) ?? false;
|
|
}
|
|
|
|
public bool CanAdminMenu(IPlayerSession session)
|
|
{
|
|
return Implementation?.CanAdminMenu(session) ?? false;
|
|
}
|
|
|
|
public bool CanAdminReloadPrototypes(IPlayerSession session)
|
|
{
|
|
return Implementation?.CanAdminReloadPrototypes(session) ?? false;
|
|
}
|
|
}
|
|
}
|