From 96d1b00f6be994f777c139487686d40a5c56a512 Mon Sep 17 00:00:00 2001 From: qordlsgur <127704460+qordlsgur@users.noreply.github.com> Date: Mon, 12 Jan 2026 08:42:48 +0900 Subject: [PATCH] =?UTF-8?q?[Modify]=20=EC=83=81=EC=9E=90=20=EB=A0=88?= =?UTF-8?q?=EC=9D=B4=20=EC=B6=A9=EB=8F=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Client/Private/BroomRaceManager.cpp | 26 +-- .../Client/Private/Level_GamePlay.cpp | 6 +- Jusin154_Team3D/Client/Private/Loader.cpp | 4 +- .../Client/Private/MapElement_Chest.cpp | 7 +- .../Client/Private/NPCInteraction.cpp | 104 ++++++++++-- Jusin154_Team3D/Client/Private/Player.cpp | 148 +++++++++++------- Jusin154_Team3D/Client/Public/Client_Struct.h | 7 + .../Client/Public/MapElement_Chest.h | 5 +- .../Client/Public/NPCInteraction.h | 7 +- 9 files changed, 212 insertions(+), 102 deletions(-) diff --git a/Jusin154_Team3D/Client/Private/BroomRaceManager.cpp b/Jusin154_Team3D/Client/Private/BroomRaceManager.cpp index 626879606..b398b360b 100644 --- a/Jusin154_Team3D/Client/Private/BroomRaceManager.cpp +++ b/Jusin154_Team3D/Client/Private/BroomRaceManager.cpp @@ -368,7 +368,7 @@ void CBroomRaceManager::RaceReady() Instance_Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_SK_BRR_RouteMarker"; Instance_Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/RouteMarker.bin"; if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Instance_Desc))) { - return; + return; } CLayer* pLayer = m_pGameInstance->Get_Layer(NEXT_LEVEL, LAYER_RACERAI); @@ -380,7 +380,7 @@ void CBroomRaceManager::RaceReady() dynamic_cast(pUnified)->Set_RaceInfo(); } } - + m_pGameInstance->Get_Layer(NEXT_LEVEL, LAYER_PLAYER)->Get_Object()->Set_RaceInfo(); for (auto& racer : m_Racers) @@ -531,28 +531,6 @@ HRESULT CBroomRaceManager::Load_Balloons() if ((tinyxml2::XML_SUCCESS != xmlDoc.LoadFile(strPath.c_str()))) return E_FAIL; - Desc.pBroomRaceManager = this; - - /* Transform */ - auto* Rotation = Object->FirstChildElement("Scale"); - Rotation->QueryFloatAttribute("x", &Desc.vScale.x); - Rotation->QueryFloatAttribute("y", &Desc.vScale.y); - Rotation->QueryFloatAttribute("z", &Desc.vScale.z); - - auto* Scale = Object->FirstChildElement("Rotation"); - Scale->QueryFloatAttribute("x", &Desc.vRotation.x); - Scale->QueryFloatAttribute("y", &Desc.vRotation.y); - Scale->QueryFloatAttribute("z", &Desc.vRotation.z); - - auto* Position = Object->FirstChildElement("Position"); - Position->QueryFloatAttribute("x", &Desc.vPosition.x); - Position->QueryFloatAttribute("y", &Desc.vPosition.y); - Position->QueryFloatAttribute("z", &Desc.vPosition.z); - - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_RING, &Desc))) - return E_FAIL; - } - tinyxml2::XMLElement* root = xmlDoc.FirstChildElement("Balloon"); if (nullptr == root) diff --git a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp index abcc9a877..9f4ee5972 100644 --- a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp +++ b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp @@ -335,9 +335,9 @@ HRESULT CLevel_GamePlay::Ready_Background() isReady_Hogwart = false; #endif // #ifdef 나 - isReady_Background = false; - isReady_Hogsmeade = false; - isReady_Hogwart = false; + isReady_Background = true; + isReady_Hogsmeade = true; + isReady_Hogwart = true; #endif // #endif // _DEBUG diff --git a/Jusin154_Team3D/Client/Private/Loader.cpp b/Jusin154_Team3D/Client/Private/Loader.cpp index ac86b8baa..0a3719e81 100644 --- a/Jusin154_Team3D/Client/Private/Loader.cpp +++ b/Jusin154_Team3D/Client/Private/Loader.cpp @@ -489,8 +489,8 @@ HRESULT CLoader::Loading_For_GamePlay() isLoad_Monster = true; #endif // #ifdef 나 - isLoad_Background = false; - isLoad_Hogwart = false; + isLoad_Background = true; + isLoad_Hogwart = true; isLoad_UI_SEQUANTIAL = true; isLoad_Monster = true; #endif // diff --git a/Jusin154_Team3D/Client/Private/MapElement_Chest.cpp b/Jusin154_Team3D/Client/Private/MapElement_Chest.cpp index 2cfcc1010..3d3ab9df3 100644 --- a/Jusin154_Team3D/Client/Private/MapElement_Chest.cpp +++ b/Jusin154_Team3D/Client/Private/MapElement_Chest.cpp @@ -6,6 +6,7 @@ #include "Layer.h" #include "MapElement_Chest_Lid.h" #include "Player.h" +#include "InfoInstance.h" CMapElement_Chest::CMapElement_Chest(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) : CMapElement{ pDevice, pContext } @@ -13,7 +14,8 @@ CMapElement_Chest::CMapElement_Chest(ID3D11Device* pDevice, ID3D11DeviceContext* } CMapElement_Chest::CMapElement_Chest(const CMapElement_Chest& rhs) - : CMapElement(rhs) + : CMapElement(rhs), + m_pInfoInstance(CInfoInstance::GetInstance()) { } @@ -57,7 +59,7 @@ HRESULT CMapElement_Chest::Initialize(void* pArg) static_cast(m_pRigidBody)->Set_HalfGeometryInfo(pDesc->vBoxSize); static_cast(m_pRigidBody)->Move_LocalPos(XMVectorSet(0.f, 0.f, 0.f, 1.f), XMLoadFloat3(&pDesc->vBoxLocalPosition)); - + m_bChest = true; return S_OK; } @@ -180,6 +182,7 @@ void CMapElement_Chest::OnRayCollision(CGameObject* pCaster, _uint iCastedOrder, } if (fDistance < m_fEncounterDistance) { m_iEntered = 4; + if (m_pGameInstance->Key_Down(DIK_F) && m_eCurState != CHEST_STATE::OPENED) { m_eCurState = CHEST_STATE::OPENED; diff --git a/Jusin154_Team3D/Client/Private/NPCInteraction.cpp b/Jusin154_Team3D/Client/Private/NPCInteraction.cpp index a911000ca..835ea50ff 100644 --- a/Jusin154_Team3D/Client/Private/NPCInteraction.cpp +++ b/Jusin154_Team3D/Client/Private/NPCInteraction.cpp @@ -2,6 +2,7 @@ #include "NPCInteraction.h" #include "GameInstance.h" #include "Unit.h" +#include "MapElement_Chest.h" #include "InfoInstance.h" CNPCInteraction::CNPCInteraction(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) @@ -46,7 +47,9 @@ HRESULT CNPCInteraction::Initialize(void* pArg) m_fFontSize = 0.f; Set_ImageSizePosition(); m_pInfoInstance->Add_Event(TEXT("NPCInteractionOn"), [this](void* p) {this->NpcInfo(p); }); + m_pInfoInstance->Add_Event(TEXT("BOXInteractionOn"), [this](void* p) {this->BoxInfo(p); }); m_pInfoInstance->Add_Event(TEXT("NPCInteractionOff"), [this](void* p) {this->ActiveOff(); }); + m_pInfoInstance->Add_Event(TEXT("BOXInteractionOff"), [this](void* p) {this->BoxOff(); }); return S_OK; } @@ -89,6 +92,11 @@ void CNPCInteraction::ActiveOff() m_pInfo.pOwner = nullptr; } +void CNPCInteraction::BoxOff() +{ + m_bBoxActive = false; +} + void CNPCInteraction::NpcInfo(void* pArg) { NPCINTERACTIONINFO* Info = reinterpret_cast(pArg); @@ -104,6 +112,21 @@ void CNPCInteraction::NpcInfo(void* pArg) XMStoreFloat4(&m_pInfo.fNPCPosition, HeadPos); } +void CNPCInteraction::BoxInfo(void* pArg) +{ + BOXINTERACTIONINFO* Info = reinterpret_cast(pArg); + + m_bBoxActive = true; + + m_pBoxInfo.pOwner = Info->pOwner; + m_pBoxInfo.pName = Info->pName; + m_pBoxInfo.fPosition = Info->fPosition; + + _vector MonsterPos = static_cast(m_pBoxInfo.pOwner)->Get_WorldPostion(); + _vector HeadPos = MonsterPos + XMVectorSet(0.f, 1.f, 0.f, 0.f); + XMStoreFloat4(&m_pBoxInfo.fPosition, HeadPos); +} + void CNPCInteraction::Priority_Update(_float fTimeDelta) { if (m_pInfo.pOwner != nullptr) @@ -140,6 +163,40 @@ void CNPCInteraction::Priority_Update(_float fTimeDelta) m_pTransformCom->Set_State(STATE::POSITION, XMLoadFloat4(&m_pInfo.fNPCPosition)); } + else if(m_pBoxInfo.pOwner != nullptr) + { + _vector MonsterPos = static_cast(m_pBoxInfo.pOwner)->Get_WorldPostion(); + _vector HeadPos = XMVectorAdd(MonsterPos, XMVectorSet(0.f, 1.f, 0.f, 0.f)); + XMStoreFloat4(&m_pBoxInfo.fPosition, HeadPos); + + _vector ScreenPos = XMVector3Project( + HeadPos, + 0.f, 0.f, + g_iWinSizeX, g_iWinSizeY, + 0.f, 1.f, + m_pGameInstance->Get_Transform_Matrix(D3DTS::PROJ), + m_pGameInstance->Get_Transform_Matrix(D3DTS::VIEW), + XMMatrixIdentity() + ); + + ScreenPos = ScreenPos + XMVectorSet(m_fFontSize, -50.f, 0.f, 0.f); + + _vector WorldOffsetPos = XMVector3Unproject( + ScreenPos, + 0.f, 0.f, + g_iWinSizeX, g_iWinSizeY, + 0.f, 1.f, + m_pGameInstance->Get_Transform_Matrix(D3DTS::PROJ), + m_pGameInstance->Get_Transform_Matrix(D3DTS::VIEW), + XMMatrixIdentity() + ); + + XMStoreFloat4(&m_vFontPosition, WorldOffsetPos); + m_fSize = _float3(m_fSize.x, m_fOrigin_Size.y, m_fOrigin_Size.z); + m_fFontSize = 0; + m_pTransformCom->Set_State(STATE::POSITION, XMLoadFloat4(&m_pBoxInfo.fPosition)); + } + } void CNPCInteraction::Update(_float fTimeDelta) @@ -153,7 +210,7 @@ void CNPCInteraction::Late_Update(_float fTimeDelta) if (m_bVisible != true) return; - if (m_bActive == true) + if (m_bActive == true || m_bBoxActive) m_pGameInstance->Add_RenderGroup(RENDER::UI, this); } @@ -178,20 +235,41 @@ HRESULT CNPCInteraction::Render() // 8글자 : 가나다라 마바사아 , 388 // 대충 44씩 늘어날듯 - m_pGameInstance->Perspective_Render_Text( - m_pGameInstance->Get_Transform_Matrix(D3DTS::VIEW), - m_pGameInstance->Get_Transform_Matrix(D3DTS::PROJ), - TEXT("Font_size20"), - m_pInfo.pNPCName.c_str(), - XMLoadFloat4(&m_vFontPosition)); - m_pGameInstance->Perspective_Render_Text( - m_pGameInstance->Get_Transform_Matrix(D3DTS::VIEW), - m_pGameInstance->Get_Transform_Matrix(D3DTS::PROJ), - TEXT("Font_size15"), - TEXT("대화하기"), - XMLoadFloat4(&m_pInfo.fNPCPosition)); + if (m_bActive == true) + { + m_pGameInstance->Perspective_Render_Text( + m_pGameInstance->Get_Transform_Matrix(D3DTS::VIEW), + m_pGameInstance->Get_Transform_Matrix(D3DTS::PROJ), + TEXT("Font_size20"), + m_pInfo.pNPCName.c_str(), + XMLoadFloat4(&m_vFontPosition)); + + m_pGameInstance->Perspective_Render_Text( + m_pGameInstance->Get_Transform_Matrix(D3DTS::VIEW), + m_pGameInstance->Get_Transform_Matrix(D3DTS::PROJ), + TEXT("Font_size15"), + TEXT("대화하기"), + XMLoadFloat4(&m_pInfo.fNPCPosition)); + } + + else if (m_bBoxActive == true) + { + m_pGameInstance->Perspective_Render_Text( + m_pGameInstance->Get_Transform_Matrix(D3DTS::VIEW), + m_pGameInstance->Get_Transform_Matrix(D3DTS::PROJ), + TEXT("Font_size20"), + m_pBoxInfo.pName.c_str(), + XMLoadFloat4(&m_vFontPosition)); + + m_pGameInstance->Perspective_Render_Text( + m_pGameInstance->Get_Transform_Matrix(D3DTS::VIEW), + m_pGameInstance->Get_Transform_Matrix(D3DTS::PROJ), + TEXT("Font_size15"), + TEXT("열 기"), + XMLoadFloat4(&m_pBoxInfo.fPosition)); + } return S_OK; } diff --git a/Jusin154_Team3D/Client/Private/Player.cpp b/Jusin154_Team3D/Client/Private/Player.cpp index 2ac3e9fd3..aaf10d146 100644 --- a/Jusin154_Team3D/Client/Private/Player.cpp +++ b/Jusin154_Team3D/Client/Private/Player.cpp @@ -302,7 +302,7 @@ void CPlayer::Update_CameraShake(_float fTimeDelta) HRESULT CPlayer::Update_RaycastElements() { CGameObject* pFoundNPC = nullptr; - + CGameObject* pFoundBox = nullptr; if (E_FAIL == m_pGameInstance->IsBinded_Camera(CAMERA_SHOULDER)) { m_iRayHitCount = 0; return E_FAIL; @@ -315,6 +315,7 @@ HRESULT CPlayer::Update_RaycastElements() if (true == bHit) { NPCINTERACTIONINFO Info{}; + BOXINTERACTIONINFO BoxInfo{}; CMyTools::SortHitsByDistance(m_vRayHits); for (_uint i = 0; i < m_iRayHitCount; ++i) @@ -333,18 +334,36 @@ HRESULT CPlayer::Update_RaycastElements() pData->pBody->OnRayCollision(this, i, m_vRayHits[i].distance, _float3(m_vRayHits[i].position.x, m_vRayHits[i].position.y, m_vRayHits[i].position.z)); CUnit* Npc = dynamic_cast(pData->pOwner); - - if (!Npc) + CMapElement_Chest* Chest = dynamic_cast(pData->pOwner); + if (!Npc && !Chest) { continue; } - if (!Npc->Get_Npc()) + if (Npc) { - continue; + if (!Npc->Get_Npc()) + { + continue; + } + } + else if (Chest) + { + if (!Chest->Get_Chest()) + { + continue; + } } - pFoundNPC = Npc; + if (Npc) + { + pFoundNPC = Npc; + } + + if (Chest) + { + pFoundBox = Chest; + } break; } @@ -365,6 +384,19 @@ HRESULT CPlayer::Update_RaycastElements() m_pInfoInstance->Event_CallBack(TEXT("NPCInteractionOn"), &Info); } } + else if (pFoundBox) + { + if (m_pCurrentNpcInteraction != pFoundBox) + { + m_pCurrentNpcInteraction = pFoundBox; + BoxInfo.pOwner = pFoundBox; + BoxInfo.pName = TEXT("상자"); + _float4 Pos{}; + XMStoreFloat4(&Pos, m_pTransformCom->Get_State(STATE::POSITION)); + BoxInfo.fPosition = Pos; + m_pInfoInstance->Event_CallBack(TEXT("BOXInteractionOn"), &BoxInfo); + } + } else { @@ -373,7 +405,9 @@ HRESULT CPlayer::Update_RaycastElements() m_bNpcInteraction = false; m_pCurrentNpcInteraction = nullptr; m_pInfoInstance->Event_CallBack(TEXT("NPCInteractionOff")); + m_pInfoInstance->Event_CallBack(TEXT("BOXInteractionOff")); } + } } @@ -384,7 +418,9 @@ HRESULT CPlayer::Update_RaycastElements() m_bNpcInteraction = false; m_pCurrentNpcInteraction = nullptr; m_pInfoInstance->Event_CallBack(TEXT("NPCInteractionOff")); + m_pInfoInstance->Event_CallBack(TEXT("BOXInteractionOff")); } + } return S_OK; } @@ -462,7 +498,7 @@ void CPlayer::OnCollision(CGameObject* pOther, void* pDesc) return; } } - + #ifdef _DEBUG if (m_isDebugMode == true) @@ -514,7 +550,7 @@ void CPlayer::Trigger(CTimeSocket& Socket) m_pTransformCom->RotationQ(pContents->pxTransform.q); m_pTransformCom->RewindMomentum(); } - break; + break; case TIMESOCKET_FUNC::TRANSLATION_LERP: { @@ -607,7 +643,7 @@ HRESULT CPlayer::Ready_Components() m_pStat = m_pInfoInstance->Get_PlayerStatPtr(); SAFE_ADDREF(m_pStat); - + m_Components.push_back(m_pStat); SAFE_ADDREF(m_pStat); @@ -762,51 +798,51 @@ HRESULT CPlayer::Bind_ShaderParameters(_uint iMeshOrder) fMixerFactor = 0.658333f; iColorMixerMethod = 1; break; -//#ifdef 기무리 -// -// case PLAYER_MESH_ORDER::ROBE_CLOTH: -// { -// CMesh* pMesh = m_pModelCom->Get_Mesh(ENUM_CLASS(PLAYER_MESH_ORDER::ROBE_CLOTH)); -// _uint MeshBoneCount = pMesh->Get_NumBone(); -// -// for (_uint i = 0; i < MeshBoneCount; ++i) -// { -// XMStoreFloat4x4(&SkinMatrices[i], XMMatrixIdentity()); -// } -// -// _uint temp = 0; -// vector<_uint> globalMask = m_pModelCom->Get_BoneMask(ENUM_CLASS(BLEND_BONE::HIPS_CLOTH)); -// vector<_int> boneIndices = pMesh->Get_BoneIndices(); -// -// for (_uint i = 0; i < MeshBoneCount; ++i) -// { -// _uint global = boneIndices[i]; -// if (global == 38) -// continue; -// if (globalMask[global] == 1) -// { -// SkinMatrices[i] = m_pRobePart->Get_RobeJointAnchorMatrix(temp++); -// } -// } -// -// GUI::DragFloat("TempWeight", &m_fTempWeight, 0.01f); -// -// if (FAILED(m_pShaderCom->Bind_RawValue("g_TempWeight", &m_fTempWeight, sizeof(_float)))) { -// return E_FAIL; -// } -// -// -// if (FAILED(m_pShaderCom->Bind_Matrices( -// "g_BoneMatrices", -// SkinMatrices.data(), -// (_int)SkinMatrices.size() -// ))) -// { -// return E_FAIL; -// } -// } -// break; -//#endif // _DEBUG + //#ifdef 기무리 + // + // case PLAYER_MESH_ORDER::ROBE_CLOTH: + // { + // CMesh* pMesh = m_pModelCom->Get_Mesh(ENUM_CLASS(PLAYER_MESH_ORDER::ROBE_CLOTH)); + // _uint MeshBoneCount = pMesh->Get_NumBone(); + // + // for (_uint i = 0; i < MeshBoneCount; ++i) + // { + // XMStoreFloat4x4(&SkinMatrices[i], XMMatrixIdentity()); + // } + // + // _uint temp = 0; + // vector<_uint> globalMask = m_pModelCom->Get_BoneMask(ENUM_CLASS(BLEND_BONE::HIPS_CLOTH)); + // vector<_int> boneIndices = pMesh->Get_BoneIndices(); + // + // for (_uint i = 0; i < MeshBoneCount; ++i) + // { + // _uint global = boneIndices[i]; + // if (global == 38) + // continue; + // if (globalMask[global] == 1) + // { + // SkinMatrices[i] = m_pRobePart->Get_RobeJointAnchorMatrix(temp++); + // } + // } + // + // GUI::DragFloat("TempWeight", &m_fTempWeight, 0.01f); + // + // if (FAILED(m_pShaderCom->Bind_RawValue("g_TempWeight", &m_fTempWeight, sizeof(_float)))) { + // return E_FAIL; + // } + // + // + // if (FAILED(m_pShaderCom->Bind_Matrices( + // "g_BoneMatrices", + // SkinMatrices.data(), + // (_int)SkinMatrices.size() + // ))) + // { + // return E_FAIL; + // } + // } + // break; + //#endif // _DEBUG default: break; @@ -871,7 +907,7 @@ void CPlayer::SetGravity() eCollisionFlags; if (false == eCollisionFlags.isSet(PSX::PxControllerCollisionFlag::Enum::eCOLLISION_DOWN) && false == eCollisionFlags.isSet(PSX::PxControllerCollisionFlag::Enum::eCOLLISION_SIDES)) { - if (false == m_pFSM->IsEnable(FSMSTATE::JUMP|FSMSTATE::CUTSCENE) && m_eHitType != ENUM_CLASS(HIT_TYPE::HIT_HEAVY) && m_fAirTime == 0.f) { // 벽에 닿지 않았는데 점프 중이 아닐 땐 중력 on + if (false == m_pFSM->IsEnable(FSMSTATE::JUMP | FSMSTATE::CUTSCENE) && m_eHitType != ENUM_CLASS(HIT_TYPE::HIT_HEAVY) && m_fAirTime == 0.f) { // 벽에 닿지 않았는데 점프 중이 아닐 땐 중력 on m_pCharacter_Controller->SetGravity(true); } else { // 점프 중일 땐 off @@ -887,7 +923,7 @@ void CPlayer::Player_PixRot() { _int iCurrAnim = m_pModelCom->Get_AnimIndex(); if (iCurrAnim == m_Animation[STATEANIM::AVADA_KEDAVRA].first || - iCurrAnim == m_Animation[STATEANIM::BROOM_DISMOUNT].first|| + iCurrAnim == m_Animation[STATEANIM::BROOM_DISMOUNT].first || iCurrAnim == m_Animation[STATEANIM::IDLE].first) { _vector vUp = XMVectorSet(0.f, 1.f, 0.f, 0.f); diff --git a/Jusin154_Team3D/Client/Public/Client_Struct.h b/Jusin154_Team3D/Client/Public/Client_Struct.h index 6e63673dd..9cbd3b72e 100644 --- a/Jusin154_Team3D/Client/Public/Client_Struct.h +++ b/Jusin154_Team3D/Client/Public/Client_Struct.h @@ -76,6 +76,13 @@ typedef struct tagSpellInfo _int iTextID{}; }NPCINTERACTIONINFO; + typedef struct tegBoxInteractionInfo + { + CGameObject* pOwner = { nullptr }; + _wstring pName; + _float4 fPosition{}; + }BOXINTERACTIONINFO; + typedef struct Choice { _int iChoice{}; diff --git a/Jusin154_Team3D/Client/Public/MapElement_Chest.h b/Jusin154_Team3D/Client/Public/MapElement_Chest.h index 9b9685789..87c8f465c 100644 --- a/Jusin154_Team3D/Client/Public/MapElement_Chest.h +++ b/Jusin154_Team3D/Client/Public/MapElement_Chest.h @@ -40,12 +40,13 @@ class CMapElement_Chest final : public CMapElement virtual HRESULT Render() override; virtual void OnRayCollision(CGameObject* pCaster, _uint iCastedOrder, _float fDistance, _float3 vCastedWorldPos)override; _bool IsScannable(_fvector vPosition); + _bool Get_Chest() { return m_bChest; } private: ELEMENT_INTERACTABLE_ID m_eInteractableID = { ELEMENT_INTERACTABLE_ID::END }; CHEST_STATE m_ePreState = {}; CHEST_STATE m_eCurState = {}; - + CInfoInstance* m_pInfoInstance = { nullptr }; _uint m_iShaderPass_Index = {}; _int m_iEntered = { 0 }; @@ -57,6 +58,8 @@ class CMapElement_Chest final : public CMapElement _float m_fCurRimLightStrength = { 0.f }; _float4 m_vRimLightColor = { 0.71f, 0.39f, 0.02f, 1.f }; + _bool m_bChest = { false }; + CTexture* m_pNoiseTextureCom = { nullptr }; CRigidBody_Dynamic* m_pRigidBody = { nullptr }; PSX::PxRigidDynamic* m_pActor = { nullptr }; diff --git a/Jusin154_Team3D/Client/Public/NPCInteraction.h b/Jusin154_Team3D/Client/Public/NPCInteraction.h index 05423e461..f78c2e7f0 100644 --- a/Jusin154_Team3D/Client/Public/NPCInteraction.h +++ b/Jusin154_Team3D/Client/Public/NPCInteraction.h @@ -29,9 +29,10 @@ class CNPCInteraction final : public CGameObject _float4 ComputeUV(_tchar Alphabat); void Set_ImageSizePosition(); void ActiveOff(); + void BoxOff(); public: void NpcInfo(void* pArg); - + void BoxInfo(void* pArg); private: CInfoInstance* m_pInfoInstance = { nullptr }; @@ -63,7 +64,11 @@ class CNPCInteraction final : public CGameObject _float m_fFontSize{}; _bool m_bActive{}; + _bool m_bBoxActive = {false}; + NPCINTERACTIONINFO m_pInfo{}; + BOXINTERACTIONINFO m_pBoxInfo{}; + public: static CNPCInteraction* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;