Example #1
0
        public bool CanAccept(string _typename)
        {
            GraphRule _rule = Rule(_typename);

            if (_rule == null)
            {
                return(false);
            }

            return(_rule.canaccept == -1 || _rule.canaccept > AcceptedsOfType(_typename));
        }
Example #2
0
 public void SetRule(GraphRule _rule)
 {
     __rules.Add(_rule);
 }