Tri-Inspector/Editor/TriPropertyDisableProcessor.cs
2022-06-03 15:27:09 +03:00

20 lines
543 B
C#

using System;
using JetBrains.Annotations;
namespace TriInspector
{
public abstract class TriPropertyDisableProcessor : TriPropertyExtension
{
internal Attribute RawAttribute { get; set; }
[PublicAPI]
public abstract bool IsDisabled(TriProperty property);
}
public abstract class TriPropertyDisableProcessor<TAttribute> : TriPropertyDisableProcessor
where TAttribute : DisableBaseAttribute
{
[PublicAPI]
public TAttribute Attribute => (TAttribute) RawAttribute;
}
}