예제 #1
0
        public override Definition ParseMain(BinaryReader f, int RecNo)
        {
            var info = new SkillNameInfo();
            info = (SkillNameInfo) ReadFieldValue(f, info, "id", "description");
            if (RConfig.Instance.DatVersionAsEnum >= DatVersion.C5)
                info = (SkillNameInfo) ReadFieldValue(f, info, "desc_add1", "desc_add2");

            String devString = " (id: " + info.Id + "; level: " + info.Level + ")";

            if (RConfig.Instance.DevelopMode && !info.Name.EndsWith(devString))
            {
                info.Name = info.Name + devString;
            }
            else if (!RConfig.Instance.DevelopMode && info.Name.EndsWith(devString))
            {
                info.Name = info.Name.Replace(devString, "");
            }

            return info;
        }
예제 #2
0
        public override Definition ParseMain(BinaryReader f, int RecNo)
        {
            var info = new SkillNameInfo();

            info = (SkillNameInfo)ReadFieldValue(f, info, "id", "description");
            if (RConfig.Instance.DatVersionAsEnum >= DatVersion.C5)
            {
                info = (SkillNameInfo)ReadFieldValue(f, info, "desc_add1", "desc_add2");
            }

            String devString = " (id: " + info.Id + "; level: " + info.Level + ")";

            if (RConfig.Instance.DevelopMode && !info.Name.EndsWith(devString))
            {
                info.Name = info.Name + devString;
            }
            else if (!RConfig.Instance.DevelopMode && info.Name.EndsWith(devString))
            {
                info.Name = info.Name.Replace(devString, "");
            }

            return(info);
        }