Изменены DrawninObject и IDrawningObject

This commit is contained in:
Sem730 2022-11-11 21:06:11 +03:00
parent d533dd8a04
commit 0c626b2cb3
2 changed files with 5 additions and 0 deletions

View File

@ -31,5 +31,8 @@ namespace ProjectLocomotive
// TODO
_loc.DrawTransport(g);
}
public string getInfo() => _loc?.getDataForSave();
public static IDrawningObject Create(string data) => new DrawningObject(data.createDrawningLocomotive());
}
}

View File

@ -39,6 +39,8 @@ namespace ProjectLocomotive
/// </summary>
/// <returns></returns>
(float Left, float Right, float Top, float Bottom) GetCurrentPosition();
// Получение информации по объекту
string getInfo();
}
}