mirror of
https://github.com/AlexMacocian/MonoGame.Extended.git
synced 2026-07-26 00:45:20 +00:00
* Add Tiled Content Pipeline library to NuGet * Update Tiled NuGet package elements. * Remove dependency on Graphics * Update csproj for removal of Graphics dependency * Fix build errors * Fix problems
27 lines
630 B
C#
27 lines
630 B
C#
#region
|
|
|
|
using Microsoft.Xna.Framework.Content;
|
|
|
|
#endregion
|
|
|
|
namespace MonoGame.Extended.Tiled
|
|
{
|
|
public sealed class TiledMapPolylineObject : TiledMapObject
|
|
{
|
|
public Point2[] Points { get; }
|
|
|
|
internal TiledMapPolylineObject(ContentReader input)
|
|
: base(input)
|
|
{
|
|
var pointCount = input.ReadInt32();
|
|
Points = new Point2[pointCount];
|
|
|
|
for (var i = 0; i < pointCount; i++)
|
|
{
|
|
var x = input.ReadSingle();
|
|
var y = input.ReadSingle();
|
|
Points[i] = new Point2(x, y);
|
|
}
|
|
}
|
|
}
|
|
} |