Add a clear replay status function
This commit is contained in:
parent
aa78fa5aca
commit
d838fe1987
@ -90,6 +90,20 @@ namespace EduNetworkBuilder
|
|||||||
if (PuzzlesPassed.Contains(NA.NetworkName)) PuzzlesPassed.Remove(NA.NetworkName);
|
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()
|
public ActionCollection GetUserActionCollection()
|
||||||
{
|
{
|
||||||
return UserActions;
|
return UserActions;
|
||||||
|
Loading…
Reference in New Issue
Block a user