commit
This commit is contained in:
@@ -492,6 +492,7 @@ call Update_Resources.bat
|
||||
<ClCompile Include="..\Private\CutScene_Fire.cpp" />
|
||||
<ClCompile Include="..\Private\CutScene_Smoke.cpp" />
|
||||
<ClCompile Include="..\Private\CutScene_Shout.cpp" />
|
||||
<ClCompile Include="..\Private\EffectPool.cpp" />
|
||||
<ClCompile Include="..\Private\HitScreen.cpp" />
|
||||
<ClCompile Include="..\Private\PotionScreen.cpp" />
|
||||
<ClCompile Include="..\Private\PotionBroken.cpp" />
|
||||
@@ -716,7 +717,6 @@ call Update_Resources.bat
|
||||
<ClCompile Include="..\Private\CamPosition.cpp" />
|
||||
<ClCompile Include="..\Private\CamPosition_Arm.cpp" />
|
||||
<ClCompile Include="..\Private\Decendo.cpp" />
|
||||
<ClCompile Include="..\Private\EffectPool.cpp" />
|
||||
<ClCompile Include="..\private\GamePlay_Canvas.cpp" />
|
||||
<ClCompile Include="..\Private\Goblin.cpp" />
|
||||
<ClCompile Include="..\Private\Goblin_States.cpp" />
|
||||
|
||||
@@ -987,7 +987,7 @@
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\CutScene_Shout.h">
|
||||
<Filter>02.GameObjects\Effect\CutSceneEffect\CutScene_Shout</Filter>
|
||||
</ClInclude>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\TriggerBox.h">
|
||||
<Filter>04.Mechanic\20.TriggerBox</Filter>
|
||||
</ClInclude>
|
||||
@@ -1181,9 +1181,6 @@
|
||||
<Filter Include="02.GameObjects\Environment\Terrain">
|
||||
<UniqueIdentifier>{7db61780-d774-4a91-a429-2fb7634e43b3}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Effect\EffectPool">
|
||||
<UniqueIdentifier>{bdd4863e-8ab9-4ce8-a88d-9a0c558a67fb}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Environment\02.InstancedProp">
|
||||
<UniqueIdentifier>{4ef15d06-4520-4d55-ab49-1ae7179f145b}</UniqueIdentifier>
|
||||
</Filter>
|
||||
@@ -2054,6 +2051,9 @@
|
||||
<Filter Include="02.GameObjects\Effect\MonsterEffect\Troll_Attack">
|
||||
<UniqueIdentifier>{e1af9a18-369a-4168-8d6e-c98c951ecb39}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Effect\EffectPool">
|
||||
<UniqueIdentifier>{bdd4863e-8ab9-4ce8-a88d-9a0c558a67fb}</UniqueIdentifier>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="Client.cpp">
|
||||
@@ -2218,9 +2218,6 @@
|
||||
<ClCompile Include="..\Private\LoadingWidget_Flame.cpp">
|
||||
<Filter>02.GameObjects\UI\GamePlay_Canvas\Loding_Panel\LoadingWidget_Flame</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\EffectPool.cpp">
|
||||
<Filter>02.GameObjects\Effect\EffectPool</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Decendo.cpp">
|
||||
<Filter>02.GameObjects\Effect\Effects\Decendo</Filter>
|
||||
</ClCompile>
|
||||
@@ -2975,6 +2972,9 @@
|
||||
<ClCompile Include="..\Private\Troll_Throw.cpp">
|
||||
<Filter>02.GameObjects\Effect\MonsterEffect\Troll_Throw</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\EffectPool.cpp">
|
||||
<Filter>02.GameObjects\Effect\EffectPool</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\Private\State_Parry.cpp">
|
||||
|
||||
@@ -93,9 +93,10 @@ HRESULT CBlink::Initialize(void* pArg)
|
||||
m_fSpeed = 1.6f;
|
||||
|
||||
|
||||
m_fDuration = 1.45f;
|
||||
|
||||
m_fDuration = 2.f;
|
||||
|
||||
EventName.push_back("Start Trail Dissolve");
|
||||
EventName.push_back("Start Swirl Disappear");
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -168,22 +168,105 @@ void CEffectPool::Priority_Update(_float fTimeDelta)
|
||||
|
||||
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
#if 진우
|
||||
|
||||
|
||||
//(*m_EffectList[ENUM_CLASS(SKILL_TYPE::AVADAKEDAVRA_SIDE)].begin())->Describe_Entity();
|
||||
if (m_pGameInstance->Key_Pressing(DIK_F3))
|
||||
{
|
||||
if (m_pGameInstance->Key_Down(DIK_0))
|
||||
{
|
||||
m_isActiveEffectTime = !m_isActiveEffectTime;
|
||||
}
|
||||
|
||||
//Describe_Entity();
|
||||
if (m_pGameInstance->Key_Down(DIK_1))
|
||||
{
|
||||
m_isActiveEffectList = !m_isActiveEffectList;
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
||||
if (m_isActiveEffectTime == true)
|
||||
{
|
||||
GUI::Begin("Effect Event");
|
||||
|
||||
for (auto pEffect : m_EffectList[ENUM_CLASS(SKILL_TYPE::BLINK)])
|
||||
{
|
||||
if (pEffect->Get_Visible())
|
||||
{
|
||||
pEffect->Show_EventTime();
|
||||
}
|
||||
}
|
||||
|
||||
GUI::End();
|
||||
}
|
||||
|
||||
if (m_isActiveEffectList)
|
||||
{
|
||||
GUI::Begin("Active Pool");
|
||||
|
||||
ImGui::PushStyleColor(ImGuiCol_ChildBg, IM_COL32(50, 80, 200, 80));
|
||||
GUI::BeginChild("ActiveList", ImVec2(0, 240), true);
|
||||
|
||||
_uint iIndex = {};
|
||||
|
||||
for (auto iter = m_ActiveEffectList.begin(); iter != m_ActiveEffectList.end(); )
|
||||
{
|
||||
|
||||
|
||||
if (false == (*iter)->Get_Visible())
|
||||
{
|
||||
++iter;
|
||||
}
|
||||
else
|
||||
{
|
||||
if ((*iter)->Get_SkillType() == ENUM_CLASS(SKILL_TYPE::JAP_SIDE))
|
||||
{
|
||||
++iter;
|
||||
continue;
|
||||
}
|
||||
|
||||
(*iter)->Show_Name(iIndex++);
|
||||
++iter;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
ImGui::PopStyleColor();
|
||||
GUI::EndChild();
|
||||
|
||||
GUI::End();
|
||||
|
||||
iIndex = 0;
|
||||
|
||||
GUI::Begin("Effect Pool");
|
||||
ImGui::PushStyleColor(ImGuiCol_ChildBg, IM_COL32(50, 80, 200, 80));
|
||||
GUI::BeginChild("EventBox", ImVec2(0, 360), true);
|
||||
|
||||
for (auto iter = m_EffectList[ENUM_CLASS(SKILL_TYPE::JAP)].begin(); iter != m_EffectList[ENUM_CLASS(SKILL_TYPE::JAP)].end(); )
|
||||
{
|
||||
if (false == (*iter)->Get_Visible())
|
||||
{
|
||||
(*iter)->Show_Name(iIndex++);
|
||||
|
||||
++iter;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
++iter;
|
||||
}
|
||||
}
|
||||
ImGui::PopStyleColor();
|
||||
GUI::EndChild();
|
||||
|
||||
GUI::End();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void CEffectPool::Update(_float fTimeDelta)
|
||||
{
|
||||
|
||||
|
||||
for (auto iter = m_ActiveEffectList.begin() ; iter != m_ActiveEffectList.end(); )
|
||||
{
|
||||
if (false == (*iter)->Get_Visible())
|
||||
|
||||
@@ -78,6 +78,46 @@ void CEffect_Container::Reset_Light()
|
||||
|
||||
}
|
||||
|
||||
void CEffect_Container::Show_EventTime()
|
||||
{
|
||||
_uint iIndex = {};
|
||||
|
||||
GUI::SetWindowFontScale(1.5f);
|
||||
|
||||
for (auto& Event : m_Events)
|
||||
{
|
||||
char buf[32];
|
||||
sprintf_s(buf, "%.2f", Event.first);
|
||||
|
||||
string strEvent = string(buf) + " | " + EventName[iIndex++];
|
||||
|
||||
GUI::Selectable(strEvent.c_str(), Event.first >= m_fAccTime);
|
||||
|
||||
GUI::Spacing(); GUI::Separator(); GUI::Spacing();
|
||||
}
|
||||
string strDuration = "Current Duration : " ;
|
||||
strDuration += to_string(m_fAccTime);
|
||||
|
||||
GUI::Text(strDuration.c_str());
|
||||
|
||||
string strDuration2 = "Duration : ";
|
||||
strDuration2 += to_string(m_fDuration);
|
||||
|
||||
GUI::Text(strDuration2.c_str());
|
||||
|
||||
GUI::SetWindowFontScale(1.f);
|
||||
}
|
||||
|
||||
void CEffect_Container::Show_Name(_uint iNumber)
|
||||
{
|
||||
GUI::SetWindowFontScale(1.3f);
|
||||
string strName = to_string(iNumber) + ". " + CMyTools::ToString(m_wstrEffectName);
|
||||
|
||||
GUI::Text(strName.c_str());
|
||||
|
||||
GUI::SetWindowFontScale(1.f);
|
||||
}
|
||||
|
||||
HRESULT CEffect_Container::Load_Package(const _char* pPath)
|
||||
{
|
||||
|
||||
|
||||
@@ -45,7 +45,7 @@ HRESULT CNomalJap::Initialize(void* pArg)
|
||||
m_iSkillType = ENUM_CLASS(SKILL_TYPE::JAP);
|
||||
|
||||
|
||||
m_wstrEffectName = L"Nomal_Jap";
|
||||
m_wstrEffectName = L"Nomal Jap";
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -38,8 +38,9 @@ HRESULT CNomalJapSide::Initialize(void* pArg)
|
||||
if (FAILED(Create_Effect()))
|
||||
return E_FAIL;
|
||||
|
||||
m_wstrEffectName = L"JapSideEffect";
|
||||
m_wstrEffectName = L"NomalJap Side";
|
||||
|
||||
m_iSkillType = ENUM_CLASS(SKILL_TYPE::JAP_SIDE);
|
||||
|
||||
m_pWandParticle = Get_PartObject<CEffectParts>("WandParticle1");
|
||||
m_pWandLight = Get_PartObject<CEffectParts>("Wand_Red_Long");
|
||||
|
||||
@@ -25,7 +25,7 @@ class CEffectPool final : public CGameObject
|
||||
virtual void Late_Update(_float fTimeDelta) override;
|
||||
virtual HRESULT Render() override;
|
||||
public:
|
||||
HRESULT Create_Effect(SKILL_TYPE eType, _uint iNumEffect, _uint iPrototypeLevel, _uint iCloneLevel , function<class CEffect_Container*(_uint , _uint)> AddPrototypeEvent);
|
||||
HRESULT Create_Effect(SKILL_TYPE eType, _uint iNumEffect, _uint iPrototypeLevel, _uint iCloneLevel, function<class CEffect_Container* (_uint, _uint)> AddPrototypeEvent);
|
||||
HRESULT Use_Skill(SKILL_TYPE eType, CGameObject* pOwner, void* pArg = nullptr, CEffect_Container** ppOut = nullptr);
|
||||
#ifdef _DEBUG
|
||||
HRESULT Reset_Pool();
|
||||
@@ -41,6 +41,9 @@ class CEffectPool final : public CGameObject
|
||||
private:
|
||||
_bool m_isActiveEffectCreate = { true };
|
||||
_bool m_isActiveMonsterEffectCreate = { true };
|
||||
|
||||
_bool m_isActiveEffectTime = { false };
|
||||
_bool m_isActiveEffectList = { false };
|
||||
public:
|
||||
static CEffectPool* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, CGameObject* pOwner = nullptr) override;
|
||||
|
||||
@@ -67,6 +67,13 @@ class CEffect_Container abstract : public CContainerObject
|
||||
_uint Get_SkillType() const { return m_iSkillType; }
|
||||
void Reset_Light();
|
||||
|
||||
#pragma region 영상용
|
||||
void Show_EventTime();
|
||||
void Show_Name(_uint iNumber);
|
||||
protected:
|
||||
vector<_string> EventName = {};
|
||||
#pragma endregion
|
||||
|
||||
protected:
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
|
||||
@@ -32,7 +32,6 @@ class CNomalJap final : public CEffect_Container
|
||||
virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override;
|
||||
private:
|
||||
class CInfoInstance* m_pInfoInstance = { nullptr };
|
||||
_wstring m_wstrEffectName = {};
|
||||
|
||||
_float4 m_vJapData[4] = { _float4(105.f , 330.f , 35.f , 20.f)
|
||||
, _float4(95.f , 100.f , 55.f , 200.f)
|
||||
|
||||
@@ -31,7 +31,6 @@ class CNomalJapSide final : public CEffect_Container
|
||||
HRESULT Bind_ShaderResources() override;
|
||||
virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override;
|
||||
private:
|
||||
_wstring m_wstrEffectName = {};
|
||||
|
||||
_bool m_isParticleEnd = {};
|
||||
_bool m_isTrailEnd = {};
|
||||
|
||||
Binary file not shown.
BIN
Binary file not shown.
@@ -142,6 +142,7 @@ HRESULT CLight::Render(CShader* pShader, CVIBuffer* pVIBuffer) const
|
||||
if (FAILED(pShader->Bind_RawValue("g_fLightIntensity", &fLightIntensity, sizeof(_float)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(pShader->Begin(iPassIndex))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -1,9 +1,12 @@
|
||||
#include "pch.h"
|
||||
#include "Light_Manager.h"
|
||||
#include "Light.h"
|
||||
#include "GameInstance.h"
|
||||
|
||||
CLight_Manager::CLight_Manager()
|
||||
CLight_Manager::CLight_Manager() :
|
||||
m_pGameInstance{ CGameInstance::GetInstance() }
|
||||
{
|
||||
SAFE_ADDREF(m_pGameInstance);
|
||||
}
|
||||
|
||||
|
||||
@@ -95,6 +98,61 @@ _uint CLight_Manager::Get_NumLight(_uint _iCurrentLevel)
|
||||
|
||||
HRESULT CLight_Manager::Render_Lights(_uint iCurrentLevel, CShader* pShader, CVIBuffer* pVIBuffer)
|
||||
{
|
||||
#pragma region 포폴 영상용
|
||||
|
||||
if (m_pGameInstance->Key_Pressing(DIK_F3))
|
||||
{
|
||||
if (m_pGameInstance->Key_Down(DIK_2))
|
||||
{
|
||||
m_isGUITool = !m_isGUITool;
|
||||
}
|
||||
}
|
||||
|
||||
if (m_isGUITool)
|
||||
{
|
||||
GUI::Begin("Persistent Light");
|
||||
|
||||
ImGui::PushStyleColor(ImGuiCol_ChildBg, IM_COL32(50, 80, 200, 80));
|
||||
GUI::BeginChild("Persistent Lights", ImVec2(0, 240), true);
|
||||
|
||||
_uint iIndex = {};
|
||||
|
||||
for (auto& pLight : m_Lights[iCurrentLevel])
|
||||
{
|
||||
GUI::Text("%d. Main Light", iIndex++);
|
||||
}
|
||||
|
||||
|
||||
GUI::EndChild();
|
||||
ImGui::PopStyleColor();
|
||||
|
||||
GUI::End();
|
||||
|
||||
iIndex = 0;
|
||||
////////////////////////////////////////
|
||||
|
||||
GUI::Begin("Transient Light");
|
||||
|
||||
ImGui::PushStyleColor(ImGuiCol_ChildBg, IM_COL32(50, 80, 200, 80));
|
||||
GUI::BeginChild("Transient Lights", ImVec2(0, 240), true);
|
||||
|
||||
for (auto& pLight : m_FrameLights[iCurrentLevel])
|
||||
{
|
||||
if (pLight->GetEndLight() == true)
|
||||
continue;
|
||||
|
||||
GUI::Text("%d. Transient Light", iIndex++);
|
||||
}
|
||||
|
||||
|
||||
GUI::EndChild();
|
||||
ImGui::PopStyleColor();
|
||||
|
||||
GUI::End();
|
||||
}
|
||||
|
||||
#pragma endregion
|
||||
|
||||
for (auto& pLight : m_Lights[iCurrentLevel])
|
||||
{
|
||||
pLight->Render(pShader, pVIBuffer);
|
||||
@@ -111,6 +169,7 @@ HRESULT CLight_Manager::Render_Lights(_uint iCurrentLevel, CShader* pShader, CVI
|
||||
m_FrameLights[iCurrentLevel].clear();
|
||||
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -157,4 +216,6 @@ void CLight_Manager::Free()
|
||||
|
||||
Safe_Delete_Array(m_FrameLights);
|
||||
|
||||
SAFE_RELEASE(m_pGameInstance);
|
||||
|
||||
}
|
||||
|
||||
@@ -27,6 +27,10 @@ class ENGINE_DLL CLight final : public CComponent
|
||||
void Set_LightIntensity(_float fValue) { m_fLightIntensity = fValue; }
|
||||
_float Get_LightIntensity() { return m_fLightIntensity; }
|
||||
|
||||
_bool GetEndLight() {
|
||||
return m_fIntensityRatio <= 0.f;
|
||||
}
|
||||
|
||||
public:
|
||||
const LIGHT_DESC* Get_LightDesc() { return &m_LightDesc; }
|
||||
void Set_Color(_float4& vDiffuse, _float4& vAmbient, _float4& vSpecular);
|
||||
|
||||
@@ -27,6 +27,9 @@ class CLight_Manager final : public CBase
|
||||
_uint m_iLevelNumber = {};
|
||||
list<class CLight*>* m_Lights = { nullptr };
|
||||
list<class CLight*>* m_FrameLights = { nullptr };
|
||||
|
||||
_bool m_isGUITool = { false };
|
||||
class CGameInstance* m_pGameInstance = { nullptr };
|
||||
public:
|
||||
static CLight_Manager* Create(_uint iNumLevel);
|
||||
virtual void Free() override;
|
||||
|
||||
Reference in New Issue
Block a user