finish CKGroup writer

This commit is contained in:
yyc12345 2023-10-02 11:38:14 +08:00
parent db6263cb53
commit db23c9c952

View File

@ -37,6 +37,12 @@ namespace LibCmo::CK2::ObjImpls {
bool suc = CKBeObject::Save(chunk, file, flags); bool suc = CKBeObject::Save(chunk, file, flags);
if (!suc) return false; if (!suc) return false;
// write grouped object
{
chunk->WriteIdentifier(CK_STATESAVEFLAGS_GROUP::CK_STATESAVE_GROUPALL);
chunk->WriteXObjectPointerArray(m_ObjectArray);
}
chunk->SetClassId(CK_CLASSID::CKCID_GROUP); chunk->SetClassId(CK_CLASSID::CKCID_GROUP);
return true; return true;
} }