sledgemapper/Sledgemapper.Shared/Entities/Tile.cs
2021-01-01 18:35:35 +00:00

41 lines
971 B
C#

namespace Sledgemapper.Shared.Entities
{
public abstract class BaseMapEntity
{
public int X { get; set; }
public int Y { get; set; }
public string ID { get; set; }
public int Rotation { get; set; }
public override string ToString()
{
return $"{X}_{Y}";
}
public double Timestamp { get; set; }
}
public class Tile : BaseMapEntity
{
}
public class Line : BaseMapEntity
{
public SnapPoint Start { get; set; }
public SnapPoint End { get; set; }
public float Width {get;set;}
public override string ToString()
{
return $"{Start.X}_{Start.Y}_{Start.Index}_{End.X}_{End.Y}_{End.Index}";
}
}
public class SnapPoint : BaseMapEntity
{
public int Index { get; set; }
public override string ToString()
{
return $"{X}_{Y}_{Index}";
}
}
}