| 47 | } |
| 48 | |
| 49 | void PlayerTech::enable(String const& techModule) { |
| 50 | if (!m_availableTechs.contains(techModule)) |
| 51 | throw PlayerTechException::format("Enabling tech module '{}' when not available", techModule); |
| 52 | m_enabledTechs.add(techModule); |
| 53 | } |
| 54 | |
| 55 | void PlayerTech::disable(String const& techModule) { |
| 56 | unequip(techModule); |
no test coverage detected