sledgemapper/Sledgemapper.Shared/Entities/Tile.cs
Michele Scandura b21a7c7ef2 tiles and lines
2020-12-21 16:29:59 +00:00

30 lines
674 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 int EndX { get; set; }
public int EndY { get; set; }
public override string ToString()
{
return $"{X}_{Y}_{EndX}_{EndY}";
}
}
}