write garbage for BMap dll

This commit is contained in:
2023-09-23 15:55:57 +08:00
parent c0626eefee
commit 94dadbfb1f
7 changed files with 226 additions and 131 deletions

View File

@ -392,7 +392,7 @@ namespace LibCmo::CK2 {
// reserve class info array.
g_CKClassInfo.reserve(static_cast<size_t>(CK_CLASSID::CKCID_MAXCLASSID));
// todo: add class type registrations
// MARK: add class type registrations here
#define EasyClassReg(clsname, cid, parentCid, strName) \
CKClassRegister(cid, parentCid, \
nullptr, \

View File

@ -154,6 +154,7 @@ namespace LibCmo::CK2 {
XContainer::XBitArray CKGetAllNotifyClassID(const XContainer::XBitArray& delObjCids);
// ========== Initializations functions ==========
CKERROR CKStartUp();
CKERROR CKShutdown();

View File

@ -145,6 +145,8 @@ namespace LibCmo::CK2::ObjImpls {
// so we just read it and skip it.
CK_ID placeid;
chunk->ReadObjectID(placeid);
// and remove this flag
EnumsHelper::Rm(m_3dEntityFlags, CK_3DENTITY_FLAGS::CK_3DENTITY_PLACEVALID);
}
// read parent
@ -153,6 +155,8 @@ namespace LibCmo::CK2::ObjImpls {
// we ignore this field.
CK_ID parentid;
chunk->ReadObjectID(parentid);
// and remove this flag
EnumsHelper::Rm(m_3dEntityFlags, CK_3DENTITY_FLAGS::CK_3DENTITY_PARENTVALID);
}
// read priority (non-zero zorder)