Toggle navigation
ivorium
iv_components
Example project
GitHub
Main Page
Modules
Classes
Files
File List
File Members
ivorium_systems
DelayedLoadSystem
DelayedLoader.cpp
Go to the documentation of this file.
1
#include "
DelayedLoader.hpp
"
2
#include "
DelayedLoadSystem.hpp
"
3
4
namespace
iv
5
{
6
7
DelayedLoader::DelayedLoader
(
Instance
* inst ) :
8
cm( inst, this,
"DelayedLoader"
),
9
inst( inst ),
10
dls( inst->getSystem<
DelayedLoadSystem
>() )
11
{
12
if
( this->dls )
13
this->dls->
loader_register
(
this
);
14
}
15
16
DelayedLoader::~DelayedLoader
()
17
{
18
if
( this->dls )
19
this->dls->
loader_unregister
(
this
);
20
}
21
22
Instance
*
DelayedLoader::instance
()
const
23
{
24
return
this->inst;
25
}
26
27
bool
DelayedLoader::LoadingRunning
()
28
{
29
if
( this->dls )
30
return
this->dls->
LoadingRunning
();
31
32
return
false
;
33
}
34
35
void
DelayedLoader::BlockLoading
(
bool
block )
36
{
37
if
( this->dls )
38
this->dls->
BlockLoading
(
this
, block );
39
}
40
41
DelayedLoadStatus
const
&
DelayedLoader::LoadingStatus
()
42
{
43
if
( this->dls )
44
return
this->dls->
Status
();
45
static
DelayedLoadStatus
status;
46
return
status;
47
}
48
49
}