Exemple #1
0
 public void WriteXml(XmlWriter writer)
 {
     writer.WriteAttributeString("Type", Type.ToString());
     writer.WriteAttributeString("X", X.ToString());
     writer.WriteAttributeString("Y", Y.ToString());
     writer.WriteAttributeString("Walkable", Walkable.ToString());
 }
 public virtual Dictionary <string, string> ToDictionary()
 {
     return(new Dictionary <string, string>
     {
         { "row", Row.ToString() },
         { "col", Col.ToString() },
         { "walkable", Walkable.ToString() }
     });
 }