split CKContext work

This commit is contained in:
yyc12345 committed 2023-09-04 22:58:53 +08:00
1 parent 5c1af5be24
commit ab8a9da526
16 files changed
+519 -198

No files matched your search

+32 -1
View File
@@ -2,6 +2,37 @@
#include "../../VTAll.hpp"
/**
CKObject virtual functions implementations help
Implement as original meaning:
- PreSave()
- Save()
- Load()
- PostLoad()
- GetClassID()
- Show()
- IsHiddenByParent()
- CanBeHide()
- IsVisible()
No implement because don't care:
- GetMemoryOccupation()
- IsObjectUsed()
- PrepareDependencies()
- RemapDependencies()
- CheckPreDeletion()
- CheckPostDeletion()
Implement moved into other location:
- Copy(): Use CKObject::CKObject(CK_ID newid, const CKObject* obj) ctor and CKClassDesc to implement.
- PreDelete(): Write in dtor.
*/
namespace LibCmo::CK2::ObjImpls {
class CKObject {
@@ -19,7 +50,7 @@ namespace LibCmo::CK2::ObjImpls {
return m_ID;
}
CKSTRING GetName(void) {
return m_Name.c_str();
return m_Name.toCKSTRING();
}
void SetName(CKSTRING u8_name) {
m_Name = u8_name;