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