Ejemplo n.º 1
0
 public List <AbilityEntry> Entries(IAbilitySetup setup)
 {
     return(Ids.Values.Where(entry => entry.Setup == setup.GetType()).ToList());
 }
Ejemplo n.º 2
0
        public bool ValidSetup(IAbilitySetup setup)
        {
            var type = setup.GetType();

            return(type == Setup || type.IsSubclassOf(Setup));
        }