Class IgnoreMemberAttribute
- Namespace
- Nautilus.Options.Attributes
- Assembly
- Nautilus.dll
Attribute used to signify the given property, field or method should be ignored when generating your mod options menu.
[AttributeUsage(AttributeTargets.Method|AttributeTargets.Property|AttributeTargets.Field, AllowMultiple = false)]
public sealed class IgnoreMemberAttribute : Attribute, _Attribute
- Inheritance
-
IgnoreMemberAttribute
- Implements
- Inherited Members
- Extension Methods
Examples
using Nautilus.Json;
using Nautilus.Options;
[Menu("My Options Menu")]
public class Config : ConfigFile
{
[Button("My Cool Button)]
public static void MyCoolButton(object sender, ButtonClickedEventArgs e)
{
Logger.Log(Logger.Level.Info, "Button was clicked!");
Logger.Log(Logger.Level.Info, e.Id.ToString());
}
[IgnoreMember]
public int FieldNotDisplayedInMenu;
}
Remarks
By default, all members are ignored unless either they are decorated with a ModOptionAttribute derivative,
or the MemberProcessing property is set to Implicit.