예제 #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());
 }
예제 #2
0
 public virtual Dictionary <string, string> ToDictionary()
 {
     return(new Dictionary <string, string>
     {
         { "row", Row.ToString() },
         { "col", Col.ToString() },
         { "walkable", Walkable.ToString() }
     });
 }