Пример #1
0
 public void Save(NavTreeWriter writer)
 {
     // Save position, size, and obstructed status
     writer.Write(position);
     writer.Write(size);
     writer.Write(obstructed);
     writer.Write(containsStatic);
     writer.Write(isStatic);
     writer.Write(path.Length);
     for (int i = 0; i < path.Length; i++)
     {
         writer.Write(path[i]);
     }
     // Call Save on all children
     if (children != null && children.Length > 0)
     {
         writer.Write(true);
         for (int i = 0; i < children.Length; i++)
         {
             children[i].Save(writer);
         }
     }
     else
     {
         writer.Write(false);
     }
 }
Пример #2
0
 public void Save(NavTreeWriter writer)
 {
     root.Save(writer);
 }