您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
34 行
899 B
34 行
899 B
// This class is auto generated
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace NaughtyAttributes.Editor
|
|
{
|
|
public static class PropertyMetaDatabase
|
|
{
|
|
private static Dictionary<Type, PropertyMeta> metasByAttributeType;
|
|
|
|
static PropertyMetaDatabase()
|
|
{
|
|
metasByAttributeType = new Dictionary<Type, PropertyMeta>();
|
|
metasByAttributeType[typeof(InfoBoxAttribute)] = new InfoBoxPropertyMeta();
|
|
metasByAttributeType[typeof(OnValueChangedAttribute)] = new OnValueChangedPropertyMeta();
|
|
|
|
}
|
|
|
|
public static PropertyMeta GetMetaForAttribute(Type attributeType)
|
|
{
|
|
PropertyMeta meta;
|
|
if (metasByAttributeType.TryGetValue(attributeType, out meta))
|
|
{
|
|
return meta;
|
|
}
|
|
else
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|