예제 #1
0
        private static string GetPointsObjName(EClass pClass)
        {
            string prefix = pClass.ToString();
            string suffix = "Points";

            return(prefix + suffix);
        }
예제 #2
0
        /// <summary>
        /// Converts the class from eAs system to the client system
        /// </summary>
        /// <param name="cls"></param>
        /// <returns></returns>
        public static EClientClass Convert(this EClass cls)
        {
            string       memberName  = cls.ToString();
            EClientClass clientClass = (EClientClass)Enum.Parse(typeof(EClientClass), memberName);

            return(clientClass);
        }
예제 #3
0
파일: BankZone.cs 프로젝트: andreyV512/rag
 public override string ToString()
 {
     return(base.ToString() + string.Format("Level={0} {1} length={2}",
                                            Level == null?"null":Level.Value.ToString(),
                                            RClass.ToString(),
                                            Length.ToString()
                                            ));
 }
예제 #4
0
        public static string ToName(this EClass Class)
        {
            switch (Class)
            {
            case EClass.Archer_Elf:
                return("Bogenschütze (Elf)");

            case EClass.Mage_Elf:
                return("Magus (Elf)");

            case EClass.Ranger_Elf:
                return("Waldläufer (Elf)");

            case EClass.Defender_Human:
                return("Verteidiger (Mensch)");

            case EClass.Fighter_Human:
                return("Kämpfer (Mensch)");

            case EClass.Priest_Human:
                return("Priester (Mensch)");

            case EClass.Assasin_Vail:
                return("Atentäter (Vail)");

            case EClass.Oracle_Vail:
                return("Orakel (Vail)");

            case EClass.Pagan_Vail:
                return("Heide (Vail)");

            case EClass.Warrior_Nordein:
                return("Krieger (Nordein)");

            case EClass.Guardian_Nordein:
                return("Wächter (Nordein)");

            case EClass.Hunter_Nordein:
                return("Jäger (Nordein)");

            default:
                return("UNK \"" + Class.ToString() + "\"");
            }
        }