diff --git a/TShockAPI/Permissions.cs b/TShockAPI/Permissions.cs index d4fb9229..418cfae5 100644 --- a/TShockAPI/Permissions.cs +++ b/TShockAPI/Permissions.cs @@ -23,8 +23,12 @@ using System.IO; using System.Linq; using System.Text; +// Since the permission nodes have annotations that say what they are, we don't need XML comments. +#pragma warning disable 1591 + namespace TShockAPI { + /// Contains the permission nodes used in TShock. public static class Permissions { // tshock.account nodes @@ -400,6 +404,7 @@ namespace TShockAPI [Description("Player can see advanced information about any user account.")] public static readonly string advaccountinfo = "tshock.accountinfo.details"; + /// /// Lists all commands associated with a given permission /// @@ -448,19 +453,4 @@ namespace TShockAPI File.WriteAllText("PermissionsDescriptions.txt", sb.ToString()); } } - - [AttributeUsage(AttributeTargets.Field, Inherited = false, AllowMultiple = false)] - public sealed class TodoAttribute : Attribute - { - public string Info { get; private set; } - - public TodoAttribute(string info) - { - Info = info; - } - - public TodoAttribute() - { - } - } } diff --git a/TShockAPI/Rest/RestPermissions.cs b/TShockAPI/Rest/RestPermissions.cs index f93951d6..8f74cd14 100644 --- a/TShockAPI/Rest/RestPermissions.cs +++ b/TShockAPI/Rest/RestPermissions.cs @@ -18,8 +18,12 @@ along with this program. If not, see . using System.ComponentModel; +// Since the permission nodes have annotations that say what they are, we don't need XML comments. +#pragma warning disable 1591 + namespace Rests { + /// Contains the REST permission nodes used in TShock. public static class RestPermissions { // tshock.rest.bans nodes