libcmo21/LibCmo/CK2/ObjImpls/CK3dEntity.hpp

38 lines
1.1 KiB
C++
Raw Normal View History

2023-09-01 14:55:31 +08:00
#pragma once
#include "../../VTAll.hpp"
#include "CKRenderObject.hpp"
namespace LibCmo::CK2::ObjImpls {
class CK3dEntity : public CKRenderObject {
public:
2023-09-19 22:32:07 +08:00
CK3dEntity(CKContext* ctx, CK_ID ckid, CKSTRING name);
virtual ~CK3dEntity();
2023-09-01 14:55:31 +08:00
LIBCMO_DISABLE_COPY_MOVE(CK3dEntity);
virtual CK_CLASSID GetClassID(void) override {
return CK_CLASSID::CKCID_3DENTITY;
}
//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;
2023-09-20 13:13:08 +08:00
// it have special Show and IsVisible method
virtual void Show(CK_OBJECT_SHOWOPTION show = CK_OBJECT_SHOWOPTION::CKSHOW) override;
virtual bool IsVisible() const override;
2023-09-01 14:55:31 +08:00
protected:
2023-09-19 22:32:07 +08:00
XContainer::XObjectPointerArray m_PotentialMeshes;
2023-09-01 14:55:31 +08:00
CKMesh* m_CurrentMesh;
VxMath::VxMatrix m_WorldMatrix;
2023-09-19 22:32:07 +08:00
CKDWORD m_ZOrder; // replace the whole heavy CKSceneGraphNode
2023-09-01 14:55:31 +08:00
2023-09-19 22:32:07 +08:00
VxMath::VX_MOVEABLE_FLAGS m_MoveableFlags;
CK_3DENTITY_FLAGS m_3dEntityFlags;
2023-09-01 14:55:31 +08:00
};
}