mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 12:01:50 +00:00
Task interface
This commit is contained in:
parent
84c7c16860
commit
c1ab97eb15
5 changed files with 102 additions and 28 deletions
|
|
@ -77,6 +77,7 @@ void WorldConverter::convertNext() {
|
|||
}
|
||||
convert_task task = tasks.front();
|
||||
tasks.pop();
|
||||
tasksDone++;
|
||||
|
||||
if (!fs::is_regular_file(task.file))
|
||||
return;
|
||||
|
|
@ -95,6 +96,10 @@ void WorldConverter::write() {
|
|||
wfile->write(nullptr, content);
|
||||
}
|
||||
|
||||
uint WorldConverter::getTotalTasks() const {
|
||||
uint WorldConverter::getWorkRemaining() const {
|
||||
return tasks.size();
|
||||
}
|
||||
|
||||
uint WorldConverter::getWorkDone() const {
|
||||
return tasksDone;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue