コード例 #1
0
        public override Definition ParseMain(BinaryReader f, int RecNo)
        {
            Definition info;

            if (RConfig.Instance.DatVersionAsEnum >= DatVersion.Freya)
            {
                var dat = new QuestNameInfo_Freya();
                //dat.InitFieldValues();

                dat  = (QuestNameInfo_Freya)base.ReadFieldValue(f, dat, "id", "get_item_in_quest");
                dat  = (QuestNameInfo_Freya)base.ReadFieldValue(f, dat, "UNK_1", "short_description");
                dat  = (QuestNameInfo_Freya)base.ReadFieldValue(f, dat, "req_class", "tab7");
                info = dat;
            }
            else if (RConfig.Instance.DatVersionAsEnum >= DatVersion.Gracia_Final)
            {
                var dat = new QuestNameInfo_Gracia_Final();
                //dat.InitFieldValues();

                dat  = (QuestNameInfo_Gracia_Final)base.ReadFieldValue(f, dat, "id", "get_item_in_quest");
                dat  = (QuestNameInfo_Gracia_Final)base.ReadFieldValue(f, dat, "UNK_1", "short_description");
                dat  = (QuestNameInfo_Gracia_Final)base.ReadFieldValue(f, dat, "req_class", "reward_item_counts");
                info = dat;
            }
            else
            {
                var dat = new QuestNameInfo();
                // dat.InitFieldValues();

                dat = (QuestNameInfo)base.ReadFieldValue(f, dat, "id", "get_item_in_quest");
                if (RConfig.Instance.DatVersionAsEnum >= DatVersion.C4)
                {
                    dat = (QuestNameInfo)base.ReadFieldValue(f, dat, "UNK_1", "short_description");
                }
                if (RConfig.Instance.DatVersionAsEnum >= DatVersion.C5)
                {
                    dat = (QuestNameInfo)base.ReadFieldValue(f, dat, "req_class", "area_id");
                }
                info = dat;
            }
            return(info);
        }
コード例 #2
0
ファイル: QuestName.cs プロジェクト: VISTALL/path-editor
        public override Definition ParseMain(BinaryReader f, int RecNo)
        {
            Definition info;
            if (RConfig.Instance.DatVersionAsEnum >= DatVersion.Freya)
            {
                var dat = new QuestNameInfo_Freya();
                //dat.InitFieldValues();

                dat = (QuestNameInfo_Freya) base.ReadFieldValue(f, dat, "id", "get_item_in_quest");
                dat = (QuestNameInfo_Freya) base.ReadFieldValue(f, dat, "UNK_1", "short_description");
                dat = (QuestNameInfo_Freya)base.ReadFieldValue(f, dat, "req_class", "tab7");
                info = dat;
            }
            else if (RConfig.Instance.DatVersionAsEnum >= DatVersion.Gracia_Final)
            {
                var dat = new QuestNameInfo_Gracia_Final();
                //dat.InitFieldValues();

                dat = (QuestNameInfo_Gracia_Final) base.ReadFieldValue(f, dat, "id", "get_item_in_quest");
                dat = (QuestNameInfo_Gracia_Final) base.ReadFieldValue(f, dat, "UNK_1", "short_description");
                dat = (QuestNameInfo_Gracia_Final)base.ReadFieldValue(f, dat, "req_class", "reward_item_counts");
                info = dat;
            }
            else
            {
                var dat = new QuestNameInfo();
               // dat.InitFieldValues();

                dat = (QuestNameInfo) base.ReadFieldValue(f, dat, "id", "get_item_in_quest");
                if (RConfig.Instance.DatVersionAsEnum >= DatVersion.C4)
                    dat = (QuestNameInfo) base.ReadFieldValue(f, dat, "UNK_1", "short_description");
                if (RConfig.Instance.DatVersionAsEnum >= DatVersion.C5)
                    dat = (QuestNameInfo) base.ReadFieldValue(f, dat, "req_class", "area_id");
                info = dat;
            }
            return info;
        }