Change: rename attributes

This commit is contained in:
AnnulusGames 2024-02-17 12:13:14 +09:00
parent 730ce9de24
commit 8e0d608191
2 changed files with 5 additions and 5 deletions

View File

@ -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);
}

View File

@ -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 { }
}