diff options
author | erihel <erihel@gmail.com> | 2012-07-19 19:19:21 +0200 |
---|---|---|
committer | erihel <erihel@gmail.com> | 2012-07-19 19:19:21 +0200 |
commit | d56db5f4e4a8e0d572bf3d682619bb25aebe4120 (patch) | |
tree | bb670182f3273a5a3bb18969cf8f25023fa381f0 /src/common/iman.cpp | |
parent | 0e4b070b5f10c0004cfbfa234e3634357b070cba (diff) | |
download | colobot-d56db5f4e4a8e0d572bf3d682619bb25aebe4120.tar.gz colobot-d56db5f4e4a8e0d572bf3d682619bb25aebe4120.tar.bz2 colobot-d56db5f4e4a8e0d572bf3d682619bb25aebe4120.zip |
* Chaned plugin interface
* Added plugin class for plugin loading
* Added plugin loading test
Diffstat (limited to 'src/common/iman.cpp')
-rw-r--r-- | src/common/iman.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/common/iman.cpp b/src/common/iman.cpp index 28ee3d3..9e94f24 100644 --- a/src/common/iman.cpp +++ b/src/common/iman.cpp @@ -23,6 +23,21 @@ #include "common/iman.h" +template<> CInstanceManager* CSingleton<CInstanceManager>::mInstance = 0; + + +CInstanceManager& CInstanceManager::GetInstance() +{ + assert(mInstance); + return *mInstance; +} + + +CInstanceManager* CInstanceManager::GetInstancePointer() +{ + assert(mInstance); + return mInstance; +} // Object's constructor. |