Exemple #1
0
        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);
        }
Exemple #2
0
        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);
            }
        }