This commit is contained in:
Daniya_Youdakova 2022-12-25 17:20:35 +04:00
parent 75e3a5d823
commit d2eb0bd3cd

View File

@ -4,13 +4,11 @@ using System.Linq;
using System.Net.NetworkInformation;
using System.Text;
using System.Threading.Tasks;
using static System.Reflection.Metadata.BlobBuilder;
namespace AircraftCarrier
{
internal class EntityModernAircraftCarrier : EntityAircraftCarrier
{
private static readonly char _separatorForObject = ':';
public Color DopColor { get; set; }
public bool FlightDeck { get; private set; }
public bool HangarDeck { get; private set; }
@ -22,10 +20,5 @@ namespace AircraftCarrier
HangarDeck = hangarDeck;
Route = route;
}
public override string ToString()
{
var str = base.ToString();
return $"{str}{_separatorForObject}{DopColor.Name}{_separatorForObject}{FlightDeck}{_separatorForObject}{HangarDeck}{_separatorForObject}{Route}";
}
}
}