Toggle navigation
ivorium
iv_components
Example project
GitHub
Main Page
Modules
Classes
Files
File List
File Members
ivorium_core
Instancing
DebugInstanceListener.cpp
Go to the documentation of this file.
1
#include "
DebugInstanceListener.hpp
"
2
3
namespace
iv
4
{
5
6
DebugInstanceListener::DebugInstanceListener
(
Instance
* inst,
InstanceSystem
* target ) :
7
inst( inst ),
8
os( target )
9
{
10
if
( this->os )
11
this->os->
AddDebugListener
(
this
);
12
}
13
14
DebugInstanceListener::~DebugInstanceListener
()
15
{
16
if
( this->os )
17
this->os->
RemoveDebugListener
(
this
);
18
}
19
20
Instance
*
DebugInstanceListener::instance
()
const
21
{
22
return
this->inst;
23
}
24
25
}