diff --git a/Jusin154_Team3D/Client/Private/EffectPool.cpp b/Jusin154_Team3D/Client/Private/EffectPool.cpp index 5bfc6dcec..838e138e6 100644 --- a/Jusin154_Team3D/Client/Private/EffectPool.cpp +++ b/Jusin154_Team3D/Client/Private/EffectPool.cpp @@ -68,7 +68,7 @@ HRESULT CEffectPool::Initialize(void* pArg) // 디버그 모드일 때 #ifdef _DEBUG #ifdef gimch - m_isActiveEffectCreate = false; + m_isActiveEffectCreate = true; m_isActiveMonsterEffectCreate = false; #endif // gimch #ifdef Bin diff --git a/Jusin154_Team3D/Client/Private/InfoInstance.cpp b/Jusin154_Team3D/Client/Private/InfoInstance.cpp index b39e9f88a..29c560ab6 100644 --- a/Jusin154_Team3D/Client/Private/InfoInstance.cpp +++ b/Jusin154_Team3D/Client/Private/InfoInstance.cpp @@ -331,6 +331,11 @@ HRESULT CInfoInstance::Deregist_ActiveInteractive(CMapElement_Interactable* pInt return m_pInteractiveInfo->Deregist_ActiveInteractive(pInteractive); } +HRESULT CInfoInstance::ActiveAt_Interactive(_fvector vPosition) +{ + return m_pInteractiveInfo->ActiveAt_Interactive(vPosition); +} + #pragma endregion LEVEL CInfoInstance::Get_RestartLevel() { @@ -386,6 +391,14 @@ HRESULT CInfoInstance::Initialize_Information(ID3D11Device* pDevice, ID3D11Devic return S_OK; } +HRESULT CInfoInstance::Late_Initialize() +{ + if (FAILED(m_pInteractiveInfo->Ready_PoolingInteractive())) + return E_FAIL; + + return S_OK; +} + HRESULT CInfoInstance::Stat_FileLoad(const _char* pDirectoryPath) { filesystem::path pathStatFile = pDirectoryPath; diff --git a/Jusin154_Team3D/Client/Private/InteractiveInfo.cpp b/Jusin154_Team3D/Client/Private/InteractiveInfo.cpp index 0f25bd6f0..fd8232636 100644 --- a/Jusin154_Team3D/Client/Private/InteractiveInfo.cpp +++ b/Jusin154_Team3D/Client/Private/InteractiveInfo.cpp @@ -14,6 +14,19 @@ CInteractiveInfo::CInteractiveInfo() void CInteractiveInfo::Update(_float fTimeDelta) { Refresh_LockOnTarget(); + + auto iter = m_PoolingActiveInteractive.begin(); + + for (; iter != m_PoolingActiveInteractive.end();) + { + if (false == (*iter)->Get_Visible()) + { + m_PoolingInteractive.push_back(*iter); + iter = m_PoolingActiveInteractive.erase(iter); + } + else + ++iter; + } } void CInteractiveInfo::Change_Level() { @@ -110,6 +123,112 @@ HRESULT CInteractiveInfo::Refresh_LockOnTarget() } return S_OK; } + +HRESULT CInteractiveInfo::Ready_PoolingInteractive() +{ + tinyxml2::XMLDocument xmlDoc; + + string strPath = "../Bin/Resources/Data/Map/Interactable/E_INTER_EffectObejct.xml"; + + if ((tinyxml2::XML_SUCCESS != xmlDoc.LoadFile(strPath.c_str()))) + return E_FAIL; + + tinyxml2::XMLElement* root = xmlDoc.FirstChildElement("Element_Interactable"); + + if (nullptr == root) + { + MSG_BOX("Failed to Find root"); + return S_OK; + } + + for (auto* Object = root->FirstChildElement("Object"); Object; Object = Object->NextSiblingElement("Object")) + { + CMapElement_Interactable::ELEMENT_INTERACTABLE_DESC Desc = {}; + + /* Model Prototypes */ + Desc.isPooled = true; + Object->QueryUnsignedAttribute("Lod_Level", &Desc.iMaxLodLevel); + Object->QueryUnsignedAttribute("ID", &Desc.iInteractableID); + + string strTag = {}; + for (auto* PrototypeTag = Object->FirstChildElement("PrototypeTag"); PrototypeTag; PrototypeTag = PrototypeTag->NextSiblingElement("PrototypeTag")) + { + strTag = PrototypeTag->GetText(); + + Desc.ModelPrototypeTags.push_back(CMyTools::ToWstring(strTag)); + } + + /* Transform */ + auto* Position = Object->FirstChildElement("Position"); + Position->QueryFloatAttribute("x", &Desc.vPosition.x); + Position->QueryFloatAttribute("y", &Desc.vPosition.y); + Position->QueryFloatAttribute("z", &Desc.vPosition.z); + + auto* Scale = Object->FirstChildElement("Scale"); + Scale->QueryFloatAttribute("x", &Desc.vScale.x); + Scale->QueryFloatAttribute("y", &Desc.vScale.y); + Scale->QueryFloatAttribute("z", &Desc.vScale.z); + + auto* Rotation = Object->FirstChildElement("Rotation"); + Rotation->QueryFloatAttribute("x", &Desc.vRotation.x); + Rotation->QueryFloatAttribute("y", &Desc.vRotation.y); + Rotation->QueryFloatAttribute("z", &Desc.vRotation.z); + + auto* HalfGeometryInfo = Object->FirstChildElement("HalfGeometryInfo"); + HalfGeometryInfo->QueryFloatAttribute("x", &Desc.vBoxSize.x); + HalfGeometryInfo->QueryFloatAttribute("y", &Desc.vBoxSize.y); + HalfGeometryInfo->QueryFloatAttribute("z", &Desc.vBoxSize.z); + + auto* LocalTranslation = Object->FirstChildElement("LocalTranslation"); + LocalTranslation->QueryFloatAttribute("x", &Desc.vBoxLocalPosition.x); + LocalTranslation->QueryFloatAttribute("y", &Desc.vBoxLocalPosition.y); + LocalTranslation->QueryFloatAttribute("z", &Desc.vBoxLocalPosition.z); + + CMapElement_Interactable* pInteractable = { nullptr }; + + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_INTERACTABLE, &Desc,nullptr, &pInteractable))) + return E_FAIL; + + if (nullptr != pInteractable) + { + m_PoolingInteractive.push_back(pInteractable); + } + else + return E_FAIL; + } + + return S_OK; +} + +HRESULT CInteractiveInfo::ActiveAt_Interactive(_fvector vPosition) +{ + _uint iSize = (_uint)m_PoolingInteractive.size(); + + _uint iRandomIndex = m_pGameInstance->Real_Random_Int(0, max(0, iSize - 1)); + + _uint iIndex = {}; + + auto iter = m_PoolingInteractive.begin(); + + for (; iter != m_PoolingInteractive.end();) + { + if (iIndex == iRandomIndex) + { + (*iter)->ActivateAt(vPosition); + m_PoolingActiveInteractive.push_back(*iter); + iter = m_PoolingInteractive.erase(iter); + break; + } + else + { + ++iter; + ++iIndex; + } + } + + return S_OK; +} + HRESULT CInteractiveInfo::Initialize(ID3D11Device* pDevice, ID3D11DeviceContext* pContex) { m_pGameInstance = CGameInstance::GetInstance(); @@ -145,6 +264,15 @@ void CInteractiveInfo::Free() SAFE_RELEASE(pInteractive); } m_ActiveInteractive.clear(); + for (CMapElement_Interactable* pInteractive : m_PoolingInteractive) { + SAFE_RELEASE(pInteractive); + } m_ActiveInteractive.clear(); + + for (CMapElement_Interactable* pInteractive : m_PoolingActiveInteractive) { + SAFE_RELEASE(pInteractive); + } m_ActiveInteractive.clear(); + + SAFE_RELEASE(m_pGameInstance); SAFE_RELEASE(m_pInfoInstance); SAFE_RELEASE(m_pDevice); diff --git a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp index cf2de897a..4ade71163 100644 --- a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp +++ b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp @@ -85,6 +85,8 @@ HRESULT CLevel_GamePlay::Initialize(void* pArg) return E_FAIL; } + if(FAILED(m_pInfoInstance->Late_Initialize())) + return E_FAIL; return S_OK; } @@ -249,8 +251,8 @@ HRESULT CLevel_GamePlay::Ready_Background() #ifdef gimch isReady_Background = true; - isReady_Hogsmeade = false; - isReady_Hogwart = true; + isReady_Hogsmeade = true; + isReady_Hogwart = false; #endif // gimch #ifdef Bin isReady_Background = false; diff --git a/Jusin154_Team3D/Client/Private/Loader.cpp b/Jusin154_Team3D/Client/Private/Loader.cpp index 87b38cb1c..f52798507 100644 --- a/Jusin154_Team3D/Client/Private/Loader.cpp +++ b/Jusin154_Team3D/Client/Private/Loader.cpp @@ -338,8 +338,8 @@ HRESULT CLoader::Loading_For_GamePlay() _bool isLoad_Hogwart = { false }; #ifdef gimch - isLoad_Background = false; - isLoad_Hogwart = true; + isLoad_Background = true; + isLoad_Hogwart = false; #endif // gimch #ifdef Bin isLoad_Background = false; @@ -401,6 +401,33 @@ HRESULT CLoader::Loading_For_GamePlay() ".bin", false )); } + /* Interactable */ + {/* Barrel */ + jobMapModels.emplace_back(Deferred_FolderLoad( + "../Bin/Resources/Models/MapMesh/Game/Environment/Objects/Meshes", + ".bin", false + )); + /* Box */ + jobMapModels.emplace_back(Deferred_FolderLoad( + "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Meshes/MiscProps", + ".bin", false + )); + /* TeaShop Table */ + jobMapModels.emplace_back(Deferred_FolderLoad( + "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Meshes/Tables", + ".bin", false + )); + /* TeaShop Chair*/ + jobMapModels.emplace_back(Deferred_FolderLoad( + "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Meshes/Chairs", + ".bin", false + )); + /* Object Interactables (Chest)*/ + jobMapModels.emplace_back(Deferred_FolderLoad( + "../Bin/Resources/Models/MapMesh/Game/Environment/Objects/Interactables", + ".bin", false + )); + } if (true == isLoad_Background) { @@ -632,32 +659,6 @@ HRESULT CLoader::Loading_For_GamePlay() ".bin", false )); } - {/* Barrel */ - jobMapModels.emplace_back(Deferred_FolderLoad( - "../Bin/Resources/Models/MapMesh/Game/Environment/Objects/Meshes", - ".bin", false - )); - /* Box */ - jobMapModels.emplace_back(Deferred_FolderLoad( - "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Meshes/MiscProps", - ".bin", false - )); - /* TeaShop Table */ - jobMapModels.emplace_back(Deferred_FolderLoad( - "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Meshes/Tables", - ".bin", false - )); - /* TeaShop Chair*/ - jobMapModels.emplace_back(Deferred_FolderLoad( - "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Meshes/Chairs", - ".bin", false - )); - /* Object Interactables (Chest)*/ - jobMapModels.emplace_back(Deferred_FolderLoad( - "../Bin/Resources/Models/MapMesh/Game/Environment/Objects/Interactables", - ".bin", false - )); - } } /* ------------------------------------ HOGWART ------------------------------- */ diff --git a/Jusin154_Team3D/Client/Private/MapElement_Interactable.cpp b/Jusin154_Team3D/Client/Private/MapElement_Interactable.cpp index 88cf38aab..8a4b63b17 100644 --- a/Jusin154_Team3D/Client/Private/MapElement_Interactable.cpp +++ b/Jusin154_Team3D/Client/Private/MapElement_Interactable.cpp @@ -33,25 +33,8 @@ HRESULT CMapElement_Interactable::Initialize(void* pArg) m_ModelPrototypeTags.push_back(pDesc->ModelPrototypeTags[i]); //m_ModelPathIndices.push_back((*pDesc->pModelPathIndices)[i]); } - - if (m_ModelPrototypeTags[0] == L"Prototype_GameObject_SM_Prop_Barrel_Breakable_B_Oppungo") - { - m_eInteractableID = ELEMENT_INTERACTABLE_ID::BARREL; - } - - else if (m_ModelPrototypeTags[0] == L"Prototype_GameObject_SM_HM_OwlPost_Package_B") - { - m_eInteractableID = ELEMENT_INTERACTABLE_ID::BOX; - } - else if (m_ModelPrototypeTags[0] == L"Prototype_GameObject_SM_HM_TeaShop_Table_B") - { - m_eInteractableID = ELEMENT_INTERACTABLE_ID::TABLE; - } - else if (m_ModelPrototypeTags[0] == L"Prototype_GameObject_SM_HM_TeaShop_Chair_B") - { - m_eInteractableID = ELEMENT_INTERACTABLE_ID::TABLE; - } - + m_isPooled = pDesc->isPooled; + m_eInteractableID = static_cast(pDesc->iInteractableID); if (FAILED(__super::Initialize(pArg))) return E_FAIL; @@ -78,7 +61,16 @@ HRESULT CMapElement_Interactable::Initialize(void* pArg) static_cast(m_pRigidBody)->Move_LocalPos(_float4(0.f, 0.f, 0.f, 0.f), pDesc->vBoxLocalPosition); //static_cast(m_pRigidBody)->Set_Kinematic(false); - m_pInfoInstance->Regist_ActiveInteractive(this); + if (false == m_isPooled) + { + m_bVisible = true; + m_pInfoInstance->Regist_ActiveInteractive(this); + } + else + { + m_bVisible = false; + static_cast(m_pRigidBody)->Set_Kinematic(true); + } m_pEffectPool = m_pGameInstance->Get_Layer(NEXT_LEVEL, TEXT("Layer_EffectPool"))->Get_Object(); @@ -89,9 +81,12 @@ HRESULT CMapElement_Interactable::Initialize(void* pArg) void CMapElement_Interactable::Priority_Update(_float fTimeDelta) { - _float fRadius = m_pModelComs[0]->Get_Radius(); + if(m_bVisible) + { + _float fRadius = m_pModelComs[0]->Get_Radius(); - XMStoreFloat4(&m_vStartPos, Get_WorldPostion() + XMVectorSet(0.f , fRadius , 0.f , 0.f )); + XMStoreFloat4(&m_vStartPos, Get_WorldPostion() + XMVectorSet(0.f, fRadius, 0.f, 0.f)); + } } @@ -102,23 +97,25 @@ void CMapElement_Interactable::Update(_float fTimeDelta) void CMapElement_Interactable::Late_Update(_float fTimeDelta) { - - if (m_isGraped == true) + if (m_bVisible) { - _float fRadius = m_pModelComs[0]->Get_Radius(); + if (m_isGraped == true) + { + _float fRadius = m_pModelComs[0]->Get_Radius(); - if (false == m_bHit) { - _vector vStartPos = XMLoadFloat4(&m_vStartPos); - _vector vEndPos = Get_WorldPostion() + XMVectorSet(0.f, fRadius, 0.f, 0.f); - ON_COLLISION_INFO CollisionInfo = CollisionCheck(vStartPos, vEndPos, 1.f); + if (false == m_bHit) { + _vector vStartPos = XMLoadFloat4(&m_vStartPos); + _vector vEndPos = Get_WorldPostion() + XMVectorSet(0.f, fRadius, 0.f, 0.f); + ON_COLLISION_INFO CollisionInfo = CollisionCheck(vStartPos, vEndPos, 1.f); - if (m_bHit == true) - OnCollision(this, &CollisionInfo); + if (m_bHit == true) + OnCollision(this, &CollisionInfo); + } } - } - if (m_pGameInstance->IsIn_WorldFrustum(Get_WorldPostion(), m_pModelComs[0]->Get_Radius())) { - m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this); + if (m_pGameInstance->IsIn_WorldFrustum(Get_WorldPostion(), m_pModelComs[0]->Get_Radius())) { + m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this); + } } } @@ -191,19 +188,26 @@ void CMapElement_Interactable::OnCollision(CGameObject* pOther, void* pDesc) case Client::ELEMENT_INTERACTABLE_ID::TABLE: m_pEffectPool->Use_Skill(SKILL_TYPE::CHAIL_SPLESH, this); break; + case Client::ELEMENT_INTERACTABLE_ID::CHAIR: + m_pEffectPool->Use_Skill(SKILL_TYPE::CHAIL_SPLESH, this); + break; case Client::ELEMENT_INTERACTABLE_ID::END: break; default: break; } - - - Set_Dead(); + if (m_isPooled) + { + m_bVisible = false; + static_cast(m_pRigidBody)->Set_Kinematic(true); + m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(0.f, -999.f, 0.f, 1.f)); + m_pInfoInstance->Deregist_ActiveInteractive(this); + } + else + Set_Dead(); } - - HRESULT CMapElement_Interactable::Ready_Components(void* pArg) { if (FAILED(__super::Ready_Components(pArg))) { @@ -328,6 +332,15 @@ void CMapElement_Interactable::Set_KinematicFlag(_bool bFlag) m_pRigidBody->Set_Kinematic(bFlag); } +void CMapElement_Interactable::ActivateAt(_fvector vPos) +{ + m_bVisible = true; + m_pTransformCom->Set_State(STATE::POSITION, vPos); + m_pInfoInstance->Regist_ActiveInteractive(this); + m_pRigidBody->Set_Kinematic(false); + m_pRigidBody->Set_Position(vPos); +} + ON_COLLISION_INFO CMapElement_Interactable::CollisionCheck(_fvector StartPos, _fvector EndPos, _float fRadius) { @@ -392,8 +405,6 @@ ON_COLLISION_INFO CMapElement_Interactable::CollisionCheck(_fvector StartPos, _f } } } - - } if (bHit == false) diff --git a/Jusin154_Team3D/Client/Private/MapInfo.cpp b/Jusin154_Team3D/Client/Private/MapInfo.cpp index a0c8412bd..c5b01b921 100644 --- a/Jusin154_Team3D/Client/Private/MapInfo.cpp +++ b/Jusin154_Team3D/Client/Private/MapInfo.cpp @@ -422,8 +422,9 @@ HRESULT CMapInfo::Load_InteractableElements(const _char* pFileName, const _wchar CMapElement_Interactable::ELEMENT_INTERACTABLE_DESC Desc = {}; /* Model Prototypes */ + Desc.isPooled = false; Object->QueryUnsignedAttribute("Lod_Level", &Desc.iMaxLodLevel); - Object->QueryUnsignedAttribute("Lod_Level", &Desc.iInteractableID); + Object->QueryUnsignedAttribute("ID", &Desc.iInteractableID); string strTag = {}; for (auto* PrototypeTag = Object->FirstChildElement("PrototypeTag"); PrototypeTag; PrototypeTag = PrototypeTag->NextSiblingElement("PrototypeTag")) diff --git a/Jusin154_Team3D/Client/Private/Transformation.cpp b/Jusin154_Team3D/Client/Private/Transformation.cpp index b1293080a..be246619c 100644 --- a/Jusin154_Team3D/Client/Private/Transformation.cpp +++ b/Jusin154_Team3D/Client/Private/Transformation.cpp @@ -216,13 +216,15 @@ void CTransformation::OnCollision(CGameObject* pOther, void* pDesc) XMStoreFloat4(&vCCTPos , pCCT->Get_Position()); - PSX::PxTransform pxTransform((_float)vCCTPos.x, (_float)vCCTPos.y + 100.f, (_float)vCCTPos.z); - pCCT->Set_Position(XMLoadFloat3((_float3*)&pxTransform.p)); + //PSX::PxTransform pxTransform((_float)vCCTPos.x, (_float)vCCTPos.y + 100.f, (_float)vCCTPos.z); + //pCCT->Set_Position(XMLoadFloat3((_float3*)&pxTransform.p)); //m_pCharacter_Controller->Move(fTimeDelta); - m_pTransformCom->Set_WorldMatrix(CollisionDesc.pObject->Get_Component()->Get_Actor()->getGlobalPose()); + m_pInfoInstance->ActiveAt_Interactive(XMLoadFloat4(&vCCTPos)); - pCCT->ConvertToDO(*CollisionDesc.pObject->Get_Component()); + //m_pTransformCom->Set_WorldMatrix(CollisionDesc.pObject->Get_Component()->Get_Actor()->getGlobalPose()); + + //pCCT->ConvertToDO(*CollisionDesc.pObject->Get_Component()); CEffectParts* pHit_Light = Get_PartObject("Hit_Light"); diff --git a/Jusin154_Team3D/Client/Public/Client_Enum.h b/Jusin154_Team3D/Client/Public/Client_Enum.h index e7f3f3472..c7dc9d57d 100644 --- a/Jusin154_Team3D/Client/Public/Client_Enum.h +++ b/Jusin154_Team3D/Client/Public/Client_Enum.h @@ -83,7 +83,7 @@ namespace Client END }; - enum class ELEMENT_INTERACTABLE_ID { BARREL, BOX, TABLE, END }; + enum class ELEMENT_INTERACTABLE_ID { BARREL, BOX, TABLE, CHAIR, END }; } diff --git a/Jusin154_Team3D/Client/Public/InfoInstance.h b/Jusin154_Team3D/Client/Public/InfoInstance.h index 526f60054..1a4a8829b 100644 --- a/Jusin154_Team3D/Client/Public/InfoInstance.h +++ b/Jusin154_Team3D/Client/Public/InfoInstance.h @@ -22,6 +22,7 @@ DECLARE_SINGLETON(CInfoInstance) virtual ~CInfoInstance() = default; public: HRESULT Initialize_Information(ID3D11Device* pDevice, ID3D11DeviceContext* pContex); + HRESULT Late_Initialize(); // GamePlay Initialize 할 때 void Release_Information(); LEVEL Get_RestartLevel(); public: @@ -82,6 +83,8 @@ DECLARE_SINGLETON(CInfoInstance) #pragma endregion HRESULT Regist_ActiveInteractive(class CMapElement_Interactable* pInteractive); HRESULT Deregist_ActiveInteractive(class CMapElement_Interactable* pInteractive); + + HRESULT ActiveAt_Interactive(_fvector vPosition); #pragma endregion private: CGameInstance* m_pGameInstance = { nullptr }; diff --git a/Jusin154_Team3D/Client/Public/InteractiveInfo.h b/Jusin154_Team3D/Client/Public/InteractiveInfo.h index 60a2c1f04..55fb33b3a 100644 --- a/Jusin154_Team3D/Client/Public/InteractiveInfo.h +++ b/Jusin154_Team3D/Client/Public/InteractiveInfo.h @@ -23,6 +23,9 @@ class CInteractiveInfo final : public CBase HRESULT Regist_ActiveInteractive(class CMapElement_Interactable* pUnit); HRESULT Deregist_ActiveInteractive(class CMapElement_Interactable* pUnit); + HRESULT Ready_PoolingInteractive(); // Ready Pooling + HRESULT ActiveAt_Interactive(_fvector vPosition); // Spawn Pooling Object + class CMapElement_Interactable* Get_LockOnUnit(); private: CGameInstance* m_pGameInstance = { nullptr }; @@ -33,9 +36,13 @@ class CInteractiveInfo final : public CBase class CMapElement_Interactable* m_pLockOnInteractive = { nullptr }; list m_ActiveInteractive = {}; + list m_PoolingInteractive = {}; + list m_PoolingActiveInteractive = {}; private: HRESULT Initialize(ID3D11Device* pDevice, ID3D11DeviceContext* pContex); HRESULT Refresh_LockOnTarget(); + + public: static CInteractiveInfo* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContex); virtual void Free() override; diff --git a/Jusin154_Team3D/Client/Public/MapElement_Interactable.h b/Jusin154_Team3D/Client/Public/MapElement_Interactable.h index e49c56fdd..37c0820dc 100644 --- a/Jusin154_Team3D/Client/Public/MapElement_Interactable.h +++ b/Jusin154_Team3D/Client/Public/MapElement_Interactable.h @@ -10,6 +10,7 @@ class CMapElement_Interactable final : public CMapElement public: typedef struct tagElement_Interactable_Desc : MAPELEMENT_DESC { + _bool isPooled = {}; _uint iInteractableID = {}; _uint iSubKind = {}; _float3 vBoxLocalPosition; @@ -22,10 +23,10 @@ class CMapElement_Interactable final : public CMapElement virtual ~CMapElement_Interactable() = default; public: - virtual void Priority_Update(_float fTimeDelta) override; - virtual void Update(_float fTimeDelta) override; - virtual void Late_Update(_float fTimeDelta) override; - virtual HRESULT Render() 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; virtual void GrapToPlayer(_fvector vPos, _float fRatio); virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override; ON_COLLISION_INFO CollisionCheck(_fvector StartPos, _fvector EndPos, _float fRadius); @@ -33,7 +34,7 @@ class CMapElement_Interactable final : public CMapElement virtual void Set_DrawOutLine(); virtual HRESULT Render_OutLine() override; void Set_KinematicFlag(_bool bFlag); - + void ActivateAt(_fvector vPos); // 풀링 꺼내기, 위치 지정 private: ELEMENT_INTERACTABLE_ID m_eInteractableID = { ELEMENT_INTERACTABLE_ID::END }; @@ -41,6 +42,8 @@ class CMapElement_Interactable final : public CMapElement class CRigidBody_Dynamic* m_pRigidBody = { nullptr }; PSX::PxRigidDynamic* m_pActor = { nullptr }; + + _bool m_isPooled = { false }; _bool m_bDrawOutLine = { false }; _float4 m_vOutLineColor = CMyTools::ColorRGBA_HEXtoFLOAT4(0xfefefe00); _float m_fOutLineThickness = { 5.f }; diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Interactable/E_INTER_Barrel.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Interactable/E_INTER_Barrel.xml index 2b16f504e..2243a7ce6 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Interactable/E_INTER_Barrel.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Interactable/E_INTER_Barrel.xml @@ -1,6 +1,6 @@ - + Prototype_GameObject_SM_Prop_Barrel_Breakable_B_Oppungo @@ -8,7 +8,7 @@ - + Prototype_GameObject_SM_Prop_Barrel_Breakable_B_Oppungo @@ -16,7 +16,7 @@ - + Prototype_GameObject_SM_Prop_Barrel_Breakable_B_Oppungo @@ -24,7 +24,7 @@ - + Prototype_GameObject_SM_Prop_Barrel_Breakable_B_Oppungo @@ -32,7 +32,7 @@ - + Prototype_GameObject_SM_Prop_Barrel_Breakable_B_Oppungo diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Interactable/E_INTER_EffectObejct.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Interactable/E_INTER_EffectObejct.xml new file mode 100644 index 000000000..e1f6b5ecb --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Interactable/E_INTER_EffectObejct.xml @@ -0,0 +1,123 @@ + + + + Prototype_GameObject_SM_Prop_Barrel_Breakable_B_Oppungo + + + + + + + + Prototype_GameObject_SM_HM_OwlPost_Package_B + + + + + + + + Prototype_GameObject_SM_HM_OwlPost_Package_F + + + + + + + + Prototype_GameObject_SM_HM_TeaShop_Chair_B + + + + + + + + Prototype_GameObject_SM_HM_TeaShop_Table_B + + + + + + + + Prototype_GameObject_SM_Prop_Barrel_Breakable_B_Oppungo + + + + + + + + Prototype_GameObject_SM_HM_OwlPost_Package_B + + + + + + + + Prototype_GameObject_SM_HM_OwlPost_Package_F + + + + + + + + Prototype_GameObject_SM_HM_TeaShop_Chair_B + + + + + + + + Prototype_GameObject_SM_HM_TeaShop_Table_B + + + + + + + + Prototype_GameObject_SM_Prop_Barrel_Breakable_B_Oppungo + + + + + + + + Prototype_GameObject_SM_HM_OwlPost_Package_B + + + + + + + + Prototype_GameObject_SM_HM_OwlPost_Package_F + + + + + + + + Prototype_GameObject_SM_HM_TeaShop_Chair_B + + + + + + + + Prototype_GameObject_SM_HM_TeaShop_Table_B + + + + + + + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Interactable/E_INTER_PostPackage_B.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Interactable/E_INTER_PostPackage_B.xml index cd5db78f6..13eecdf49 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Interactable/E_INTER_PostPackage_B.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Interactable/E_INTER_PostPackage_B.xml @@ -1,6 +1,6 @@ - + Prototype_GameObject_SM_HM_OwlPost_Package_B @@ -8,7 +8,7 @@ - + Prototype_GameObject_SM_HM_OwlPost_Package_B @@ -16,7 +16,7 @@ - + Prototype_GameObject_SM_HM_OwlPost_Package_B @@ -24,7 +24,7 @@ - + Prototype_GameObject_SM_HM_OwlPost_Package_B @@ -32,7 +32,7 @@ - + Prototype_GameObject_SM_HM_OwlPost_Package_B @@ -40,7 +40,7 @@ - + Prototype_GameObject_SM_HM_OwlPost_Package_B @@ -48,7 +48,7 @@ - + Prototype_GameObject_SM_HM_OwlPost_Package_B diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Interactable/E_INTER_PostPackage_F.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Interactable/E_INTER_PostPackage_F.xml index f77fec9b3..38fb6e365 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Interactable/E_INTER_PostPackage_F.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Interactable/E_INTER_PostPackage_F.xml @@ -1,6 +1,6 @@ - + Prototype_GameObject_SM_HM_OwlPost_Package_F @@ -8,7 +8,7 @@ - + Prototype_GameObject_SM_HM_OwlPost_Package_F @@ -16,7 +16,7 @@ - + Prototype_GameObject_SM_HM_OwlPost_Package_F @@ -24,7 +24,7 @@ - + Prototype_GameObject_SM_HM_OwlPost_Package_F diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Interactable/E_INTER_TeaShopChair.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Interactable/E_INTER_TeaShopChair.xml index 0deac8b7e..c1cac30e7 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Interactable/E_INTER_TeaShopChair.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Interactable/E_INTER_TeaShopChair.xml @@ -1,6 +1,6 @@ - + Prototype_GameObject_SM_HM_TeaShop_Chair_B @@ -8,7 +8,7 @@ - + Prototype_GameObject_SM_HM_TeaShop_Chair_B @@ -16,7 +16,7 @@ - + Prototype_GameObject_SM_HM_TeaShop_Chair_B @@ -24,7 +24,7 @@ - + Prototype_GameObject_SM_HM_TeaShop_Chair_B @@ -32,7 +32,7 @@ - + Prototype_GameObject_SM_HM_TeaShop_Chair_B @@ -40,7 +40,7 @@ - + Prototype_GameObject_SM_HM_TeaShop_Chair_B @@ -48,7 +48,7 @@ - + Prototype_GameObject_SM_HM_TeaShop_Chair_B