message: Add power produced to fusion power plant structure view
diff: #include "Structure.h"
  #include "../../Constants.h"
  +#include <string>
  const int FUSION_REACTOR_BASE_PRODUCUCTION = 1000;
  @@ -17,6 +18,24 @@ public:
  requiresCHAP(false);
  }
  + StringTable createInspectorViewTable() override
  + {
  + StringTable stringTable(2, 1);
  +
  + stringTable[{0, 0}].text = "Power Produced:";
  +
  + auto energyProduced = calculateEnergyProduced();
  +
  + stringTable[{1, 0}].text = std::to_string(energyProduced) + " / " + std::to_string(FUSION_REACTOR_BASE_PRODUCUCTION);
  +
  + if (energyProduced == 0)
  + {
  + stringTable[{1, 0}].textColor = constants::WARNING_TEXT_COLOR;
  + }
  +
  + return stringTable;
  + }
  +
  protected:
  void defineResourceInput() override
  {
  @@ -28,6 +47,12 @@ protected:
  void defineResourceOutput() override
  {
  - resourcesOut().energy(FUSION_REACTOR_BASE_PRODUCUCTION);
  + resourcesOut().energy(calculateEnergyProduced());
  + }
  +
  +private:
  + int calculateEnergyProduced()
  + {
  + return operational() ? FUSION_REACTOR_BASE_PRODUCUCTION : 0;
  }
  };
  