Exemple #1
0
        public ActionDictionary InitAuto()
        {
            var actionMinLength = ValidActions.Select(a => a.route.Length).Min();
            var actions         = new ActionDictionary(actionMinLength);

            AddActions(actions, ValidActions, 0);
            return(actions);
        }
Exemple #2
0
 private void AddActions(ActionDictionary actions, ICollection <(string route, Action <ActionStatus> action)> add, int index)