/// <summary> /// If possible, unlocks a technology on this database. /// </summary> /// <param name="technology"></param> /// <returns></returns> public bool UnlockTechnology(TechnologyDatabaseComponent component, TechnologyPrototype technology) { if (!component.CanUnlockTechnology(technology)) { return(false); } AddTechnology(component, technology); Dirty(component); return(true); }
public bool CanUnlockTechnology(TechnologyPrototype technology) { return(_technologyDatabase?.CanUnlockTechnology(technology) ?? false); }