Exemplo n.º 1
0
 public InteractiveObject[] GetFilteredInteractives(InteractiveAction interactiveCategory, InteractiveState?state = InteractiveState.None, bool?activeSkills = null, short[] skills = null)
 {
     return(m_interactives.Where(
                interactive =>
                interactive.Action == interactiveCategory &&
                (state == null || interactive.State == state) &&
                (skills == null || (activeSkills != true && interactive.DisabledSkills.Select(skill => (short)skill.JobSkill.id).Intersect(skills).Any()) || (activeSkills != false && interactive.EnabledSkills.Select(skill => (short)skill.JobSkill.id).Intersect(skills).Any()))).ToArray());
 }
Exemplo n.º 2
0
 public IEnumerable <Item> GetItems(CharacterInventoryPositionEnum position)
 {
     return(m_items.Where(item => item.Position == position));
 }