libcmo21/LibCmo/CK2/ObjImpls/CKBeObject.hpp

29 lines
781 B
C++
Raw Normal View History

2023-08-31 21:54:25 +08:00
#pragma once
#include "../../VTAll.hpp"
#include "CKSceneObject.hpp"
namespace LibCmo::CK2::ObjImpls {
class CKBeObject : public CKSceneObject {
public:
2023-09-06 10:42:23 +08:00
CKBeObject(CKContext* ctx, CK_ID ckid, CKSTRING name);
virtual ~CKBeObject();
2023-08-31 21:54:25 +08:00
LIBCMO_DISABLE_COPY_MOVE(CKBeObject);
virtual CK_CLASSID GetClassID(void) override {
return CK_CLASSID::CKCID_BEOBJECT;
}
//virtual void PreSave(CKFileVisitor* file, CKDWORD flags) override;
virtual bool Save(CKStateChunk* chunk, CKFileVisitor* file, CKDWORD flags) override;
virtual bool Load(CKStateChunk* chunk, CKFileVisitor* file) override;
//virtual void PostLoad() override;
bool IsInGroup(CKGroup* group);
2023-09-01 12:19:06 +08:00
void CKGroup_SetGroups(CKDWORD pos, bool val);
2023-08-31 21:54:25 +08:00
protected:
XContainer::XBitArray m_Groups;
};
}