예제 #1
0
 private static MemberInfo ForValue(RaceSpecies p)
 {
     return(typeof(RaceSpecies).GetField(Enum.GetName(typeof(RaceSpecies), p)));
 }
예제 #2
0
 public static Stats GetStats(RaceSpecies p)
 {
     return((Stats)Attribute.GetCustomAttribute(ForValue(p), typeof(Stats)));
 }