ZoneLoading: Add ZoneMemory and the possibility to unload zones and their memory

This commit is contained in:
Jan
2019-12-24 18:41:42 +01:00
parent d224eb8ce5
commit 7121f2e215
9 changed files with 116 additions and 2 deletions

View File

@ -48,6 +48,8 @@ void ZoneLoader::AddXBlock(XBlock* block)
{
return b1->m_index < b2->m_index;
});
m_zone->GetMemory()->AddBlock(block);
}
void ZoneLoader::AddLoadingStep(ILoadingStep* step)
@ -88,7 +90,7 @@ Zone* ZoneLoader::LoadZone(FileAPI::File* file)
return nullptr;
}
m_zone->m_game->AddZone(m_zone);
m_zone->Register();
return m_zone;
}