sledgemapper/Sledgemapper.Shared/Entities/Tile.cs
2020-12-22 10:14:07 +00:00

40 lines
872 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}";
}
}
public class SnapPoint : BaseMapEntity
{
public int Index { get; set; }
public override string ToString()
{
return $"{X}_{Y}_{Index}";
}
}
}