LabWork2 #2

Closed
Tonby73 wants to merge 4 commits from LabWork2 into main
2 changed files with 4 additions and 3 deletions
Showing only changes of commit 7fb180fd99 - Show all commits

View File

@ -32,6 +32,7 @@ namespace ProjectElectricLocomotive.Drawnings
pantograph, batterystorage);
}
public override void DrawTransport(Graphics g)
{
if (EntityLocomotive == null || EntityLocomotive is not EntityElectricLocomotive electricLocomotive || !_startPosX.HasValue || !_startPosY.HasValue)

View File

@ -34,11 +34,11 @@ public class DrawningLocomotive
/// <summary>
/// Ширина прорисовки Локомотива
/// </summary>
private readonly int _drawningLocomotiveWidth = 155;
public readonly int _drawningLocomotiveWidth = 155;
/// <summary>
/// Высота прорисовки локомотива
/// </summary>
private readonly int _drawningLocomotiveHeight = 90;
public readonly int _drawningLocomotiveHeight = 90;
/// <summary>
/// Координата X объекта
@ -146,7 +146,7 @@ public class DrawningLocomotive
_startPosX = x;
_startPosY = y;
}
public bool MoveTransport(DirectionType direction)
public bool MoveTransport(DirectionType direction)
{
if (EntityLocomotive == null || !_startPosX.HasValue ||
!_startPosY.HasValue)