Esempio n. 1
0
 public void LoadSectionsFromString(SectionList sections, string dataString)
 {
     char[] separator = new char[] { ' ', '\n', '\r', '\t' };
     string[] strArray = dataString.Split(separator, StringSplitOptions.RemoveEmptyEntries);
     this.Sections.Clear();
     foreach (string str in strArray)
     {
         Section gameObject = sections.GetGameObject(int.Parse(str)) as Section;
         if (gameObject != null)
         {
             this.AddSection(gameObject);
         }
     }
 }
Esempio n. 2
0
 public SectionList GetOtherSections(Section section)
 {
     SectionList list = new SectionList();
     foreach (Section section2 in this.Sections)
     {
         if (section2 != section)
         {
             list.Add(section2);
         }
     }
     return list;
 }