mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-05-30 10:06:35 +03:00
Added Unload to the object loaders and resource loader.
This commit is contained in:
@@ -130,6 +130,18 @@ void cResourceLoader::Update() {
|
||||
Load();
|
||||
}
|
||||
|
||||
void cResourceLoader::Unload() {
|
||||
if ( mLoaded ) {
|
||||
std::list<cObjectLoader *>::iterator it;
|
||||
|
||||
for ( it = mObjs.begin(); it != mObjs.end(); it++ ) {
|
||||
(*it)->Unload();
|
||||
}
|
||||
|
||||
mLoaded = false;
|
||||
}
|
||||
}
|
||||
|
||||
bool cResourceLoader::IsLoaded() {
|
||||
return mLoaded;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user