@@ -190,6 +190,7 @@ call Update_Resources.bat
|
||||
<ClInclude Include="..\Public\Goblin_Sword.h" />
|
||||
<ClInclude Include="..\Public\Human_Duelist.h" />
|
||||
<ClInclude Include="..\public\InstancedProp_Light.h" />
|
||||
<ClInclude Include="..\Public\Duelist_JapSide.h" />
|
||||
<ClInclude Include="..\Public\RandomNpc.h" />
|
||||
<ClInclude Include="..\Public\Ranrok_Breath.h" />
|
||||
<ClInclude Include="..\Public\Ranrok_Charge.h" />
|
||||
@@ -486,6 +487,7 @@ call Update_Resources.bat
|
||||
<ClCompile Include="..\Private\Human_Duelist.cpp" />
|
||||
<ClCompile Include="..\Private\Human_Duelist_States.cpp" />
|
||||
<ClCompile Include="..\private\InstancedProp_Light.cpp" />
|
||||
<ClCompile Include="..\Private\Duelist_JapSide.cpp" />
|
||||
<ClCompile Include="..\Private\PlayerRobe_Initialize.cpp" />
|
||||
<ClCompile Include="..\Private\RandomNpc.cpp" />
|
||||
<ClCompile Include="..\Private\Ranrok_Breath.cpp" />
|
||||
|
||||
@@ -902,6 +902,9 @@
|
||||
<ClInclude Include="..\Public\EffectInfo.h">
|
||||
<Filter>03.InfoInstance\05.EffectInfo</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Duelist_JapSide.h">
|
||||
<Filter>02.GameObjects\Effect\Effects\NomalJap\Duelist_JapSide</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Image Include="Client.ico">
|
||||
@@ -2730,6 +2733,9 @@
|
||||
<ClCompile Include="..\Private\EffectInfo.cpp">
|
||||
<Filter>03.InfoInstance\05.EffectInfo</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Duelist_JapSide.cpp">
|
||||
<Filter>02.GameObjects\Effect\Effects\NomalJap\Duelist_JapSide</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\Private\Goblin_States.cpp">
|
||||
|
||||
@@ -0,0 +1,224 @@
|
||||
#include "pch.h"
|
||||
#include "Duelist_JapSide.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
#include "EffectParts.h"
|
||||
#include "Player.h"
|
||||
#include "Wand.h"
|
||||
#include "TrailObject.h"
|
||||
|
||||
|
||||
CDuelist_JapSide::CDuelist_JapSide(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CEffect_Container{ pDevice, pContext }
|
||||
{
|
||||
}
|
||||
|
||||
CDuelist_JapSide::CDuelist_JapSide(const CDuelist_JapSide& rhs)
|
||||
: CEffect_Container(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CDuelist_JapSide::Initialize_Prototype()
|
||||
{
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/NPCJapSide")))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CDuelist_JapSide::Initialize(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Initialize(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Create_Effect()))
|
||||
return E_FAIL;
|
||||
|
||||
m_wstrEffectName = L"NPCJapSide";
|
||||
|
||||
|
||||
m_pWandParticle = Get_PartObject<CEffectParts>("WandParticle1");
|
||||
m_pWandLight = Get_PartObject<CEffectParts>("Wand_Yellow_Long");
|
||||
m_pWandLight_R = Get_PartObject<CEffectParts>("Wand_Light_Y");
|
||||
m_pWandTrail = Get_PartObject<CTrailObject>();
|
||||
|
||||
SAFE_ADDREF(m_pWandLight);
|
||||
SAFE_ADDREF(m_pWandTrail);
|
||||
SAFE_ADDREF(m_pWandParticle);
|
||||
SAFE_ADDREF(m_pWandLight_R);
|
||||
|
||||
m_Events.emplace(0.6f, [&]() {
|
||||
|
||||
// 파티클 제어
|
||||
m_isParticleEnd = true;
|
||||
m_pWandParticle->Get_Component<CTransform>()->Set_State(STATE::POSITION, XMVectorSet(0.f, -500.f, 0.f, 1.f));
|
||||
|
||||
|
||||
// 트레일 제어
|
||||
CWand* pWand = static_cast<CWand*>(m_pOwner);
|
||||
|
||||
if (pWand == nullptr)
|
||||
return;
|
||||
|
||||
m_isTrailEnd = true;
|
||||
|
||||
XMStoreFloat4x4(&m_TrailStopMat, pWand->Get_WorldMatrix());
|
||||
m_pWandLight_R->Set_Visible(false);
|
||||
|
||||
});
|
||||
|
||||
m_fDuration = 2.f;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CDuelist_JapSide::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
|
||||
}
|
||||
|
||||
void CDuelist_JapSide::Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
|
||||
Update_Event(fTimeDelta);
|
||||
|
||||
|
||||
CWand* pWand = static_cast<CWand*>(m_pOwner);
|
||||
|
||||
if (pWand == nullptr)
|
||||
return;
|
||||
|
||||
m_pWandLight->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
|
||||
m_pWandLight_R->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
|
||||
|
||||
// 파티클생성이 막히면 실행되지 않음
|
||||
if (m_isParticleEnd == false)
|
||||
m_pWandParticle->Get_Component<CTransform>()->Set_WorldMatrix(pWand->Get_WorldMatrix());
|
||||
|
||||
// 트레일이 종료되면 위치를 고정함
|
||||
_matrix TrailMat = m_isTrailEnd ? XMLoadFloat4x4(&m_TrailStopMat) : pWand->Get_WorldMatrix();
|
||||
m_pWandTrail->Trail_Update(TrailMat, fTimeDelta);
|
||||
|
||||
}
|
||||
|
||||
void CDuelist_JapSide::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Late_Update(fTimeDelta);
|
||||
|
||||
|
||||
}
|
||||
|
||||
HRESULT CDuelist_JapSide::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Pre_Setting(pObject, nullptr)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
CWand* pWand = static_cast<CWand*>(m_pOwner);
|
||||
|
||||
if (pWand == nullptr)
|
||||
return E_FAIL;
|
||||
|
||||
m_pWandParticle->Set_Visible(true);
|
||||
m_isParticleEnd = false; // 파티클이 일정시간이 되면 나오지 않게 하려고
|
||||
|
||||
m_pWandLight->Set_Visible(true);
|
||||
m_pWandLight_R->Set_Visible(true);
|
||||
|
||||
/*트레일 초기화 */
|
||||
m_pWandTrail->Set_Visible(true);
|
||||
m_isTrailEnd = false;
|
||||
m_pWandTrail->Get_Component<CTrail>()->Reset_Trail();
|
||||
|
||||
/*_vector pPos = pPlayer->Get_WandPos().r[3];*/
|
||||
|
||||
m_pWandLight->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
|
||||
m_pWandLight_R->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CDuelist_JapSide::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Ready_Components(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CDuelist_JapSide::Ready_Child()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CDuelist_JapSide* CDuelist_JapSide::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CDuelist_JapSide* pInstance = new CDuelist_JapSide(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CDuelist_JapSide");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
|
||||
CGameObject* CDuelist_JapSide::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CDuelist_JapSide* pInstance = new CDuelist_JapSide(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CDuelist_JapSide");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CDuelist_JapSide::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
{
|
||||
ON_COLLISION_INFO* CollisionDesc = static_cast<ON_COLLISION_INFO*>(pDesc);
|
||||
|
||||
}
|
||||
|
||||
void CDuelist_JapSide::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
|
||||
Safe_Release(m_pWandLight);
|
||||
Safe_Release(m_pWandTrail);
|
||||
Safe_Release(m_pWandParticle);
|
||||
Safe_Release(m_pWandLight_R);
|
||||
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
|
||||
void CDuelist_JapSide::Describe_Entity()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
#endif // _DEBUG
|
||||
|
||||
HRESULT CDuelist_JapSide::Bind_ShaderResources()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -147,7 +147,7 @@ void CHuman_Duelist::Behavior_LightAttackEnter()
|
||||
fRatio);
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() { m_pEffectPool->Use_Skill(SKILL_TYPE::JAP_SIDE, Get_PartObject<CWand>()); },
|
||||
[this]() { m_pEffectPool->Use_Skill(SKILL_TYPE::DUELIST_JAPSIDE, Get_PartObject<CWand>()); },
|
||||
0.0f);
|
||||
|
||||
m_fSkillCoolTime[ENUM_CLASS(SKILL::LIGHT_ATTACK)] = m_fMaxSkillCoolTime[ENUM_CLASS(SKILL::LIGHT_ATTACK)];
|
||||
|
||||
@@ -199,6 +199,7 @@
|
||||
#include "EffectPool.h"
|
||||
#include "Levioso.h"
|
||||
#include "Duelist_Levioso.h"
|
||||
#include "Duelist_JapSide.h"
|
||||
#include "Lumos.h"
|
||||
#include "Accio.h"
|
||||
#include "Blink.h"
|
||||
@@ -2527,6 +2528,10 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CDuelist_JapSide>(g_iStaticLevel, CDuelist_JapSide::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CLumos>(g_iStaticLevel, CLumos::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -105,6 +105,7 @@ HRESULT CPlayer::Initialize(void* pArg)
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
|
||||
m_BasicEffect = make_unique<BasicEffect>(m_pDevice);
|
||||
m_BasicEffect->SetVertexColorEnabled(true);
|
||||
m_BasicEffect->SetView(m_pGameInstance->Get_Transform_Matrix(D3DTS::VIEW));
|
||||
|
||||
@@ -86,7 +86,7 @@ namespace Client
|
||||
RANROK_GROUNDPULSE, RANROK_SWIPE , RANROK_DEAD_SPLASH, RANROK_DEAD_IMPACT, RANROK_PROP,
|
||||
|
||||
/*듀얼리스트*/
|
||||
DUELIST_JAP, DUELIST_LEVIOSO, DUELIST_PROTEGO,
|
||||
DUELIST_JAP, DUELIST_JAPSIDE , DUELIST_LEVIOSO, DUELIST_PROTEGO,
|
||||
|
||||
END
|
||||
};
|
||||
|
||||
@@ -0,0 +1,54 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "Effect_Container.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CDuelist_JapSide final : public CEffect_Container
|
||||
{
|
||||
private:
|
||||
CDuelist_JapSide(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CDuelist_JapSide(const CDuelist_JapSide& rhs);
|
||||
virtual ~CDuelist_JapSide() = default;
|
||||
|
||||
public:
|
||||
virtual void Priority_Update(_float fTimeDelta) override;
|
||||
virtual void Update(_float fTimeDelta) override;
|
||||
virtual void Late_Update(_float fTimeDelta) override;
|
||||
|
||||
public:
|
||||
virtual HRESULT Pre_Setting(CGameObject* pObject, void* pArg = nullptr) override;
|
||||
|
||||
private:
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
virtual HRESULT Ready_Components(void* pArg) override;
|
||||
HRESULT Ready_Child();
|
||||
HRESULT Bind_ShaderResources() override;
|
||||
virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override;
|
||||
private:
|
||||
_wstring m_wstrEffectName = {};
|
||||
|
||||
_bool m_isParticleEnd = {};
|
||||
_bool m_isTrailEnd = {};
|
||||
_float4x4 m_TrailStopMat = {};
|
||||
|
||||
class CEffectParts* m_pWandLight_R = { nullptr };
|
||||
class CEffectParts* m_pWandLight = { nullptr };
|
||||
class CTrailObject* m_pWandTrail = { nullptr };
|
||||
class CEffectParts* m_pWandParticle = { nullptr };
|
||||
|
||||
public:
|
||||
static CDuelist_JapSide* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual void Free() override;
|
||||
CGameObject* Clone(void* pArg, CGameObject* pOwner) override;
|
||||
#ifdef _DEBUG
|
||||
void Describe_Entity() override;
|
||||
#endif // _DEBUG
|
||||
};
|
||||
|
||||
NS_END
|
||||
Binary file not shown.
Reference in New Issue
Block a user