73 lines
1.8 KiB
C++
73 lines
1.8 KiB
C++
#pragma once
|
|
|
|
#include "Client_Define.h"
|
|
#include "GameInstance.h"
|
|
|
|
NS_BEGIN(Engine)
|
|
class CGameObject;
|
|
class CCamera;
|
|
NS_END
|
|
|
|
|
|
NS_BEGIN(Client)
|
|
|
|
class CCutSceneInfo final : public CBase
|
|
{
|
|
private:
|
|
CCutSceneInfo();
|
|
~CCutSceneInfo() = default;
|
|
|
|
public:
|
|
void Update(_float fTimeDelta);
|
|
void Load_CutScenes();
|
|
|
|
public:
|
|
void Active_Event(_string& strKey);
|
|
HRESULT DeActive_ActiveEvent(_string& strKey);
|
|
void Load_Events(pair<_string, TimeLine*>& pairTimeLine);
|
|
HRESULT Clear_AllEvents();
|
|
_bool IsActiveCutScene() { return m_bIsActiveCutScene; }
|
|
private:
|
|
CGameInstance* m_pGameInstance = { nullptr };
|
|
class CInfoInstance* m_pInfoInstance = { nullptr };
|
|
ID3D11Device* m_pDevice = { nullptr };
|
|
ID3D11DeviceContext* m_pContext = { nullptr };
|
|
|
|
map<_string, TimeLine*> m_funcActiveEvents = {};
|
|
map<_string, TimeLine*> m_funcWaitEvents = {};
|
|
_bool m_bIsActiveCutScene = { false };
|
|
|
|
map<_string, function<void()>> m_CutScene_StartEvents = {};
|
|
map<_string, function<void()>> m_CutScene_EndEvents = {};
|
|
CEffect_Container* pSmokeEffect = { nullptr };
|
|
private:
|
|
void Update_ActiveEvents(_float fTimeDelta);
|
|
void Update_WaitEvents(_float fTimeDelta);
|
|
HRESULT Initialize(ID3D11Device* pDevice, ID3D11DeviceContext* pContex);
|
|
void Load_CutSceneXML(const string& path);
|
|
void Set_AllActiveEventsExit();
|
|
void Update_Start_Event(const _char* pEventKey);
|
|
void Update_End_Event(const _char* pEventKey);
|
|
#ifdef _DEBUG
|
|
public:
|
|
#endif // _DEBUG
|
|
HRESULT Clear_ActiveEvents();
|
|
HRESULT Clear_Events(map<_string, TimeLine*>&Events);
|
|
|
|
|
|
HRESULT Ready_GameplayCutScenes();
|
|
HRESULT Ready_FieldCutScenes();
|
|
HRESULT Ready_Events();
|
|
|
|
|
|
public:
|
|
static CCutSceneInfo* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContex);
|
|
virtual void Free() override;
|
|
#ifdef _DEBUG
|
|
virtual void Describe_Entity();
|
|
#endif // _DEBUG
|
|
|
|
};
|
|
|
|
NS_END
|