Tri-Inspector/Editor/TriPropertyDisableProcessor.cs

20 lines
532 B
C#
Raw Permalink 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
2022-08-03 04:18:28 -04:00
where TAttribute : Attribute
{
2022-05-11 13:28:20 -04:00
[PublicAPI]
public TAttribute Attribute => (TAttribute) RawAttribute;
}
}