WriteStrings() public méthode

public WriteStrings ( string v ) : void
v string
Résultat void
Exemple #1
0
 public void Pack(StreamPacker sp)
 {
     sp.WriteString(objectName);
     sp.WriteString(method);
     sp.WriteStrings(paramaters);
     sp.WriteBool(assignment);
 }
Exemple #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");
    }
Exemple #3
0
 public void Pack(StreamPacker sp)
 {
     sp.WriteString(objectName);
     sp.WriteString(method);
     sp.WriteStrings(paramaters);
     sp.WriteBool(assignment);
 }
    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");
    }