This repository has been archived on 2024-11-03. You can view files and clone it, but cannot push or open issues or pull requests.
snakeinabox/Assets/NaughtyAttributes/Scripts/Editor/CodeGeneration/PropertyGrouperDatabase.cs
2020-07-09 11:41:01 -07:00

33 lines
856 B
C#

// This class is auto generated
using System;
using System.Collections.Generic;
namespace NaughtyAttributes.Editor
{
public static class PropertyGrouperDatabase
{
private static Dictionary<Type, PropertyGrouper> groupersByAttributeType;
static PropertyGrouperDatabase()
{
groupersByAttributeType = new Dictionary<Type, PropertyGrouper>();
groupersByAttributeType[typeof(BoxGroupAttribute)] = new BoxGroupPropertyGrouper();
}
public static PropertyGrouper GetGrouperForAttribute(Type attributeType)
{
PropertyGrouper grouper;
if (groupersByAttributeType.TryGetValue(attributeType, out grouper))
{
return grouper;
}
else
{
return null;
}
}
}
}