@@ -161,6 +161,7 @@ call Update_Resources.bat
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\Public\Action_Panel.h" />
|
||||
<ClInclude Include="..\Public\Barral_Splesh.h" />
|
||||
<ClInclude Include="..\Public\Avadakedavra.h" />
|
||||
<ClInclude Include="..\Public\CallBack_NonPlayable_Behavior.h" />
|
||||
<ClInclude Include="..\Public\CallBack_NonPlayable_HitReport.h" />
|
||||
<ClInclude Include="..\Public\State_Fall.h" />
|
||||
@@ -392,6 +393,7 @@ call Update_Resources.bat
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\Private\Action_Panel.cpp" />
|
||||
<ClCompile Include="..\Private\Avadakedavra.cpp" />
|
||||
<ClCompile Include="..\Private\CallBack_NonPlayable_Behavior.cpp" />
|
||||
<ClCompile Include="..\Private\CallBack_NonPlayable_HitReport.cpp" />
|
||||
<ClCompile Include="..\Private\State_Fall.cpp" />
|
||||
|
||||
@@ -689,6 +689,9 @@
|
||||
<ClInclude Include="..\Public\TransformationSide.h">
|
||||
<Filter>02.GameObjects\Effect\Effects\Transformation\TransformationSide</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Avadakedavra.h">
|
||||
<Filter>02.GameObjects\Effect\Effects\Avadakedavra</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\SpellLearn_Slot.h">
|
||||
<Filter>02.GameObjects\UI\SpellLearn_Canvas\SpellLearn_Panel\SpellLearn_Slot</Filter>
|
||||
</ClInclude>
|
||||
@@ -1461,6 +1464,9 @@
|
||||
<Filter Include="02.GameObjects\Effect\Effects\Transformation\TransformationSide">
|
||||
<UniqueIdentifier>{064b5e2f-dcde-47fd-a43d-43e25800393d}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Effect\Effects\Avadakedavra">
|
||||
<UniqueIdentifier>{575f6ef3-7013-448a-b448-e94f1ddc5647}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\UI\SpellLearn_Canvas\SpellLearn_Panel\SPellLeam_ChaserPointer">
|
||||
<UniqueIdentifier>{d9c0bcb6-64f6-4b58-a68d-ff04c91b9861}</UniqueIdentifier>
|
||||
</Filter>
|
||||
@@ -2118,6 +2124,9 @@
|
||||
<ClCompile Include="..\Private\TransformationSide.cpp">
|
||||
<Filter>02.GameObjects\Effect\Effects\Transformation\TransformationSide</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Avadakedavra.cpp">
|
||||
<Filter>02.GameObjects\Effect\Effects\Avadakedavra</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\NPC_EleazarFig.cpp">
|
||||
<Filter>02.GameObjects\NPC\Ally\GateKeeper</Filter>
|
||||
</ClCompile>
|
||||
|
||||
@@ -0,0 +1,270 @@
|
||||
#include "pch.h"
|
||||
#include "Avadakedavra.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
#include "EffectParts.h"
|
||||
#include "Wand.h"
|
||||
#include "Player.h"
|
||||
#include "InfoInstance.h"
|
||||
|
||||
CAvadakedavra::CAvadakedavra(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CEffect_Container{ pDevice, pContext }
|
||||
{
|
||||
}
|
||||
|
||||
CAvadakedavra::CAvadakedavra(const CAvadakedavra& rhs)
|
||||
: CEffect_Container(rhs),
|
||||
m_pInfoInstance(CInfoInstance::GetInstance())
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CAvadakedavra::Initialize_Prototype()
|
||||
{
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Avadakedavra")))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
|
||||
HRESULT CAvadakedavra::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_iSkillType = ENUM_CLASS(SKILL_TYPE::AVADA_KEDAVRA);
|
||||
|
||||
m_wstrEffectName = L"Avadakedavra";
|
||||
|
||||
|
||||
m_fDuration = 4.5f;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CAvadakedavra::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
|
||||
}
|
||||
|
||||
void CAvadakedavra::Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
|
||||
Update_Event(fTimeDelta);
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
void CAvadakedavra::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Late_Update(fTimeDelta);
|
||||
|
||||
//XMStoreFloat4(&m_vEndPos, m_pStupefy_PJ_PT->Get_WorldPostion());
|
||||
|
||||
_vector vDir = XMLoadFloat4(&m_vEndPos) - XMLoadFloat4(&m_vStartPos);
|
||||
|
||||
|
||||
if (false == m_bHit) {
|
||||
_vector vStartPos = XMLoadFloat4(&m_vStartPos);
|
||||
_vector vEndPos = XMLoadFloat4(&m_vEndPos);
|
||||
ON_COLLISION_INFO CollisionInfo = SweepTarget(vStartPos, vEndPos, 0.002f);
|
||||
|
||||
OnCollision(this, &CollisionInfo);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
HRESULT CAvadakedavra::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Pre_Setting(pObject, nullptr)))
|
||||
return E_FAIL;
|
||||
|
||||
CWand* pWand = static_cast<CPlayer*>(m_pOwner)->Get_PartObject<CWand>();
|
||||
|
||||
if (pWand == nullptr)
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
|
||||
|
||||
//_vector vDirection = m_pOwner->Get_Component<CTransform>()->Get_State(STATE::LOOK);
|
||||
|
||||
///*완드 포지션*/
|
||||
|
||||
//_vector vWandPos = pWand->Get_WorldPostion();
|
||||
|
||||
//pStupefy_PJ0->Get_Component<CTransform>()->Set_State(STATE::POSITION, vWandPos);
|
||||
//pStupefy_PJ1->Get_Component<CTransform>()->Set_State(STATE::POSITION, vWandPos);
|
||||
|
||||
//m_pStupefy_PJ_PT->Get_Component<CTransform>()->Set_State(STATE::POSITION, vWandPos);
|
||||
|
||||
//pStupefy_Light_Long->Get_Component<CTransform>()->Set_State(STATE::POSITION, vWandPos);
|
||||
//pBodyFlare->Get_Component<CTransform>()->Set_State(STATE::POSITION, vWandPos);
|
||||
////
|
||||
///*몸통 포지션*/
|
||||
|
||||
//_vector vPlayerPos = m_pOwner->Get_Component<CCharacter_Controller>()->Get_Position() + vDirection * -0.1f;
|
||||
|
||||
//pWand_Distortion->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPlayerPos);
|
||||
///*발 포지션*/
|
||||
|
||||
//_vector vPlayerFootPos = m_pOwner->Get_Component<CCharacter_Controller>()->Get_FootPosition();
|
||||
|
||||
//pStupefy_Smoke->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPlayerFootPos + XMVectorSet(0.f ,1.f ,0.f ,0.f));
|
||||
|
||||
|
||||
|
||||
|
||||
//XMStoreFloat3(&m_vCameraLook, vDirection);
|
||||
|
||||
////_vector vStartPos = vWandPos;
|
||||
//XMStoreFloat4(&m_vStartPos, vStartPos);
|
||||
|
||||
//{ /* 대상 위치 지정 */
|
||||
|
||||
// m_pInfoInstance->Get_LockOnInfo(m_Info);
|
||||
// if (nullptr != m_Info.pUnit) {
|
||||
|
||||
// XMStoreFloat4(&m_vTargetPos, m_Info.pUnit->Get_LockOnPos());
|
||||
|
||||
// XMStoreFloat3(&m_vCameraLook, XMVector3Normalize(XMLoadFloat4(&m_vTargetPos) - XMLoadFloat4(&m_vStartPos)));
|
||||
// }
|
||||
// else {
|
||||
// // 타겟이 없다면 현재위치 -> 카메라 룩벡터 * duration간 예상 이동거리 를 대상으로 지정
|
||||
// XMStoreFloat4(&m_vTargetPos, vStartPos + vDirection * m_fLinearSpeed * 0.5f);
|
||||
// }
|
||||
//}
|
||||
|
||||
|
||||
/* PJ 월드 구성하기 */
|
||||
|
||||
//_float fLength = XMVectorGetX(XMVector3Length(XMLoadFloat4(&m_vTargetPos) - vPlayerPos));
|
||||
|
||||
//CTransform* pPJ0_Transform = pStupefy_PJ0->Get_Component<CTransform>();
|
||||
//CTransform* pPJ1_Transform = pStupefy_PJ1->Get_Component<CTransform>();
|
||||
|
||||
//_vector vUp = XMVector3Normalize(vDirection) * fLength;
|
||||
//_vector vRight = XMVector3Normalize(XMVector3Cross(XMVectorSet(0.f, 0.f, 1.f, 0.f) , vUp));
|
||||
//_vector vLook = XMVector3Normalize(XMVector3Cross(vUp, vRight));
|
||||
//_vector vPos = vPlayerPos;
|
||||
|
||||
//_matrix PJ_WorldMat = { vRight , vUp ,vLook , vPos };
|
||||
|
||||
//pPJ0_Transform->Set_WorldMatrix(PJ_WorldMat);
|
||||
//pPJ1_Transform->Set_WorldMatrix(PJ_WorldMat);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CAvadakedavra::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Ready_Components(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CAvadakedavra::Ready_Child()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CAvadakedavra* CAvadakedavra::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CAvadakedavra* pInstance = new CAvadakedavra(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CAvadakedavra");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
|
||||
CGameObject* CAvadakedavra::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CAvadakedavra* pInstance = new CAvadakedavra(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CAvadakedavra");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CAvadakedavra::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
{
|
||||
if (m_bHit == false)
|
||||
return;
|
||||
|
||||
ON_COLLISION_INFO CollisionDesc = *static_cast<ON_COLLISION_INFO*>(pDesc);
|
||||
|
||||
_vector vPos = XMLoadFloat4(&CollisionDesc.vWorldPos);
|
||||
|
||||
CEffectParts* pStupefy_Hit_PT = Get_PartObject<CEffectParts>("Stupefy_Hit_PT");
|
||||
CEffectParts* pStupefy_Circle0 = Get_PartObject<CEffectParts>("Stupefy_Circle0");
|
||||
CEffectParts* pHitFlare = Get_PartObject<CEffectParts>("HitFlare");
|
||||
|
||||
|
||||
pStupefy_Hit_PT->Set_Visible(true);
|
||||
pStupefy_Hit_PT->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
pStupefy_Circle0->Set_Visible(true);
|
||||
pStupefy_Circle0->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
pHitFlare->Set_Visible(true);
|
||||
pHitFlare->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
|
||||
|
||||
//
|
||||
//m_pProjectile0->Set_Visible(false);
|
||||
//m_pProjectile1->Set_Visible(false);
|
||||
|
||||
///*맞는순간 위로 올리기*/
|
||||
//m_pStupefy_PJ_PT->Get_Component<CTransform>()->Set_State(STATE::POSITION, XMVectorSet(0.f, 500.f, 0.f, 1.f));
|
||||
|
||||
|
||||
}
|
||||
|
||||
void CAvadakedavra::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
//SAFE_RELEASE(m_pProjectile0);
|
||||
//SAFE_RELEASE(m_pProjectile1);
|
||||
//SAFE_RELEASE(m_pStupefy_PJ_PT);
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
void CAvadakedavra::Describe_Entity()
|
||||
{
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
HRESULT CAvadakedavra::Bind_ShaderResources()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -214,7 +214,7 @@ HRESULT CEffectPool::Bind_ShaderResources()
|
||||
|
||||
HRESULT CEffectPool::Ready_Effect()
|
||||
{
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::JAP, 10, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::JAP, 10, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
CNomalJap* pEffect = nullptr;
|
||||
|
||||
pEffect = m_pGameInstance->Clone_Prototype<CNomalJap>(iPrototypeLevel, nullptr);
|
||||
@@ -223,7 +223,7 @@ HRESULT CEffectPool::Ready_Effect()
|
||||
))) return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::BOMBARDA, 5, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel)-> CEffect_Container* {
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::BOMBARDA, 5, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel)-> CEffect_Container* {
|
||||
|
||||
CBombard* pEffect = nullptr;
|
||||
|
||||
@@ -232,7 +232,7 @@ HRESULT CEffectPool::Ready_Effect()
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::DESCENDO, 5, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel)-> CEffect_Container* {
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::DESCENDO, 5, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel)-> CEffect_Container* {
|
||||
|
||||
CDecendo* pEffect = nullptr;
|
||||
|
||||
@@ -241,7 +241,7 @@ HRESULT CEffectPool::Ready_Effect()
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::PROTEGO, 5, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel)-> CEffect_Container* {
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::PROTEGO, 5, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel)-> CEffect_Container* {
|
||||
|
||||
CProtego* pEffect = nullptr;
|
||||
|
||||
@@ -250,7 +250,7 @@ HRESULT CEffectPool::Ready_Effect()
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::REVELIO, 5, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel)-> CEffect_Container* {
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::REVELIO, 5, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel)-> CEffect_Container* {
|
||||
|
||||
CRevelio* pEffect = nullptr;
|
||||
|
||||
@@ -259,7 +259,7 @@ HRESULT CEffectPool::Ready_Effect()
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::JAP_SIDE, 5, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel)-> CEffect_Container* {
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::JAP_SIDE, 5, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel)-> CEffect_Container* {
|
||||
|
||||
CNomalJapSide* pEffect = nullptr;
|
||||
|
||||
@@ -268,7 +268,7 @@ HRESULT CEffectPool::Ready_Effect()
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::LEVIOSO, 5, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::LEVIOSO, 5, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CLevioso* pEffect = nullptr;
|
||||
|
||||
@@ -278,7 +278,7 @@ HRESULT CEffectPool::Ready_Effect()
|
||||
))) return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::LUMOS, 5, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::LUMOS, 5, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CLumos* pEffect = nullptr;
|
||||
|
||||
@@ -288,7 +288,7 @@ HRESULT CEffectPool::Ready_Effect()
|
||||
))) return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::ACCIO, 5, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::ACCIO, 5, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CAccio* pEffect = nullptr;
|
||||
|
||||
@@ -298,7 +298,7 @@ HRESULT CEffectPool::Ready_Effect()
|
||||
))) return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::BOMBARDA_SIDE, 5, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::BOMBARDA_SIDE, 5, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CBombardSide* pEffect = nullptr;
|
||||
|
||||
@@ -307,7 +307,7 @@ HRESULT CEffectPool::Ready_Effect()
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::LEVIOSO_SIDE, 5, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::LEVIOSO_SIDE, 5, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CLeviosoSide* pEffect = nullptr;
|
||||
|
||||
@@ -317,7 +317,7 @@ HRESULT CEffectPool::Ready_Effect()
|
||||
))) return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::DESCENDO_SIDE, 5, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::DESCENDO_SIDE, 5, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CDecendoSide* pEffect = nullptr;
|
||||
|
||||
@@ -327,7 +327,7 @@ HRESULT CEffectPool::Ready_Effect()
|
||||
))) return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::WAND_END, 5, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::WAND_END, 5, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CWandEnd* pEffect = nullptr;
|
||||
|
||||
@@ -337,7 +337,7 @@ HRESULT CEffectPool::Ready_Effect()
|
||||
))) return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::BOX_SPLESH, 5, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::BOX_SPLESH, 5, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CBox_Splesh* pEffect = nullptr;
|
||||
|
||||
@@ -347,7 +347,7 @@ HRESULT CEffectPool::Ready_Effect()
|
||||
))) return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::CHAIL_SPLESH, 5, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::CHAIL_SPLESH, 5, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CChair_Splesh* pEffect = nullptr;
|
||||
|
||||
@@ -357,7 +357,7 @@ HRESULT CEffectPool::Ready_Effect()
|
||||
))) return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::BARRAL_SPLASH, 5, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::BARRAL_SPLASH, 5, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CBarral_Splesh* pEffect = nullptr;
|
||||
|
||||
@@ -367,7 +367,7 @@ HRESULT CEffectPool::Ready_Effect()
|
||||
))) return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::SCREEN_WIND, 3, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::SCREEN_WIND, 3, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CScreen_Wind* pEffect = nullptr;
|
||||
|
||||
@@ -377,7 +377,7 @@ HRESULT CEffectPool::Ready_Effect()
|
||||
))) return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::STUPEFY, 3, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::STUPEFY, 3, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CStupefy* pEffect = nullptr;
|
||||
|
||||
@@ -386,7 +386,7 @@ HRESULT CEffectPool::Ready_Effect()
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::LIGHTNING, 3, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::LIGHTNING, 3, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CLightning* pEffect = nullptr;
|
||||
|
||||
@@ -395,7 +395,7 @@ HRESULT CEffectPool::Ready_Effect()
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::LIGHTNING_SIDE, 3, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::LIGHTNING_SIDE, 3, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CLightningSide* pEffect = nullptr;
|
||||
|
||||
@@ -405,7 +405,7 @@ HRESULT CEffectPool::Ready_Effect()
|
||||
))) return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::BLINK, 3, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::BLINK, 3, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CBlink* pEffect = nullptr;
|
||||
|
||||
@@ -414,7 +414,7 @@ HRESULT CEffectPool::Ready_Effect()
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::TRANSFORMATION, 3, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::TRANSFORMATION, 3, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CTransformation* pEffect = nullptr;
|
||||
|
||||
@@ -423,7 +423,7 @@ HRESULT CEffectPool::Ready_Effect()
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::TRANSFORMATION_SIDE, 3, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::TRANSFORMATION_SIDE, 3, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CTransformationSide* pEffect = nullptr;
|
||||
|
||||
@@ -440,7 +440,7 @@ HRESULT CEffectPool::Ready_MonsterEffect()
|
||||
{
|
||||
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::TROLL_ATTACK, 5, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::TROLL_ATTACK, 5, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CTrollSwing* pEffect = nullptr;
|
||||
|
||||
@@ -449,7 +449,7 @@ HRESULT CEffectPool::Ready_MonsterEffect()
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::TROLL_NOMAL_SMOKE, 5, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::TROLL_NOMAL_SMOKE, 5, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CTroll_Nomal_Smoke* pEffect = nullptr;
|
||||
|
||||
@@ -458,7 +458,7 @@ HRESULT CEffectPool::Ready_MonsterEffect()
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::TROLL_RUSH_HIT, 5, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::TROLL_RUSH_HIT, 5, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CTroll_Rush_Hit* pEffect = nullptr;
|
||||
|
||||
@@ -468,7 +468,7 @@ HRESULT CEffectPool::Ready_MonsterEffect()
|
||||
))) return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::GOBLIN_PROTEGO, 5, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::GOBLIN_PROTEGO, 5, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CGoblin_Protego* pEffect = nullptr;
|
||||
|
||||
@@ -477,7 +477,7 @@ HRESULT CEffectPool::Ready_MonsterEffect()
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::GOBLIN_ATTACK, 5, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::GOBLIN_ATTACK, 5, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CGoblin_Attack* pEffect = nullptr;
|
||||
|
||||
@@ -487,7 +487,7 @@ HRESULT CEffectPool::Ready_MonsterEffect()
|
||||
|
||||
))) return E_FAIL;
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::GOBLIN_MAGE_ATTACK, 5, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::GOBLIN_MAGE_ATTACK, 5, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CMage_Nomal_Attack* pEffect = nullptr;
|
||||
|
||||
@@ -497,7 +497,7 @@ HRESULT CEffectPool::Ready_MonsterEffect()
|
||||
|
||||
))) return E_FAIL;
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::GOBLIN_MAGE_DOWN, 5, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::GOBLIN_MAGE_DOWN, 5, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CMage_Down_Attack* pEffect = nullptr;
|
||||
|
||||
@@ -508,7 +508,7 @@ HRESULT CEffectPool::Ready_MonsterEffect()
|
||||
|
||||
))) return E_FAIL;
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::GOBLIN_MAGE_SIDE, 5, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::GOBLIN_MAGE_SIDE, 5, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CMageSide* pEffect = nullptr;
|
||||
|
||||
@@ -519,7 +519,7 @@ HRESULT CEffectPool::Ready_MonsterEffect()
|
||||
))) return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::STUN, 5, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::STUN, 5, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CStunEffect* pEffect = nullptr;
|
||||
|
||||
@@ -529,7 +529,7 @@ HRESULT CEffectPool::Ready_MonsterEffect()
|
||||
|
||||
))) return E_FAIL;
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::GOBILN_TELEPORT, 5, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::GOBILN_TELEPORT, 5, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CGoblin_Teleport* pEffect = nullptr;
|
||||
|
||||
|
||||
@@ -402,7 +402,7 @@ HRESULT CEffect_Container::Create_Effect()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
pEffectParts->Load(EffectInfo, static_cast<LEVEL>(NEXT_LEVEL));
|
||||
pEffectParts->Load(EffectInfo, static_cast<LEVEL>(g_iStaticLevel));
|
||||
|
||||
Safe_Release(pEffectParts);
|
||||
}
|
||||
@@ -413,7 +413,7 @@ HRESULT CEffect_Container::Create_Effect()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
pTrail->Load_Trail(TrailInfo, static_cast<LEVEL>(NEXT_LEVEL));
|
||||
pTrail->Load_Trail(TrailInfo, static_cast<LEVEL>(g_iStaticLevel));
|
||||
|
||||
Safe_Release(pTrail);
|
||||
}
|
||||
|
||||
@@ -462,7 +462,7 @@ HRESULT CGoblin::Ready_Parts()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pGoblin_Particle->Load("../Bin/Resources/Data/Effect/Goblin/GoblinSide/Goblin_Particle", static_cast<LEVEL>(NEXT_LEVEL));
|
||||
m_pGoblin_Particle->Load("../Bin/Resources/Data/Effect/Goblin/GoblinSide/Goblin_Particle", static_cast<LEVEL>(g_iStaticLevel));
|
||||
m_pGoblin_Particle->FollowParents(m_pModelCom->Get_BoneMatrixPtr("RightShoulder"));
|
||||
|
||||
|
||||
@@ -472,7 +472,7 @@ HRESULT CGoblin::Ready_Parts()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pGoblin_Particle2->Load("../Bin/Resources/Data/Effect/Goblin/GoblinSide/Goblin_Particle2", static_cast<LEVEL>(NEXT_LEVEL));
|
||||
m_pGoblin_Particle2->Load("../Bin/Resources/Data/Effect/Goblin/GoblinSide/Goblin_Particle2", static_cast<LEVEL>(g_iStaticLevel));
|
||||
m_pGoblin_Particle2->FollowParents(m_pModelCom->Get_BoneMatrixPtr("RightShoulder"));
|
||||
|
||||
|
||||
@@ -481,7 +481,7 @@ HRESULT CGoblin::Ready_Parts()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pSmoke->Load("../Bin/Resources/Data/Effect/Goblin/GoblinSide/Goblin_Smoke", static_cast<LEVEL>(NEXT_LEVEL));
|
||||
m_pSmoke->Load("../Bin/Resources/Data/Effect/Goblin/GoblinSide/Goblin_Smoke", static_cast<LEVEL>(g_iStaticLevel));
|
||||
m_pSmoke->FollowParents(m_pModelCom->Get_BoneMatrixPtr("Spine2"));
|
||||
|
||||
|
||||
|
||||
@@ -432,7 +432,7 @@ HRESULT CGoblin_Mage::Ready_Parts()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pGoblin_Orb->Load("../Bin/Resources/Data/Effect/GoblinMage/Orb_P", static_cast<LEVEL>(NEXT_LEVEL));
|
||||
m_pGoblin_Orb->Load("../Bin/Resources/Data/Effect/GoblinMage/Orb_P", static_cast<LEVEL>(g_iStaticLevel));
|
||||
Get_PartObject<CEffectParts>()->Set_Visible(true);
|
||||
|
||||
return S_OK;
|
||||
|
||||
@@ -223,23 +223,7 @@ HRESULT CGoblin_Spector::Ready_Components()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
CPartObject::PARTOBJECT_DESC PartsDesc{};
|
||||
|
||||
PartsDesc.pParentTransform = m_pTransformCom;
|
||||
|
||||
if (FAILED(Add_PartObject<CTrailObject>("Left_Trail", g_iStaticLevel, &m_pLeft_Trail, &PartsDesc))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pLeft_Trail->Load_Trail("../Bin/Resources/Data/Effect/Goblin/GoblinSide/Goblin_Trail_R", static_cast<LEVEL>(NEXT_LEVEL));
|
||||
m_pLeft_Trail->Set_Visible(false);
|
||||
|
||||
if (FAILED(Add_PartObject<CTrailObject>("Right_Trail", g_iStaticLevel, &m_pRight_Trail, &PartsDesc))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pRight_Trail->Load_Trail("../Bin/Resources/Data/Effect/Goblin/GoblinSide/Goblin_Trail_R", static_cast<LEVEL>(NEXT_LEVEL));
|
||||
m_pRight_Trail->Set_Visible(false);
|
||||
|
||||
|
||||
return S_OK;
|
||||
@@ -267,6 +251,24 @@ HRESULT CGoblin_Spector::Ready_Parts()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
CPartObject::PARTOBJECT_DESC PartsDesc{};
|
||||
|
||||
PartsDesc.pParentTransform = m_pTransformCom;
|
||||
|
||||
if (FAILED(Add_PartObject<CTrailObject>("Left_Trail", g_iStaticLevel, &m_pLeft_Trail, &PartsDesc))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pLeft_Trail->Load_Trail("../Bin/Resources/Data/Effect/Goblin/GoblinSide/Goblin_Trail_R", static_cast<LEVEL>(g_iStaticLevel));
|
||||
m_pLeft_Trail->Set_Visible(false);
|
||||
|
||||
if (FAILED(Add_PartObject<CTrailObject>("Right_Trail", g_iStaticLevel, &m_pRight_Trail, &PartsDesc))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pRight_Trail->Load_Trail("../Bin/Resources/Data/Effect/Goblin/GoblinSide/Goblin_Trail_R", static_cast<LEVEL>(g_iStaticLevel));
|
||||
m_pRight_Trail->Set_Visible(false);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -1532,7 +1532,7 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
_wstring wstrFilePath = CMyTools::ToWstring(strFilePath);
|
||||
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::GAMEPLAY), wstrFileName,
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, wstrFileName,
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -1549,7 +1549,7 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
_string strFilePath = pFilePath;
|
||||
_wstring wstrFilePath = CMyTools::ToWstring(strFilePath);
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, wstrFileName,
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, wstrFileName,
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -1564,7 +1564,7 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
_wstring wstrFilePath = CMyTools::ToWstring(strFilePath);
|
||||
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, wstrFileName,
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, wstrFileName,
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -1579,7 +1579,7 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
_wstring wstrFilePath = CMyTools::ToWstring(strFilePath);
|
||||
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, wstrFileName,
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, wstrFileName,
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -1594,7 +1594,7 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
_wstring wstrFilePath = CMyTools::ToWstring(strFilePath);
|
||||
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, wstrFileName,
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, wstrFileName,
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -2081,7 +2081,7 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
|
||||
Asset_FileLoad("../Bin/Resources/Models/Effect/Box", L"Prototype_Instance_Model_", [&](_wstring wstrFileName, const _char* pFilePath) {
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, wstrFileName,
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, wstrFileName,
|
||||
CInstance_Model::Create(m_pDevice, m_pContext, pFilePath, MODEL::NONANIM, XMMatrixScaling(0.1f, 0.1f, 0.1f) * XMMatrixIdentity(), 0))))
|
||||
return E_FAIL;
|
||||
|
||||
@@ -2091,7 +2091,7 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
|
||||
Asset_FileLoad("../Bin/Resources/Models/Effect/ParticleMesh", L"Prototype_Instance_Model_", [&](_wstring wstrFileName, const _char* pFilePath) {
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, wstrFileName,
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, wstrFileName,
|
||||
CInstance_Model::Create(m_pDevice, m_pContext, pFilePath, MODEL::NONANIM, XMMatrixScaling(0.1f, 0.1f, 0.1f) * XMMatrixIdentity(), 0))))
|
||||
return E_FAIL;
|
||||
|
||||
@@ -2101,7 +2101,7 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
|
||||
Asset_FileLoad("../Bin/Resources/Models/Effect/Goo", L"Prototype_Instance_Model_", [&](_wstring wstrFileName, const _char* pFilePath) {
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, wstrFileName,
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, wstrFileName,
|
||||
CInstance_Model::Create(m_pDevice, m_pContext, pFilePath, MODEL::NONANIM, XMMatrixScaling(0.1f, 0.1f, 0.1f) * XMMatrixIdentity(), 0))))
|
||||
return E_FAIL;
|
||||
|
||||
@@ -2111,7 +2111,7 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
|
||||
Asset_FileLoad("../Bin/Resources/Models/Effect/NomalMesh", L"Prototype_Instance_Model_", [&](_wstring wstrFileName, const _char* pFilePath) {
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, wstrFileName,
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, wstrFileName,
|
||||
CInstance_Model::Create(m_pDevice, m_pContext, pFilePath, MODEL::NONANIM, XMMatrixScaling(0.1f, 0.1f, 0.1f) * XMMatrixIdentity(), 0))))
|
||||
return E_FAIL;
|
||||
|
||||
@@ -2121,7 +2121,7 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
|
||||
Asset_FileLoad("../Bin/Resources/Models/Effect/Lightning", L"Prototype_Instance_Model_", [&](_wstring wstrFileName, const _char* pFilePath) {
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, wstrFileName,
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, wstrFileName,
|
||||
CInstance_Model::Create(m_pDevice, m_pContext, pFilePath, MODEL::NONANIM, XMMatrixScaling(0.1f, 0.1f, 0.1f) * XMMatrixIdentity(), 0))))
|
||||
return E_FAIL;
|
||||
|
||||
@@ -2130,7 +2130,7 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
|
||||
Asset_FileLoad("../Bin/Resources/Models/Effect/Spline", L"Prototype_Instance_Model_", [&](_wstring wstrFileName, const _char* pFilePath) {
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, wstrFileName,
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, wstrFileName,
|
||||
CInstance_Model::Create(m_pDevice, m_pContext, pFilePath, MODEL::NONANIM, XMMatrixScaling(0.1f, 0.1f, 0.1f) * XMMatrixIdentity(), 0))))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
@@ -515,7 +515,7 @@ HRESULT CTroll::Ready_Parts()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pTroll_Particle->Load("../Bin/Resources/Data/Effect/Troll/TrollSide/Troll_Particle", static_cast<LEVEL>(NEXT_LEVEL));
|
||||
m_pTroll_Particle->Load("../Bin/Resources/Data/Effect/Troll/TrollSide/Troll_Particle", static_cast<LEVEL>(g_iStaticLevel));
|
||||
m_pTroll_Particle->FollowParents(m_pModelCom->Get_BoneMatrixPtr("HeadEnd"));
|
||||
|
||||
|
||||
@@ -525,7 +525,7 @@ HRESULT CTroll::Ready_Parts()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pTroll_Particle2->Load("../Bin/Resources/Data/Effect/Troll/TrollSide/Troll_Particle2", static_cast<LEVEL>(NEXT_LEVEL));
|
||||
m_pTroll_Particle2->Load("../Bin/Resources/Data/Effect/Troll/TrollSide/Troll_Particle2", static_cast<LEVEL>(g_iStaticLevel));
|
||||
m_pTroll_Particle2->FollowParents(m_pModelCom->Get_BoneMatrixPtr("HeadEnd"));
|
||||
|
||||
|
||||
@@ -534,7 +534,7 @@ HRESULT CTroll::Ready_Parts()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pRight_Smoke->Load("../Bin/Resources/Data/Effect/Troll/TrollSide/Troll_Smoke", static_cast<LEVEL>(NEXT_LEVEL));
|
||||
m_pRight_Smoke->Load("../Bin/Resources/Data/Effect/Troll/TrollSide/Troll_Smoke", static_cast<LEVEL>(g_iStaticLevel));
|
||||
m_pRight_Smoke->FollowParents(m_pModelCom->Get_BoneMatrixPtr("RightArm"));
|
||||
|
||||
if (FAILED(Add_PartObject<CEffectParts>("Troll_Left_Smoke", g_iStaticLevel, &m_pLeft_Smoke, &PartsDesc)))
|
||||
@@ -542,7 +542,7 @@ HRESULT CTroll::Ready_Parts()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pLeft_Smoke->Load("../Bin/Resources/Data/Effect/Troll/TrollSide/Troll_Smoke", static_cast<LEVEL>(NEXT_LEVEL));
|
||||
m_pLeft_Smoke->Load("../Bin/Resources/Data/Effect/Troll/TrollSide/Troll_Smoke", static_cast<LEVEL>(g_iStaticLevel));
|
||||
m_pLeft_Smoke->FollowParents(m_pModelCom->Get_BoneMatrixPtr("LeftArm"));
|
||||
|
||||
|
||||
@@ -550,21 +550,21 @@ HRESULT CTroll::Ready_Parts()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pLeftTrail->Load_Trail("../Bin/Resources/Data/Effect/Troll/TrollSide/Troll_Trail", static_cast<LEVEL>(NEXT_LEVEL));
|
||||
m_pLeftTrail->Load_Trail("../Bin/Resources/Data/Effect/Troll/TrollSide/Troll_Trail", static_cast<LEVEL>(g_iStaticLevel));
|
||||
m_pLeftTrail->Set_Visible(false);
|
||||
|
||||
if (FAILED(Add_PartObject<CTrailObject>("Right_Trail", g_iStaticLevel, &m_pRightTrail, &PartsDesc))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pRightTrail->Load_Trail("../Bin/Resources/Data/Effect/Troll/TrollSide/Troll_Trail", static_cast<LEVEL>(NEXT_LEVEL));
|
||||
m_pRightTrail->Load_Trail("../Bin/Resources/Data/Effect/Troll/TrollSide/Troll_Trail", static_cast<LEVEL>(g_iStaticLevel));
|
||||
m_pRightTrail->Set_Visible(false);
|
||||
|
||||
if (FAILED(Add_PartObject<CTrailObject>("Weapon_Trail", g_iStaticLevel, &m_pWeaponTrail, &PartsDesc))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pWeaponTrail->Load_Trail("../Bin/Resources/Data/Effect/Troll/TrollSide/Troll_Swing_Trail", static_cast<LEVEL>(NEXT_LEVEL));
|
||||
m_pWeaponTrail->Load_Trail("../Bin/Resources/Data/Effect/Troll/TrollSide/Troll_Swing_Trail", static_cast<LEVEL>(g_iStaticLevel));
|
||||
m_pWeaponTrail->Set_Visible(false);
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,52 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "Effect_Container.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CAvadakedavra final : public CEffect_Container
|
||||
{
|
||||
private:
|
||||
CAvadakedavra(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CAvadakedavra(const CAvadakedavra& rhs);
|
||||
virtual ~CAvadakedavra() = 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:
|
||||
class CInfoInstance* m_pInfoInstance = { nullptr };
|
||||
private:
|
||||
_wstring m_wstrEffectName = {};
|
||||
|
||||
_float4 m_vStartPos = { 0.f, 0.f, 0.f, 1.f }; // 현재 발사 된 위치
|
||||
_float4 m_vTargetPos = { 0.f, 0.f, 10.f, 1.f }; // 현재 타게팅 된 위치
|
||||
_float m_fLinearSpeed = 0.7f;
|
||||
_float3 m_vCameraLook = {};
|
||||
public:
|
||||
static CAvadakedavra* 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.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -91,6 +91,11 @@ cbuffer g_ConstantBuffer : register(b0) // b0 << 이 숫자와 컨스턴트 쉐
|
||||
bool isExcludePos;
|
||||
bool isStopMove_For_Depth_Compare;
|
||||
bool isNoPos;
|
||||
|
||||
bool isNoResetTime;
|
||||
bool isPadding0;
|
||||
bool isPadding1;
|
||||
bool isPadding2;
|
||||
|
||||
float fTimeDelta;
|
||||
float fSizeLerpOption; // 반드시 상수버퍼는 16바이트 배수로 만들어져야 한다.
|
||||
@@ -189,12 +194,15 @@ void CS_MAIN(
|
||||
particleValue.vDelay.x = 0.f;
|
||||
particleValue.isStop = false;
|
||||
|
||||
particleValue.vMaskingUVMoveTime.x = 0.f;
|
||||
particleValue.vDiffuseUVMoveTime.x = 0.f;
|
||||
particleValue.vNoiseUVMoveTime.x = 0.f;
|
||||
particleValue.vDistortionUVMoveTime.x = 0.f;
|
||||
particleValue.vDissolveUVMoveTime.x = 0.f;
|
||||
|
||||
if (isNoResetTime == false)
|
||||
{
|
||||
particleValue.vMaskingUVMoveTime.x = 0.f;
|
||||
particleValue.vDiffuseUVMoveTime.x = 0.f;
|
||||
particleValue.vNoiseUVMoveTime.x = 0.f;
|
||||
particleValue.vDistortionUVMoveTime.x = 0.f;
|
||||
particleValue.vDissolveUVMoveTime.x = 0.f;
|
||||
}
|
||||
|
||||
if (isRandomAniIndex == false)
|
||||
particleValue.vAniIndex.x = 0.f;
|
||||
|
||||
|
||||
BIN
Binary file not shown.
|
After Width: | Height: | Size: 4.0 KiB |
@@ -91,6 +91,11 @@ cbuffer g_ConstantBuffer : register(b0) // b0 << 이 숫자와 컨스턴트 쉐
|
||||
bool isExcludePos;
|
||||
bool isStopMove_For_Depth_Compare;
|
||||
bool isNoPos;
|
||||
|
||||
bool isNoResetTime;
|
||||
bool isPadding0;
|
||||
bool isPadding1;
|
||||
bool isPadding2;
|
||||
|
||||
float fTimeDelta;
|
||||
float fSizeLerpOption; // 반드시 상수버퍼는 16바이트 배수로 만들어져야 한다.
|
||||
@@ -189,12 +194,15 @@ void CS_MAIN(
|
||||
particleValue.vDelay.x = 0.f;
|
||||
particleValue.isStop = false;
|
||||
|
||||
particleValue.vMaskingUVMoveTime.x = 0.f;
|
||||
particleValue.vDiffuseUVMoveTime.x = 0.f;
|
||||
particleValue.vNoiseUVMoveTime.x = 0.f;
|
||||
particleValue.vDistortionUVMoveTime.x = 0.f;
|
||||
particleValue.vDissolveUVMoveTime.x = 0.f;
|
||||
|
||||
if (isNoResetTime == false)
|
||||
{
|
||||
particleValue.vMaskingUVMoveTime.x = 0.f;
|
||||
particleValue.vDiffuseUVMoveTime.x = 0.f;
|
||||
particleValue.vNoiseUVMoveTime.x = 0.f;
|
||||
particleValue.vDistortionUVMoveTime.x = 0.f;
|
||||
particleValue.vDissolveUVMoveTime.x = 0.f;
|
||||
}
|
||||
|
||||
if (isRandomAniIndex == false)
|
||||
particleValue.vAniIndex.x = 0.f;
|
||||
|
||||
|
||||
@@ -341,6 +341,9 @@ HRESULT CInstance_Model::Load_InstanceModel(INSTANCE_DESC InstanceDesc)
|
||||
|
||||
m_InstanceDesc = InstanceDesc;
|
||||
|
||||
if (m_InstanceDesc.fTimeMult >= 0)
|
||||
m_InstanceDesc.fTimeMult = 1.f;
|
||||
|
||||
Change_NumInstance();
|
||||
|
||||
return S_OK;
|
||||
@@ -354,6 +357,9 @@ HRESULT CInstance_Model::Load_InstanceModel(HANDLE hFile)
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (m_InstanceDesc.fTimeMult >= 0)
|
||||
m_InstanceDesc.fTimeMult = 1.f;
|
||||
|
||||
Change_NumInstance();
|
||||
|
||||
return S_OK;
|
||||
@@ -552,7 +558,7 @@ void CInstance_Model::Compute_CS(_float fTimeDelta)
|
||||
{
|
||||
CS_PARTICLE_DESC* pDesc = static_cast<CS_PARTICLE_DESC*>(ConstantSubResource.pData);
|
||||
|
||||
pDesc->fTimeDelta = fTimeDelta * m_fTimeMult;
|
||||
pDesc->fTimeDelta = fTimeDelta * m_InstanceDesc.fTimeMult;
|
||||
|
||||
pDesc->isLoop = m_InstanceDesc.isLoop;
|
||||
pDesc->isDrop = m_InstanceDesc.isDrop;
|
||||
@@ -570,6 +576,7 @@ void CInstance_Model::Compute_CS(_float fTimeDelta)
|
||||
pDesc->isExcludePos = m_InstanceDesc.isExcludePos;
|
||||
pDesc->isStop_Move_For_Depth_Compare = m_InstanceDesc.isStop_Move_For_Depth_Compare;
|
||||
pDesc->isNoPos = m_InstanceDesc.isNoPos;
|
||||
pDesc->isNoResetTime = m_InstanceDesc.isNoResetTime;
|
||||
|
||||
|
||||
pDesc->WorldMatrix = *m_pOwner->Get_Component<CTransform>()->Get_WorldMatrixPtr();
|
||||
@@ -1154,6 +1161,17 @@ void CInstance_Model::Describe_Entity()
|
||||
|
||||
if (GUI::TreeNode("Time"))
|
||||
{
|
||||
|
||||
if (GUI::Checkbox("NoResetTime", &m_InstanceDesc.isNoResetTime))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
|
||||
if (ImGui::DragFloat("TimeMult", reinterpret_cast<_float*>(&m_InstanceDesc.fTimeMult)))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
|
||||
if (ImGui::DragFloat2("LifeTime", reinterpret_cast<_float*>(&m_InstanceDesc.vLifeTime)))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
|
||||
@@ -75,7 +75,13 @@ class ENGINE_DLL CInstance_Model final : public CComponent
|
||||
|
||||
_float2 vAcceleration = {};
|
||||
|
||||
_float4 vPadding4 = {};
|
||||
_bool isNoResetTime = {};
|
||||
_bool isPadding1 = {};
|
||||
_bool isPadding2 = {};
|
||||
_bool isPadding3 = {};
|
||||
|
||||
_float fTimeMult = { 1.f };
|
||||
_float2 fPadding4 = {};
|
||||
_float4 vPadding5 = {};
|
||||
_float4 vPadding6 = {};
|
||||
|
||||
@@ -178,6 +184,11 @@ class ENGINE_DLL CInstance_Model final : public CComponent
|
||||
_int isStop_Move_For_Depth_Compare = {};
|
||||
_int isNoPos = {};
|
||||
|
||||
_int isNoResetTime = {};
|
||||
_int isPadding0 = {};
|
||||
_int isPadding1 = {};
|
||||
_int isPadding2 = {};
|
||||
|
||||
_float fTimeDelta = {};
|
||||
_float fSizeLerpOption = {};
|
||||
_float fMoveLerpOption = {};
|
||||
@@ -263,7 +274,7 @@ class ENGINE_DLL CInstance_Model final : public CComponent
|
||||
HRESULT Load_InstanceModel(HANDLE hFile);
|
||||
HRESULT Bind_CS_Output(_uint Index, _uint iBufferIndex);
|
||||
public:
|
||||
void Set_TimeMult(_float fTimeMult) { m_fTimeMult = fTimeMult; }
|
||||
void Set_TimeMult(_float fTimeMult) { m_InstanceDesc.fTimeMult = fTimeMult; }
|
||||
private:
|
||||
bool LoadData(const _char* filename);
|
||||
|
||||
@@ -315,7 +326,7 @@ class ENGINE_DLL CInstance_Model final : public CComponent
|
||||
ID3D11ShaderResourceView* m_pParticleValue_Srv = { nullptr };
|
||||
|
||||
private:
|
||||
_float m_fTimeMult = { 1.f };
|
||||
|
||||
|
||||
public:
|
||||
static CInstance_Model* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, const _char* pModelFilePath, MODEL eType, _fmatrix& PreTransformMatrix, _uint iRootBoneIndex);
|
||||
|
||||
Reference in New Issue
Block a user