| 890 | } |
| 891 | |
| 892 | uint32_t structureBuildPointsToCompletion(const STRUCTURE & structure) |
| 893 | { |
| 894 | if (structureHasModules(&structure)) { |
| 895 | auto moduleStat = getModuleStat(&structure); |
| 896 | |
| 897 | if (moduleStat != nullptr) { |
| 898 | return moduleStat->buildPoints; |
| 899 | } |
| 900 | } |
| 901 | |
| 902 | return structure.pStructureType->buildPoints; |
| 903 | } |
| 904 | |
| 905 | float structureCompletionProgress(const STRUCTURE & structure) |
| 906 | { |
no test coverage detected