Files
KOF/Assets/Plugins/ThirdParty/NaughtyAttributes/Scripts/Editor/CodeGeneration/FieldDrawerDatabase.cs
2025-07-02 15:13:26 +08:00

34 lines
848 B
C#

// This class is auto generated
using System;
using System.Collections.Generic;
namespace NaughtyAttributes.Editor
{
public static class FieldDrawerDatabase
{
private static Dictionary<Type, FieldDrawer> drawersByAttributeType;
static FieldDrawerDatabase()
{
drawersByAttributeType = new Dictionary<Type, FieldDrawer>();
drawersByAttributeType[typeof(ShowNonSerializedFieldAttribute)] = new ShowNonSerializedFieldFieldDrawer();
}
public static FieldDrawer GetDrawerForAttribute(Type attributeType)
{
FieldDrawer drawer;
if (drawersByAttributeType.TryGetValue(attributeType, out drawer))
{
return drawer;
}
else
{
return null;
}
}
}
}