Beispiel #1
0
        public override Definition ParseMain(BinaryReader f, int RecNo)
        {
            if (RConfig.Instance.DatVersionAsEnum >= DatVersion.Freya)
            {
                // var info = new SkillgrpInfo_Freya();
                // info = (SkillgrpInfo_Freya)base.ReadFieldValue(f, info, "skill_id", "skill_level");
                // info = (SkillgrpInfo_Freya)base.ReadFieldValue(f, info, "UNK_0");
                // info = (SkillgrpInfo_Freya)base.ReadFieldValue(f, info, "oper_type", "enchant_type2");
                // ret = info;

                return(base.ParseMain(f, RecNo));
            }
            else if (RConfig.Instance.DatVersionAsEnum >= DatVersion.Gracia_Plus__Epilogue)
            {
                //var info = new SkillgrpInfo_Gracia_Plus();
                //info = (SkillgrpInfo_Gracia_Plus) base.ReadFieldValue(f, info, "skill_id", "skill_level");
                //info = (SkillgrpInfo_Gracia_Plus) base.ReadFieldValue(f, info, "UNK_0");
                //info = (SkillgrpInfo_Gracia_Plus) base.ReadFieldValue(f, info, "oper_type", "UNK_3");

                return(base.ParseMain(f, RecNo));
            }
            else if (RConfig.Instance.DatVersionAsEnum >= DatVersion.Gracia_Final)
            {
                var info = new SkillgrpInfo_CT1();
                info = (SkillgrpInfo_CT1)base.ReadFieldValue(f, info, "skill_id", "skill_level");

                if (RConfig.Instance.DatVersionAsEnum >= DatVersion.HellBound)
                {
                    info = (SkillgrpInfo_CT1)base.ReadFieldValue(f, info, "UNK_0");
                }

                info = (SkillgrpInfo_CT1)base.ReadFieldValue(f, info, "oper_type", "UNK_3");
                return(info);
            }
            else
            {
                var info = new SkillgrpInfo();
                info = (SkillgrpInfo)base.ReadFieldValue(f, info, "skill_id", "extra_eff");
                if (RConfig.Instance.DatVersionAsEnum >= DatVersion.C4)
                {
                    info = (SkillgrpInfo)base.ReadFieldValue(f, info, "is_ench", "UNK_1");
                }
                return(info);
            }
        }
Beispiel #2
0
        public override Definition ParseMain(BinaryReader f, int RecNo)
        {
            if (RConfig.Instance.DatVersionAsEnum >= DatVersion.Freya)
            {
               // var info = new SkillgrpInfo_Freya();
               // info = (SkillgrpInfo_Freya)base.ReadFieldValue(f, info, "skill_id", "skill_level");
               // info = (SkillgrpInfo_Freya)base.ReadFieldValue(f, info, "UNK_0");
               // info = (SkillgrpInfo_Freya)base.ReadFieldValue(f, info, "oper_type", "enchant_type2");
               // ret = info;

               return base.ParseMain(f, RecNo);
            }
            else if (RConfig.Instance.DatVersionAsEnum >= DatVersion.Gracia_Plus__Epilogue)
            {
                //var info = new SkillgrpInfo_Gracia_Plus();
                //info = (SkillgrpInfo_Gracia_Plus) base.ReadFieldValue(f, info, "skill_id", "skill_level");
                //info = (SkillgrpInfo_Gracia_Plus) base.ReadFieldValue(f, info, "UNK_0");
                //info = (SkillgrpInfo_Gracia_Plus) base.ReadFieldValue(f, info, "oper_type", "UNK_3");

                return base.ParseMain(f, RecNo);
            }
            else if (RConfig.Instance.DatVersionAsEnum >= DatVersion.Gracia_Final)
            {
                var info = new SkillgrpInfo_CT1();
                info = (SkillgrpInfo_CT1) base.ReadFieldValue(f, info, "skill_id", "skill_level");

                if (RConfig.Instance.DatVersionAsEnum >= DatVersion.HellBound)
                    info = (SkillgrpInfo_CT1) base.ReadFieldValue(f, info, "UNK_0");

                info = (SkillgrpInfo_CT1) base.ReadFieldValue(f, info, "oper_type", "UNK_3");
                return info;
            }
            else
            {
                var info = new SkillgrpInfo();
                info = (SkillgrpInfo) base.ReadFieldValue(f, info, "skill_id", "extra_eff");
                if (RConfig.Instance.DatVersionAsEnum >= DatVersion.C4)
                    info = (SkillgrpInfo) base.ReadFieldValue(f, info, "is_ench", "UNK_1");
                return info;
            }
        }