yyc12345
e682a87d25
- rename LIBCMO_DISABLE_COPY_MOVE -> YYCC_DEL_CLS_COPY_MOVE and LIBCMO_DEFAULT_COPY_MOVE -> YYCC_DEF_CLS_COPY_MOVE. - fix Vector declaration generator. throw exception when operator[] face invalid index, instead of do fallback. - rename VTAll.hpp -> VTInternal.hpp and VYUserAll -> VTAll.hpp for easy to understand. - fix project name error in Doxygen template. - replace all LIBCMO_OS_WIN32 to YYCC_OS == YYCC_OS_WINDOWS. - fix some compile error (involving utf8 encoding) but not the final result. - use correct way to include std-image library (use <> instead of "") - finish documentation for VTUtils.hpp and VTEncoding.hpp.
39 lines
1012 B
C++
39 lines
1012 B
C++
#pragma once
|
|
|
|
#include "../../VTInternal.hpp"
|
|
#include "CKSceneObject.hpp"
|
|
|
|
namespace LibCmo::CK2::ObjImpls {
|
|
|
|
class CKBeObject : public CKSceneObject {
|
|
public:
|
|
CKBeObject(CKContext* ctx, CK_ID ckid, CKSTRING name);
|
|
virtual ~CKBeObject();
|
|
YYCC_DEL_CLS_COPY_MOVE(CKBeObject);
|
|
|
|
virtual CK_CLASSID GetClassID(void) override {
|
|
return CK_CLASSID::CKCID_BEOBJECT;
|
|
}
|
|
|
|
virtual bool Save(CKStateChunk* chunk, CKFileVisitor* file, CKDWORD flags) override;
|
|
virtual bool Load(CKStateChunk* chunk, CKFileVisitor* file) override;
|
|
|
|
/**
|
|
* @brief Check whether this object is in specified group.
|
|
* @param group[in] The group to be checked.
|
|
* @return True if in it.
|
|
*/
|
|
bool IsInGroup(CKGroup* group) const;
|
|
/**
|
|
* @brief Directly set group data.
|
|
* @param pos
|
|
* @param val
|
|
* @warning This function only should be called by CKGroup. Any other classes should not call this.
|
|
*/
|
|
void ExplicitSetGroup(CKDWORD pos, bool val);
|
|
|
|
protected:
|
|
XContainer::XBitArray m_Groups;
|
|
};
|
|
|
|
} |