mark as passed / failed
This commit is contained in:
parent
e61f13c2c1
commit
6277fccc77
@ -25,6 +25,11 @@ namespace EduNetworkBuilder
|
|||||||
CurrentNetAction = new NetworkAction(starting);
|
CurrentNetAction = new NetworkAction(starting);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public NetworkAction GetCurrentNetAction()
|
||||||
|
{
|
||||||
|
return CurrentNetAction;
|
||||||
|
}
|
||||||
|
|
||||||
public void Add(ActionClass What)
|
public void Add(ActionClass What)
|
||||||
{
|
{
|
||||||
if(CurrentNetAction == null || CurrentNetAction.HasBeenStored == true)
|
if(CurrentNetAction == null || CurrentNetAction.HasBeenStored == true)
|
||||||
|
@ -59,6 +59,18 @@ namespace EduNetworkBuilder
|
|||||||
{
|
{
|
||||||
UserActions.Add(What);
|
UserActions.Add(What);
|
||||||
}
|
}
|
||||||
|
public void RegisterReplayPassed()
|
||||||
|
{
|
||||||
|
if (UserActions == null) return;
|
||||||
|
NetworkAction NA = UserActions.GetCurrentNetAction();
|
||||||
|
if (NA != null) NA.SetPassed();
|
||||||
|
}
|
||||||
|
public void RegisterReplayFailed()
|
||||||
|
{
|
||||||
|
if (UserActions == null) return;
|
||||||
|
NetworkAction NA = UserActions.GetCurrentNetAction();
|
||||||
|
if (NA != null) NA.SetFailed();
|
||||||
|
}
|
||||||
public ActionCollection GetUserActionCollection()
|
public ActionCollection GetUserActionCollection()
|
||||||
{
|
{
|
||||||
return UserActions;
|
return UserActions;
|
||||||
|
@ -1688,7 +1688,9 @@ namespace EduNetworkBuilder
|
|||||||
//replay finished
|
//replay finished
|
||||||
ReplayInProgress = false;
|
ReplayInProgress = false;
|
||||||
//If we have succeeded, we need to mark it as passed
|
//If we have succeeded, we need to mark it as passed
|
||||||
|
if (PuzzleIsSolved) Settings.RegisterReplayPassed();
|
||||||
//If we have failed to complete, we need to mark it as failed
|
//If we have failed to complete, we need to mark it as failed
|
||||||
|
else Settings.RegisterReplayFailed();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user