Sorokin_P.V. Lab Work 8 #8
@ -42,6 +42,14 @@ namespace Liner
|
||||
{
|
||||
return xShipColor.CompareTo(yShipColor);
|
||||
}
|
||||
if (xShip.GetShip.GetType().Name != yShip.GetShip.GetType().Name)
|
||||
{
|
||||
if (xShip.GetShip.GetType().Name == "DrawingShip")
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
if (xShip.GetShip.Ship is EntityLiner xLiner && yShip.GetShip.Ship is EntityLiner yLiner)
|
||||
{
|
||||
string xShipDopColor = xLiner.DopColor.Name;
|
||||
|
Loading…
Reference in New Issue
Block a user