This commit is contained in:
Kudyaeva 2024-05-07 10:40:28 +04:00
parent d13c774f5a
commit b645f87527
2 changed files with 6 additions and 6 deletions

View File

@ -48,16 +48,16 @@ public class EntityWarmlyShip : EntityShip
Pipes = pipes;
}
public virtual string[] GetStringRepresentation()
public override string[] GetStringRepresentation()
{
return new[] { nameof(EntityShip), Speed.ToString(), Weight.ToString(), BodyColor.Name,
return new[] { nameof(EntityWarmlyShip), Speed.ToString(), Weight.ToString(), BodyColor.Name,
SeckondColor.Name, FuelHole.ToString(), Pipes.ToString() };
}
public static EntityShip? CreateEntityWarmlyShip(string[] strs)
{
if (strs.Length != 7 || strs[0] != nameof(EntityShip))
if (strs.Length != 7 || strs[0] != nameof(EntityWarmlyShip))
{
return null;
}

View File

@ -68,7 +68,7 @@
groupBoxTools.Dock = DockStyle.Right;
groupBoxTools.Location = new Point(961, 24);
groupBoxTools.Name = "groupBoxTools";
groupBoxTools.Size = new Size(187, 497);
groupBoxTools.Size = new Size(187, 554);
groupBoxTools.TabIndex = 0;
groupBoxTools.TabStop = false;
groupBoxTools.Text = "Инструменты";
@ -245,7 +245,7 @@
pictureBox.Dock = DockStyle.Fill;
pictureBox.Location = new Point(0, 24);
pictureBox.Name = "pictureBox";
pictureBox.Size = new Size(961, 497);
pictureBox.Size = new Size(961, 554);
pictureBox.TabIndex = 3;
pictureBox.TabStop = false;
//
@ -294,7 +294,7 @@
//
AutoScaleDimensions = new SizeF(7F, 15F);
AutoScaleMode = AutoScaleMode.Font;
ClientSize = new Size(1148, 521);
ClientSize = new Size(1148, 578);
Controls.Add(pictureBox);
Controls.Add(groupBoxTools);
Controls.Add(menuStrip);