Ejemplo n.º 1
0
        public void Serialize(GenericWriter writer)
        {
            // Version info is written in MLQuestPersistence.Serialize

            writer.WriteMobile <PlayerMobile>(m_Owner);
            writer.Write(m_QuestInstances.Count);

            foreach (MLQuestInstance instance in m_QuestInstances)
            {
                instance.Serialize(writer);
            }

            writer.Write(m_DoneQuests.Count);

            foreach (MLDoneQuestInfo info in m_DoneQuests)
            {
                info.Serialize(writer);
            }

            writer.Write(m_ChainOffers.Count);

            foreach (MLQuest quest in m_ChainOffers)
            {
                MLQuestSystem.WriteQuestRef(writer, quest);
            }

            writer.WriteEncodedInt((int)m_Flags);
        }
Ejemplo n.º 2
0
        public void Serialize(GenericWriter writer)
        {
            // Version info is written in MLQuestPersistence.Serialize

            MLQuestSystem.WriteQuestRef(writer, m_Quest);

            if (m_Quester == null || m_Quester.Deleted)
            {
                writer.Write(Serial.MinusOne);
            }
            else
            {
                writer.Write(m_Quester.Serial);
            }

            writer.Write(ClaimReward);
            writer.Write(m_ObjectiveInstances.Length);

            foreach (BaseObjectiveInstance objInstance in m_ObjectiveInstances)
            {
                objInstance.Serialize(writer);
            }
        }
Ejemplo n.º 3
0
 public static void Serialize(GenericWriter writer, MLQuest quest)
 {
     MLQuestSystem.WriteQuestRef(writer, quest);
     writer.Write(quest.Version);
 }
Ejemplo n.º 4
0
 public void Serialize(GenericWriter writer)
 {
     MLQuestSystem.WriteQuestRef(writer, m_Quest);
     writer.Write(m_NextAvailable);
 }