Esempio n. 1
0
 /// <summary>
 /// 根据名称获取枚举
 /// </summary>
 public static ActorRace GetRaceEnum(string name)
 {
     return((ActorRace)CStringEnum.Parse(typeof(ActorRace), name, true));
 }
Esempio n. 2
0
 /// <summary>
 /// 根据名称获取枚举
 /// </summary>
 public static ActorClass GetClassEnum(string name)
 {
     return((ActorClass)CStringEnum.Parse(typeof(ActorClass), name, true));
 }