Tri-Inspector/Editor/TriGroupDrawer.cs

23 lines
676 B
C#
Raw Permalink Normal View History

2021-12-07 10:20:36 -05:00
using System;
using JetBrains.Annotations;
using TriInspector.Elements;
namespace TriInspector
{
public abstract class TriGroupDrawer
{
public abstract TriPropertyCollectionBaseElement CreateElementInternal(Attribute attribute);
}
public abstract class TriGroupDrawer<TAttribute> : TriGroupDrawer
where TAttribute : Attribute
{
public sealed override TriPropertyCollectionBaseElement CreateElementInternal(Attribute attribute)
{
return CreateElement((TAttribute) attribute);
}
[PublicAPI]
public abstract TriPropertyCollectionBaseElement CreateElement(TAttribute attribute);
}
}