Renamed all attributes and drawers to have postfix of either Attribute or AttributeDrawer
This commit is contained in:
parent
81bac32538
commit
dc15bfec81
161 changed files with 265 additions and 265 deletions
24
Runtime/AccessModifiers/DisableMethodAttribute.cs
Normal file
24
Runtime/AccessModifiers/DisableMethodAttribute.cs
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
using System;
|
||||
|
||||
namespace Module.Inspector
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
|
||||
public sealed class DisableMethodAttribute : AccessModifierMethodAttribute
|
||||
{
|
||||
public readonly string fieldName;
|
||||
public readonly bool useFieldValue;
|
||||
public readonly object fieldValue;
|
||||
|
||||
public DisableMethodAttribute(string fieldName)
|
||||
{
|
||||
this.fieldName = fieldName;
|
||||
}
|
||||
|
||||
public DisableMethodAttribute(string fieldName, object fieldValue)
|
||||
{
|
||||
this.fieldName = fieldName;
|
||||
this.fieldValue = fieldValue;
|
||||
useFieldValue = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue