/// <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);
    }
Esempio n. 2
0
 public bool CanUnlockTechnology(TechnologyPrototype technology)
 {
     return(_technologyDatabase?.CanUnlockTechnology(technology) ?? false);
 }