30 lines
674 B
C#
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}";
|
|
}
|
|
}
|
|
}
|