implement
This commit is contained in:
23
dotnet/AipsCore/Domain/Models/Shape/Shape.cs
Normal file
23
dotnet/AipsCore/Domain/Models/Shape/Shape.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using System.Drawing;
|
||||
using AipsCore.Domain.Models.Shape.Enums;
|
||||
using AipsCore.Domain.Models.Shape.ValueObjects;
|
||||
|
||||
namespace AipsCore.Domain.Models.Shape;
|
||||
|
||||
public abstract class Shape
|
||||
{
|
||||
public ShapeId Id { get; }
|
||||
|
||||
public abstract ShapeTypeEnum ShapeType { get; }
|
||||
|
||||
public Position Position { get; private set; }
|
||||
|
||||
public Color Color { get; private set; }
|
||||
|
||||
protected Shape(ShapeId id, Position position, Color color)
|
||||
{
|
||||
Id = id;
|
||||
Position = position;
|
||||
Color = color;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user