diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj b/Jusin154_Team3D/Client/Default/Client.vcxproj index bca9cc3dc..2a0ed0c16 100644 --- a/Jusin154_Team3D/Client/Default/Client.vcxproj +++ b/Jusin154_Team3D/Client/Default/Client.vcxproj @@ -176,6 +176,7 @@ call Update_Resources.bat + @@ -221,6 +222,7 @@ call Update_Resources.bat + @@ -462,6 +464,7 @@ call Update_Resources.bat + @@ -508,6 +511,7 @@ call Update_Resources.bat + diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters index f59db13e8..b175fda77 100644 --- a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters +++ b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters @@ -862,7 +862,7 @@ 02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_DeadImpact - + 02.GameObjects\NPC\Hostile\Human_Duelist @@ -878,6 +878,12 @@ 04.Mechanic\State\State_Combat\State_CutScene + + 03.InfoInstance\04.CutSceneInfo + + + 04.Mechanic\TimeSocket + @@ -927,15 +933,6 @@ {a7d0a3fa-b3dc-40c6-b258-ffcde49b05c1} - - {b5bef783-5315-4488-ac64-cb98d16a84a9} - - - {31681680-d5de-43c9-bc2d-2c91ca58a593} - - - {1bfec6dc-f008-4d18-87d6-be38824b1272} - {2b209526-b728-4fba-a184-b9224d72903a} @@ -1014,30 +1011,6 @@ {dc05dfc9-22e5-4a2a-b016-c55b215c0c68} - - {0834c76d-83d8-4ef5-9d19-7277686d28c5} - - - {017fc692-bac0-4635-843c-02fb59009f5b} - - - {349939a0-8b9a-4a1a-8f0a-ca5014cd4e18} - - - {5fa1e5a9-acd8-499d-90ee-9cf17441b3a5} - - - {41d2e34e-5280-4b3c-961e-064484f1449d} - - - {1034dd61-dd17-456a-990b-628c45f74b51} - - - {2999d0c5-81e4-44d6-99b3-4801e6f84dd7} - - - {0a3f9629-27d1-411c-806e-b550af8f1ca1} - {23fc95c4-0db3-4569-bd37-4d9bc32938ba} @@ -1161,12 +1134,6 @@ {6bc9fd95-31bc-40f3-83cc-15ebb756b04a} - - {c5b61cb3-bc5f-4429-8715-b309dcf054b2} - - - {2bc5b43e-0e24-49d4-95b0-549ad4428201} - {f3f219aa-034f-4aa2-9f2e-d75d15bd1f4a} @@ -1242,48 +1209,18 @@ {9cc8fea6-837e-4f68-b116-134c9dc68a26} - - {5a7e32b1-6fa9-44e2-8d6e-b117c3454d5b} - - - {46e41554-f9a0-41c5-992c-f736ef1a333f} - - - {039f471d-9623-4026-9493-5bb52c6a8cd3} - {837ff377-2bcd-4a54-baf2-18b1be9d90a0} {7d6fe51e-3d6d-4fed-9e5d-27e257672e01} - - {f109c973-c532-4549-9680-d0d6495b0fa8} - {b8c7e12b-da04-4d49-bc61-104649975d0b} {17eaf081-6fbf-4965-b04d-10749e6032c6} - - {75479637-e795-4656-a4ef-3772d8a6d007} - - - {27d5a2b8-98db-4dbf-9916-0806cfa97c9c} - - - {a7f11f50-5740-4670-ad9e-d21640b2cca7} - - - {12ff4f09-ec6c-4b98-966a-0d84c9ad253c} - - - {7bb8a04a-00a0-4864-9781-8069d84806ca} - - - {e68261eb-a581-4bf5-b48d-b47cc81f7406} - {7e641382-9dfa-4da7-a8c8-a3ee06360e7a} @@ -1314,9 +1251,6 @@ {c584798b-d7aa-4cb0-b6e8-c2aff73757ce} - - {0ed6a11e-5d22-4b9f-a39c-f2319c27caf4} - {5973b96c-42c3-4cda-9627-f741e12124cd} @@ -1389,24 +1323,12 @@ {14ad0431-680b-4c8b-93d7-601aee5ce435} - - {22207d12-6fd2-4692-9329-b0ea0e19ca84} - {1d1dc743-5cf2-4b8f-a80e-16b16437c7aa} - - {81add99f-7450-4730-8d3f-bf1de06b2b8d} - - - {2e2a53dc-9ea6-427f-88b3-d8857193d432} - {967d1741-2780-40b7-b55e-9fd58e931ef7} - - {36962dce-8c99-4c54-9189-2a49785a211e} - {13977e62-6b05-41de-9919-20a06cd336e5} @@ -1425,15 +1347,6 @@ {c9370e36-317e-45e7-a8c7-98a623864824} - - {48b905c1-b91e-44ca-a61b-86633826768b} - - - {d6be355f-c860-4323-9967-583265749698} - - - {51b299f6-ebb0-4f58-9620-5e1dc24a2e60} - {b49a3671-96d0-47b8-833f-28190d549b0f} @@ -1455,9 +1368,6 @@ {34a4beb9-ccb9-4847-ae45-af4e7dc25d94} - - {fd4a0869-2491-4fec-9df9-3aedbac96171} - {02cb243a-f63e-4e55-9d55-b47e31a4c13e} @@ -1497,9 +1407,6 @@ {7c8b3162-a6d5-441f-84ae-cfb4bf779dfa} - - {2326c134-a2bb-45f1-8452-2dd49bf42697} - {6ffe4bf3-60e2-4dd3-beef-cc7cf7b50328} @@ -1512,60 +1419,18 @@ {9e8bccb6-c491-4f3a-bdb8-5f03f13ad84d} - - {fe64513c-fbb3-4577-b424-82d99c9075a3} - {08163c4a-63c9-4cc2-97b4-97bb2f9467ff} {bffcced5-6951-4db4-9df1-44b33b52ece7} - - {35a6cb6f-4bbb-47fb-8f7a-63615128dece} - {6bbfb8f0-c71a-4769-b1e6-efd5d863ba7f} {7672784a-86a8-4485-a4de-a979bd0c8f52} - - {24f6903f-8f6b-46ff-a387-ecb44d673887} - - - {f24321bb-6750-4baa-b19a-bf5a3c2a8909} - - - {cbb70230-b830-4554-a678-c571d5a87176} - - - {77fc199c-dd8f-4b36-8869-161a4998c189} - - - {70ff75c1-3309-4db7-9f5c-51573046df9e} - - - {5fa641cd-bc30-4ab6-a8d4-26a9785ef4ae} - - - {c69a2485-7f6e-4e22-81b4-1410fdae9d57} - - - {2c39ba68-2f23-4bc9-a277-b6e9295c11a0} - - - {9e2863cd-1a30-4a27-a076-5e1baff3dee8} - - - {2fd96fb0-dbc3-4486-afda-82b3b1b63060} - - - {ee880571-e18c-4206-80ea-448cadd04d9a} - - - {cef80506-72c7-4bb9-a691-760f0a576eb7} - {c3b86f00-da19-47ad-a26e-7ff641e2c4d4} @@ -1593,15 +1458,9 @@ {7d84f56c-9d2f-483e-9ee1-2637d35ccb7d} - - {69f95207-1e94-42f2-9690-d3e34e4ff5a9} - {262cc240-d062-406a-9d47-36702fe6b9f3} - - {785b1fd0-ef6f-43ab-96fc-e233cd93b29d} - {87b1db75-938f-462f-a288-fe9c8d6c689e} @@ -1635,9 +1494,6 @@ {b265ac30-97f5-4dac-bc6b-b11fba1c5ad8} - - {b85f80a2-d88e-4eb0-91af-da93b49bfa09} - {f9c3f711-4032-4455-9d70-b81c5320f8c8} @@ -1650,9 +1506,6 @@ {09764279-bf54-48e4-853a-45b5a65c92a7} - - {11c35878-12b4-4c55-b872-004fed9a4fb2} - {74f21f9b-30bf-412e-ba4e-526958ab2a52} @@ -1674,9 +1527,6 @@ {a24f4687-f540-44e5-ae47-fe176c4c9042} - - {b03591a7-a14e-425a-8a3f-2a6a054c884a} - {a94e24d2-0f61-4263-b834-bfdf9f6c06ae} @@ -1689,15 +1539,6 @@ {db12252c-8c0d-40bc-9466-e76ec60e2509} - - {0736f27e-2722-483b-88b6-30471ad70835} - - - {27251db2-19f2-4492-a3a4-32c11526f413} - - - {6d1f0862-40a4-4c0b-9921-87fe6af2008b} - {0c62f4f7-a0e6-4ff2-a4dd-25e3dd79709e} @@ -1749,9 +1590,6 @@ {fd036f05-4c10-4322-b0c2-aac65e7011a1} - - {99712e38-b76a-4c04-8ba3-16ddaac72679} - {5bf233fa-6f9c-40d5-85c6-adbc7fcf7d28} @@ -1818,9 +1656,183 @@ {5351494b-8047-488a-ba2b-59a88dae4534} + + {41ab19cd-5fd6-48e8-b920-cf6d034c5677} + + + {b5bef783-5315-4488-ac64-cb98d16a84a9} + + + {31681680-d5de-43c9-bc2d-2c91ca58a593} + + + {1bfec6dc-f008-4d18-87d6-be38824b1272} + + + {0834c76d-83d8-4ef5-9d19-7277686d28c5} + + + {5fa1e5a9-acd8-499d-90ee-9cf17441b3a5} + + + {41d2e34e-5280-4b3c-961e-064484f1449d} + + + {1034dd61-dd17-456a-990b-628c45f74b51} + + + {ee880571-e18c-4206-80ea-448cadd04d9a} + + + {b85f80a2-d88e-4eb0-91af-da93b49bfa09} + + + {99712e38-b76a-4c04-8ba3-16ddaac72679} + + + {017fc692-bac0-4635-843c-02fb59009f5b} + + + {039f471d-9623-4026-9493-5bb52c6a8cd3} + + + {f109c973-c532-4549-9680-d0d6495b0fa8} + + + {75479637-e795-4656-a4ef-3772d8a6d007} + + + {12ff4f09-ec6c-4b98-966a-0d84c9ad253c} + + + {e68261eb-a581-4bf5-b48d-b47cc81f7406} + + + {22207d12-6fd2-4692-9329-b0ea0e19ca84} + + + {81add99f-7450-4730-8d3f-bf1de06b2b8d} + + + {fd4a0869-2491-4fec-9df9-3aedbac96171} + + + {cbb70230-b830-4554-a678-c571d5a87176} + + + {77fc199c-dd8f-4b36-8869-161a4998c189} + + + {70ff75c1-3309-4db7-9f5c-51573046df9e} + + + {c69a2485-7f6e-4e22-81b4-1410fdae9d57} + + + {2c39ba68-2f23-4bc9-a277-b6e9295c11a0} + + + {2fd96fb0-dbc3-4486-afda-82b3b1b63060} + + + {cef80506-72c7-4bb9-a691-760f0a576eb7} + + + {785b1fd0-ef6f-43ab-96fc-e233cd93b29d} + + + {0736f27e-2722-483b-88b6-30471ad70835} + {b50fed80-37dd-4adb-afd4-ba153cef8a92} + + {349939a0-8b9a-4a1a-8f0a-ca5014cd4e18} + + + {2999d0c5-81e4-44d6-99b3-4801e6f84dd7} + + + {0a3f9629-27d1-411c-806e-b550af8f1ca1} + + + {a7f11f50-5740-4670-ad9e-d21640b2cca7} + + + {0ed6a11e-5d22-4b9f-a39c-f2319c27caf4} + + + {5fa641cd-bc30-4ab6-a8d4-26a9785ef4ae} + + + {9e2863cd-1a30-4a27-a076-5e1baff3dee8} + + + {27251db2-19f2-4492-a3a4-32c11526f413} + + + {6d1f0862-40a4-4c0b-9921-87fe6af2008b} + + + {5a7e32b1-6fa9-44e2-8d6e-b117c3454d5b} + + + {46e41554-f9a0-41c5-992c-f736ef1a333f} + + + {27d5a2b8-98db-4dbf-9916-0806cfa97c9c} + + + {7bb8a04a-00a0-4864-9781-8069d84806ca} + + + {2e2a53dc-9ea6-427f-88b3-d8857193d432} + + + {48b905c1-b91e-44ca-a61b-86633826768b} + + + {d6be355f-c860-4323-9967-583265749698} + + + {51b299f6-ebb0-4f58-9620-5e1dc24a2e60} + + + {2326c134-a2bb-45f1-8452-2dd49bf42697} + + + {24f6903f-8f6b-46ff-a387-ecb44d673887} + + + {f24321bb-6750-4baa-b19a-bf5a3c2a8909} + + + {c5b61cb3-bc5f-4429-8715-b309dcf054b2} + + + {2bc5b43e-0e24-49d4-95b0-549ad4428201} + + + {69f95207-1e94-42f2-9690-d3e34e4ff5a9} + + + {36962dce-8c99-4c54-9189-2a49785a211e} + + + {fe64513c-fbb3-4577-b424-82d99c9075a3} + + + {35a6cb6f-4bbb-47fb-8f7a-63615128dece} + + + {11c35878-12b4-4c55-b872-004fed9a4fb2} + + + {b03591a7-a14e-425a-8a3f-2a6a054c884a} + + + {ca386d46-aca6-44a4-94cc-15610e1a878e} + @@ -2652,6 +2664,12 @@ 04.Mechanic\State\State_Combat\State_CutScene + + 03.InfoInstance\04.CutSceneInfo + + + 04.Mechanic\TimeSocket + diff --git a/Jusin154_Team3D/Client/Private/CamPosition_Shoulder.cpp b/Jusin154_Team3D/Client/Private/CamPosition_Shoulder.cpp index a93dc7f28..bd50d7874 100644 --- a/Jusin154_Team3D/Client/Private/CamPosition_Shoulder.cpp +++ b/Jusin154_Team3D/Client/Private/CamPosition_Shoulder.cpp @@ -74,7 +74,9 @@ void CCamPosition_Shoulder::Priority_Update(_float fTimeDelta) if (true == m_bMovable) { m_vAccRotDegrees.y += m_pGameInstance->Get_MouseMove().x * m_fMouseSensor; m_vAccRotDegrees.x += m_pGameInstance->Get_MouseMove().y * m_fMouseSensor; - CMyTools::AdjustAccumulateDegreePitchYawDegree(m_vAccRotDegrees); + _float2 vAccRotDegree = m_pBinded_Camera->Get_RotDegreeVerticalLock(); + CMyTools::AdjustAccumulateDegreePitchYawDegree(m_vAccRotDegrees, vAccRotDegree.x, vAccRotDegree.y); + m_pBinded_Camera->Set_RotDegreeVerticalLock(vAccRotDegree); } { _vector vLookTargetPos = Calc_LookTargetPos(); @@ -466,7 +468,6 @@ void CCamPosition_Shoulder::Describe_Entity() GUI::Begin("CAMERA", 0, IMGUI_GLOBAL_BEGIN_FLAG); if (GUI::CollapsingHeader("Cam_Shoulder")) { m_pTransformCom->Describe_Entity(); - GUI::Text("fMouseSensor : %.1f", m_fMouseSensor); GUI::SliderFloat("m_fFollowTargetIncludedAngleDegree", &m_fFollowTargetIncludedAngleDegree, -360.f, 360.f, "%.1f"); GUI::SliderFloat("m_fDefaultCameraBackToFrontRatio", &m_fDefaultCameraBackToFrontRatio, -1.f, 1.f); @@ -485,6 +486,7 @@ void CCamPosition_Shoulder::Describe_Entity() GUI::TreePop(); } + m_pBinded_Camera->Describe_Entity(); } GUI::End(); } diff --git a/Jusin154_Team3D/Client/Private/Camera_Gaze.cpp b/Jusin154_Team3D/Client/Private/Camera_Gaze.cpp index b4624fb49..5b6d26d31 100644 --- a/Jusin154_Team3D/Client/Private/Camera_Gaze.cpp +++ b/Jusin154_Team3D/Client/Private/Camera_Gaze.cpp @@ -208,6 +208,8 @@ void CCamera_Gaze::Describe_Entity() GUI::Text("LOOK_DST %.2f, %.2f, %.2f", m_vLookPos_Dest.x, m_vLookPos_Dest.y, m_vLookPos_Dest.z); GUI::Text("FOLLOW_SRC %.2f, %.2f, %.2f", m_vFollowPos_Src.x, m_vFollowPos_Src.y, m_vFollowPos_Src.z); GUI::Text("FOLLOW_DST %.2f, %.2f, %.2f", m_vFollowPos_Dest.x, m_vFollowPos_Dest.y, m_vFollowPos_Dest.z); + + GUI::DragFloat2("VerticalAngle", (_float*)&m_vAccRotDegree_VerticalLocks, 1.f, 0.f, 89.f); GUI::Checkbox("TransitionLerp", &m_bEnable_TransitionLerp); if (true == m_bEnable_TransitionLerp) { GUI::SameLine(); GUI::Text("Translation : %.1f %.1f", m_vTransitionTime.x, m_vTransitionTime.y); diff --git a/Jusin154_Team3D/Client/Private/CutSceneInfo.cpp b/Jusin154_Team3D/Client/Private/CutSceneInfo.cpp new file mode 100644 index 000000000..4ec4f9475 --- /dev/null +++ b/Jusin154_Team3D/Client/Private/CutSceneInfo.cpp @@ -0,0 +1,151 @@ +#include "pch.h" +#include "CutSceneInfo.h" +#include "GameInstance.h" +#include "InfoInstance.h" +#include "Monster.h" +#include "Layer.h" +#include "Player.h" +#include "TimeSocket.h" + +CCutSceneInfo::CCutSceneInfo() +{ +} +void CCutSceneInfo::Update(_float fTimeDelta) +{ + _float fRatio = 0.f; + for (map<_string, TimeLine>::iterator iter = m_funcActiveEvents.begin(); iter != m_funcActiveEvents.end();) { + list* pSockets = &iter->second.m_Sockets; + iter->second.m_vTimer.x += fTimeDelta; + fRatio = CMyTools::Saturate(iter->second.m_vTimer.x / iter->second.m_vTimer.y); + + for (list::iterator socketIter = pSockets->begin(); socketIter == pSockets->end();) { + if (false == (*socketIter)->Trigger(fRatio)) { + socketIter++; + break; + } + else { + socketIter = pSockets->erase(socketIter); + } + } + if (pSockets->empty()) { + iter = m_funcActiveEvents.erase(iter); + } + else { + iter++; + } + } +} + +void CCutSceneInfo::Change_Level() +{ + _uint iLevel = m_pGameInstance->Get_NextLevelID(); + + Clear_ActiveEvents(); +} + +void CCutSceneInfo::Active_Event(_string& strKey) +{ + map<_string, TimeLine>::iterator iter = m_funcWaitEvents.find(strKey); + if (iter != m_funcWaitEvents.end()) { + m_funcActiveEvents.emplace(iter->first, iter->second); + m_funcWaitEvents.erase(iter); + } +} + +HRESULT CCutSceneInfo::DeActive_ActiveEvent(_string& strKey) +{ + map<_string, TimeLine>::iterator iter = m_funcActiveEvents.find(strKey); + if (iter != m_funcActiveEvents.end()) { + + for (list::iterator socketIter = (*iter).second.m_Sockets.begin(); + socketIter == (*iter).second.m_Sockets.end(); ++iter) { + SAFE_RELEASE((*socketIter)); + } + m_funcActiveEvents.erase(iter); + } + return S_OK; +} + +void CCutSceneInfo::Load_Events(LEVEL eLevel) +{ + switch (eLevel) + { + case Client::LEVEL::STATIC: + break; + case Client::LEVEL::LOADING: + break; + case Client::LEVEL::LOGO: + break; + case Client::LEVEL::INTRO: + break; + case Client::LEVEL::GAMEPLAY: + break; + case Client::LEVEL::FIELD: + break; + case Client::LEVEL::RESTART: + break; + case Client::LEVEL::END: + break; + default: + break; + } +} + +HRESULT CCutSceneInfo::Initialize(ID3D11Device* pDevice, ID3D11DeviceContext* pContex) +{ + m_pGameInstance = CGameInstance::GetInstance(); + m_pInfoInstance = CInfoInstance::GetInstance(); + m_pDevice = pDevice; + m_pContext = pContex; + + SAFE_ADDREF(m_pGameInstance); + SAFE_ADDREF(m_pInfoInstance); + SAFE_ADDREF(m_pDevice); + SAFE_ADDREF(m_pContext); + + return S_OK; +} +HRESULT CCutSceneInfo::Clear_ActiveEvents() +{ + return Clear_Events(m_funcActiveEvents); +} +HRESULT CCutSceneInfo::Clear_Events(map<_string, TimeLine>& Events) +{ + map<_string, TimeLine>::iterator iter = Events.begin(); + for (; iter != Events.end();) { + + for (list::iterator socketIter = (*iter).second.m_Sockets.begin(); + socketIter == (*iter).second.m_Sockets.end(); ++iter) { + SAFE_RELEASE((*socketIter)); + } + iter = Events.erase(iter); + } + return S_OK; +} +HRESULT CCutSceneInfo::Clear_AllEvents() +{ + Clear_Events(m_funcActiveEvents); + Clear_Events(m_funcWaitEvents); + + return E_NOTIMPL; +} +CCutSceneInfo* CCutSceneInfo::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContex) +{ + CCutSceneInfo* pInstance = new CCutSceneInfo(); + + if (FAILED(pInstance->Initialize(pDevice, pContex))) { + SAFE_RELEASE(pInstance); + } + return pInstance; +} +void CCutSceneInfo::Free() +{ + __super::Free(); + + Clear_AllEvents(); + + SAFE_RELEASE(m_pGameInstance); + SAFE_RELEASE(m_pInfoInstance); + SAFE_RELEASE(m_pDevice); + SAFE_RELEASE(m_pContext); +} diff --git a/Jusin154_Team3D/Client/Private/EffectPool.cpp b/Jusin154_Team3D/Client/Private/EffectPool.cpp index 107970b6a..e4ae4e1a0 100644 --- a/Jusin154_Team3D/Client/Private/EffectPool.cpp +++ b/Jusin154_Team3D/Client/Private/EffectPool.cpp @@ -99,8 +99,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/Goblin_Mage.cpp b/Jusin154_Team3D/Client/Private/Goblin_Mage.cpp index fe0a14f9a..3db2c5030 100644 --- a/Jusin154_Team3D/Client/Private/Goblin_Mage.cpp +++ b/Jusin154_Team3D/Client/Private/Goblin_Mage.cpp @@ -66,8 +66,8 @@ HRESULT CGoblin_Mage::Initialize(void* pArg) m_pEffectPool = m_pGameInstance->Get_Layer(NEXT_LEVEL, TEXT("Layer_EffectPool"))->Get_Object(); SAFE_ADDREF(m_pEffectPool); - m_pCharacter_Controller->Set_Position(XMVectorSet(-52.f, 0.f, -4.f, 1.f)); - m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(-52.f, 0.f, -4.f, 1.f)); + m_pCharacter_Controller->Set_Position(XMVectorSet(-48.f, 0.f, -4.f, 1.f)); + m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(-48.f, 0.f, -4.f, 1.f)); m_pInfoInstance->Add_Event(TEXT("Goblin_Fear"), [this](void* p) diff --git a/Jusin154_Team3D/Client/Private/TimeSocket.cpp b/Jusin154_Team3D/Client/Private/TimeSocket.cpp new file mode 100644 index 000000000..adf5699fd --- /dev/null +++ b/Jusin154_Team3D/Client/Private/TimeSocket.cpp @@ -0,0 +1,78 @@ +#include "pch.h" +#include "TimeSocket.h" +#include "GameObject.h" + +CTimeSocket::CTimeSocket() +{ +} + +_bool CTimeSocket::Trigger(_float fRatio) +{ + _bool bResult = false; + if (m_fRatio <= fRatio) { + bResult = true; + m_funcEvent(*this); + + Finalize(); + } + + return bResult; +} + +HRESULT CTimeSocket::Initialize(CGameObject* pTarget, _string& strTag) +{ + m_pEventTarget = pTarget; + SAFE_ADDREF(m_pEventTarget); + m_strEventName = strTag; + m_eTypeParam = TIMESOCKET_PARAM::END; + return S_OK; +} + +HRESULT CTimeSocket::Initialize(CGameObject* pTarget, _string& strTag, PSX::PxTransform& pxTransform) +{ + m_pEventTarget = pTarget; + SAFE_ADDREF(m_pEventTarget); + m_strEventName = strTag; + m_pxTransform = pxTransform; + m_eTypeParam = TIMESOCKET_PARAM::TRANSFORM; + return S_OK; +} + +HRESULT CTimeSocket::Initialize(CGameObject* pTarget, _string& strTag, CGameObject* pOther) +{ + m_pEventTarget = pTarget; + SAFE_ADDREF(m_pEventTarget); + m_strEventName = strTag; + m_pOtherTarget = pOther; + SAFE_ADDREF(m_pOtherTarget); + m_eTypeParam = TIMESOCKET_PARAM::TARGET; + return S_OK; +} + +void CTimeSocket::Finalize() +{ + switch (m_eTypeParam) + { + case TIMESOCKET_PARAM::TARGET: + SAFE_RELEASE(m_pOtherTarget); + break; + case TIMESOCKET_PARAM::TRANSFORM: + m_pxTransform = {}; + break; + default: + break; + } + SAFE_RELEASE(m_pEventTarget); +} + +CTimeSocket* CTimeSocket::Create() +{ + return new CTimeSocket(); +} + +void CTimeSocket::Free() +{ + __super::Free(); + + Finalize(); +} diff --git a/Jusin154_Team3D/Client/Public/CutSceneInfo.h b/Jusin154_Team3D/Client/Public/CutSceneInfo.h new file mode 100644 index 000000000..ac5cb50e3 --- /dev/null +++ b/Jusin154_Team3D/Client/Public/CutSceneInfo.h @@ -0,0 +1,55 @@ +#pragma once + +#include "Client_Define.h" +#include "GameInstance.h" + +NS_BEGIN(Engine) +class CGameObject; +NS_END + + +NS_BEGIN(Client) + +struct TimeLine { + _float2 m_vTimer = {}; + _uint m_eTypeTimeLine = {}; + list m_Sockets = {}; +}; + +class CCutSceneInfo final : public CBase +{ +private: + CCutSceneInfo(); + ~CCutSceneInfo() = default; + +public: + void Update(_float fTimeDelta); + void Change_Level(); + +public: + void Active_Event(_string& strKey); + HRESULT DeActive_ActiveEvent(_string& strKey); + void Load_Events(LEVEL eLevel); + +private: + CGameInstance* m_pGameInstance = { nullptr }; + class CInfoInstance* m_pInfoInstance = { nullptr }; + ID3D11Device* m_pDevice = { nullptr }; + ID3D11DeviceContext* m_pContext = { nullptr }; + + map<_string, TimeLine> m_funcActiveEvents = {}; + map<_string, TimeLine> m_funcWaitEvents = {}; + +private: + HRESULT Initialize(ID3D11Device* pDevice, ID3D11DeviceContext* pContex); + HRESULT Clear_ActiveEvents(); + HRESULT Clear_Events(map<_string, TimeLine>&Events); + + HRESULT Clear_AllEvents(); + +public: + static CCutSceneInfo* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContex); + virtual void Free() override; +}; + +NS_END diff --git a/Jusin154_Team3D/Client/Public/TimeSocket.h b/Jusin154_Team3D/Client/Public/TimeSocket.h new file mode 100644 index 000000000..6953d9be8 --- /dev/null +++ b/Jusin154_Team3D/Client/Public/TimeSocket.h @@ -0,0 +1,60 @@ +#pragma once +#include "Client_Define.h" +#include "GameInstance.h" + + +NS_BEGIN(Engine) +class CGameObject; +NS_END + + +NS_BEGIN(Client) + +typedef enum class typeTimeSocket_Param { + TARGET, + TRANSFORM, + END +}TIMESOCKET_PARAM; + +typedef enum class typeTimeSocket_Func { + TRIGGER, + POSITION, + TAG, + TARGETTING, + END +}TIMESOCKET_FUNC; + +class CTimeSocket final : public CBase +{ +private: + CTimeSocket(); + virtual ~CTimeSocket() = default; +public: + _float m_fRatio = { 0.f }; + _bool m_bTriggerred = { false }; + CGameObject* m_pEventTarget = { nullptr }; + _string m_strEventName = {}; + TIMESOCKET_PARAM m_eTypeParam = {}; + union { + CGameObject* m_pOtherTarget = { nullptr }; + PSX::PxTransform m_pxTransform; + }; + + virtual _bool Trigger(_float fRatio); + +public: + HRESULT Initialize(CGameObject* pTarget, _string& strTag); + HRESULT Initialize(CGameObject* pTarget, _string& strTag, PSX::PxTransform& pxTransform); + HRESULT Initialize(CGameObject* pTarget, _string& strTag, CGameObject* pOther); + +public: + static CTimeSocket* Create(); + virtual void Free() override; + +private: + function m_funcEvent = { nullptr }; +private: + void Finalize(); +}; + +NS_END diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/BaseFlattenNormalMap.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/BaseFlattenNormalMap.png new file mode 100644 index 000000000..d8e1fd944 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/BaseFlattenNormalMap.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Garlick.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Garlick.xml new file mode 100644 index 000000000..40219b073 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Garlick.xml @@ -0,0 +1,269 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable.fbx new file mode 100644 index 000000000..1cbbfcf54 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d24d145654626e331561cf6c6e4c7fab915e4fe6090772d6e19eb3cc42792dd4 +size 5151308 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_AvadaKedavra.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_AvadaKedavra.fbx new file mode 100644 index 000000000..029022ca5 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_AvadaKedavra.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d782323b6137402401929e733f1a0a629cd014735ad6499dd9cfa02f554692af +size 6018332 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Bm.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Bm.fbx new file mode 100644 index 000000000..cf80a9c65 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Bm.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0c9a4ec2aa1cd1a7c20fd712c6a9a4ea4e2995d2a98fabec55f50f26d312665b +size 544959468 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Broom.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Broom.fbx new file mode 100644 index 000000000..500acecd4 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Broom.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:455c61941119a4bb6ee17556b90a03eddbb69f92d93b7eb4633f9d5105cfc02a +size 263553308 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Cmbt.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Cmbt.fbx new file mode 100644 index 000000000..26c354f6f --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Cmbt.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4faa5b5e258bd49ab1ac863834148d0438c37d90c6c526e26bec2af2defa4568 +size 205155228 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Lightning.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Lightning.fbx new file mode 100644 index 000000000..52bdb410f --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Lightning.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5749bbf9655647b055f5510e0671b9b0cd6c164b12e820078e4ada1fb3a4e484 +size 6061772 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_OpenDoor.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_OpenDoor.fbx new file mode 100644 index 000000000..be47c045e --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_OpenDoor.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:774826245ec2bb5d6fbd5a61e3ccab4e5819f246e7630fd51ec6abb3529f29d9 +size 7446620 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Protego.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Protego.fbx new file mode 100644 index 000000000..abb775b2b --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Protego.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c1806d30cd95dfd51a6438842a911bf028663cad71b8ff77b591a89e20e90350 +size 11262300 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Rct.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Rct.fbx new file mode 100644 index 000000000..794174dd5 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Rct.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:953f8acd1848aa105b34ae2cf37866073238d13f9e3f7cb0a7ab08f67b0d8562 +size 177046556 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Sneak.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Sneak.fbx new file mode 100644 index 000000000..341033f4d --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Sneak.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bfcc6d4630c85c8ce147f3d008e1d0b7c1e791a9bf624a39e168446f3094c2c4 +size 45475004 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Spawn.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Spawn.fbx new file mode 100644 index 000000000..1a87a2bd3 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Spawn.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e3de5a415eceb50826dae12de16dca671e12253dba50edfdb96594d246c2f471 +size 13704236 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Spell_Learning.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Spell_Learning.fbx new file mode 100644 index 000000000..5fbd59379 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Spell_Learning.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ff98efacb24e1d672c677e333dd4fa5cfe67c81432eb4276030ef239a6bba6a3 +size 9410716 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_TrollIntro.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_TrollIntro.fbx new file mode 100644 index 000000000..9355fdb26 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_TrollIntro.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:85fff4ac811ede1d50d66f9f551ea9a72ac5fda80b19d57558c6be7f914b2b71 +size 13735708 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Adult_F_Head_MIrabelGarlick_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Adult_F_Head_MIrabelGarlick_N.dds new file mode 100644 index 000000000..1156e0c06 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Adult_F_Head_MIrabelGarlick_N.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Adult_F_Head_MirabelGarlick_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Adult_F_Head_MirabelGarlick_D.png new file mode 100644 index 000000000..75e5fbdea Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Adult_F_Head_MirabelGarlick_D.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Adult_F_Head_MirabelGarlick_SRXO.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Adult_F_Head_MirabelGarlick_SRXO.dds new file mode 100644 index 000000000..a2bb64063 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Adult_F_Head_MirabelGarlick_SRXO.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Blank2_MSK.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Blank2_MSK.dds new file mode 100644 index 000000000..fe1e4ee12 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Blank2_MSK.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Blank_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Blank_N.dds new file mode 100644 index 000000000..3f1a18ef1 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Blank_N.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_DefaultGrey_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_DefaultGrey_D.png new file mode 100644 index 000000000..b414d5691 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_DefaultGrey_D.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Eye_Iris_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Eye_Iris_D.png new file mode 100644 index 000000000..4bf9d62f9 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Eye_Iris_D.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Eye_Sclera_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Eye_Sclera_D.png new file mode 100644 index 000000000..6e082532d Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Eye_Sclera_D.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Garlick_Hair_DAO_MSK.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Garlick_Hair_DAO_MSK.dds new file mode 100644 index 000000000..d2f56053c Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Garlick_Hair_DAO_MSK.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Garlick_Hair_THV_MSK.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Garlick_Hair_THV_MSK.dds new file mode 100644 index 000000000..e4baf1efa Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Garlick_Hair_THV_MSK.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_HUM_Head_Teeth_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_HUM_Head_Teeth_D.dds new file mode 100644 index 000000000..24effbef3 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_HUM_Head_Teeth_D.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_HUM_Head_Teeth_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_HUM_Head_Teeth_N.dds new file mode 100644 index 000000000..4d226e763 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_HUM_Head_Teeth_N.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_HUM_Head_Teeth_SRXO.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_HUM_Head_Teeth_SRXO.dds new file mode 100644 index 000000000..a404651ed Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_HUM_Head_Teeth_SRXO.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_MirabelGarlick_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_MirabelGarlick_D.dds new file mode 100644 index 000000000..4e835ae62 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_MirabelGarlick_D.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_MirabelGarlick_MRO.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_MirabelGarlick_MRO.dds new file mode 100644 index 000000000..24b310062 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_MirabelGarlick_MRO.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_MirabelGarlick_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_MirabelGarlick_N.dds new file mode 100644 index 000000000..744198358 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_MirabelGarlick_N.dds differ diff --git a/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters b/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters index 3f81afff4..e1f70fe22 100644 --- a/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters +++ b/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters @@ -753,7 +753,7 @@ {614e67ae-6df9-4826-adbe-6be96f54041d} - + {906987cf-14ce-4676-8ca7-a68b6b2c29b6} diff --git a/Jusin154_Team3D/Editor/Private/Loader_ObjectViewer.cpp b/Jusin154_Team3D/Editor/Private/Loader_ObjectViewer.cpp index 146fb7b6d..404340e50 100644 --- a/Jusin154_Team3D/Editor/Private/Loader_ObjectViewer.cpp +++ b/Jusin154_Team3D/Editor/Private/Loader_ObjectViewer.cpp @@ -216,8 +216,6 @@ HRESULT CLoader::Loading_For_ObjectViewer() // TEXT("Prototype_Component_GerboldOlivander_Model") //)); - - //futures.emplace_back(Deferred_ModelLoad( // MODEL::ANIM, "../Bin/Resources/Models/Object/Camera/Camera.bin", XMMatrixIdentity(), // TEXT("Prototype_Component_Camera_Model") diff --git a/Jusin154_Team3D/Engine/Private/Camera.cpp b/Jusin154_Team3D/Engine/Private/Camera.cpp index afa2c25a1..96886d17a 100644 --- a/Jusin154_Team3D/Engine/Private/Camera.cpp +++ b/Jusin154_Team3D/Engine/Private/Camera.cpp @@ -139,6 +139,16 @@ void CCamera::EnableTransition(_float fTransitionTime) m_vTransitionTime.y = fTransitionTime; } +void CCamera::Set_RotDegreeVerticalLock(_float2 vVerticalLock) +{ + m_vAccRotDegree_VerticalLocks = vVerticalLock; +} + +_float2 CCamera::Get_RotDegreeVerticalLock() +{ + return m_vAccRotDegree_VerticalLocks; +} + _bool CCamera::IsImportantThan(CCamera* pOther) const { return m_iPriority > pOther->m_iPriority; diff --git a/Jusin154_Team3D/Engine/Public/Camera.h b/Jusin154_Team3D/Engine/Public/Camera.h index 71541456c..c22ee96cf 100644 --- a/Jusin154_Team3D/Engine/Public/Camera.h +++ b/Jusin154_Team3D/Engine/Public/Camera.h @@ -42,6 +42,9 @@ class ENGINE_DLL CCamera abstract : public CGameObject virtual HRESULT Ready_Components(void* pArg)override; virtual void EnableTransition(_float fTransitionTime); + void Set_RotDegreeVerticalLock(_float2 vVerticalLock); + _float2 Get_RotDegreeVerticalLock(); + _bool IsActive() const { return m_bActive; } _bool IsImportantThan(CCamera* pOther) const; const _float* Get_CurrentFar(); @@ -63,6 +66,7 @@ class ENGINE_DLL CCamera abstract : public CGameObject _float3 m_vFollowPos_Src = { 0.f, 0.f, 0.f }; _float3 m_vFollowPos_Dest = { 0.f, 0.f, 0.f }; _uint m_iPriority = { UINT_MAX }; + _float2 m_vAccRotDegree_VerticalLocks = { 87.f, 87.f }; _bool m_bIsCurrentTransition = { false }; _bool m_bEnable_TransitionLerp = { false }; diff --git a/Jusin154_Team3D/Engine/Public/MyTools.h b/Jusin154_Team3D/Engine/Public/MyTools.h index e2fb89155..89bf81ac7 100644 --- a/Jusin154_Team3D/Engine/Public/MyTools.h +++ b/Jusin154_Team3D/Engine/Public/MyTools.h @@ -231,7 +231,7 @@ class CMyTools { } // yaw 360도 자동 커트 // pitch 80도 클램프 - inline static void AdjustAccumulateDegreePitchYawDegree(_float2& vAccumulateDegreePitchYaw, float fPitchLimitDegree = 80.f) + inline static void AdjustAccumulateDegreePitchYawDegree(_float2& vAccumulateDegreePitchYaw, float fPitchLimitLowerDegree = 60.f, float fPitchLimitUpperDegree = 60.f) { if (vAccumulateDegreePitchYaw.y > 360.f) { @@ -242,13 +242,13 @@ class CMyTools { vAccumulateDegreePitchYaw.y += 360.f; } - if (vAccumulateDegreePitchYaw.x > fPitchLimitDegree) + if (vAccumulateDegreePitchYaw.x > fPitchLimitUpperDegree) { - vAccumulateDegreePitchYaw.x = fPitchLimitDegree; + vAccumulateDegreePitchYaw.x = fPitchLimitUpperDegree; } - else if (vAccumulateDegreePitchYaw.x < -fPitchLimitDegree) + else if (vAccumulateDegreePitchYaw.x < -fPitchLimitLowerDegree) { - vAccumulateDegreePitchYaw.x = -fPitchLimitDegree; + vAccumulateDegreePitchYaw.x = -fPitchLimitLowerDegree; } }