diff --git a/Seaplane/Entities/EntityPlane.cs b/Seaplane/Entities/EntityPlane.cs new file mode 100644 index 0000000..a2f9381 --- /dev/null +++ b/Seaplane/Entities/EntityPlane.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Runtime.InteropServices; +using System.Text; +using System.Threading.Tasks; + +namespace Seaplane.Enities; +/// +/// Класс - сущность "Самолет" +/// +public class EntityPlane +{ + /// + /// Скорость + /// + public int Speed { get; private set; } + /// + /// Вес + /// + public double Weight { get; private set; } + /// + /// Основной цвет + /// + public Color BodyColor { get; private set; } + + /// + /// Конструктор сущности + /// + /// Скорость + /// Вес + /// Основной цвет + public EntityPlane(int speed, double weight, Color bodyColor) + { + Speed = speed; + Weight = weight; + BodyColor = bodyColor; + } +} diff --git a/Seaplane/EntitySeaplane.cs b/Seaplane/Entities/EntitySeaplane.cs similarity index 98% rename from Seaplane/EntitySeaplane.cs rename to Seaplane/Entities/EntitySeaplane.cs index 9ed0cc6..4e48190 100644 --- a/Seaplane/EntitySeaplane.cs +++ b/Seaplane/Entities/EntitySeaplane.cs @@ -1,4 +1,4 @@ -namespace Seaplane; +namespace Seaplane.Entities; /// /// Класс-сущность Гидросамолет ///