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

View File

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