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