Make a "Has Replay" func so we can tell what has a replay and what does not

This commit is contained in:
Tim Young 2018-09-21 11:32:48 -05:00
parent fac5d7ab26
commit 4b16ba8be0

View File

@ -169,6 +169,14 @@ namespace EduNetworkBuilder
UserActions.HasUnsavedChanges = false; //we have just loaded a clean thing. Nothing to save UserActions.HasUnsavedChanges = false; //we have just loaded a clean thing. Nothing to save
} }
public bool HasReplay(string networkname)
{
if (UserActions == null) return false;
NetworkAction NA = UserActions.FindAction(networkname);
if (NA == null) return false;
return true;
}
public bool CheckIfDone(string PuzzleName) public bool CheckIfDone(string PuzzleName)
{ {
//we just mark it in the settings class //we just mark it in the settings class