mirror of
https://github.com/codewriter-packages/Tri-Inspector.git
synced 2025-01-22 08:18:49 -05:00
25 lines
642 B
C#
25 lines
642 B
C#
using System;
|
|
using JetBrains.Annotations;
|
|
|
|
namespace TriInspector
|
|
{
|
|
public abstract class TriPropertyDisableProcessor
|
|
{
|
|
internal Attribute RawAttribute { get; set; }
|
|
|
|
[PublicAPI]
|
|
public virtual void Initialize(TriPropertyDefinition propertyDefinition)
|
|
{
|
|
}
|
|
|
|
[PublicAPI]
|
|
public abstract bool IsDisabled(TriProperty property);
|
|
}
|
|
|
|
public abstract class TriPropertyDisableProcessor<TAttribute> : TriPropertyDisableProcessor
|
|
where TAttribute : DisableBaseAttribute
|
|
{
|
|
[PublicAPI]
|
|
public TAttribute Attribute => (TAttribute) RawAttribute;
|
|
}
|
|
} |