-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from aalmik/v1.1
V1.1
- Loading branch information
Showing
19 changed files
with
287 additions
and
64 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?xml version="1.0"?> | ||
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd"> | ||
<metadata> | ||
<id>TmxMapperPCL</id> | ||
<version>1.1.0</version> | ||
<title>Tmx Mapper PCL</title> | ||
<authors>Mika Aaltonen</authors> | ||
<owners>Mika Aaltonen</owners> | ||
<licenseUrl>https://github.com/aalmik/tmx-mapper-pcl/blob/master/LICENSE.md</licenseUrl> | ||
<projectUrl>https://github.com/aalmik/tmx-mapper-pcl</projectUrl> | ||
<iconUrl>https://github.com/aalmik/tmx-mapper-pcl/blob/master/tmx_mapper_pcl.png</iconUrl> | ||
<requireLicenseAcceptance>false</requireLicenseAcceptance> | ||
<summary>Tiled map file parser for Windows Runtime apps</summary> | ||
<description> | ||
Tiled map file parser for Windows Runtime apps. | ||
This Portable Class library works in both Windows Phone Store 8.1 and Windows Store 8.1 application projects started from universal application template. | ||
Library is targeted for portable-netcore451+wpa81 | ||
</description> | ||
<releaseNotes>First NuGet package version of the library targeted for portable-netcore451+wpa81</releaseNotes> | ||
<copyright>Copyright 2015</copyright> | ||
<tags>tmx tiled tmxmapper game tile map winrt</tags> | ||
</metadata> | ||
<files> | ||
<file src="lib\portable-netcore451+wpa81\TmxMapperPCL.dll" target="lib\portable-netcore451+wpa81\TmxMapperPCL.dll" /> | ||
</files> | ||
</package> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using System.Xml.Serialization; | ||
|
||
namespace TmxMapperPCL | ||
{ | ||
public class ImageLayer | ||
{ | ||
[XmlAttribute(DataType="string", AttributeName="name")] | ||
public string Name { get; set; } | ||
|
||
[XmlAttribute(DataType = "int", AttributeName = "x")] | ||
public int X { get; set; } | ||
|
||
[XmlAttribute(DataType = "int", AttributeName = "y")] | ||
public int Y { get; set; } | ||
|
||
// opacity | ||
[XmlAttribute(DataType = "boolean", AttributeName = "opacity")] | ||
public bool Opacity { get; set; } | ||
|
||
// visible | ||
[XmlAttribute(DataType = "boolean", AttributeName = "visible")] | ||
public bool Visible { get; set; } | ||
|
||
[XmlElement(ElementName = "image")] | ||
public Image Image { get; set; } | ||
|
||
[XmlArray("properties")] | ||
[XmlArrayItem("property")] | ||
public List<Property> Properties { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using System.Xml.Serialization; | ||
|
||
namespace TmxMapperPCL | ||
{ | ||
public class Object | ||
{ | ||
// name | ||
[XmlAttribute(DataType = "string", AttributeName = "name")] | ||
public string Name { get; set; } | ||
|
||
// type | ||
[XmlAttribute(DataType = "string", AttributeName = "type")] | ||
public string Type { get; set; } | ||
|
||
// x | ||
[XmlAttribute(DataType = "int", AttributeName = "x")] | ||
public int X { get; set; } | ||
|
||
// y | ||
[XmlAttribute(DataType = "int", AttributeName = "y")] | ||
public int Y { get; set; } | ||
|
||
// width | ||
[XmlAttribute(DataType = "int", AttributeName = "width")] | ||
public int Width { get; set; } | ||
|
||
// height | ||
[XmlAttribute(DataType = "int", AttributeName = "height")] | ||
public int Height { get; set; } | ||
|
||
// rotation | ||
[XmlAttribute(DataType = "int", AttributeName = "rotation")] | ||
public int Rotation { get; set; } | ||
|
||
// gid | ||
[XmlAttribute(DataType = "int", AttributeName = "gid")] | ||
public int GID { get; set; } | ||
|
||
// visible | ||
[XmlAttribute(DataType = "boolean", AttributeName = "visible")] | ||
public bool Visible { get; set; } | ||
|
||
// Can contain: properties, ellipse (since 0.9.0), polygon, polyline, image | ||
[XmlElement(ElementName = "image")] | ||
public Image Image { get; set; } | ||
|
||
[XmlElement(ElementName = "ellipse")] | ||
public Ellipse Ellipse { get; set; } | ||
|
||
// TODO: polygon | ||
[XmlElement(ElementName = "polygon")] | ||
public Polygon Polygon { get; set; } | ||
|
||
// TODO: polyline | ||
[XmlElement(ElementName= "polyline")] | ||
public Polyline Polyline { get; set; } | ||
} | ||
|
||
public class Ellipse | ||
{ | ||
// left blanc | ||
} | ||
|
||
public class Polygon | ||
{ | ||
[XmlAttribute(DataType="string", AttributeName="points")] | ||
public string Points { get; set; } | ||
} | ||
|
||
public class Polyline | ||
{ | ||
[XmlAttribute(DataType = "string", AttributeName = "points")] | ||
public string Points { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using System.Xml.Serialization; | ||
|
||
namespace TmxMapperPCL | ||
{ | ||
public class ObjectGroup | ||
{ | ||
[XmlAttribute(DataType="string", AttributeName="name")] | ||
public string Name { get; set; } | ||
|
||
[XmlAttribute(DataType = "string", AttributeName = "color")] | ||
public string Color { get; set; } | ||
|
||
[XmlAttribute(DataType = "boolean", AttributeName = "opacity")] | ||
public bool Opacity { get; set; } | ||
|
||
[XmlAttribute(DataType = "boolean", AttributeName = "visible")] | ||
public bool Visible { get; set; } | ||
|
||
[XmlArray("properties")] | ||
[XmlArrayItem("property")] | ||
public List<Property> Properties { get; set; } | ||
|
||
[XmlElement(ElementName = "object")] | ||
public List<Object> Objects { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using System.Xml.Serialization; | ||
|
||
namespace TmxMapperPCL | ||
{ | ||
public class Terrain | ||
{ | ||
[XmlAttribute(DataType="string", AttributeName="name")] | ||
public string Name { get; set; } | ||
|
||
[XmlAttribute(DataType = "string", AttributeName = "tile")] | ||
public string TileId { get; set; } | ||
|
||
[XmlArray("properties")] | ||
[XmlArrayItem("property")] | ||
public List<Property> Properties { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.