Ejemplo n.º 1
0
 public void Unpack(StreamUnpacker sp)
 {
     objectName = sp.ReadString();
     method     = sp.ReadString();
     paramaters = sp.ReadStrings();
     assignment = sp.ReadBool();
 }
Ejemplo n.º 2
0
    public static void Load(StreamUnpacker su)
    {
        // Reset Scene quests
        Parley.GetInstance().LoadSceneQuests();

        int n = su.ReadInt();

        Parley.GetInstance().GetCompletedQuests().Clear();
        for (int t = 0; t < n; t++)
        {
            Parley.GetInstance().GetCompletedQuests().Add(UnpackQuest(su));
        }

        n = su.ReadInt();
        Parley.GetInstance().GetCurrentQuests().Clear();
        for (int t = 0; t < n; t++)
        {
            Parley.GetInstance().GetCurrentQuests().Add(UnpackQuest(su));
        }

        // Bring quests in line
        Parley.GetInstance().SyncQuests();

        Debug.LogError(su.ReadString());

        // Unpack all events
        string[]         allEvents   = su.ReadStrings();
        HashSet <string> questEvents = Parley.GetInstance().GetQuestEventSet();

        questEvents.Clear();
        foreach (string s in allEvents)
        {
            questEvents.Add(s);
        }

        Debug.LogError(su.ReadString());

        int activeEvents = su.ReadInt();

        Parley.GetInstance().GetActiveEvents().Clear();
        for (int t = 0; t < activeEvents; t++)
        {
            Parley.GetInstance().GetActiveEvents().Add(su.ReadString());
        }
        Debug.LogError(su.ReadString());
    }
Ejemplo n.º 3
0
    public static void Load(StreamUnpacker su)
    {
        // Reset Scene quests
        Parley.GetInstance().LoadSceneQuests();

        int n=su.ReadInt();
        Parley.GetInstance().GetCompletedQuests().Clear();
        for (int t=0;t<n;t++){
            Parley.GetInstance().GetCompletedQuests().Add(UnpackQuest(su));
        }

        n=su.ReadInt();
        Parley.GetInstance().GetCurrentQuests().Clear();
        for (int t=0;t<n;t++){
            Parley.GetInstance().GetCurrentQuests().Add(UnpackQuest(su));
        }

        // Bring quests in line
        Parley.GetInstance().SyncQuests();

        Debug.LogError(su.ReadString());

        // Unpack all events
        string[] allEvents=su.ReadStrings();
        HashSet<string> questEvents=Parley.GetInstance().GetQuestEventSet();
        questEvents.Clear();
        foreach (string s in allEvents){
            questEvents.Add(s);
        }

        Debug.LogError(su.ReadString());

        int activeEvents=su.ReadInt();
        Parley.GetInstance().GetActiveEvents().Clear();
        for (int t=0;t<activeEvents;t++){
            Parley.GetInstance().GetActiveEvents().Add(su.ReadString());
        }
        Debug.LogError(su.ReadString());
    }
Ejemplo n.º 4
0
 public void Unpack(StreamUnpacker sp)
 {
     objectName=sp.ReadString();
     method=sp.ReadString();
     paramaters=sp.ReadStrings();
     assignment=sp.ReadBool();
 }