[Oups] Remove debug functions
This commit is contained in:
parent
7c4823fa3c
commit
5a2d498bbd
|
@ -39,25 +39,23 @@ namespace LyokoCMD.Sim.VirtualWorld.World
|
|||
Sectors.ForEach(s => s.UnvirtualizeAll());
|
||||
}
|
||||
|
||||
protected override void PreStart()
|
||||
protected override void Run()
|
||||
{
|
||||
}
|
||||
|
||||
public override double RequiredEnergy => 300.0;
|
||||
|
||||
public void ShowSector(Sector sector)
|
||||
{
|
||||
Console.Clear();
|
||||
Sector sector = Sectors.First();
|
||||
foreach (Virtualizable virtualizable in sector.Objects)
|
||||
{
|
||||
Console.CursorLeft = (int) ((virtualizable.Coordinates.Item1 + 90) * Console.WindowWidth /
|
||||
(Coordinates.MaxValue.Item1 + 90));
|
||||
Console.CursorTop = (int) ((virtualizable.Coordinates.Item2 + 180) * Console.WindowHeight /
|
||||
(Coordinates.MaxValue.Item2 + 180));
|
||||
(Coordinates.MaxValue.Item2 + 180));
|
||||
Console.Write(virtualizable.Name.Substring(0, 1));
|
||||
}
|
||||
}
|
||||
|
||||
protected override void Run()
|
||||
{
|
||||
Console.WriteLine("cocou");
|
||||
}
|
||||
|
||||
public override double RequiredEnergy => 300.0;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -59,11 +59,11 @@ namespace LyokoCMD.Sim.Workers
|
|||
}
|
||||
|
||||
PreStart();
|
||||
this.Status = SCWorkerStatus.Running;
|
||||
if (!Running)
|
||||
{
|
||||
_thread.Start();
|
||||
}
|
||||
this.Status = SCWorkerStatus.Running;
|
||||
PostStart();
|
||||
}
|
||||
protected virtual void PreStart() {}
|
||||
|
|
Reference in New Issue