コード例 #1
0
 /// <summary>
 ///     Adds a technology to the database without checking if it could be unlocked.
 /// </summary>
 /// <param name="technology"></param>
 public void AddTechnology(TechnologyPrototype technology)
 {
     _technologies.Add(technology);
 }
コード例 #2
0
 public bool CanUnlockTechnology(TechnologyPrototype technology)
 {
     return(TechnologyDatabase.CanUnlockTechnology(technology));
 }
コード例 #3
0
 public bool IsTechnologyUnlocked(TechnologyPrototype technology)
 {
     return(TechnologyDatabase.IsTechnologyUnlocked(technology));
 }
コード例 #4
0
 public bool CanUnlockTechnology(TechnologyPrototype technology)
 {
     return(_technologyDatabase?.CanUnlockTechnology(technology) ?? false);
 }
コード例 #5
0
 public bool IsTechnologyUnlocked(TechnologyPrototype technology)
 {
     return(_technologyDatabase?.IsTechnologyUnlocked(technology) ?? false);
 }
コード例 #6
0
 /// <summary>
 ///     Adds a technology to the database without checking if it could be unlocked.
 /// </summary>
 /// <param name="technology"></param>
 public void AddTechnology(TechnologyDatabaseComponent component, TechnologyPrototype technology)
 {
     component.Technologies.Add(technology);
 }