From 4b16ba8be0427a761f1bbafe475b649db23c7d4e Mon Sep 17 00:00:00 2001 From: Tim Young Date: Fri, 21 Sep 2018 11:32:48 -0500 Subject: [PATCH] Make a "Has Replay" func so we can tell what has a replay and what does not --- EduNetworkBuilder/NBSettings.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/EduNetworkBuilder/NBSettings.cs b/EduNetworkBuilder/NBSettings.cs index e0bf70b..b8afe0b 100644 --- a/EduNetworkBuilder/NBSettings.cs +++ b/EduNetworkBuilder/NBSettings.cs @@ -169,6 +169,14 @@ namespace EduNetworkBuilder 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) { //we just mark it in the settings class