So Tiled is nice and all but how do I load a tmx file using xml in c#?
I know the following code is wrong but this is to give an idea of what I’m trying to achieve.
[XmlAttribute("map")]
public float Version;
public float tiledVersion;
public string orientation;
public string renderorder;
public int width;
public int height;
public int tilewidth;
public int tileheight;
public bool infinite;
public int nextobjectid;
[XmlAttribute("tileset")]
public int firstgid;
public string source;
[XmlAttribute("layer")]
public string name;
public int width;
public int height;
[XmlAttribute("encoding")]
public string encoding;
edit: Ended up using this: https://github.com/marshallward/TiledSharp
edit-edit: apparently not, it’s out of date. Good times.
edit-edit-edit: never mind, was reading groups instead of layers. All sorted.