Ejemplo n.º 1
0
        private static void LoadPveCombatStyle(XElement elem, ref PveCombatStyle value)
        {
            switch (elem.Value.ToUpper()[0])
            {
            case 'N':
                value = PveCombatStyle.Normal;
                break;

            case 'D':
                value = PveCombatStyle.FarmingLowLevelMobs;
                break;

            case 'F':
                value = PveCombatStyle.FarmingLowLevelMobs;
                break;

            default:
                Shaman.Slog(
                    "config:  setting '{0}' invalid - expected pve combat style but read '{1}' - defaulting to '{2}'",
                    elem.Name,
                    elem.Value,
                    value
                    );
                break;
            }
        }
Ejemplo n.º 2
0
 private static void LoadPveCombatStyle(XElement elem, ref PveCombatStyle value)
 {
     switch (elem.Value.ToUpper()[0])
     {
         case 'N':
             value = PveCombatStyle.Normal;
             break;
         case 'D':
             value = PveCombatStyle.FarmingLowLevelMobs;
             break;
         case 'F':
             value = PveCombatStyle.FarmingLowLevelMobs;
             break;
         default:
             Shaman.Slog(
                 "config:  setting '{0}' invalid - expected pve combat style but read '{1}' - defaulting to '{2}'",
                 elem.Name,
                 elem.Value,
                 value
                 );
             break;
     }
 }