Добавление методов в интерфейс и класс
This commit is contained in:
parent
ee3326095d
commit
e778b6b060
@ -33,5 +33,8 @@ namespace ArmoredCar
|
||||
if (_armCar != null)
|
||||
_armCar.DrawTransport(g);
|
||||
}
|
||||
public string GetInfo() => _armCar?.GetDataForSave();
|
||||
public static IDrawningObject Create(string data) => new
|
||||
DrawningObjectArmCar(data.CreateDrawningArmoredCar());
|
||||
}
|
||||
}
|
||||
|
@ -36,5 +36,10 @@ namespace ArmoredCar
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
(float Left, float Right, float Top, float Bottom) GetCurrentPosition();
|
||||
/// <summary>
|
||||
/// Получение информации по объекту
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
string GetInfo();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user