2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 13:47:43 +00:00

Refactor ResId into CAssetId

This commit is contained in:
2017-08-12 22:26:14 -07:00
parent e0efcc0e5c
commit 870e8c80ee
176 changed files with 800 additions and 715 deletions

View File

@@ -333,7 +333,7 @@ TAreaId CDummyGameArea::IGetAreaId() const
return x10_areaId;
}
ResId CDummyGameArea::IGetAreaAssetId() const
CAssetId CDummyGameArea::IGetAreaAssetId() const
{
return xc_mrea;
}
@@ -353,7 +353,7 @@ u32 CDummyGameArea::IGetNumAttachedAreas() const
return x44_attachedAreaIndices.size();
}
ResId CDummyGameArea::IGetStringTableAssetId() const
CAssetId CDummyGameArea::IGetStringTableAssetId() const
{
return x8_nameSTRG;
}
@@ -430,7 +430,7 @@ u32 CGameArea::IGetNumAttachedAreas() const
return x8c_attachedAreaIndices.size();
}
ResId CGameArea::IGetStringTableAssetId() const
CAssetId CGameArea::IGetStringTableAssetId() const
{
return x8_nameSTRG;
}
@@ -913,7 +913,7 @@ void CGameArea::PostConstructArea()
if (header.version > 9)
{
athena::io::MemoryReader r(secIt->first, secIt->second);
ResId pathId = r.readUint32Big();
CAssetId pathId = r.readUint32Big();
x12c_postConstructed->x10ac_path = g_SimplePool->GetObj(SObjectTag{FOURCC('PATH'), pathId});
++secIt;
}