![]() |
Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
|
Namespaces | |
| namespace | anonymous_namespace{Loader.cpp} |
Classes | |
| struct | ProgressiveLoadResult |
| class | Task |
| Coroutine which performs the actual work. More... | |
Typedefs | |
| using | LoadFunc = std::function< PS::Loader::Task()> |
Functions | |
| void | BeginRegistering () |
| void | Register (LoadFunc func, std::wstring description, int estimatedDurationMs) |
| void | EndRegistering () |
| void | Cancel () |
| ProgressiveLoadResult | ProgressiveLoad (double time_budget) |
Process as many of the queued tasks as possible within timeBudget [s]. More... | |
| Status | NonprogressiveLoad () |
| using PS::Loader::LoadFunc = typedef std::function<PS::Loader::Task()> |
| void PS::Loader::BeginRegistering | ( | ) |
| void PS::Loader::Cancel | ( | ) |
| void PS::Loader::EndRegistering | ( | ) |
| Status PS::Loader::NonprogressiveLoad | ( | ) |
| ProgressiveLoadResult PS::Loader::ProgressiveLoad | ( | double | time_budget | ) |
Process as many of the queued tasks as possible within timeBudget [s].
if a task is lengthy, the budget may be exceeded. call from the main loop.
| void PS::Loader::Register | ( | LoadFunc | func, |
| std::wstring | description, | ||
| int | estimatedDurationMs | ||
| ) |