Tri-Inspector/Editor/TriPropertyDisableProcessor.cs

20 lines
543 B
C#
Raw Normal View History

using System;
using JetBrains.Annotations;
namespace TriInspector
{
2022-06-03 08:16:23 -04:00
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
{
2022-05-11 13:28:20 -04:00
[PublicAPI]
public TAttribute Attribute => (TAttribute) RawAttribute;
}
}