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,8 +1241,9 @@ namespace EduNetworkBuilder
|
|||||||
NetworkStartTime = DateTime.Now;
|
NetworkStartTime = DateTime.Now;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Tick()
|
public void Tick(bool SkipVisuals = false)
|
||||||
{
|
{
|
||||||
|
if(!SkipVisuals)
|
||||||
EraseOldPackets();
|
EraseOldPackets();
|
||||||
//if (myPackets.Count > 50)
|
//if (myPackets.Count > 50)
|
||||||
//Console.WriteLine("Packets: " + myPackets.Count.ToString());
|
//Console.WriteLine("Packets: " + myPackets.Count.ToString());
|
||||||
@ -1259,6 +1260,7 @@ namespace EduNetworkBuilder
|
|||||||
{
|
{
|
||||||
//It has all been taken care of
|
//It has all been taken care of
|
||||||
}
|
}
|
||||||
|
if(!SkipVisuals)
|
||||||
DrawPackets();
|
DrawPackets();
|
||||||
//myPBox.Refresh();
|
//myPBox.Refresh();
|
||||||
previously_had_packets = true;
|
previously_had_packets = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user