Implement LegoLOD::Read and related (#634)

* WIP

* Fix

* Remove bogus

* Fix

* Match

* Fix

* Remove TODO
This commit is contained in:
Christian Semmler
2024-03-07 14:57:17 -05:00
committed by GitHub
parent a12146f52f
commit 53e2353f78
16 changed files with 652 additions and 126 deletions

View File

@@ -94,11 +94,11 @@ Result GroupImpl::Add(const Mesh* pMesh)
}
// FUNCTION: LEGO1 0x100a3450
Result GroupImpl::Remove(const Mesh* pMesh)
Result GroupImpl::Remove(const Unk* pUnk)
{
const MeshImpl* pMeshImpl = static_cast<const MeshImpl*>(pMesh);
const UnkImpl* pUnkImpl = static_cast<const UnkImpl*>(pUnk);
// TODO: Incorrect structure
return ResultVal(m_data->DeleteVisual((IDirect3DRMMesh*) pMeshImpl->ImplementationData()));
return ResultVal(m_data->DeleteVisual((IDirect3DRMMesh*) pUnkImpl->ImplementationData()));
}
// FUNCTION: LEGO1 0x100a3480