* ogh * i should save my work * ogh * hhcdfhjbghshbxdfhghshc - lots of bugs in parsing still - invocation is a stub * expr parsing works * awawa * Saving work * Improve APIs a bit all around, add shortcuts. * awa * awa * AAAAAA * save work * Move shit to engine * lord * bql is kill * forgot the fucking bike rack * bql is kill for real * pjb will kill me * aughfhbdj * adgddf * gdsgvfvxshngfgh * b * hfsjhghj * a * tf you mean i have to document it * follow C# standards * Assorted cleanup and documentation pass, minor bugfix in ValueRefParser. * Start porting old commands, remove that pesky prefix in favor of integrating with the shell. * bw * Fix valueref up a bit, improve autocomplete for it. * awa * fix tests * git shut up * Arithmetic commands. * parse improvements * Update engine. --------- Co-authored-by: moonheart08 <moonheart08@users.noreply.github.com>
26 lines
799 B
C#
26 lines
799 B
C#
using Content.Shared.Administration;
|
|
using JetBrains.Annotations;
|
|
using Robust.Shared.Console;
|
|
|
|
namespace Content.Server.Administration
|
|
{
|
|
/// <summary>
|
|
/// Specifies that a command can only be executed by an admin with the specified flags.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// If this attribute is used multiple times, either attribute's flag sets can be used to get access.
|
|
/// </remarks>
|
|
/// <seealso cref="AnyCommandAttribute"/>
|
|
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = true)]
|
|
[MeansImplicitUse]
|
|
public sealed class AdminCommandAttribute : Attribute
|
|
{
|
|
public AdminCommandAttribute(AdminFlags flags)
|
|
{
|
|
Flags = flags;
|
|
}
|
|
|
|
public AdminFlags Flags { get; }
|
|
}
|
|
}
|