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:
Tim Young 2017-08-14 15:44:56 -05:00
parent f763016f90
commit 02e3b45cb2
1 changed files with 5 additions and 3 deletions

View File

@ -1241,9 +1241,10 @@ namespace EduNetworkBuilder
NetworkStartTime = DateTime.Now;
}
public void Tick()
public void Tick(bool SkipVisuals = false)
{
EraseOldPackets();
if(!SkipVisuals)
EraseOldPackets();
//if (myPackets.Count > 50)
//Console.WriteLine("Packets: " + myPackets.Count.ToString());
if (myPackets.Count > 0)
@ -1259,7 +1260,8 @@ namespace EduNetworkBuilder
{
//It has all been taken care of
}
DrawPackets();
if(!SkipVisuals)
DrawPackets();
//myPBox.Refresh();
previously_had_packets = true;
}