예제 #1
0
 public static Gender ToGender(this ScriptEnum val)
 {
     if (val == null)
     {
         return(Gender.Male);
     }
     return(ToGender(val.ToString()));
 }
예제 #2
0
 public static ItemBindingRule ToBindingRule(this ScriptEnum val)
 {
     if (val == null)
     {
         return(ToBindingRule(String.Empty));
     }
     return(ToBindingRule(val.ToString()));
 }
예제 #3
0
 public static QuestDifficulty ToQuestDifficulty(this ScriptEnum val)
 {
     if (val == null)
     {
         return(ToQuestDifficulty(String.Empty));
     }
     return(ToQuestDifficulty(val.ToString()));
 }
예제 #4
0
 public static Workstation ToWorkstation(this ScriptEnum val)
 {
     if (val == null)
     {
         return(ToWorkstation(String.Empty));
     }
     return(ToWorkstation(val.ToString()));
 }
예제 #5
0
 public static Stat ToStat(this ScriptEnum val)
 {
     if (val == null)
     {
         return(ToStat(String.Empty));
     }
     return(ToStat(val.ToString()));
 }
예제 #6
0
 public static ItemQuality ToItemQuality(this ScriptEnum val)
 {
     if (val == null)
     {
         return(ToItemQuality(String.Empty));
     }
     return(ToItemQuality(val.ToString()));
 }
예제 #7
0
 public static EnhancementSubCategory ToEnhancementSubCategory(this ScriptEnum val)
 {
     if (val == null)
     {
         return(ToEnhancementSubCategory(String.Empty));
     }
     return(ToEnhancementSubCategory(val.ToString()));
 }
예제 #8
0
 public static TargetRule ToTargetRule(this ScriptEnum val)
 {
     if (val == null)
     {
         return(TargetRule.Self);
     }
     return(val.ToString().ToTargetRule());
 }
예제 #9
0
 public static SlotType ToSlotType(this ScriptEnum val)
 {
     if (val == null)
     {
         return(ToSlotType(String.Empty));
     }
     return(ToSlotType(val.ToString()));
 }
예제 #10
0
 public static GiftInterest ToGiftInterest(this ScriptEnum val)
 {
     if (val == null)
     {
         return(ToGiftInterest(String.Empty));
     }
     return(ToGiftInterest(val.ToString()));
 }
예제 #11
0
 public static SchematicResearchChance ToSchematicResearchChance(this ScriptEnum val)
 {
     if (val == null)
     {
         return(ToSchematicResearchChance(String.Empty));
     }
     return(ToSchematicResearchChance(val.ToString()));
 }
예제 #12
0
 public static GiftRank ToGiftRank(this ScriptEnum val)
 {
     if (val == null)
     {
         return(ToGiftRank(String.Empty));
     }
     return(ToGiftRank(val.ToString()));
 }
예제 #13
0
 public static ProfessionSubtype ToProfessionSubtype(this ScriptEnum val)
 {
     if (val == null)
     {
         return(ToProfessionSubtype(String.Empty));
     }
     return(ToProfessionSubtype(val.ToString()));
 }
예제 #14
0
        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());
            }
        }