public IMovieController GetBranchInput(string branchId, int frame) { var branch = CurrentTasMovie.Branches.FirstOrDefault(b => b.Uuid.ToString() == branchId); if (branch == null || frame >= branch.InputLog.Count) { return(null); } var controller = MovieSession.GenerateMovieController(); controller.SetFromMnemonic(branch.InputLog[frame]); return(controller); }
private IMovieController ControllerFromMnemonicStr(string inputLogEntry) { try { var controller = MovieSession.GenerateMovieController(); controller.SetFromMnemonic(inputLogEntry); return(controller); } catch (Exception) { DialogController.ShowMessageBox($"Invalid mnemonic string: {inputLogEntry}", "Paste Input failed!"); return(null); } }