public static Gender ToGender(this ScriptEnum val) { if (val == null) { return(Gender.Male); } return(ToGender(val.ToString())); }
public static ItemBindingRule ToBindingRule(this ScriptEnum val) { if (val == null) { return(ToBindingRule(String.Empty)); } return(ToBindingRule(val.ToString())); }
public static QuestDifficulty ToQuestDifficulty(this ScriptEnum val) { if (val == null) { return(ToQuestDifficulty(String.Empty)); } return(ToQuestDifficulty(val.ToString())); }
public static Workstation ToWorkstation(this ScriptEnum val) { if (val == null) { return(ToWorkstation(String.Empty)); } return(ToWorkstation(val.ToString())); }
public static Stat ToStat(this ScriptEnum val) { if (val == null) { return(ToStat(String.Empty)); } return(ToStat(val.ToString())); }
public static ItemQuality ToItemQuality(this ScriptEnum val) { if (val == null) { return(ToItemQuality(String.Empty)); } return(ToItemQuality(val.ToString())); }
public static EnhancementSubCategory ToEnhancementSubCategory(this ScriptEnum val) { if (val == null) { return(ToEnhancementSubCategory(String.Empty)); } return(ToEnhancementSubCategory(val.ToString())); }
public static TargetRule ToTargetRule(this ScriptEnum val) { if (val == null) { return(TargetRule.Self); } return(val.ToString().ToTargetRule()); }
public static SlotType ToSlotType(this ScriptEnum val) { if (val == null) { return(ToSlotType(String.Empty)); } return(ToSlotType(val.ToString())); }
public static GiftInterest ToGiftInterest(this ScriptEnum val) { if (val == null) { return(ToGiftInterest(String.Empty)); } return(ToGiftInterest(val.ToString())); }
public static SchematicResearchChance ToSchematicResearchChance(this ScriptEnum val) { if (val == null) { return(ToSchematicResearchChance(String.Empty)); } return(ToSchematicResearchChance(val.ToString())); }
public static GiftRank ToGiftRank(this ScriptEnum val) { if (val == null) { return(ToGiftRank(String.Empty)); } return(ToGiftRank(val.ToString())); }
public static ProfessionSubtype ToProfessionSubtype(this ScriptEnum val) { if (val == null) { return(ToProfessionSubtype(String.Empty)); } return(ToProfessionSubtype(val.ToString())); }
public static EnhancementStationType ToEnhancementStationType(ScriptEnum val) { if (val == null) { return(EnhancementStationType.None); } switch (val.ToString()) { case "itmEnhancementStationTypeNone": return(EnhancementStationType.None); case "itmEnhancementStationTypeGeneral": return(EnhancementStationType.General); case "itmEnhancementStationTypeArmor": return(EnhancementStationType.Armor); case "itmEnhancementStationTypeLightsaber": return(EnhancementStationType.Lightsaber); case "itmEnhancementStationTypeBlaster": return(EnhancementStationType.Blaster); default: throw new InvalidOperationException("Unknown EnhancementStationType: " + val.ToString()); } }