Esempio n. 1
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.ReadEncodedInt();

            m_Quest = QuestReader.Type(reader);
        }
Esempio n. 2
0
        public static void OnLoad()
        {
            Persistence.Deserialize(
                FilePath,
                reader =>
            {
                int version = reader.ReadInt();

                int count = reader.ReadInt();
                for (int i = 0; i < count; i++)
                {
                    PlayerMobile pm = reader.ReadMobile() as PlayerMobile;

                    List <BaseQuest> quests = QuestReader.Quests(reader, pm);

                    if (pm != null)
                    {
                        QuestData[pm] = quests;
                    }
                }

                count = reader.ReadInt();
                for (int i = 0; i < count; i++)
                {
                    PlayerMobile pm = reader.ReadMobile() as PlayerMobile;

                    Dictionary <QuestChain, BaseChain> dic = QuestReader.Chains(reader);

                    if (pm != null)
                    {
                        ChainData[pm] = dic;
                    }
                }

                TierQuestInfo.Load(reader);
            });
        }