Add "skip visuals" to tick. So we can run lots of ticks without updating visuals. Needed to process tests automatically.
This commit is contained in:
parent
f763016f90
commit
02e3b45cb2
@ -1241,9 +1241,10 @@ namespace EduNetworkBuilder
|
|||||||
NetworkStartTime = DateTime.Now;
|
NetworkStartTime = DateTime.Now;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Tick()
|
public void Tick(bool SkipVisuals = false)
|
||||||
{
|
{
|
||||||
EraseOldPackets();
|
if(!SkipVisuals)
|
||||||
|
EraseOldPackets();
|
||||||
//if (myPackets.Count > 50)
|
//if (myPackets.Count > 50)
|
||||||
//Console.WriteLine("Packets: " + myPackets.Count.ToString());
|
//Console.WriteLine("Packets: " + myPackets.Count.ToString());
|
||||||
if (myPackets.Count > 0)
|
if (myPackets.Count > 0)
|
||||||
@ -1259,7 +1260,8 @@ namespace EduNetworkBuilder
|
|||||||
{
|
{
|
||||||
//It has all been taken care of
|
//It has all been taken care of
|
||||||
}
|
}
|
||||||
DrawPackets();
|
if(!SkipVisuals)
|
||||||
|
DrawPackets();
|
||||||
//myPBox.Refresh();
|
//myPBox.Refresh();
|
||||||
previously_had_packets = true;
|
previously_had_packets = true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user