Полностью сделана
This commit is contained in:
parent
a8fa080325
commit
7fb180fd99
@ -32,6 +32,7 @@ namespace ProjectElectricLocomotive.Drawnings
|
|||||||
pantograph, batterystorage);
|
pantograph, batterystorage);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public override void DrawTransport(Graphics g)
|
public override void DrawTransport(Graphics g)
|
||||||
{
|
{
|
||||||
if (EntityLocomotive == null || EntityLocomotive is not EntityElectricLocomotive electricLocomotive || !_startPosX.HasValue || !_startPosY.HasValue)
|
if (EntityLocomotive == null || EntityLocomotive is not EntityElectricLocomotive electricLocomotive || !_startPosX.HasValue || !_startPosY.HasValue)
|
||||||
|
@ -34,11 +34,11 @@ public class DrawningLocomotive
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Ширина прорисовки Локомотива
|
/// Ширина прорисовки Локомотива
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private readonly int _drawningLocomotiveWidth = 155;
|
public readonly int _drawningLocomotiveWidth = 155;
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Высота прорисовки локомотива
|
/// Высота прорисовки локомотива
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private readonly int _drawningLocomotiveHeight = 90;
|
public readonly int _drawningLocomotiveHeight = 90;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Координата X объекта
|
/// Координата X объекта
|
||||||
@ -146,7 +146,7 @@ public class DrawningLocomotive
|
|||||||
_startPosX = x;
|
_startPosX = x;
|
||||||
_startPosY = y;
|
_startPosY = y;
|
||||||
}
|
}
|
||||||
public bool MoveTransport(DirectionType direction)
|
public bool MoveTransport(DirectionType direction)
|
||||||
{
|
{
|
||||||
if (EntityLocomotive == null || !_startPosX.HasValue ||
|
if (EntityLocomotive == null || !_startPosX.HasValue ||
|
||||||
!_startPosY.HasValue)
|
!_startPosY.HasValue)
|
||||||
|
Loading…
Reference in New Issue
Block a user