static ColorScheme ()
{
foreach (var property in typeof(ColorScheme).GetProperties ()) {
var description = property.GetCustomAttributes (false).FirstOrDefault (p => p is ColorDescriptionAttribute) as ColorDescriptionAttribute;
if (description == null)
continue;
if (property.PropertyType == typeof (ChunkStyle)) {
textColors.Add (description.Name, new PropertyDecsription (property, description));
} else {
ambientColors.Add (description.Name, new PropertyDecsription (property, description));
}
}
}