mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-21 02:39:17 +00:00
Added new WIP UI to the world editor for loading worlds/areas
This commit is contained in:
@@ -38,9 +38,15 @@ CDependencyTree* CWorld::BuildDependencyTree() const
|
||||
|
||||
void CWorld::SetAreaLayerInfo(CGameArea *pArea)
|
||||
{
|
||||
// The AreaIndex parameter is a placeholder until an improved world loader is implemented.
|
||||
// For now it's the easiest/fastest way to do this because this function is called from
|
||||
// the start window and the start window already knows the area index.
|
||||
for (u32 iArea = 0; iArea < mAreas.size(); iArea++)
|
||||
{
|
||||
if (mAreas[iArea].AreaResID == pArea->ID())
|
||||
{
|
||||
pArea->SetWorldIndex(iArea);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
SArea& AreaInfo = mAreas[pArea->WorldIndex()];
|
||||
|
||||
for (u32 iLyr = 0; iLyr < pArea->NumScriptLayers(); iLyr++)
|
||||
|
||||
Reference in New Issue
Block a user