Files
Hogwarts_Legacy/Jusin154_Team3D/Engine/Public/Component.h
T
2025-11-07 11:25:08 +09:00

37 lines
830 B
C++

#pragma once
#include "Base.h"
NS_BEGIN(Engine)
class ENGINE_DLL CComponent abstract : public CBase
{
protected:
CComponent(ID3D11Device * pDevice, ID3D11DeviceContext * pContext);
CComponent(const CComponent& rhs);
virtual ~CComponent() = default;
public:
virtual HRESULT Render() { return S_OK; }
protected:
ID3D11Device* m_pDevice = { nullptr };
ID3D11DeviceContext* m_pContext = { nullptr };
class CGameInstance* m_pGameInstance = { nullptr };
class CGameObject* m_pOwner = { nullptr };
_bool m_bCloned = { false };
protected:
virtual HRESULT Initialize_Prototype();
virtual HRESULT Initialize(void* pArg);
public:
virtual CComponent* Clone(void* pArg, class CGameObject* pOwner = nullptr)PURE;
virtual void Free();
#ifdef _DEBUG
virtual void Describe_Entity()PURE; // IMGUI Àü¿ë
#endif
};
NS_END