MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / enable

Method enable

source/game/StarPlayerTech.cpp:49–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49void 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
55void PlayerTech::disable(String const& techModule) {
56 unequip(techModule);

Callers 6

makePlayerCallbacksMethod · 0.45
enableTechMethod · 0.45
updateSelectionMethod · 0.45
updateBuyTotalMethod · 0.45
updateSellTotalMethod · 0.45
tickMethod · 0.45

Calls 3

formatFunction · 0.50
containsMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected