private void setInputArrayObjects(InputSkill[] inputSkills) { for (int i = 0; i < inputSkills.Length; i++) { inputSkills[i] = new InputSkill(); } }
public Skill Get(InputSkill input) { using (var scope = _scopeFactory.CreateScope()) using (var db = scope.ServiceProvider.GetRequiredService <GraphQLContext>()) { return(db.Skill.FirstOrDefault(input?.Predicate ?? (_ => false))); } }
public List <Skill> GetAll(InputSkill input) { using (var scope = _scopeFactory.CreateScope()) using (var db = scope.ServiceProvider.GetRequiredService <GraphQLContext>()) { return(db.Skill.Where(input?.Predicate ?? (_ => true)).ToList()); } }
public List <Skill> GetSkills(int personId, InputSkill input) { using (var scope = _scopeFactory.CreateScope()) using (var db = scope.ServiceProvider.GetRequiredService <GraphQLContext>()) { return(db.Person .Include(x => x.Skills) .FirstOrDefault(s => s.Id == personId) ?.Skills .Where(input?.Predicate ?? (_ => true)) .ToList() ); } }
private void setInput(InputSkill inputSlot) { if (inputSlot._state)//si esta presionado y es mayor que cero reducir cooldown { if (inputSlot._currentCooldown > 0) { inputSlot._currentCooldown -= Time.deltaTime; } else { inputSlot._state = false; } } }
public List <Skill> Skills(Person person, InputSkill input) => _persons.GetSkills(person.Id, input);
public Skill FavSkill(Person person) => _skills.Get(InputSkill.FromId(person.FavSkillId));
public List <Skill> Skills(InputSkill input) => _skills.GetAll(input);
public Skill Skill(InputSkill input) => _skills.Get(input);
public List <Skill> Skills(Engineer engineer, InputSkill input) => _persons.GetSkills(engineer.Id, input);
public Skill FavSkill(Engineer engineer) => _skills.Get(InputSkill.FromId(engineer.FavSkillId));
public List <Skill> Skills(Contact contact, InputSkill input) => _persons.GetSkills(contact.Id, input);
public Skill FavSkill(Contact contact) => _skills.Get(InputSkill.FromId(contact.FavSkillId));
public List <Skill> Skills(Candidate candidate, InputSkill input) => _persons.GetSkills(candidate.Id, input);
public Skill FavSkill(Candidate candidate) => _skills.Get(InputSkill.FromId(candidate.FavSkillId));
public Skill Parent(Skill skill) => _repo.Get(InputSkill.FromId(skill.ParentId));