Изменёны интерфейс IDrawingObject и класс DrawingObjectArtillery

This commit is contained in:
Сергей Полевой 2022-11-04 16:48:55 +04:00
parent 07f2ccc482
commit baff437cf5
2 changed files with 5 additions and 0 deletions

View File

@ -36,5 +36,9 @@ namespace Artilleries
{
_artillery.DrawTransport(g);
}
public string GetInfo() => _artillery?.GetDateForSave();
public static IDrawingObject Create(string data) => new DrawingObjectArtillery(data.CreateDrawingArtillery());
}
}

View File

@ -13,5 +13,6 @@ namespace Artilleries
void MoveObject(Direction direction);
void DrawingObject(Graphics g);
(float Left, float Right, float Top, float Bottom) GetCurrentPosition();
string GetInfo();
}
}