Conquer Chess
Chess and Starcraft combined
Loading...
Searching...
No Matches
Public Member Functions | List of all members
resource_loader Class Reference

Loads resources gradually, so that progress can be displayed. More...

#include <resource_loader.h>

Public Member Functions

 resource_loader ()
 
constexpr int get_n_items () const noexcept
 The number of resource groups that need to be loaded.
 
std::string get_current () const noexcept
 Describe the current progress.
 
int get_index () const noexcept
 Get the index of the current progress.
 
bool is_done () const noexcept
 Are all resources loaded?
 
void process_next ()
 

Detailed Description

Loads resources gradually, so that progress can be displayed.

Constructor & Destructor Documentation

◆ resource_loader()

resource_loader::resource_loader ( )

Member Function Documentation

◆ get_current()

std::string resource_loader::get_current ( ) const
inlinenoexcept

Describe the current progress.

◆ get_index()

int resource_loader::get_index ( ) const
inlinenoexcept

Get the index of the current progress.

◆ get_n_items()

constexpr int resource_loader::get_n_items ( ) const
inlineconstexprnoexcept

The number of resource groups that need to be loaded.

This value is tested to be correct. The failed assert will give a helpful error message.

◆ is_done()

bool resource_loader::is_done ( ) const
noexcept

Are all resources loaded?

◆ process_next()

void resource_loader::process_next ( )

The documentation for this class was generated from the following files: