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
43
Runtime/Drawers/NamingAttribute.cs
Normal file
43
Runtime/Drawers/NamingAttribute.cs
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
using System;
|
||||
|
||||
namespace Module.Inspector
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
|
||||
public sealed class NamingAttribute : DrawerPropertyAttribute
|
||||
{
|
||||
public enum EPatternType : byte
|
||||
{
|
||||
/// <summary>
|
||||
/// Camel casing: thisIsCamelCasing
|
||||
/// </summary>
|
||||
CamelCasing,
|
||||
/// <summary>
|
||||
/// Pascal casing: ThisIsPascalCasing
|
||||
/// </summary>
|
||||
PascalCasing,
|
||||
/// <summary>
|
||||
/// Snake casing: this_is_snake_casing
|
||||
/// </summary>
|
||||
SnakeCasing,
|
||||
/// <summary>
|
||||
/// Snake casing: THIS_IS_SNAKE_CASING_WITH_ALL_CAPS
|
||||
/// </summary>
|
||||
SnakeCasingAllCaps,
|
||||
/// <summary>
|
||||
/// Kebab casing: this-is-kebab-casing
|
||||
/// </summary>
|
||||
KebabCasing,
|
||||
/// <summary>
|
||||
/// Kebab casing: THIS_IS_KEBAB_CASING_WITH_ALL_CAPS
|
||||
/// </summary>
|
||||
KebabCasingAllCaps
|
||||
}
|
||||
|
||||
public readonly EPatternType type;
|
||||
|
||||
public NamingAttribute(EPatternType type)
|
||||
{
|
||||
this.type = type;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue