| 37 | }; |
| 38 | |
| 39 | struct ShipUpgrades { |
| 40 | explicit ShipUpgrades(Json config = {}); |
| 41 | Json toJson() const; |
| 42 | |
| 43 | ShipUpgrades& apply(Json const& upgrades); |
| 44 | |
| 45 | bool operator==(ShipUpgrades const& rhs) const; |
| 46 | |
| 47 | unsigned shipLevel; |
| 48 | unsigned maxFuel; |
| 49 | unsigned crewSize; |
| 50 | float fuelEfficiency; |
| 51 | float shipSpeed; |
| 52 | StringSet capabilities; |
| 53 | }; |
| 54 | |
| 55 | DataStream& operator>>(DataStream& ds, ShipUpgrades& upgrades); |
| 56 | DataStream& operator<<(DataStream& ds, ShipUpgrades const& upgrades); |