Ejemplo n.º 1
0
    /// <summary>
    /// use only in QuestUI.current.Save()
    /// </summary>
    /// <returns></returns>
    public static QuestStaticSerializer SaveStaticData()
    {
        QuestStaticSerializer qss = new QuestStaticSerializer();

        qss.questsCompletenessMask = questsCompletenessMask;
        return(qss);
    }
Ejemplo n.º 2
0
    public QuestStaticSerializer Save()
    {
        QuestStaticSerializer qss = Quest.SaveStaticData();

        qss.visibleQuests = new QuestSerializer[visibleQuests.Length];
        for (int i = 0; i < qss.visibleQuests.Length; i++)
        {
            if (visibleQuests[i] != null)
            {
                qss.visibleQuests[i] = visibleQuests[i].Save();
            }
            else
            {
                qss.visibleQuests[i] = null;
            }
        }
        return(qss);
    }
Ejemplo n.º 3
0
 public void Load(QuestStaticSerializer qss)
 {
     Quest.LoadStaticData(qss);
     visibleQuests = new Quest[questButtons.Length];
     for (int i = 0; i < qss.visibleQuests.Length; i++)
     {
         if (qss.visibleQuests[i] == null)
         {
             continue;
         }
         else
         {
             visibleQuests[i] = Quest.Load(qss.visibleQuests[i]);
         }
     }
     if (GetComponent <Image>().enabled)
     {
         PrepareBasicQuestWindow();
     }
 }
Ejemplo n.º 4
0
 /// <summary>
 /// use only on QuestUI.current.Load();
 /// </summary>
 /// <param name="qss"></param>
 public static void LoadStaticData(QuestStaticSerializer qss)
 {
     questsCompletenessMask = qss.questsCompletenessMask;
 }