* Set the total of a stage of the world generation. * @param cls the current class we are in. * @param total Set the total expected items for this class. * * Warning: this function isn't clever. Don't go from class 4 to 3. Go upwards, always. * Also, progress works if total is zero, total works if progress is zero. */
| 1523 | * Also, progress works if total is zero, total works if progress is zero. |
| 1524 | */ |
| 1525 | void SetGeneratingWorldProgress(GenWorldProgress cls, uint total) |
| 1526 | { |
| 1527 | if (total == 0) return; |
| 1528 | |
| 1529 | _SetGeneratingWorldProgress(cls, 0, total); |
| 1530 | } |
| 1531 | |
| 1532 | /** |
| 1533 | * Increases the current stage of the world generation with one. |
no test coverage detected