Изменёны интерфейс IDrawingObject и класс DrawingObjectArtillery
This commit is contained in:
parent
07f2ccc482
commit
baff437cf5
@ -36,5 +36,9 @@ namespace Artilleries
|
||||
{
|
||||
_artillery.DrawTransport(g);
|
||||
}
|
||||
|
||||
public string GetInfo() => _artillery?.GetDateForSave();
|
||||
|
||||
public static IDrawingObject Create(string data) => new DrawingObjectArtillery(data.CreateDrawingArtillery());
|
||||
}
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user