WriteStrings() public method

public WriteStrings ( string v ) : void
v string
return void
Ejemplo n.º 1
0
 public void Pack(StreamPacker sp)
 {
     sp.WriteString(objectName);
     sp.WriteString(method);
     sp.WriteStrings(paramaters);
     sp.WriteBool(assignment);
 }
Ejemplo n.º 2
0
    public static void Save(StreamPacker sp)
    {
        // Pack all quests
        List <Quest> quests = Parley.GetInstance().GetCompletedQuests();

        sp.WriteInt(quests.Count);
        foreach (Quest q in quests)
        {
            PackQuest(sp, q);
        }

        quests = Parley.GetInstance().GetCurrentQuests();
        sp.WriteInt(quests.Count);
        foreach (Quest q in quests)
        {
            PackQuest(sp, q);
        }
        sp.WriteString("Pack1");

        // Pack all events
        HashSet <string> questEvents = Parley.GetInstance().GetQuestEventSet();

        string[] allEvents = new string[questEvents.Count];
        int      c         = 0;

        foreach (string s in questEvents)
        {
            allEvents[c++] = s;
        }
        sp.WriteStrings(allEvents);

        sp.WriteString("Pack2");

        // Pack all active quest events
        sp.WriteInt(Parley.GetInstance().GetActiveEvents().Count);
        foreach (string s in Parley.GetInstance().GetActiveEvents())
        {
            sp.WriteString(s);
        }
        sp.WriteString("Pack3");
    }
Ejemplo n.º 3
0
 public void Pack(StreamPacker sp)
 {
     sp.WriteString(objectName);
     sp.WriteString(method);
     sp.WriteStrings(paramaters);
     sp.WriteBool(assignment);
 }
Ejemplo n.º 4
0
    public static void Save(StreamPacker sp)
    {
        // Pack all quests
        List<Quest> quests=Parley.GetInstance().GetCompletedQuests();
        sp.WriteInt(quests.Count);
        foreach(Quest q in quests){
            PackQuest(sp,q);
        }

        quests=Parley.GetInstance().GetCurrentQuests();
        sp.WriteInt(quests.Count);
        foreach(Quest q in quests){
            PackQuest(sp,q);
        }
        sp.WriteString("Pack1");

        // Pack all events
        HashSet<string> questEvents=Parley.GetInstance().GetQuestEventSet();
        string[] allEvents=new string[questEvents.Count];
        int c=0;
        foreach (string s in questEvents){
            allEvents[c++]=s;
        }
        sp.WriteStrings(allEvents);

        sp.WriteString("Pack2");

        // Pack all active quest events
        sp.WriteInt(Parley.GetInstance().GetActiveEvents().Count);
        foreach (string s in Parley.GetInstance().GetActiveEvents()){
            sp.WriteString(s);
        }
        sp.WriteString("Pack3");
    }