Tri-Inspector/Editor/TriPropertyHideProcessor.cs

25 lines
628 B
C#
Raw Normal View History

using System;
using JetBrains.Annotations;
namespace TriInspector
{
public abstract class TriPropertyHideProcessor
{
internal Attribute RawAttribute { get; set; }
[PublicAPI]
public virtual void Initialize(TriPropertyDefinition propertyDefinition)
{
}
[PublicAPI]
public abstract bool IsHidden(TriProperty property);
}
public abstract class TriPropertyHideProcessor<TAttribute> : TriPropertyHideProcessor
where TAttribute : HideBaseAttribute
{
2022-05-11 13:28:20 -04:00
[PublicAPI]
public TAttribute Attribute => (TAttribute) RawAttribute;
}
}