Add a clear replay status function

This commit is contained in:
Tim Young 2018-10-05 13:06:53 -05:00
parent aa78fa5aca
commit d838fe1987

View File

@ -90,6 +90,20 @@ namespace EduNetworkBuilder
if (PuzzlesPassed.Contains(NA.NetworkName)) PuzzlesPassed.Remove(NA.NetworkName);
}
}
public void ClearReplayStatus()
{
if (UserActions == null) return;
foreach(NetworkAction NA in UserActions.NetActions)
{
NA.HasFailed = false;
NA.HasPassed = false;
}
PuzzlesPassed.Clear();
PuzzlesFailed.Clear();
}
public ActionCollection GetUserActionCollection()
{
return UserActions;