Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
PS::Loader Namespace Reference

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 ()
 

Typedef Documentation

◆ LoadFunc

using PS::Loader::LoadFunc = typedef std::function<PS::Loader::Task()>

Function Documentation

◆ BeginRegistering()

void PS::Loader::BeginRegistering ( )

◆ Cancel()

void PS::Loader::Cancel ( )

◆ EndRegistering()

void PS::Loader::EndRegistering ( )

◆ NonprogressiveLoad()

Status PS::Loader::NonprogressiveLoad ( )

◆ ProgressiveLoad()

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.

◆ Register()

void PS::Loader::Register ( LoadFunc  func,
std::wstring  description,
int  estimatedDurationMs 
)