45 lines
899 B
C++
45 lines
899 B
C++
#pragma once
|
|
|
|
#include "Client_Define.h"
|
|
#include "Base.h"
|
|
|
|
NS_BEGIN(Engine)
|
|
class CGameInstance;
|
|
NS_END
|
|
|
|
NS_BEGIN(Client)
|
|
|
|
class CLoader final : public CBase
|
|
{
|
|
private:
|
|
CLoader(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
|
virtual ~CLoader() = default;
|
|
|
|
public:
|
|
HRESULT Loading();
|
|
void Output();
|
|
|
|
public:
|
|
_bool isFinished() const { return m_isFinished; }
|
|
private:
|
|
CGameInstance* m_pGameInstance = { nullptr };
|
|
ID3D11Device* m_pDevice = { nullptr };
|
|
ID3D11DeviceContext* m_pContext = { nullptr };
|
|
LEVEL m_eNextLevelID = { LEVEL::END };
|
|
|
|
_wstring m_strMessage = {};
|
|
_bool m_isFinished = { false };
|
|
|
|
private:
|
|
HRESULT Initialize(LEVEL eNextLevelID);
|
|
HRESULT Loading_For_Logo();
|
|
HRESULT Loading_For_GamePlay();
|
|
|
|
public:
|
|
static CLoader* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eNextLevelID);
|
|
virtual void Free() override;
|
|
|
|
};
|
|
|
|
NS_END
|