From 932b6b690d692c22f5318560e9fa10153c4a0591 Mon Sep 17 00:00:00 2001 From: kimnuri Date: Fri, 12 Dec 2025 12:15:20 +0900 Subject: [PATCH 1/7] [add] ReleasesPAtch --- .../Client/Private/CamPosition_Shoulder.cpp | 19 +- .../Client/Private/Camera_Debug.cpp | 3 + .../Client/Private/Camera_Gaze.cpp | 2 + Jusin154_Team3D/Client/Private/EffectPool.cpp | 15 -- .../Client/Private/Level_GamePlay.cpp | 13 +- .../Client/Private/MiniMap_Camera.cpp | 3 + .../Client/Private/NPC_Ollivander.cpp | 7 +- Jusin154_Team3D/Client/Public/Barral_Splesh.h | 3 + Jusin154_Team3D/Client/Public/Box_Splesh.h | 2 + .../Client/Public/CamPosition_Shoulder.h | 2 + Jusin154_Team3D/Client/Public/Chair_Splesh.h | 2 + Jusin154_Team3D/Client/Public/MageSide.h | 2 + .../Client/Public/Mage_Down_Attack.h | 2 + .../Client/Public/Mage_Nomal_Attack.h | 2 + Jusin154_Team3D/Client/Public/StunEffect.h | 2 + Jusin154_Team3D/Editor/Bin/AnimIndex.txt | 194 ++---------------- 16 files changed, 77 insertions(+), 196 deletions(-) diff --git a/Jusin154_Team3D/Client/Private/CamPosition_Shoulder.cpp b/Jusin154_Team3D/Client/Private/CamPosition_Shoulder.cpp index d59ff7c5e..fd1dfeda2 100644 --- a/Jusin154_Team3D/Client/Private/CamPosition_Shoulder.cpp +++ b/Jusin154_Team3D/Client/Private/CamPosition_Shoulder.cpp @@ -43,6 +43,7 @@ HRESULT CCamPosition_Shoulder::Initialize(void* pArg) m_pLookTransform->Set_State(STATE::POSITION, vLookTargetPos); m_pFollowTransform->Set_State(STATE::POSITION, Calc_FollowTargetPos(vLookTargetPos)); } + m_bDampingParentPos = false; return S_OK; } @@ -153,6 +154,15 @@ void CCamPosition_Shoulder::Late_Update(_float fTimeDelta) m_fFollowTargetIncludedAngleDegree = CMyTools::Lerp_f1D(m_vShoulderLerpDegree.x, m_vShoulderLerpDegree.y, fLerpRatio); } } + if (true == m_bStartGame) { + m_vStartLerpTimer.x += fTimeDelta; + if (m_vStartLerpTimer.x >= m_vStartLerpTimer.y) { + m_vStartLerpTimer.x = 0.f; + m_bDampingParentPos = true; + m_bStartGame = false; + } + m_pGameInstance->Add_RenderGroup(RENDER::UI_OVERLAY, this); + } } HRESULT CCamPosition_Shoulder::Render() @@ -297,9 +307,11 @@ HRESULT CCamPosition_Shoulder::Ready_SubParts() CCamPosition_Target::CAMERAPOSITION_TARGET_DESC Desc{}; Desc.pParentTransform = m_pTransformCom; m_pTarget_LookPart = m_pGameInstance->Clone_Prototype< CCamPosition_Target>(g_iStaticLevel, &Desc); + m_pTarget_LookPart->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(-34.f, 5, -10.4f, 1.f)); m_pTarget_FollowPart = m_pGameInstance->Clone_Prototype< CCamPosition_Target>(g_iStaticLevel, &Desc); + m_pTarget_FollowPart->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(-34.f, 5, -11.4f, 1.f)); } - + CCamera_Gaze::CAMERA_GAZE_DESC CameraDesc{}; CameraDesc.fFovy = XMConvertToRadians(60.0f); CameraDesc.fNear = 0.1f; @@ -321,8 +333,11 @@ HRESULT CCamPosition_Shoulder::Ready_SubParts() { return E_FAIL; } + m_pGameInstance->Add_Camera(g_iStaticLevel, m_pBinded_Camera, CAMERA_SHOULDER); - + if (FAILED(m_pGameInstance->Bind_Camera(g_iStaticLevel, CAMERA_SHOULDER, true))) { + return E_FAIL; + } return S_OK; } diff --git a/Jusin154_Team3D/Client/Private/Camera_Debug.cpp b/Jusin154_Team3D/Client/Private/Camera_Debug.cpp index 7fe2793d2..b5da3e13c 100644 --- a/Jusin154_Team3D/Client/Private/Camera_Debug.cpp +++ b/Jusin154_Team3D/Client/Private/Camera_Debug.cpp @@ -17,7 +17,10 @@ CCamera_Debug::CCamera_Debug(const CCamera_Debug& rhs) void CCamera_Debug::Priority_Update(_float fTimeDelta) { +#ifdef _DEBUG m_pGameInstance->Bind_Camera(g_iStaticLevel, CAMERA_DEBUG, false); +#endif // _DEBUG + } void CCamera_Debug::Update(_float fTimeDelta) diff --git a/Jusin154_Team3D/Client/Private/Camera_Gaze.cpp b/Jusin154_Team3D/Client/Private/Camera_Gaze.cpp index fff36f194..6dce3a592 100644 --- a/Jusin154_Team3D/Client/Private/Camera_Gaze.cpp +++ b/Jusin154_Team3D/Client/Private/Camera_Gaze.cpp @@ -127,6 +127,8 @@ HRESULT CCamera_Gaze::Initialize(void* pArg) if (FAILED(Ready_Components(pArg))) { return E_FAIL; } + m_pTransformCom->Set_State(STATE::POSITION, m_pFollowTarget->Get_WorldPostion()); + m_pTransformCom->LookAt(m_pLookTarget->Get_WorldPostion()); return S_OK; } diff --git a/Jusin154_Team3D/Client/Private/EffectPool.cpp b/Jusin154_Team3D/Client/Private/EffectPool.cpp index 2508cc975..09c1978b7 100644 --- a/Jusin154_Team3D/Client/Private/EffectPool.cpp +++ b/Jusin154_Team3D/Client/Private/EffectPool.cpp @@ -171,19 +171,6 @@ HRESULT CEffectPool::Bind_ShaderResources() HRESULT CEffectPool::Ready_Effect() { -#ifdef 기무리 - if (FAILED(Create_Effect(SKILL_TYPE::JAP, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* { - CNomalJap* pEffect = nullptr; - - pEffect = m_pGameInstance->Clone_Prototype(iPrototypeLevel, nullptr); - - return pEffect; } - ))) return E_FAIL; - -#endif // 기무리 - - -#ifndef 기무리 if (FAILED(Create_Effect(SKILL_TYPE::JAP, 10, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* { CNomalJap* pEffect = nullptr; @@ -326,8 +313,6 @@ HRESULT CEffectPool::Ready_Effect() return pEffect; } ))) return E_FAIL; -#endif // !기무리 - return S_OK; } diff --git a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp index a4fa92b76..055710513 100644 --- a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp +++ b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp @@ -260,14 +260,15 @@ HRESULT CLevel_GamePlay::Ready_Background() else { /* 전체 맵 */ - //CInfoInstance::GetInstance()->Load_MapObjects("Hogsmeade_MapContainer_Data"); + CInfoInstance::GetInstance()->Load_MapObjects("Hogsmeade_MapContainer_Data"); /* 물 오브젝트 */ - if (FAILED(CInfoInstance::GetInstance()->Load_WaterElemet("Element_Water_Info"))) + if (FAILED(CInfoInstance::GetInstance()->Load_WaterElemet("Element_Water_Info"))){ return E_FAIL; + } /* 조명 오브젝트 */ - /*CInfoInstance::GetInstance()->Load_LightElements("LightElement");*/ + CInfoInstance::GetInstance()->Load_LightElements("LightElement"); /* 상호작용 오브젝트 */ CInfoInstance::GetInstance()->Load_InteractableElements("E_INTER_Barrel"); @@ -437,6 +438,7 @@ HRESULT CLevel_GamePlay::Ready_Layer_UI(const _wstring& strLayerTag) HRESULT CLevel_GamePlay::Ready_Layer_Camera() { +#ifdef _DEBUG CCamera_Debug::CAMERA_DEBUG_DESC Camera_Desc{}; Camera_Desc.fFovy = XMConvertToRadians(60.0f); Camera_Desc.fNear = 0.1f; @@ -461,6 +463,11 @@ HRESULT CLevel_GamePlay::Ready_Layer_Camera() return E_FAIL; } +#endif // _DEBUG + + if (FAILED(m_pGameInstance->Bind_Camera(g_iStaticLevel, CAMERA_SHOULDER, true))) { + return E_FAIL; + } return S_OK; } diff --git a/Jusin154_Team3D/Client/Private/MiniMap_Camera.cpp b/Jusin154_Team3D/Client/Private/MiniMap_Camera.cpp index 071f397ac..620553ebd 100644 --- a/Jusin154_Team3D/Client/Private/MiniMap_Camera.cpp +++ b/Jusin154_Team3D/Client/Private/MiniMap_Camera.cpp @@ -93,7 +93,10 @@ void CMiniMap_Camera::Free() { __super::Free(); } +#ifdef _DEBUG void CMiniMap_Camera::Describe_Entity() { } + +#endif // _DEBUG diff --git a/Jusin154_Team3D/Client/Private/NPC_Ollivander.cpp b/Jusin154_Team3D/Client/Private/NPC_Ollivander.cpp index e28b231a6..c9b60c53b 100644 --- a/Jusin154_Team3D/Client/Private/NPC_Ollivander.cpp +++ b/Jusin154_Team3D/Client/Private/NPC_Ollivander.cpp @@ -25,7 +25,9 @@ void CNPC_Ollivander::Priority_Update(_float fTimeDelta) void CNPC_Ollivander::Update(_float fTimeDelta) { m_pFSM->Update_State(fTimeDelta); - + if (m_pModelCom->IsFinishedAnim()) { + m_pModelCom->Set_AnimationIndex(m_pGameInstance->Random_Int(0, 19), false); + } m_pModelCom->Play_Animation(fTimeDelta, m_pTransformCom); __super::Update(fTimeDelta); #ifdef _DEBUG @@ -39,6 +41,7 @@ void CNPC_Ollivander::Late_Update(_float fTimeDelta) m_pTransformCom->Set_State(STATE::POSITION, m_pTransformCom->Get_EstimatedPositionByMomentum()); m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this); + m_pGameInstance->Add_RenderGroup(RENDER::SHADOW, this); __super::Late_Update(fTimeDelta); } @@ -137,7 +140,7 @@ HRESULT CNPC_Ollivander::Initialize(void* pArg) if (FAILED(Ready_Components(pArg))) { return E_FAIL; } - m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(-34.f, 5, -11.4f, 1.f)); + m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(40.f, 4.f, 68.9f, 1.f)); return S_OK; } diff --git a/Jusin154_Team3D/Client/Public/Barral_Splesh.h b/Jusin154_Team3D/Client/Public/Barral_Splesh.h index 5967b2a22..29c699f3e 100644 --- a/Jusin154_Team3D/Client/Public/Barral_Splesh.h +++ b/Jusin154_Team3D/Client/Public/Barral_Splesh.h @@ -36,7 +36,10 @@ class CBarral_Splesh final : public CEffect_Container static CBarral_Splesh* 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 diff --git a/Jusin154_Team3D/Client/Public/Box_Splesh.h b/Jusin154_Team3D/Client/Public/Box_Splesh.h index d165b109f..4c8c6b95a 100644 --- a/Jusin154_Team3D/Client/Public/Box_Splesh.h +++ b/Jusin154_Team3D/Client/Public/Box_Splesh.h @@ -36,7 +36,9 @@ class CBox_Splesh final : public CEffect_Container static CBox_Splesh* 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 diff --git a/Jusin154_Team3D/Client/Public/CamPosition_Shoulder.h b/Jusin154_Team3D/Client/Public/CamPosition_Shoulder.h index 110c98dba..29ca69de3 100644 --- a/Jusin154_Team3D/Client/Public/CamPosition_Shoulder.h +++ b/Jusin154_Team3D/Client/Public/CamPosition_Shoulder.h @@ -48,11 +48,13 @@ class CCamPosition_Shoulder final : public CCamPosition _float3 m_vShoulderLocalPos = { 1.f, 2.f, 2.f }; #pragma endregion #pragma region Lerp + _bool m_bStartGame = { true }; _bool m_bDampingParentPos = { true }; _bool m_bShoulderLerp = { false }; _bool m_bRightShoulderActive = { true }; _float2 m_vShoulderLerpTimer = { 0.f, 0.30f }; _float2 m_vDampingLerpTimer = { 0.f, 0.10f }; + _float2 m_vStartLerpTimer = { 0.f, 0.30f }; _float2 m_vShoulderLerpDegree = { }; _float2 m_vShoulderLerpIncludedAngleDegree = { -20.f, 20.f }; diff --git a/Jusin154_Team3D/Client/Public/Chair_Splesh.h b/Jusin154_Team3D/Client/Public/Chair_Splesh.h index 23793a329..158ba8fd5 100644 --- a/Jusin154_Team3D/Client/Public/Chair_Splesh.h +++ b/Jusin154_Team3D/Client/Public/Chair_Splesh.h @@ -36,7 +36,9 @@ class CChair_Splesh final : public CEffect_Container static CChair_Splesh* 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 diff --git a/Jusin154_Team3D/Client/Public/MageSide.h b/Jusin154_Team3D/Client/Public/MageSide.h index 70b20f270..e14ec3870 100644 --- a/Jusin154_Team3D/Client/Public/MageSide.h +++ b/Jusin154_Team3D/Client/Public/MageSide.h @@ -44,7 +44,9 @@ class CMageSide final : public CEffect_Container static CMageSide* 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 diff --git a/Jusin154_Team3D/Client/Public/Mage_Down_Attack.h b/Jusin154_Team3D/Client/Public/Mage_Down_Attack.h index 116acdc82..5730924ea 100644 --- a/Jusin154_Team3D/Client/Public/Mage_Down_Attack.h +++ b/Jusin154_Team3D/Client/Public/Mage_Down_Attack.h @@ -38,7 +38,9 @@ class CMage_Down_Attack final : public CEffect_Container static CMage_Down_Attack* 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 diff --git a/Jusin154_Team3D/Client/Public/Mage_Nomal_Attack.h b/Jusin154_Team3D/Client/Public/Mage_Nomal_Attack.h index 6716d924a..dd3b7fefa 100644 --- a/Jusin154_Team3D/Client/Public/Mage_Nomal_Attack.h +++ b/Jusin154_Team3D/Client/Public/Mage_Nomal_Attack.h @@ -48,7 +48,9 @@ class CMage_Nomal_Attack final : public CEffect_Container static CMage_Nomal_Attack* 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 diff --git a/Jusin154_Team3D/Client/Public/StunEffect.h b/Jusin154_Team3D/Client/Public/StunEffect.h index ed8f17034..a7dbb968a 100644 --- a/Jusin154_Team3D/Client/Public/StunEffect.h +++ b/Jusin154_Team3D/Client/Public/StunEffect.h @@ -38,7 +38,9 @@ class CStunEffect final : public CEffect_Container static CStunEffect* 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 diff --git a/Jusin154_Team3D/Editor/Bin/AnimIndex.txt b/Jusin154_Team3D/Editor/Bin/AnimIndex.txt index 409d38ad4..a4a8adbb4 100644 --- a/Jusin154_Team3D/Editor/Bin/AnimIndex.txt +++ b/Jusin154_Team3D/Editor/Bin/AnimIndex.txt @@ -1,174 +1,20 @@ -0 Trl_BM_Alert_LF_Walk_Turn_Start_Lft_135_anm -1 Trl_BM_Alert_LF_Walk_Turn_Start_Lft_180_anm -2 Trl_BM_Alert_LF_Walk_Turn_Start_Lft_45_anm -3 Trl_BM_Alert_LF_Walk_Turn_Start_Lft_90_anm -4 Trl_BM_Alert_LF_Walk_Turn_Start_Rht_135_anm -5 Trl_BM_Alert_LF_Walk_Turn_Start_Rht_180_anm -6 Trl_BM_Alert_LF_Walk_Turn_Start_Rht_90_anm -7 Trl_BM_Alert_Look_2Cmbt_180L_anm -8 Trl_BM_Alert_Look_2Cmbt_180R_anm -9 Trl_BM_Alert_Look_2Cmbt_90L_anm -10 Trl_BM_Alert_Look_2Cmbt_90R_anm -11 Trl_BM_Alert_Look_2Cmbt_A_anm -12 Trl_BM_Alert_Look_2Cmbt_anm -13 Trl_BM_Alert_Look_2Cmbt_B_anm -14 Trl_BM_Alert_Look_2Cmbt_C_ClubSwing_anm -15 Trl_BM_Alert_Look_End_Fwd_anm -16 Trl_BM_Alert_Look_Loop_anm -17 Trl_BM_Alert_Look_Loop_v01_anm -18 Trl_BM_Alert_Look_Loop_v02_anm -19 Trl_BM_Alert_Look_Start_Fwd_anm -20 Trl_BM_Alert_Look_Turn_InPlace_A_anm -21 Trl_BM_Alert_Look_Turn_InPlace_B_anm -22 Trl_BM_Alert_Walk_Loop_Fwd_anm -23 Trl_BM_Alert_Walk_Loop_Fwd_End_anm -24 Trl_BM_Alert_Walk_Loop_Fwd_Start_anm -25 Trl_BM_Idle_01_Face_anm -26 Trl_BM_Idle_Break_01_anm -27 Trl_BM_Idle_Break_01_Face_anm -28 Trl_BM_Idle_Break_02_anm -29 Trl_BM_Idle_Break_02_Face_anm -30 Trl_BM_Idle_Break_03_anm -31 Trl_BM_Idle_Break_04_anm -32 Trl_BM_Lean_0_anm -33 Trl_BM_LF_Idle_anm -34 Trl_BM_LF_Walk_Turn_Start_Lft_135_anm -35 Trl_BM_LF_Walk_Turn_Start_Lft_180_anm -36 Trl_BM_LF_Walk_Turn_Start_Lft_45_anm -37 Trl_BM_LF_Walk_Turn_Start_Lft_90_anm -38 Trl_BM_LF_Walk_Turn_Start_Rht_135_anm -39 Trl_BM_LF_Walk_Turn_Start_Rht_180_anm -40 Trl_BM_LF_Walk_Turn_Start_Rht_45_anm -41 Trl_BM_LF_Walk_Turn_Start_Rht_90_anm -42 Trl_BM_Walk_Loop_Fwd_End_Wander_anm -43 Trl_BM_Walk_Loop_Fwd_Lft_45_Wander_anm -44 Trl_BM_Walk_Loop_Fwd_Rht_45_Wander_anm -45 Trl_BM_Walk_Loop_Fwd_Start_Wander_anm -46 Trl_BM_Walk_Loop_Fwd_Wander_anm -47 Trl_Cmbt_Atk_01_Face_anm -48 Trl_Cmbt_Atk_02_Face_anm -49 Trl_Cmbt_Atk_03_Face_anm -50 Trl_Cmbt_Atk_Charge_Check_anm -51 Trl_Cmbt_Atk_Charge_Knee_End_anm -52 Trl_Cmbt_Atk_Charge_Knee_Loop_anm -53 Trl_Cmbt_Atk_Charge_Knee_Start_anm -54 Trl_Cmbt_Atk_Charge_Loop_anm -55 Trl_Cmbt_Atk_Charge_Start_anm -56 Trl_Cmbt_Atk_Charge_Stop_RU_anm -57 Trl_Cmbt_Atk_Charge_Stop_Turn_Lft_anm -58 Trl_Cmbt_Atk_Charge_Stop_Turn_Rht_anm -59 Trl_Cmbt_Atk_Charge_Stumble_Fwd_anm -60 Trl_Cmbt_Atk_Charge_Stun_anm -61 Trl_Cmbt_Atk_Hop_Bckhnd_RU_anm -62 Trl_Cmbt_Atk_Hop_Forhnd_LU_anm -63 Trl_Cmbt_Atk_LF_Stomp_Bck_anm -64 Trl_Cmbt_Atk_LF_Stomp_Fwd_anm -65 Trl_Cmbt_Atk_LF_Stomp_Lft_anm -66 Trl_Cmbt_Atk_Overhead_Slam_anm -67 Trl_Cmbt_Atk_Overhead_Slam_BckHnd_anm -68 Trl_Cmbt_Atk_Overhead_Slam_Jog_anm -69 Trl_Cmbt_Atk_Overhead_Slam_Lft_180_anm -70 Trl_Cmbt_Atk_Overhead_Slam_Lft_90_anm -71 Trl_Cmbt_Atk_Overhead_Slam_Rht_180_anm -72 Trl_Cmbt_Atk_Overhead_Slam_Rht_90_anm -73 Trl_Cmbt_Atk_RF_Stomp_Rht_anm -74 Trl_cmbt_Atk_RockThrow_Fwd_anm -75 Trl_Cmbt_Atk_RockThrow_Lft_anm -76 Trl_Cmbt_Atk_RockThrow_Rht_anm -77 Trl_Cmbt_Atk_Rockthrow_Start_anm -78 Trl_Cmbt_Atk_StepBack_Swing_Fwd_anm -79 Trl_Cmbt_Atk_StepSwing_Fwd_BckHnd_anm -80 Trl_Cmbt_Atk_StepSwing_Fwd_BckHnd_Splt_anm -81 Trl_Cmbt_Atk_StepSwing_Fwd_ForHnd_anm -82 Trl_Cmbt_Atk_StepSwing_Fwd_ForHnd_Splt_anm -83 Trl_Cmbt_Atk_StepSwing_Lft_180_BckHnd_anm -84 Trl_Cmbt_Atk_StepSwing_Lft_90_BckHnd_anm -85 Trl_Cmbt_Atk_StepSwing_Rht_180_ForHnd_Splt_anm -86 Trl_Cmbt_Atk_StepSwing_Rht_90_ForHnd_anm -87 Trl_Cmbt_Atk_Swing_Fwd_anm -88 Trl_Cmbt_Atk_Swing_Fwd_BckHnd_anm -89 Trl_Cmbt_Atk_Swing_Fwd_BckHnd_Jog_anm -90 Trl_Cmbt_Atk_Swing_Fwd_BckHnd_Splt_anm -91 Trl_Cmbt_Atk_Swing_Fwd_Jog_anm -92 Trl_Cmbt_Atk_Swing_Fwd_Splt_anm -93 Trl_Cmbt_Atk_Swing_Lft_anm -94 Trl_Cmbt_Atk_Swing_Rht_anm -95 Trl_Cmbt_Atk_Swipe_anm -96 Trl_Cmbt_Atk_Swipe_Lft_180_anm -97 Trl_Cmbt_Atk_Swipe_Lft_90_anm -98 Trl_Cmbt_Atk_Swipe_Rht_90_anm -99 Trl_Cmbt_Atk_Tantrum_01_anm -100 Trl_Cmbt_Atk_Tantrum_02_anm -101 Trl_Cmbt_Idle_01_anm -102 Trl_Cmbt_idle_01_Face_anm -103 Trl_Cmbt_Jog_Loop_Fwd_anm -104 Trl_Cmbt_Jog_Start_Fwd_anm -105 Trl_Cmbt_Jog_Turn_Start_Lft_135_anm -106 Trl_Cmbt_Jog_Turn_Start_Lft_180_anm -107 Trl_Cmbt_Jog_Turn_Start_Lft_45_anm -108 Trl_Cmbt_Jog_Turn_Start_Lft_90_anm -109 Trl_Cmbt_Jog_Turn_Start_Rht_135_anm -110 Trl_Cmbt_Jog_Turn_Start_Rht_180_anm -111 Trl_Cmbt_Jog_Turn_Start_Rht_45_anm -112 Trl_Cmbt_Jog_Turn_Start_Rht_90_anm -113 Trl_Cmbt_LF_Idle_Turn_Lft_135_anm -114 Trl_Cmbt_LF_Idle_Turn_Lft_180_anm -115 Trl_Cmbt_LF_Idle_Turn_Lft_45_anm -116 Trl_Cmbt_LF_Idle_Turn_Lft_90_anm -117 Trl_Cmbt_LF_Idle_Turn_Rht_135_anm -118 Trl_Cmbt_LF_Idle_Turn_Rht_180_anm -119 Trl_Cmbt_LF_Idle_Turn_Rht_45_anm -120 Trl_Cmbt_LF_Idle_Turn_Rht_90_anm -121 Trl_Cmbt_Look_Lft_anm -122 Trl_Cmbt_Look_Rht_anm -123 Trl_Cmbt_OverHead_Slam_Taunt_01_anm -124 Trl_Cmbt_OverHead_Slam_Taunt_02_anm -125 Trl_Cmbt_Rct_Death_01_Face_anm -126 Trl_Cmbt_Rct_Death_02_Face_anm -127 Trl_Cmbt_Rct_Flinch_Charge_anm -128 Trl_Cmbt_Rct_Hit_01_Face_anm -129 Trl_Cmbt_Rct_Hit_02_Face_anm -130 Trl_Cmbt_Rct_Hit_03_Face_anm -131 Trl_Cmbt_Rct_Mandrake_Loop_anm -132 Trl_Cmbt_Rct_Mandrake_Start_anm -133 Trl_Cmbt_Rct_Mandrake_Stop_anm -134 Trl_Cmbt_Roar_01_Face_anm -135 Trl_Cmbt_Roar_02_Face_anm -136 Trl_Cmbt_Roar_03_Face_anm -137 Trl_Cmbt_Spawn_Ink_02_anm -138 Trl_Cmbt_Spawn_Ink_anm -139 Trl_Cmbt_Spwn_Breakthrough_01_anm -140 Trl_Cmbt_Spwn_Breakthrough_02_anm -141 Trl_Cmbt_Taunt_Fwd_05_anm -142 Trl_Cmbt_Taunt_Fwd_06_anm -143 Trl_Cmbt_Taunt_Fwd_07_anm -144 Trl_Cmbt_Taunt_Fwd_08_anm -145 Trl_Cmbt_Taunt_Fwd_09_anm -146 Trl_Cmbt_Taunt_Lft_135_anm -147 Trl_Cmbt_Taunt_Lft_180_anm -148 Trl_Cmbt_Taunt_Lft_45_07_anm -149 Trl_Cmbt_Taunt_Lft_90_07_anm -150 Trl_Cmbt_Taunt_Lft_90_anm -151 Trl_Cmbt_Taunt_Rht_135_anm -152 Trl_Cmbt_Taunt_Rht_180_anm -153 Trl_Cmbt_Taunt_Rht_45_07_anm -154 Trl_Cmbt_Taunt_Rht_90_07_anm -155 Trl_Cmbt_Taunt_Rht_90_anm -156 Trl_Rct_Club_Face_anm -157 Trl_Rct_Club_Face_End_anm -158 Trl_Rct_Dazed_End_anm -159 Trl_Rct_Dazed_Loop_anm -160 Trl_Rct_Dazed_Start_anm -161 Trl_Rct_Hitch_Bwd_Add_anm -162 Trl_Rct_Hitch_Fwd_Add_anm -163 Trl_Rct_Hitch_Lft_Add_anm -164 Trl_Rct_Hitch_Rht_Add_anm -165 Trl_Rct_KnckDn_Bck_anm -166 Trl_Rct_Spell_Petrificus_Start_anm -167 Trl_Rct_Stumble_Bck_02_anm -168 Trl_Rct_Stumble_Bck_03_anm -169 Trl_Rct_Stumble_Bck_04_anm -170 Trl_Rct_Stumble_Fwd_anm -171 Trl_Rct_Stumble_Lft_anm -172 Trl_Rct_Stumble_Rht_anm -173 Trl_STN_Grnd_Sleep_End_v01_anm +0 CCL_Activity_WandSelection_Clip10_Ollivander_anm +1 CCL_Activity_WandSelection_Clip11_Ollivander_anm +2 CCL_Activity_WandSelection_Clip12_Ollivander_anm +3 CCL_Activity_WandSelection_Clip13_Ollivander_anm +4 CCL_Activity_WandSelection_Clip1_Ollivander_anm +5 CCL_Activity_WandSelection_Clip21_Ollivander_anm +6 CCL_Activity_WandSelection_Clip23_Ollivander_anm +7 CCL_Activity_WandSelection_Clip24_Ollivander_anm +8 CCL_Activity_WandSelection_Clip25_Ollivander_anm +9 CCL_Activity_WandSelection_Clip26_Ollivander_anm +10 CCL_Activity_WandSelection_Clip28_Ollivander_anm +11 CCL_Activity_WandSelection_Clip29_Ollivander_anm +12 CCL_Activity_WandSelection_Clip2_Ollivander_anm +13 CCL_Activity_WandSelection_Clip3_Ollivander_anm +14 CCL_Activity_WandSelection_Clip4_Ollivander_anm +15 CCL_Activity_WandSelection_Clip5_Ollivander_anm +16 CCL_Activity_WandSelection_Clip6_Ollivander_anm +17 CCL_Activity_WandSelection_Clip7_Ollivander_anm +18 CCL_Activity_WandSelection_Clip8_Ollivander_anm +19 CCL_Activity_WandSelection_Clip9_Ollivander_anm From 94896e34386a76acc807bebfdcbaa86aaf3ceb18 Mon Sep 17 00:00:00 2001 From: kimnuri Date: Fri, 12 Dec 2025 14:40:26 +0900 Subject: [PATCH 2/7] [add] LerpTimer --- Jusin154_Team3D/Client/Private/Camera_Debug.cpp | 3 +++ Jusin154_Team3D/Client/Private/InteractiveInfo.cpp | 9 ++++++--- Jusin154_Team3D/Client/Private/MapElement_Door.cpp | 8 ++++---- Jusin154_Team3D/Client/Private/MiniMap_Camera.cpp | 1 - Jusin154_Team3D/Client/Private/MonsterInfo.cpp | 4 +++- Jusin154_Team3D/Client/Private/Player.cpp | 1 + Jusin154_Team3D/Client/Private/Terrain.cpp | 4 +--- 7 files changed, 18 insertions(+), 12 deletions(-) diff --git a/Jusin154_Team3D/Client/Private/Camera_Debug.cpp b/Jusin154_Team3D/Client/Private/Camera_Debug.cpp index b5da3e13c..42de744a8 100644 --- a/Jusin154_Team3D/Client/Private/Camera_Debug.cpp +++ b/Jusin154_Team3D/Client/Private/Camera_Debug.cpp @@ -17,9 +17,12 @@ CCamera_Debug::CCamera_Debug(const CCamera_Debug& rhs) void CCamera_Debug::Priority_Update(_float fTimeDelta) { +#ifndef 기무리 #ifdef _DEBUG m_pGameInstance->Bind_Camera(g_iStaticLevel, CAMERA_DEBUG, false); #endif // _DEBUG +#endif // !기무리 + } diff --git a/Jusin154_Team3D/Client/Private/InteractiveInfo.cpp b/Jusin154_Team3D/Client/Private/InteractiveInfo.cpp index f01b2c22d..de70af286 100644 --- a/Jusin154_Team3D/Client/Private/InteractiveInfo.cpp +++ b/Jusin154_Team3D/Client/Private/InteractiveInfo.cpp @@ -61,7 +61,7 @@ HRESULT CInteractiveInfo::Refresh_LockOnTarget() _vector vCameraPos = m_pGameInstance->Get_CamXMPosition(); _float fMaxDot = { 0.f }; - _vector vMonsterPos; + _vector vInteractablePos; _vector vToMonsterDir; _bool bAim = false; _float fFovy = 0.f; @@ -83,8 +83,11 @@ HRESULT CInteractiveInfo::Refresh_LockOnTarget() // (카메라의 룩)과 (카메라 -> 몬스터 방향 벡터)를 내적해서 가장 큰 크기가 나온 몬스타가 락온 대상 CMapElement_Interactable* pInteractive = (*iter); - vMonsterPos = pInteractive->Get_LockOnPos(); - vToMonsterDir = vMonsterPos - vCameraPos; + vInteractablePos = pInteractive->Get_LockOnPos(); + vToMonsterDir = vInteractablePos - vCameraPos; + if (150.f <= XMVectorGetX(XMVector4Length(vToMonsterDir))) { + continue; + } _float fDotResult = CMyTools::DirectionCompare(vCameraLook, vToMonsterDir); if (fDotResult <= cosf(fFovy)) { continue; diff --git a/Jusin154_Team3D/Client/Private/MapElement_Door.cpp b/Jusin154_Team3D/Client/Private/MapElement_Door.cpp index 8d6a22b82..dd541d6ec 100644 --- a/Jusin154_Team3D/Client/Private/MapElement_Door.cpp +++ b/Jusin154_Team3D/Client/Private/MapElement_Door.cpp @@ -43,11 +43,11 @@ HRESULT CMapElement_Door::Initialize(void* pArg) m_pTransformCom->Set_Scale(pDesc->vScale); m_pTransformCom->Rotation(XMConvertToRadians(pDesc->vRotation.x), XMConvertToRadians(pDesc->vRotation.y), XMConvertToRadians(pDesc->vRotation.z)); - m_vBoxSize = _float3(1.f, 1.f, 1.f);/* - m_pActor = static_cast(m_pRigidBody->Get_Actor()); + //m_vBoxSize = _float3(1.f, 1.f, 1.f); + //m_pActor = static_cast(m_pRigidBody->Get_Actor()); - static_cast(m_pRigidBody)->Set_HalfGeometryInfo(pDesc->vBoxSize); - static_cast(m_pRigidBody)->Move_LocalPos(_float4(0.f, 0.f, 0.f, 0.f), pDesc->vBoxLocalPosition);*/ + //static_cast(m_pRigidBody)->Set_HalfGeometryInfo(pDesc->vBoxSize); + //static_cast(m_pRigidBody)->Move_LocalPos(_float4(0.f, 0.f, 0.f, 0.f), pDesc->vBoxLocalPosition); return S_OK; } diff --git a/Jusin154_Team3D/Client/Private/MiniMap_Camera.cpp b/Jusin154_Team3D/Client/Private/MiniMap_Camera.cpp index 82f113ff6..d9a4ddf53 100644 --- a/Jusin154_Team3D/Client/Private/MiniMap_Camera.cpp +++ b/Jusin154_Team3D/Client/Private/MiniMap_Camera.cpp @@ -93,7 +93,6 @@ void CMiniMap_Camera::Free() { __super::Free(); } -#ifdef _DEBUG #ifdef _DEBUG void CMiniMap_Camera::Describe_Entity() diff --git a/Jusin154_Team3D/Client/Private/MonsterInfo.cpp b/Jusin154_Team3D/Client/Private/MonsterInfo.cpp index 789d1815a..6ce1b881f 100644 --- a/Jusin154_Team3D/Client/Private/MonsterInfo.cpp +++ b/Jusin154_Team3D/Client/Private/MonsterInfo.cpp @@ -142,7 +142,6 @@ HRESULT CMonsterInfo::Refresh_LockOnMonsters() { // 뷰프러스텀 순회해서 가장 중앙에 근접한 몬스터 찾기 for (list::iterator iter = m_ActiveMonsters.begin(); iter != m_ActiveMonsters.end(); ++iter) { - // (카메라의 룩)과 (카메라 -> 몬스터 방향 벡터)를 내적해서 가장 큰 크기가 나온 몬스타가 락온 대상 CMonster* pMonster = (*iter); if (pMonster->Get_Hp().x <= 0) { @@ -150,6 +149,9 @@ HRESULT CMonsterInfo::Refresh_LockOnMonsters() } vMonsterPos = pMonster->Get_LockOnPos(); vToMonsterDir = vMonsterPos - vCameraPos; + if (150.f <= XMVectorGetX(XMVector4Length(vToMonsterDir))) { + continue; + } _float fDotResult = CMyTools::DirectionCompare(vCameraLook, vToMonsterDir); if (fDotResult <= cosf(fFovy)) { continue; diff --git a/Jusin154_Team3D/Client/Private/Player.cpp b/Jusin154_Team3D/Client/Private/Player.cpp index 25b87d1ee..f5dc94ce6 100644 --- a/Jusin154_Team3D/Client/Private/Player.cpp +++ b/Jusin154_Team3D/Client/Private/Player.cpp @@ -92,6 +92,7 @@ HRESULT CPlayer::Initialize(void* pArg) m_pInfoInstance->Set_Damage(m_pStat->Get_Stat().fDamage); m_pCharacter_Controller->Set_Position(XMVectorSet(-34.f, 5, -11.4f, 1.f)); + m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(-34.f, 5, -11.4f, 1.f)); #ifdef _DEBUG m_BasicEffect = make_unique(m_pDevice); diff --git a/Jusin154_Team3D/Client/Private/Terrain.cpp b/Jusin154_Team3D/Client/Private/Terrain.cpp index 45f376a03..ab2082b9a 100644 --- a/Jusin154_Team3D/Client/Private/Terrain.cpp +++ b/Jusin154_Team3D/Client/Private/Terrain.cpp @@ -55,9 +55,7 @@ void CTerrain::Priority_Update(_float fTimeDelta) void CTerrain::Update(_float fTimeDelta) { -#ifdef _DEBUG - //Describe_Entity(); -#endif // DEBUG + } void CTerrain::Late_Update(_float fTimeDelta) From 8e65c775083c6cf0caf11430d06424838009cbe4 Mon Sep 17 00:00:00 2001 From: kimnuri Date: Fri, 12 Dec 2025 14:40:40 +0900 Subject: [PATCH 3/7] [add] Release Camera --- .../Client/Private/CamPosition_Shoulder.cpp | 25 +- .../Client/Private/Camera_Gaze.cpp | 14 +- Jusin154_Team3D/Client/Private/EffectPool.cpp | 6 +- Jusin154_Team3D/Client/Private/Loader.cpp | 400 +++++++++--------- Jusin154_Team3D/Jusin154_Team3D.sln | 1 - 5 files changed, 234 insertions(+), 212 deletions(-) diff --git a/Jusin154_Team3D/Client/Private/CamPosition_Shoulder.cpp b/Jusin154_Team3D/Client/Private/CamPosition_Shoulder.cpp index fd1dfeda2..a46a4728b 100644 --- a/Jusin154_Team3D/Client/Private/CamPosition_Shoulder.cpp +++ b/Jusin154_Team3D/Client/Private/CamPosition_Shoulder.cpp @@ -41,9 +41,9 @@ HRESULT CCamPosition_Shoulder::Initialize(void* pArg) _vector vLookTargetPos = Calc_LookTargetPos(); m_pLookTransform->Set_State(STATE::POSITION, vLookTargetPos); - m_pFollowTransform->Set_State(STATE::POSITION, Calc_FollowTargetPos(vLookTargetPos)); + m_pFollowTransform->Set_State(STATE::POSITION, Calc_FollowTargetPos(vLookTargetPos) + XMVectorSet(0.f, 0.f, 1.f, 0.f)); } - m_bDampingParentPos = false; + m_bDampingParentPos = true; return S_OK; } @@ -195,8 +195,19 @@ _vector CCamPosition_Shoulder::Calc_FollowTargetPos(_vector vLookTargetWorldPos) _vector fRotQ = XMQuaternionRotationAxis(XMVectorSet(0.f, 1.f, 0.f, 0.f), XMConvertToRadians(-m_fFollowTargetIncludedAngleDegree)); _vector vDestPos = Calc_DampingParentPos(); _vector vHeadPos = vDestPos + XMVectorSet(0.f, m_fHeadHeight, 0.f, 0.f); - _vector vDir = XMVector3Normalize(vHeadPos - vLookTargetWorldPos); - vDir = XMVector3Rotate(vDir, fRotQ); + _vector vDir = vHeadPos - vLookTargetWorldPos; + _float fLengthSQ = XMVectorGetX(XMVector3LengthSq(vDir)); + + if (fLengthSQ < FLT_EPSILON) + { + vDir = XMVectorSet(0.f, 0.f, 1.f, 0.f); + vDir = XMVector3Rotate(vDir, fRotQ); + } + else + { + vDir = XMVector3Normalize(vDir); + vDir = XMVector3Rotate(vDir, fRotQ); + } m_BufferHit = {}; _bool bHit = m_pGameInstance->SphereCast( 0.25f, vLookTargetWorldPos, vDir, fBestFollowTargetDistance, @@ -260,7 +271,11 @@ _vector CCamPosition_Shoulder::Calc_FollowTargetPos(_vector vLookTargetWorldPos) } _vector CCamPosition_Shoulder::Calc_DampingParentPos() { - return XMVectorLerp(XMLoadFloat4(&m_vDampingStartPosition), XMLoadFloat4(&m_vDampingDestPosition), m_vDampingLerpTimer.x / m_vDampingLerpTimer.y); + _float duration = max(m_vDampingLerpTimer.y, FLT_EPSILON); + _float fTime = m_vDampingLerpTimer.x / duration; + fTime = CMyTools::Saturate(fTime); // 0~1 + + return XMVectorLerp(XMLoadFloat4(&m_vDampingStartPosition), XMLoadFloat4(&m_vDampingDestPosition), fTime); } void CCamPosition_Shoulder::Set_CameraShake(_float fXShock, _float fYShock) { diff --git a/Jusin154_Team3D/Client/Private/Camera_Gaze.cpp b/Jusin154_Team3D/Client/Private/Camera_Gaze.cpp index 6dce3a592..55725ff98 100644 --- a/Jusin154_Team3D/Client/Private/Camera_Gaze.cpp +++ b/Jusin154_Team3D/Client/Private/Camera_Gaze.cpp @@ -20,14 +20,16 @@ void CCamera_Gaze::Priority_Update(_float fTimeDelta) } if (false == m_bIsCurrentTransition) { if (m_bEnable_FollowLerp) { - _vector vNewPos = XMVectorSetW(XMVectorLerp(XMLoadFloat3(&m_vFollowPos_Src), XMLoadFloat3(&m_vFollowPos_Dest), m_vFollowLerpTime.x / m_vFollowLerpTime.y), 1.f); + _float fTimeDenom = max(m_vFollowLerpTime.y, FLT_EPSILON); + _vector vNewPos = XMVectorSetW(XMVectorLerp(XMLoadFloat3(&m_vFollowPos_Src), XMLoadFloat3(&m_vFollowPos_Dest), CMyTools::Saturate(m_vFollowLerpTime.x / fTimeDenom)), 1.f); m_pTransformCom->Set_State(STATE::POSITION, vNewPos); } else { m_pTransformCom->Set_State(STATE::POSITION, m_pFollowTarget->Get_Component()->Get_State(STATE::POSITION)); } if (m_bEnable_LookLerp) { - _vector vNewLook = XMVectorSetW(XMVectorLerp(XMLoadFloat3(&m_vLookPos_Src), XMLoadFloat3(&m_vLookPos_Dest), m_vLookLerpTime.x / m_vLookLerpTime.y), 1.f); + _float fTimeDenom = max(m_vLookLerpTime.y, FLT_EPSILON); + _vector vNewLook = XMVectorSetW(XMVectorLerp(XMLoadFloat3(&m_vLookPos_Src), XMLoadFloat3(&m_vLookPos_Dest), CMyTools::Saturate(m_vLookLerpTime.x / fTimeDenom)), 1.f); m_pTransformCom->LookAt(vNewLook); } else { @@ -82,14 +84,18 @@ void CCamera_Gaze::Enable_FollowLerp() { m_bEnable_FollowLerp = true; m_vFollowLerpTime.x = 0.f; - XMStoreFloat3(&m_vFollowPos_Src, m_pFollowTarget->Get_WorldPostion()); + + XMStoreFloat3(&m_vFollowPos_Src, m_pTransformCom->Get_State(STATE::POSITION)); + XMStoreFloat3(&m_vFollowPos_Dest, m_pFollowTarget->Get_WorldPostion()); } void CCamera_Gaze::Enable_LookLerp() { m_bEnable_LookLerp = true; m_vLookLerpTime.x = 0.f; - XMStoreFloat3(&m_vLookPos_Src, m_pLookTarget->Get_WorldPostion()); + _vector vLookTargetPos = m_pLookTarget->Get_WorldPostion(); + XMStoreFloat3(&m_vLookPos_Src, vLookTargetPos); + XMStoreFloat3(&m_vLookPos_Dest, vLookTargetPos); } void CCamera_Gaze::Toggle_Priority() diff --git a/Jusin154_Team3D/Client/Private/EffectPool.cpp b/Jusin154_Team3D/Client/Private/EffectPool.cpp index 09c1978b7..d7d45b819 100644 --- a/Jusin154_Team3D/Client/Private/EffectPool.cpp +++ b/Jusin154_Team3D/Client/Private/EffectPool.cpp @@ -58,6 +58,8 @@ HRESULT CEffectPool::Initialize(void* pArg) return E_FAIL; } + m_isActiveEffectCreate = false; + m_isActiveMonsterEffectCreate = false; #ifdef _DEBUG #ifdef gimch @@ -73,8 +75,8 @@ HRESULT CEffectPool::Initialize(void* pArg) m_isActiveMonsterEffectCreate = true; #endif // #ifdef 기무리 - m_isActiveEffectCreate = true; - m_isActiveMonsterEffectCreate = true; + m_isActiveEffectCreate = false; + m_isActiveMonsterEffectCreate = false; #endif // #ifdef 인혁 m_isActiveEffectCreate = false; diff --git a/Jusin154_Team3D/Client/Private/Loader.cpp b/Jusin154_Team3D/Client/Private/Loader.cpp index 995765791..7b6d1f4cc 100644 --- a/Jusin154_Team3D/Client/Private/Loader.cpp +++ b/Jusin154_Team3D/Client/Private/Loader.cpp @@ -871,206 +871,206 @@ HRESULT CLoader::Loading_For_GamePlay() m_pGameInstance->Load_GlobalSRV(TEXT("GLOBAL_DISOLVE_BURN_VERTICAL"), "../Bin/Resources/Textures/Effect/Diffuse/drp_fire_Line_Vertical.png"); } #pragma endregion -#pragma region UI_ANI - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Altering_Spell"), - CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Altering_Spell\\Altering_Spell%d.png"), 349)))) - { - return E_FAIL; - } - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Alohomora"), - CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Alohomora\\Alohomora%d.png"), 394)))) - { - return E_FAIL; - } - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Ancient_Magic"), - CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Ancient_Magic\\Ancient_Magic%d.png"), 152)))) - { - return E_FAIL; - } - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Ancient_Magic_Throw"), - CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Ancient_Magic_Throw\\Ancient_Magic_Throw%d.png"), 89)))) - { - return E_FAIL; - } - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Arresto_Momentum"), - CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Arresto_Momentum\\Arresto_Momentum%d.png"), 120)))) - { - return E_FAIL; - } - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Avada_Kedavra"), - CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Avada_Kedavra\\Avada_Kedavra%d.png"), 208)))) - { - return E_FAIL; - } - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Basic_Cast"), - CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Basic_Cast\\Basic_Cast%d.png"), 308)))) - { - return E_FAIL; - } - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Beast_Feed"), - CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Beast_Feed\\Beast_Feed%d.png"), 378)))) - { - return E_FAIL; - } - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Beast_Petting_Brush"), - CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Beast_Petting_Brush\\Beast_Petting_Brush%d.png"), 327)))) - { - return E_FAIL; - } - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Bombarda"), - CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Bombarda\\Bombarda%d.png"), 262)))) - { - return E_FAIL; - } - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Confringo"), - CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Confringo\\Confringo%d.png"), 157)))) - { - return E_FAIL; - } - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Conjuring_Spell"), - CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Conjuring_Spell\\Conjuring_Spell%d.png"), 115)))) - { - return E_FAIL; - } - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Descendo"), - CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Descendo\\Descendo%d.png"), 155)))) - { - return E_FAIL; - } - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Depulso"), - CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Depulso\\Depulso%d.png"), 152)))) - { - return E_FAIL; - } - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Diffindo"), - CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Diffindo\\Diffindo%d.png"), 150)))) - { - return E_FAIL; - } - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Disillusionment"), - CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Disillusionment\\Disillusionment%d.png"), 260)))) - { - return E_FAIL; - } - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Evanesco"), - CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Evanesco\\Evanesco%d.png"), 136)))) - { - return E_FAIL; - } - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Expelliarmus"), - CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Expelliarmus\\Expelliarmus%d.png"), 146)))) - { - return E_FAIL; - } - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Flipendo"), - CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Flipendo\\Flipendo%d.png"), 188)))) - { - return E_FAIL; - } - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Glacius"), - CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Glacius\\Glacius%d.png"), 156)))) - { - return E_FAIL; - } - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Imperio"), - CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Imperio\\Imperio%d.png"), 462)))) - { - return E_FAIL; - } - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Incendio"), - CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Incendio\\Incendio%d.png"), 213)))) - { - return E_FAIL; - } - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Levioso"), - CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Levioso\\Levioso%d.png"), 180)))) - { - return E_FAIL; - } - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Lumos"), - CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Lumos\\Lumos%d.png"), 365)))) - { - return E_FAIL; - } - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Nab_Sack"), - CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Nab_Sack\\Nab_Sack%d.png"), 235)))) - { - return E_FAIL; - } - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Petrificus_Totalus"), - CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Petrificus_Totalus\\Petrificus_Totalus%d.png"), 275)))) - { - return E_FAIL; - } - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Protego"), - CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Protego\\Protego%d.png"), 285)))) - { - return E_FAIL; - } - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Reparo"), - CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Reparo\\Reparo%d.png"), 385)))) - { - return E_FAIL; - } - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Revelio"), - CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Revelio\\Revelio%d.png"), 227)))) - { - return E_FAIL; - } - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Stupefy"), - CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Stupefy\\Stupefy%d.png"), 222)))) - { - return E_FAIL; - } - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Transformation"), - CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Transformation\\Transformation%d.png"), 146)))) - { - return E_FAIL; - } - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Wingardium_Leviosa"), - CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Wingardium_Leviosa\\Wingardium_Leviosa%d.png"), 273)))) - { - return E_FAIL; - } - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Crucio"), - CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Crucio\\Crucio%d.png"), 216)))) - { - return E_FAIL; - } - -#pragma endregion +//#pragma region UI_ANI +// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Altering_Spell"), +// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Altering_Spell\\Altering_Spell%d.png"), 349)))) +// { +// return E_FAIL; +// } +// +// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Alohomora"), +// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Alohomora\\Alohomora%d.png"), 394)))) +// { +// return E_FAIL; +// } +// +// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Ancient_Magic"), +// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Ancient_Magic\\Ancient_Magic%d.png"), 152)))) +// { +// return E_FAIL; +// } +// +// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Ancient_Magic_Throw"), +// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Ancient_Magic_Throw\\Ancient_Magic_Throw%d.png"), 89)))) +// { +// return E_FAIL; +// } +// +// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Arresto_Momentum"), +// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Arresto_Momentum\\Arresto_Momentum%d.png"), 120)))) +// { +// return E_FAIL; +// } +// +// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Avada_Kedavra"), +// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Avada_Kedavra\\Avada_Kedavra%d.png"), 208)))) +// { +// return E_FAIL; +// } +// +// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Basic_Cast"), +// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Basic_Cast\\Basic_Cast%d.png"), 308)))) +// { +// return E_FAIL; +// } +// +// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Beast_Feed"), +// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Beast_Feed\\Beast_Feed%d.png"), 378)))) +// { +// return E_FAIL; +// } +// +// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Beast_Petting_Brush"), +// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Beast_Petting_Brush\\Beast_Petting_Brush%d.png"), 327)))) +// { +// return E_FAIL; +// } +// +// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Bombarda"), +// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Bombarda\\Bombarda%d.png"), 262)))) +// { +// return E_FAIL; +// } +// +// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Confringo"), +// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Confringo\\Confringo%d.png"), 157)))) +// { +// return E_FAIL; +// } +// +// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Conjuring_Spell"), +// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Conjuring_Spell\\Conjuring_Spell%d.png"), 115)))) +// { +// return E_FAIL; +// } +// +// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Descendo"), +// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Descendo\\Descendo%d.png"), 155)))) +// { +// return E_FAIL; +// } +// +// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Depulso"), +// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Depulso\\Depulso%d.png"), 152)))) +// { +// return E_FAIL; +// } +// +// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Diffindo"), +// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Diffindo\\Diffindo%d.png"), 150)))) +// { +// return E_FAIL; +// } +// +// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Disillusionment"), +// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Disillusionment\\Disillusionment%d.png"), 260)))) +// { +// return E_FAIL; +// } +// +// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Evanesco"), +// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Evanesco\\Evanesco%d.png"), 136)))) +// { +// return E_FAIL; +// } +// +// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Expelliarmus"), +// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Expelliarmus\\Expelliarmus%d.png"), 146)))) +// { +// return E_FAIL; +// } +// +// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Flipendo"), +// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Flipendo\\Flipendo%d.png"), 188)))) +// { +// return E_FAIL; +// } +// +// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Glacius"), +// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Glacius\\Glacius%d.png"), 156)))) +// { +// return E_FAIL; +// } +// +// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Imperio"), +// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Imperio\\Imperio%d.png"), 462)))) +// { +// return E_FAIL; +// } +// +// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Incendio"), +// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Incendio\\Incendio%d.png"), 213)))) +// { +// return E_FAIL; +// } +// +// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Levioso"), +// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Levioso\\Levioso%d.png"), 180)))) +// { +// return E_FAIL; +// } +// +// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Lumos"), +// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Lumos\\Lumos%d.png"), 365)))) +// { +// return E_FAIL; +// } +// +// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Nab_Sack"), +// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Nab_Sack\\Nab_Sack%d.png"), 235)))) +// { +// return E_FAIL; +// } +// +// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Petrificus_Totalus"), +// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Petrificus_Totalus\\Petrificus_Totalus%d.png"), 275)))) +// { +// return E_FAIL; +// } +// +// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Protego"), +// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Protego\\Protego%d.png"), 285)))) +// { +// return E_FAIL; +// } +// +// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Reparo"), +// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Reparo\\Reparo%d.png"), 385)))) +// { +// return E_FAIL; +// } +// +// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Revelio"), +// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Revelio\\Revelio%d.png"), 227)))) +// { +// return E_FAIL; +// } +// +// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Stupefy"), +// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Stupefy\\Stupefy%d.png"), 222)))) +// { +// return E_FAIL; +// } +// +// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Transformation"), +// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Transformation\\Transformation%d.png"), 146)))) +// { +// return E_FAIL; +// } +// +// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Wingardium_Leviosa"), +// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Wingardium_Leviosa\\Wingardium_Leviosa%d.png"), 273)))) +// { +// return E_FAIL; +// } +// +// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Crucio"), +// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Crucio\\Crucio%d.png"), 216)))) +// { +// return E_FAIL; +// } +// +//#pragma endregion #pragma region TERRAIN_TEXTURE /* Terrain_Diffuse */ diff --git a/Jusin154_Team3D/Jusin154_Team3D.sln b/Jusin154_Team3D/Jusin154_Team3D.sln index 78e5e4dca..08c3e18a8 100644 --- a/Jusin154_Team3D/Jusin154_Team3D.sln +++ b/Jusin154_Team3D/Jusin154_Team3D.sln @@ -61,7 +61,6 @@ Global {F91AD988-A0C8-4169-AA7D-A7596A403CFF}.Debug|x86.ActiveCfg = Debug|Win32 {F91AD988-A0C8-4169-AA7D-A7596A403CFF}.Debug|x86.Build.0 = Debug|Win32 {F91AD988-A0C8-4169-AA7D-A7596A403CFF}.Release|x64.ActiveCfg = Release|x64 - {F91AD988-A0C8-4169-AA7D-A7596A403CFF}.Release|x64.Build.0 = Release|x64 {F91AD988-A0C8-4169-AA7D-A7596A403CFF}.Release|x86.ActiveCfg = Release|Win32 {F91AD988-A0C8-4169-AA7D-A7596A403CFF}.Release|x86.Build.0 = Release|Win32 {2133313A-E5E1-41CD-B976-21753FBCD083}.Debug|x64.ActiveCfg = Debug|x64 From b3fbce6ac7dc59d38c6730cd940909b4cb1f6be7 Mon Sep 17 00:00:00 2001 From: kimnuri Date: Fri, 12 Dec 2025 14:41:31 +0900 Subject: [PATCH 4/7] [fix] #ifdef --- Jusin154_Team3D/Client/Private/EffectPool.cpp | 6 +- Jusin154_Team3D/Client/Private/Loader.cpp | 400 +++++++++--------- 2 files changed, 202 insertions(+), 204 deletions(-) diff --git a/Jusin154_Team3D/Client/Private/EffectPool.cpp b/Jusin154_Team3D/Client/Private/EffectPool.cpp index d7d45b819..09c1978b7 100644 --- a/Jusin154_Team3D/Client/Private/EffectPool.cpp +++ b/Jusin154_Team3D/Client/Private/EffectPool.cpp @@ -58,8 +58,6 @@ HRESULT CEffectPool::Initialize(void* pArg) return E_FAIL; } - m_isActiveEffectCreate = false; - m_isActiveMonsterEffectCreate = false; #ifdef _DEBUG #ifdef gimch @@ -75,8 +73,8 @@ HRESULT CEffectPool::Initialize(void* pArg) m_isActiveMonsterEffectCreate = true; #endif // #ifdef 기무리 - m_isActiveEffectCreate = false; - m_isActiveMonsterEffectCreate = false; + m_isActiveEffectCreate = true; + m_isActiveMonsterEffectCreate = true; #endif // #ifdef 인혁 m_isActiveEffectCreate = false; diff --git a/Jusin154_Team3D/Client/Private/Loader.cpp b/Jusin154_Team3D/Client/Private/Loader.cpp index 7b6d1f4cc..995765791 100644 --- a/Jusin154_Team3D/Client/Private/Loader.cpp +++ b/Jusin154_Team3D/Client/Private/Loader.cpp @@ -871,206 +871,206 @@ HRESULT CLoader::Loading_For_GamePlay() m_pGameInstance->Load_GlobalSRV(TEXT("GLOBAL_DISOLVE_BURN_VERTICAL"), "../Bin/Resources/Textures/Effect/Diffuse/drp_fire_Line_Vertical.png"); } #pragma endregion -//#pragma region UI_ANI -// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Altering_Spell"), -// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Altering_Spell\\Altering_Spell%d.png"), 349)))) -// { -// return E_FAIL; -// } -// -// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Alohomora"), -// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Alohomora\\Alohomora%d.png"), 394)))) -// { -// return E_FAIL; -// } -// -// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Ancient_Magic"), -// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Ancient_Magic\\Ancient_Magic%d.png"), 152)))) -// { -// return E_FAIL; -// } -// -// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Ancient_Magic_Throw"), -// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Ancient_Magic_Throw\\Ancient_Magic_Throw%d.png"), 89)))) -// { -// return E_FAIL; -// } -// -// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Arresto_Momentum"), -// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Arresto_Momentum\\Arresto_Momentum%d.png"), 120)))) -// { -// return E_FAIL; -// } -// -// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Avada_Kedavra"), -// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Avada_Kedavra\\Avada_Kedavra%d.png"), 208)))) -// { -// return E_FAIL; -// } -// -// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Basic_Cast"), -// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Basic_Cast\\Basic_Cast%d.png"), 308)))) -// { -// return E_FAIL; -// } -// -// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Beast_Feed"), -// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Beast_Feed\\Beast_Feed%d.png"), 378)))) -// { -// return E_FAIL; -// } -// -// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Beast_Petting_Brush"), -// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Beast_Petting_Brush\\Beast_Petting_Brush%d.png"), 327)))) -// { -// return E_FAIL; -// } -// -// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Bombarda"), -// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Bombarda\\Bombarda%d.png"), 262)))) -// { -// return E_FAIL; -// } -// -// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Confringo"), -// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Confringo\\Confringo%d.png"), 157)))) -// { -// return E_FAIL; -// } -// -// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Conjuring_Spell"), -// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Conjuring_Spell\\Conjuring_Spell%d.png"), 115)))) -// { -// return E_FAIL; -// } -// -// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Descendo"), -// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Descendo\\Descendo%d.png"), 155)))) -// { -// return E_FAIL; -// } -// -// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Depulso"), -// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Depulso\\Depulso%d.png"), 152)))) -// { -// return E_FAIL; -// } -// -// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Diffindo"), -// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Diffindo\\Diffindo%d.png"), 150)))) -// { -// return E_FAIL; -// } -// -// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Disillusionment"), -// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Disillusionment\\Disillusionment%d.png"), 260)))) -// { -// return E_FAIL; -// } -// -// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Evanesco"), -// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Evanesco\\Evanesco%d.png"), 136)))) -// { -// return E_FAIL; -// } -// -// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Expelliarmus"), -// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Expelliarmus\\Expelliarmus%d.png"), 146)))) -// { -// return E_FAIL; -// } -// -// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Flipendo"), -// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Flipendo\\Flipendo%d.png"), 188)))) -// { -// return E_FAIL; -// } -// -// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Glacius"), -// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Glacius\\Glacius%d.png"), 156)))) -// { -// return E_FAIL; -// } -// -// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Imperio"), -// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Imperio\\Imperio%d.png"), 462)))) -// { -// return E_FAIL; -// } -// -// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Incendio"), -// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Incendio\\Incendio%d.png"), 213)))) -// { -// return E_FAIL; -// } -// -// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Levioso"), -// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Levioso\\Levioso%d.png"), 180)))) -// { -// return E_FAIL; -// } -// -// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Lumos"), -// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Lumos\\Lumos%d.png"), 365)))) -// { -// return E_FAIL; -// } -// -// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Nab_Sack"), -// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Nab_Sack\\Nab_Sack%d.png"), 235)))) -// { -// return E_FAIL; -// } -// -// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Petrificus_Totalus"), -// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Petrificus_Totalus\\Petrificus_Totalus%d.png"), 275)))) -// { -// return E_FAIL; -// } -// -// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Protego"), -// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Protego\\Protego%d.png"), 285)))) -// { -// return E_FAIL; -// } -// -// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Reparo"), -// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Reparo\\Reparo%d.png"), 385)))) -// { -// return E_FAIL; -// } -// -// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Revelio"), -// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Revelio\\Revelio%d.png"), 227)))) -// { -// return E_FAIL; -// } -// -// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Stupefy"), -// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Stupefy\\Stupefy%d.png"), 222)))) -// { -// return E_FAIL; -// } -// -// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Transformation"), -// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Transformation\\Transformation%d.png"), 146)))) -// { -// return E_FAIL; -// } -// -// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Wingardium_Leviosa"), -// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Wingardium_Leviosa\\Wingardium_Leviosa%d.png"), 273)))) -// { -// return E_FAIL; -// } -// -// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Crucio"), -// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Crucio\\Crucio%d.png"), 216)))) -// { -// return E_FAIL; -// } -// -//#pragma endregion +#pragma region UI_ANI + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Altering_Spell"), + CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Altering_Spell\\Altering_Spell%d.png"), 349)))) + { + return E_FAIL; + } + + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Alohomora"), + CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Alohomora\\Alohomora%d.png"), 394)))) + { + return E_FAIL; + } + + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Ancient_Magic"), + CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Ancient_Magic\\Ancient_Magic%d.png"), 152)))) + { + return E_FAIL; + } + + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Ancient_Magic_Throw"), + CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Ancient_Magic_Throw\\Ancient_Magic_Throw%d.png"), 89)))) + { + return E_FAIL; + } + + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Arresto_Momentum"), + CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Arresto_Momentum\\Arresto_Momentum%d.png"), 120)))) + { + return E_FAIL; + } + + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Avada_Kedavra"), + CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Avada_Kedavra\\Avada_Kedavra%d.png"), 208)))) + { + return E_FAIL; + } + + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Basic_Cast"), + CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Basic_Cast\\Basic_Cast%d.png"), 308)))) + { + return E_FAIL; + } + + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Beast_Feed"), + CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Beast_Feed\\Beast_Feed%d.png"), 378)))) + { + return E_FAIL; + } + + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Beast_Petting_Brush"), + CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Beast_Petting_Brush\\Beast_Petting_Brush%d.png"), 327)))) + { + return E_FAIL; + } + + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Bombarda"), + CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Bombarda\\Bombarda%d.png"), 262)))) + { + return E_FAIL; + } + + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Confringo"), + CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Confringo\\Confringo%d.png"), 157)))) + { + return E_FAIL; + } + + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Conjuring_Spell"), + CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Conjuring_Spell\\Conjuring_Spell%d.png"), 115)))) + { + return E_FAIL; + } + + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Descendo"), + CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Descendo\\Descendo%d.png"), 155)))) + { + return E_FAIL; + } + + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Depulso"), + CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Depulso\\Depulso%d.png"), 152)))) + { + return E_FAIL; + } + + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Diffindo"), + CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Diffindo\\Diffindo%d.png"), 150)))) + { + return E_FAIL; + } + + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Disillusionment"), + CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Disillusionment\\Disillusionment%d.png"), 260)))) + { + return E_FAIL; + } + + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Evanesco"), + CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Evanesco\\Evanesco%d.png"), 136)))) + { + return E_FAIL; + } + + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Expelliarmus"), + CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Expelliarmus\\Expelliarmus%d.png"), 146)))) + { + return E_FAIL; + } + + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Flipendo"), + CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Flipendo\\Flipendo%d.png"), 188)))) + { + return E_FAIL; + } + + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Glacius"), + CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Glacius\\Glacius%d.png"), 156)))) + { + return E_FAIL; + } + + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Imperio"), + CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Imperio\\Imperio%d.png"), 462)))) + { + return E_FAIL; + } + + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Incendio"), + CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Incendio\\Incendio%d.png"), 213)))) + { + return E_FAIL; + } + + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Levioso"), + CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Levioso\\Levioso%d.png"), 180)))) + { + return E_FAIL; + } + + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Lumos"), + CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Lumos\\Lumos%d.png"), 365)))) + { + return E_FAIL; + } + + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Nab_Sack"), + CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Nab_Sack\\Nab_Sack%d.png"), 235)))) + { + return E_FAIL; + } + + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Petrificus_Totalus"), + CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Petrificus_Totalus\\Petrificus_Totalus%d.png"), 275)))) + { + return E_FAIL; + } + + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Protego"), + CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Protego\\Protego%d.png"), 285)))) + { + return E_FAIL; + } + + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Reparo"), + CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Reparo\\Reparo%d.png"), 385)))) + { + return E_FAIL; + } + + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Revelio"), + CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Revelio\\Revelio%d.png"), 227)))) + { + return E_FAIL; + } + + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Stupefy"), + CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Stupefy\\Stupefy%d.png"), 222)))) + { + return E_FAIL; + } + + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Transformation"), + CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Transformation\\Transformation%d.png"), 146)))) + { + return E_FAIL; + } + + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Wingardium_Leviosa"), + CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Wingardium_Leviosa\\Wingardium_Leviosa%d.png"), 273)))) + { + return E_FAIL; + } + + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Crucio"), + CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Crucio\\Crucio%d.png"), 216)))) + { + return E_FAIL; + } + +#pragma endregion #pragma region TERRAIN_TEXTURE /* Terrain_Diffuse */ From 2aefa6a6caab1c348c84f2b360613f77b19a0678 Mon Sep 17 00:00:00 2001 From: kimnuri Date: Fri, 12 Dec 2025 14:55:08 +0900 Subject: [PATCH 5/7] [add] Ollivander --- Jusin154_Team3D/Client/Private/NPC_Ollivander.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Jusin154_Team3D/Client/Private/NPC_Ollivander.cpp b/Jusin154_Team3D/Client/Private/NPC_Ollivander.cpp index c9b60c53b..e79d87d7f 100644 --- a/Jusin154_Team3D/Client/Private/NPC_Ollivander.cpp +++ b/Jusin154_Team3D/Client/Private/NPC_Ollivander.cpp @@ -141,6 +141,7 @@ HRESULT CNPC_Ollivander::Initialize(void* pArg) return E_FAIL; } m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(40.f, 4.f, 68.9f, 1.f)); + m_pModelCom->Set_AnimationIndex(m_pGameInstance->Random_Int(0, 19), false); return S_OK; } From fc4dc7122489ed34520a29b1d5d89bd1898fe2e0 Mon Sep 17 00:00:00 2001 From: hyunbin14 Date: Fri, 12 Dec 2025 15:01:31 +0900 Subject: [PATCH 6/7] =?UTF-8?q?[Add]=20=ED=8F=AC=EC=85=98=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jusin154_Team3D/Client/Default/Client.vcxproj | 2 + .../Client/Default/Client.vcxproj.filters | 15 +- .../Client/Private/Item_Potion.cpp | 200 ++++++++++++++++++ Jusin154_Team3D/Client/Private/Loader.cpp | 10 + Jusin154_Team3D/Client/Private/Player.cpp | 13 ++ .../Client/Private/Player_States.cpp | 4 + .../Client/Private/Troll_States.cpp | 4 +- Jusin154_Team3D/Client/Public/Item_Potion.h | 54 +++++ .../Object/Potion/SM_Bottle_EmptyCapOff.bin | 3 + Jusin154_Team3D/Editor/Private/Loader.cpp | 6 + 10 files changed, 306 insertions(+), 5 deletions(-) create mode 100644 Jusin154_Team3D/Client/Private/Item_Potion.cpp create mode 100644 Jusin154_Team3D/Client/Public/Item_Potion.h create mode 100644 Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Potion/SM_Bottle_EmptyCapOff.bin diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj b/Jusin154_Team3D/Client/Default/Client.vcxproj index 49dd2a365..a6bbfcca4 100644 --- a/Jusin154_Team3D/Client/Default/Client.vcxproj +++ b/Jusin154_Team3D/Client/Default/Client.vcxproj @@ -185,6 +185,7 @@ call Update_Resources.bat + @@ -366,6 +367,7 @@ call Update_Resources.bat + diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters index 519fe9a6b..31269e643 100644 --- a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters +++ b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters @@ -532,7 +532,7 @@ 02.GameObjects\Effect\PropsEffect\Barral - + 04.Mechanic\State\Broom_Player\State_Broom_Hover @@ -554,6 +554,9 @@ 02.GameObjects\Environment\03.MapElement\Door + + 02.GameObjects\Item\Potion + @@ -1148,7 +1151,7 @@ {3103c6e1-60cb-438b-a3eb-844b919ccd43} - + {24f6903f-8f6b-46ff-a387-ecb44d673887} @@ -1170,6 +1173,9 @@ {b09f9ada-6cf4-41a4-ad28-f00855509825} + + {ace6c64f-901a-424e-99da-53f281413d77} + @@ -1646,7 +1652,7 @@ 02.GameObjects\Effect\PropsEffect\Chair - + 04.Mechanic\State\Broom_Player\State_Broom_Hover @@ -1668,6 +1674,9 @@ 02.GameObjects\Environment\03.MapElement\Door + + 02.GameObjects\Item\Potion + diff --git a/Jusin154_Team3D/Client/Private/Item_Potion.cpp b/Jusin154_Team3D/Client/Private/Item_Potion.cpp new file mode 100644 index 000000000..1609a2c54 --- /dev/null +++ b/Jusin154_Team3D/Client/Private/Item_Potion.cpp @@ -0,0 +1,200 @@ +#include "pch.h" +#include "Item_Potion.h" + +#include "GameInstance.h" + +CItem_Potion::CItem_Potion(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CPartObject(pDevice, pContext) +{ +} + +CItem_Potion::CItem_Potion(const CItem_Potion& Prototype) + : CPartObject(Prototype) +{ +} + +HRESULT CItem_Potion::Initialize_Prototype() +{ + return S_OK; +} + +HRESULT CItem_Potion::Initialize(void* pArg) +{ + POTION_DESC* pDesc = static_cast (pArg); + m_pSocketMatrices = pDesc->pSocketMatrices; + + if (FAILED(__super::Initialize(pArg))) { + return E_FAIL; + } + + + if (FAILED(Ready_Components())) { + return E_FAIL; + } + + return S_OK; +} + +void CItem_Potion::Priority_Update(_float fTimeDelta) +{ + + +#ifdef _DEBUG + Describe_Entity(); + +#endif // _DEBUG +} + +void CItem_Potion::Update(_float fTimeDelta) +{ + m_pModelCom->Combined_BoneMatrix(); + +} + +void CItem_Potion::Late_Update(_float fTimeDelta) +{ + if (m_bVisible) + { + m_fTimer += fTimeDelta; + if (m_fTimer >= 1.7f) { + m_fTimer = 0.f; + m_bVisible = false; + } + + } + if (m_bAttach) + { + _matrix socketMatrix = {}; + + socketMatrix = XMLoadFloat4x4(m_pSocketMatrices); + + for (int i = 0; i < 3; ++i) { + socketMatrix.r[i] = XMVector3Normalize(socketMatrix.r[i]); + } + + m_pTransformCom->Set_WorldMatrix(socketMatrix * XMLoadFloat4x4(m_pParentTransformCom->Get_WorldMatrixPtr())); + } + + + m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this); +} + +HRESULT CItem_Potion::Render() +{ + if (!m_pModelCom) + return S_OK; + + if (!m_bVisible) + return S_OK; + + if (FAILED(Bind_ShaderResources())) { + return E_FAIL; + } + + _uint iNumMeshes = m_pModelCom->Get_NumMeshes(); + + for (_uint i = 0; i < iNumMeshes; i++) + { + if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_ANIM::DEFAULT)))) { + return E_FAIL; + } + + if (FAILED(m_pModelCom->Render(i))) { + return E_FAIL; + } + } + + return S_OK; +} + +void CItem_Potion::Set_Attach(_bool Attach) +{ + m_bAttach = Attach; +} + + +HRESULT CItem_Potion::Ready_Components() +{ + __super::Ready_Components(nullptr); + + + /* Com_Model */ + if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_Potion_Model"), + reinterpret_cast(&m_pModelCom)))) + return E_FAIL; + + /* Com_Shader */ + if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_MESH, + reinterpret_cast(&m_pShaderCom)))) + return E_FAIL; + + return S_OK; +} + +HRESULT CItem_Potion::Bind_ShaderResources() +{ + if (FAILED(m_pShaderCom->Bind_Matrix("g_WorldMatrix", m_pTransformCom->Get_WorldMatrixPtr()))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) { + return E_FAIL; + } + + return S_OK; +} + + +CItem_Potion* CItem_Potion::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CItem_Potion* pInstance = new CItem_Potion(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CItem_Potion"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +CGameObject* CItem_Potion::Clone(void* pArg, CGameObject* pOwner) +{ + CItem_Potion* pInstance = new CItem_Potion(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CItem_Potion"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CItem_Potion::Free() +{ + __super::Free(); + + SAFE_RELEASE(m_pShaderCom); + SAFE_RELEASE(m_pModelCom); + +} +#ifdef _DEBUG + +void CItem_Potion::Describe_Entity() +{ + +} + +#endif // _DEBUG diff --git a/Jusin154_Team3D/Client/Private/Loader.cpp b/Jusin154_Team3D/Client/Private/Loader.cpp index 995765791..8f56c753e 100644 --- a/Jusin154_Team3D/Client/Private/Loader.cpp +++ b/Jusin154_Team3D/Client/Private/Loader.cpp @@ -18,6 +18,7 @@ #include "Troll_Rock.h" #include "Goblin_Dagger.h" #include "Wand.h" +#include "Item_Potion.h" #include "Goblin_BattleAxe.h" #pragma region ACTOR @@ -1471,6 +1472,11 @@ HRESULT CLoader::Loading_For_GamePlay() CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Object/Wand/Wand.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationX(XMConvertToRadians(-90.f)) * XMMatrixIdentity())))) return E_FAIL; + if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Potion_Model"), + CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/Object/Potion/SM_Bottle_EmptyCapOff.bin", XMMatrixIdentity())))) + return E_FAIL; + + if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Broom_Model"), CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Object/Broom/Broom.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) return E_FAIL; @@ -2188,6 +2194,10 @@ HRESULT CLoader::Loading_For_GamePlay() if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CWand::Create(m_pDevice, m_pContext)))) return E_FAIL; + /* For.Prototype_GameObject_Potion */ + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CItem_Potion::Create(m_pDevice, m_pContext)))) + return E_FAIL; + /* For.Prototype_GameObject_Troll_Weapon */ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CTroll_Weapon::Create(m_pDevice, m_pContext)))) return E_FAIL; diff --git a/Jusin154_Team3D/Client/Private/Player.cpp b/Jusin154_Team3D/Client/Private/Player.cpp index f5dc94ce6..c0fa3dd2e 100644 --- a/Jusin154_Team3D/Client/Private/Player.cpp +++ b/Jusin154_Team3D/Client/Private/Player.cpp @@ -7,6 +7,7 @@ #include "Camera_Gaze.h" #include "CamPosition_Arm.h" #include "Wand.h" +#include "Item_Potion.h" #include "Character_Controller.h" #include "CallBack_Playable_Behavior.h" #include "CamPosition_Shoulder.h" @@ -463,6 +464,18 @@ HRESULT CPlayer::Ready_Parts() return E_FAIL; } + CItem_Potion::POTION_DESC PotionDesc{}; + + PotionDesc.pParentTransform = m_pTransformCom; + PotionDesc.pSocketMatrices = m_pModelCom->Get_BoneMatrixPtr("SKT_LeftHand"); + + if (FAILED(Add_PartObject("Potion", g_iStaticLevel, nullptr, &PotionDesc))) + { + return E_FAIL; + } + + Get_PartObject()->Set_Visible(false); + { CCamPosition_Shoulder::CAMERA_SHOULDER_DESC Desc; Desc.pParentTransform = m_pTransformCom; diff --git a/Jusin154_Team3D/Client/Private/Player_States.cpp b/Jusin154_Team3D/Client/Private/Player_States.cpp index 2dd4f4dd8..34b638498 100644 --- a/Jusin154_Team3D/Client/Private/Player_States.cpp +++ b/Jusin154_Team3D/Client/Private/Player_States.cpp @@ -8,6 +8,7 @@ #include "Camera_Gaze.h" #include "CamPosition_Arm.h" #include "Wand.h" +#include "Item_Potion.h" #include "Character_Controller.h" #include "MapElement_Interactable.h" #include "CallBack_Playable_Behavior.h" @@ -215,6 +216,7 @@ HRESULT CPlayer::Behavior_IdleExitCheck(_float fTimeDelta) m_pFSM->Change_State(FSMSTATE::COMBAT); } else if (m_pGameInstance->Key_Down(DIK_G)) { + Get_PartObject()->Set_Visible(true); m_pModelCom->Set_Second_AnimationIndex(ENUM_CLASS(BLEND_BONE::SHOULDER_NECK_L), m_Animation[STATEANIM::POTION].first, m_Animation[STATEANIM::POTION].second); } else if (m_pGameInstance->Key_Down(DIK_B)) { @@ -408,6 +410,7 @@ HRESULT CPlayer::Behavior_MoveExitCheck(_float fTimeDelta) m_pFSM->Change_State(FSMSTATE::COMBAT); } else if (m_pGameInstance->Key_Down(DIK_G)) { + Get_PartObject()->Set_Visible(true); m_pModelCom->Set_Second_AnimationIndex(ENUM_CLASS(BLEND_BONE::SHOULDER_NECK_L), m_Animation[STATEANIM::POTION].first, m_Animation[STATEANIM::POTION].second); } @@ -640,6 +643,7 @@ HRESULT CPlayer::Behavior_MoveExitCheck(_float fTimeDelta) return S_OK; } + if (m_pFSM->IsEnable(FSMSTATE::JOG | FSMSTATE::WALK | FSMSTATE::SPRINT) || !SUCCEEDED(InputMove())) { if (!m_pFSM->IsEnable(FSMSTATE::STOP)) diff --git a/Jusin154_Team3D/Client/Private/Troll_States.cpp b/Jusin154_Team3D/Client/Private/Troll_States.cpp index 2f8fa7435..8192ce1f5 100644 --- a/Jusin154_Team3D/Client/Private/Troll_States.cpp +++ b/Jusin154_Team3D/Client/Private/Troll_States.cpp @@ -912,7 +912,7 @@ void CTroll::CheckHammerHits(_uint& iHitCount, vector& pxHits) _bool bCollision = false; m_SweepBufferHammer = {}; - bCollision = m_pGameInstance->SphereCast(1.2f, vStartPos, vDir, fDistance, PSX::PxHitFlag::eDEFAULT, PSX::PxQueryFlag::eDYNAMIC, m_SweepBufferHammer); + bCollision = m_pGameInstance->SphereCast(2.f, vStartPos, vDir, fDistance, PSX::PxHitFlag::eDEFAULT, PSX::PxQueryFlag::eDYNAMIC, m_SweepBufferHammer); if (true == bCollision) { iHitCount += m_SweepBufferHammer.getNbTouches() + m_SweepBufferHammer.hasBlock; auto touches = m_SweepBufferHammer.getTouches(); @@ -933,7 +933,7 @@ void CTroll::CheckHammerHits(_uint& iHitCount, vector& pxHits) _bool bCollision = false; m_SweepBufferGrip = {}; - bCollision = m_pGameInstance->SphereCast(1.2f, vStartPos, vDir, fDistance, PSX::PxHitFlag::eDEFAULT, PSX::PxQueryFlag::eDYNAMIC, m_SweepBufferGrip); + bCollision = m_pGameInstance->SphereCast(2.f, vStartPos, vDir, fDistance, PSX::PxHitFlag::eDEFAULT, PSX::PxQueryFlag::eDYNAMIC, m_SweepBufferGrip); if (true == bCollision) { iHitCount += m_SweepBufferGrip.getNbTouches() + m_SweepBufferGrip.hasBlock; auto touches = m_SweepBufferGrip.getTouches(); diff --git a/Jusin154_Team3D/Client/Public/Item_Potion.h b/Jusin154_Team3D/Client/Public/Item_Potion.h new file mode 100644 index 000000000..983d862fd --- /dev/null +++ b/Jusin154_Team3D/Client/Public/Item_Potion.h @@ -0,0 +1,54 @@ +#pragma once + +#include "Client_Define.h" +#include "PartObject.h" + +NS_BEGIN(Client) + +class CItem_Potion final : public CPartObject +{ +public: + typedef struct tagPotion : public CPartObject::PARTOBJECT_DESC + { + const _float4x4* pSocketMatrices = { }; + }POTION_DESC; +private: + CItem_Potion(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CItem_Potion(const CItem_Potion& Prototype); + virtual ~CItem_Potion() = default; + +public: + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + virtual void Priority_Update(_float fTimeDelta) override; + virtual void Update(_float fTimeDelta) override; + virtual void Late_Update(_float fTimeDelta) override; + virtual HRESULT Render() override; + void Set_Attach(_bool Attach); +public: + +private: + const _float4x4* m_pSocketMatrices = { }; + CShader* m_pShaderCom = { nullptr }; + CModel* m_pModelCom = { nullptr }; + + _float4x4 m_pWandTipMatrix = {}; + _float3 m_Offset = {}; + _bool m_bAttach = { true }; + _float m_fTimer = {}; + +private: + HRESULT Ready_Components(); + HRESULT Bind_ShaderResources(); + +public: + static CItem_Potion* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + virtual CGameObject* Clone(void* pArg, CGameObject* pOwner = nullptr)override; + virtual void Free() override; + +#ifdef _DEBUG + void Describe_Entity() override; +#endif // _DEBUG +}; + +NS_END diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Potion/SM_Bottle_EmptyCapOff.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Potion/SM_Bottle_EmptyCapOff.bin new file mode 100644 index 000000000..3bf94078e --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Potion/SM_Bottle_EmptyCapOff.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9f1494c242f4b9eff1a15b759e0ac6d48b58c529e88c53ba59e0e58dff688607 +size 160154 diff --git a/Jusin154_Team3D/Editor/Private/Loader.cpp b/Jusin154_Team3D/Editor/Private/Loader.cpp index 13fc18866..2e138f5c9 100644 --- a/Jusin154_Team3D/Editor/Private/Loader.cpp +++ b/Jusin154_Team3D/Editor/Private/Loader.cpp @@ -2130,6 +2130,12 @@ HRESULT CLoader::Loading_For_ObjectViewer() vector*>> futures = {}; + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_SM_Bottle_EmptyCapOff_Model"), + CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM_LOCAL, "C:/MeshTable\\Game\\Cinematics\\Props\\SM_Bottle_EmptyCapOff.fbx", XMMatrixIdentity())))) { + return E_FAIL; + } + + #pragma region BODY futures.emplace_back(Deferred_ModelLoad( From eafb2bacd50dabb28263addcc7b9fd64aaa028a1 Mon Sep 17 00:00:00 2001 From: hyunbin14 Date: Fri, 12 Dec 2025 15:31:53 +0900 Subject: [PATCH 7/7] =?UTF-8?q?[Fix]=20=ED=8A=B8=EB=A1=A4=20=EC=8A=A4?= =?UTF-8?q?=EC=9C=99=20=EC=88=98=EC=A0=95=20[Fix]=20=ED=94=8C=EB=A0=88?= =?UTF-8?q?=EC=9D=B4=EC=96=B4=20=EB=8D=98=EC=A7=80=EA=B8=B0=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jusin154_Team3D/Client/Private/Player_States.cpp | 6 ++++++ Jusin154_Team3D/Client/Private/Troll_States.cpp | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/Jusin154_Team3D/Client/Private/Player_States.cpp b/Jusin154_Team3D/Client/Private/Player_States.cpp index 34b638498..38505d5f3 100644 --- a/Jusin154_Team3D/Client/Private/Player_States.cpp +++ b/Jusin154_Team3D/Client/Private/Player_States.cpp @@ -848,6 +848,12 @@ void CPlayer::Behavior_CombatEnter() Add_Event(pairAnimInfo.first, [this]() { Throwing_Interactive(); }, 0.2f); + + Add_Event(pairAnimInfo.first, + [this]() { + m_pGameInstance->SlowMotion(0.1f, 0.35f); + }, + 0.1f); } m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); } diff --git a/Jusin154_Team3D/Client/Private/Troll_States.cpp b/Jusin154_Team3D/Client/Private/Troll_States.cpp index 8192ce1f5..fc834321a 100644 --- a/Jusin154_Team3D/Client/Private/Troll_States.cpp +++ b/Jusin154_Team3D/Client/Private/Troll_States.cpp @@ -579,7 +579,7 @@ HRESULT CTroll::Behavior_BackHandSwingExitCheck(_float fTimeDelta) m_pFSM->Change_State(FSMSTATE::COMBAT); return E_FAIL; } - return E_FAIL; + return S_OK; } void CTroll::Behavior_BackHandSwingExit() @@ -912,7 +912,7 @@ void CTroll::CheckHammerHits(_uint& iHitCount, vector& pxHits) _bool bCollision = false; m_SweepBufferHammer = {}; - bCollision = m_pGameInstance->SphereCast(2.f, vStartPos, vDir, fDistance, PSX::PxHitFlag::eDEFAULT, PSX::PxQueryFlag::eDYNAMIC, m_SweepBufferHammer); + bCollision = m_pGameInstance->SphereCast(1.5f, vStartPos, vDir, fDistance, PSX::PxHitFlag::eDEFAULT, PSX::PxQueryFlag::eDYNAMIC, m_SweepBufferHammer); if (true == bCollision) { iHitCount += m_SweepBufferHammer.getNbTouches() + m_SweepBufferHammer.hasBlock; auto touches = m_SweepBufferHammer.getTouches(); @@ -933,7 +933,7 @@ void CTroll::CheckHammerHits(_uint& iHitCount, vector& pxHits) _bool bCollision = false; m_SweepBufferGrip = {}; - bCollision = m_pGameInstance->SphereCast(2.f, vStartPos, vDir, fDistance, PSX::PxHitFlag::eDEFAULT, PSX::PxQueryFlag::eDYNAMIC, m_SweepBufferGrip); + bCollision = m_pGameInstance->SphereCast(1.5f, vStartPos, vDir, fDistance, PSX::PxHitFlag::eDEFAULT, PSX::PxQueryFlag::eDYNAMIC, m_SweepBufferGrip); if (true == bCollision) { iHitCount += m_SweepBufferGrip.getNbTouches() + m_SweepBufferGrip.hasBlock; auto touches = m_SweepBufferGrip.getTouches();