mirror of
https://github.com/AnnulusGames/Alchemy.git
synced 2025-01-22 08:18:51 -05:00
Change: rename attributes
This commit is contained in:
parent
730ce9de24
commit
8e0d608191
@ -29,7 +29,7 @@ namespace Alchemy.Editor
|
||||
foreach (var target in targets)
|
||||
{
|
||||
foreach (var onEnableMethod in ReflectionHelper.GetAllMethodsIncludingBaseNonPublic(target.GetType())
|
||||
.Where(x => x.HasCustomAttribute<OnInspectorEnable>()))
|
||||
.Where(x => x.HasCustomAttribute<OnInspectorEnableAttribute>()))
|
||||
{
|
||||
onEnableMethod.Invoke(target, null);
|
||||
}
|
||||
@ -41,7 +41,7 @@ namespace Alchemy.Editor
|
||||
foreach (var target in targets)
|
||||
{
|
||||
foreach (var onEnableMethod in ReflectionHelper.GetAllMethodsIncludingBaseNonPublic(target.GetType())
|
||||
.Where(x => x.HasCustomAttribute<OnInspectorDisable>()))
|
||||
.Where(x => x.HasCustomAttribute<OnInspectorDisableAttribute>()))
|
||||
{
|
||||
onEnableMethod.Invoke(target, null);
|
||||
}
|
||||
|
@ -124,7 +124,7 @@ namespace Alchemy.Inspector
|
||||
Message = message;
|
||||
MessageType = messageType;
|
||||
}
|
||||
|
||||
|
||||
public string Message { get; }
|
||||
public HelpBoxMessageType MessageType { get; }
|
||||
}
|
||||
@ -190,8 +190,8 @@ namespace Alchemy.Inspector
|
||||
}
|
||||
|
||||
[AttributeUsage(AttributeTargets.Method)]
|
||||
public sealed class OnInspectorEnable : Attribute { }
|
||||
public sealed class OnInspectorEnableAttribute : Attribute { }
|
||||
|
||||
[AttributeUsage(AttributeTargets.Method)]
|
||||
public sealed class OnInspectorDisable : Attribute { }
|
||||
public sealed class OnInspectorDisableAttribute : Attribute { }
|
||||
}
|
Loading…
Reference in New Issue
Block a user