diff --git a/Jusin154_Team3D/Client/Private/Dialogue_Data.cpp b/Jusin154_Team3D/Client/Private/Dialogue_Data.cpp index aeb9c6fb6..4030d74ac 100644 --- a/Jusin154_Team3D/Client/Private/Dialogue_Data.cpp +++ b/Jusin154_Team3D/Client/Private/Dialogue_Data.cpp @@ -67,6 +67,7 @@ HRESULT CDialogue_Data::Load_SpellInfo(const _char* pFilePath) if (choiceText) choice.pText = CMyTools::ToWstring(choiceText); pChoice->QueryIntAttribute("NextID", &choice.NextTypeID); + pChoice->QueryIntAttribute("QuestID", &choice.QuestID); line.ChoiceInfo.push_back(choice); pChoice = pChoice->NextSiblingElement("Choice"); diff --git a/Jusin154_Team3D/Client/Private/Dialogue_Font.cpp b/Jusin154_Team3D/Client/Private/Dialogue_Font.cpp index bcc8a1299..9fd67e40a 100644 --- a/Jusin154_Team3D/Client/Private/Dialogue_Font.cpp +++ b/Jusin154_Team3D/Client/Private/Dialogue_Font.cpp @@ -67,14 +67,18 @@ void CDialogue_Font::Update(_float fTimeDelta) switch (m_iType) { case ENUM_CLASS(NPCTEXTTYPE::ENDTEXT): + //m_pNpc->Set_Flow(m_pNpc->Get_Flow() + 1); ENDText(); break; + case ENUM_CLASS(NPCTEXTTYPE::NEXTTEXT): NextText(); break; + case ENUM_CLASS(NPCTEXTTYPE::CHOICE): CHoice(); break; + case ENUM_CLASS(NPCTEXTTYPE::SHOPTEXT): break; @@ -96,6 +100,7 @@ void CDialogue_Font::Update(_float fTimeDelta) m_pInfoInstance->Event_CallBack(TEXT("BATTLE"), &m_bBattle); ReSet(); break; + default: break; } @@ -110,7 +115,7 @@ void CDialogue_Font::Update(_float fTimeDelta) { case ENUM_CLASS(NPCTEXTTYPE::ENDTEXT): m_fTime = 0.5f; - ReSet(); + ENDText(); break; case ENUM_CLASS(NPCTEXTTYPE::NEXTTEXT): m_fTime = 0.5f; @@ -333,18 +338,38 @@ void CDialogue_Font::SpellLearn() void CDialogue_Font::Quest() { - m_pInfoInstance->Set_AcceptQuest(m_iNextID); - _bool Interact = false; - m_pInfoInstance->Event_CallBack(TEXT("NpcInteract"), &Interact); - m_pCurrentDialogue[0]->Set_Hover(Interact); - m_pCurrentDialogue[0]->Visible(Interact); - m_DialoguInfo.push_back(m_pCurrentDialogue[0]); - m_pCurrentDialogue.erase(m_pCurrentDialogue.begin()); - if (m_bChoiceText == true) + _int Index = m_pInfoInstance->Set_AcceptQuest(m_iQuestID); + NPCINTERACT Interact{}; + + switch (Index) { - m_pInfoInstance->Event_CallBack(TEXT("CHOICERESET")); - ReSet(); + case 0: + Interact.bInteract = false; + Interact.fAlpha = 0.5f; + m_pInfoInstance->Event_CallBack(TEXT("NpcInteract"), &Interact); + m_pCurrentDialogue[0]->Set_Hover(Interact.bInteract); + m_pCurrentDialogue[0]->Visible(Interact.bInteract); + m_DialoguInfo.push_back(m_pCurrentDialogue[0]); + m_pCurrentDialogue.erase(m_pCurrentDialogue.begin()); + if (m_bChoiceText == true) + { + m_pInfoInstance->Event_CallBack(TEXT("CHOICERESET")); + ReSet(); + } + break; + + case 1: + NextText(999); + break; + + case 2: + NextText(); + break; + + default: + break; } + } void CDialogue_Font::ReSet() @@ -374,6 +399,7 @@ void CDialogue_Font::NextText() if (m_bChoiceText == true) { ReSet(); + m_pNpc->Set_Flow(m_pNpc->Get_Flow() + 1); } NpcDialogue(); } @@ -382,24 +408,59 @@ void CDialogue_Font::NextLevel(CHOICEINFO Choice) { m_iNextID = m_NextLevel[Choice.iChoice]; m_iType = Choice.iType; + m_iQuestID = Choice.QuestID; m_bChoiceText = true; - m_pNpc->Set_Flow(m_pNpc->Get_Flow() + 1); NpcNextText(); } void CDialogue_Font::ENDText() { - _bool Interact = false; + NPCINTERACT Interact{}; + Interact.bInteract = false; + Interact.fAlpha = 0.8f; m_pNpc->Set_NextID(m_iTextID); m_pInfoInstance->Event_CallBack(TEXT("NpcInteract"), &Interact); - m_pCurrentDialogue[0]->Set_Hover(Interact); - m_pCurrentDialogue[0]->Visible(Interact); + m_pCurrentDialogue[0]->Set_Hover(Interact.bInteract); + m_pCurrentDialogue[0]->Visible(Interact.bInteract); m_DialoguInfo.push_back(m_pCurrentDialogue[0]); m_pCurrentDialogue.erase(m_pCurrentDialogue.begin()); m_pInfoInstance->Event_CallBack(TEXT("CHOICERESET")); ReSet(); } +void CDialogue_Font::NextText(_int Index) +{ + m_pCurrentDialogue[0]->Visible(false); + m_DialoguInfo.push_back(m_pCurrentDialogue[0]); + m_pCurrentDialogue.erase(m_pCurrentDialogue.begin()); + if (m_bChoiceText == true) + { + ReSet(); + } + NpcDialogue(Index); +} + +void CDialogue_Font::NpcDialogue(_int Index) +{ + auto Info = m_pInfoInstance->Get_Dialogue(m_pNpcName, Index); + m_bTag = Info.bTag; + if (m_bTag == false) + { + m_Info.pName = m_pInfoInstance->Get_PlayerStatPtr()->Get_Stat().pUnit_Name; + } + else + { + m_Info.pName = m_pName; + } + m_Info.pText = Info.pText; + m_Info.fTime = 99999.f; + m_iType = Info.iType; + m_iNextID = Info.NextTextID; + m_iTextID = Info.iLineID; + m_pNpc->Set_NextID(m_iNextID); + Npc_Dialogue(m_Info); +} + CDialogue_Font* CDialogue_Font::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) { CDialogue_Font* pInstance = new CDialogue_Font(pDevice, pContext); diff --git a/Jusin154_Team3D/Client/Private/Elf.cpp b/Jusin154_Team3D/Client/Private/Elf.cpp index 7e6c36011..f58f70556 100644 --- a/Jusin154_Team3D/Client/Private/Elf.cpp +++ b/Jusin154_Team3D/Client/Private/Elf.cpp @@ -71,7 +71,7 @@ void CElf::Update(_float fTimeDelta) Set_Anim(); - if (m_pGameInstance->Key_Up(DIK_U)) + if (m_pGameInstance->Key_Down(DIK_U)) { m_iCurrentFlow++; } @@ -474,12 +474,12 @@ HRESULT CElf::Ready_Components(void* pArg) Desc.fMaterial = { 1.2f, 1.0f, 0.0f }; Desc.bAutoStepping = { false }; Desc.fStepOffset = { 0.02f }; - Desc.fRadius = 0.2f; - Desc.fHeight = 0.3f; + Desc.fRadius = 0.225f; + Desc.fHeight = 0.35f; Desc.pCallback_HitReport = m_pCallBack_HitReport = CCallBack_NonPlayable_HitReport::Create(); Desc.pCallback_Behavior = m_pCallBack_Behavior = CCallBack_NonPlayable_Behavior::Create(); Desc.eClimbingMode = PSX::PxCapsuleClimbingMode::eEASY; - Desc.fWalkableSlope = 45.f; + Desc.fWalkableSlope = 80.f; if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_CCT_CAPSULE"), (CComponent**)&m_pCharacter_Controller, &Desc))) { return E_FAIL; } diff --git a/Jusin154_Team3D/Client/Private/InfoInstance.cpp b/Jusin154_Team3D/Client/Private/InfoInstance.cpp index b7b5f8e0b..607d20380 100644 --- a/Jusin154_Team3D/Client/Private/InfoInstance.cpp +++ b/Jusin154_Team3D/Client/Private/InfoInstance.cpp @@ -344,6 +344,11 @@ _int CInfoInstance::Get_SpellLearnIndex() return m_pSpellLearn_Data->Get_Index(); } +void CInfoInstance::Spell_UnLock(_int SpellID) +{ + m_pSkillInfo->Spell_UnLock(SpellID); +} + //void CInfoInstance::Set_Font(void* pArg) //{ // m_pDialogue_Font->Add_Text(pArg); diff --git a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp index 2cf9347e1..8de642e74 100644 --- a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp +++ b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp @@ -177,6 +177,8 @@ void CLevel_GamePlay::Update(_float fTimeDelta) bStartCinematic = false; #elif gimchi bStartCinematic = false; +#elif 나 + bStartCinematic = false; #endif #endif // _DEBUG diff --git a/Jusin154_Team3D/Client/Private/Player.cpp b/Jusin154_Team3D/Client/Private/Player.cpp index c5fed4a04..2e065dc41 100644 --- a/Jusin154_Team3D/Client/Private/Player.cpp +++ b/Jusin154_Team3D/Client/Private/Player.cpp @@ -119,6 +119,7 @@ HRESULT CPlayer::Initialize(void* pArg) m_pInfoInstance->Add_Event(TEXT("UseSpell"), [this](void* p) {this->Get_Spell(*reinterpret_cast<_int*>(p)); }); m_pInfoInstance->Add_Event(TEXT("Player_CanvasChange"), [this](void* p) {this->Get_UIState(*reinterpret_cast<_int*>(p)); }); m_pInfoInstance->Add_Event(TEXT("NpcInteraction"), [this](void* p) {this->Set_Interaction(*reinterpret_cast<_bool*>(p)); }); + m_pInfoInstance->Add_Event(TEXT("SpellLearningSuccess"), [this](void* p) {this->Set_Spell_Learning_Success(); }); m_bAI = false; @@ -170,8 +171,11 @@ void CPlayer::Update(_float fTimeDelta) { if (m_bNpcInteraction == true) { + NPCINTERACT Interact{}; m_bCurrentInteraction = true; - m_pInfoInstance->Event_CallBack(TEXT("NpcInteract"), &m_bNpcInteraction); + Interact.bInteract = true; + Interact.fAlpha = 0.f; + m_pInfoInstance->Event_CallBack(TEXT("NpcInteract"), &Interact); } } if (m_bGuarding) { diff --git a/Jusin154_Team3D/Client/Private/Player_States.cpp b/Jusin154_Team3D/Client/Private/Player_States.cpp index 6bef0eedf..bf448e6b9 100644 --- a/Jusin154_Team3D/Client/Private/Player_States.cpp +++ b/Jusin154_Team3D/Client/Private/Player_States.cpp @@ -49,6 +49,11 @@ #pragma region States +void CPlayer::Set_Spell_Learning_Success() +{ + m_bSpell_Learning_Success = true; +} + // UI 연동 추가 void CPlayer::Get_Spell(_int SkillIndex) { diff --git a/Jusin154_Team3D/Client/Private/Quest_Data.cpp b/Jusin154_Team3D/Client/Private/Quest_Data.cpp index eedfdcc01..a2efc7395 100644 --- a/Jusin154_Team3D/Client/Private/Quest_Data.cpp +++ b/Jusin154_Team3D/Client/Private/Quest_Data.cpp @@ -150,22 +150,31 @@ _int CQuest_Data::Get_Count(_int Index) } } -HRESULT CQuest_Data::Set_AcceptQuest(_int Index) +_int CQuest_Data::Set_AcceptQuest(_int Index) { - if (QuestInfos[Index].iAcceptState == ENUM_CLASS(QUESTSTATE::ACCEPTED) || QuestInfos[Index].iAcceptState == ENUM_CLASS(QUESTSTATE::CLEARED)) - return S_OK; + if (QuestInfos[Index].iAcceptState == ENUM_CLASS(QUESTSTATE::ACCEPTED)) + { + return 1; + } + if (QuestInfos[Index].iAcceptState == ENUM_CLASS(QUESTSTATE::CLEARED)) + { + return 2; + } + + HRESULT hr = m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, &QuestInfos[Index], nullptr, reinterpret_cast(&m_pQuestInstance)); + if (FAILED(hr)) + { + return -1; + } + QuestInfos[Index].iAcceptState = ENUM_CLASS(QUESTSTATE::ACCEPTED); - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, &QuestInfos[Index], nullptr, reinterpret_cast(&m_pQuestInstance)))) - { - return E_FAIL; - } m_pInfoInstance->Add_Event(TEXT("MonsterDead"), [this](void* p) {this->Update_AcceptQuest(*reinterpret_cast<_int*>(p)); }); m_AcceptedInfo.QeustData = m_pQuestInstance; m_AcceptedInfo.QeustInfo = QuestInfos[Index]; m_QuestAcceptedInfos.push_back(m_AcceptedInfo); m_iAcceptQeustCount++; - return S_OK; + return 0; } void CQuest_Data::Set_ClearQuest(_int Index) diff --git a/Jusin154_Team3D/Client/Private/Quest_Panel.cpp b/Jusin154_Team3D/Client/Private/Quest_Panel.cpp index 31de7eb35..6ebec47ac 100644 --- a/Jusin154_Team3D/Client/Private/Quest_Panel.cpp +++ b/Jusin154_Team3D/Client/Private/Quest_Panel.cpp @@ -54,7 +54,7 @@ HRESULT CQuest_Panel::Initialize(void* pArg) Visible(true); ElementAllVisible(true); Set_Status(); - m_pInfoInstance->Set_AcceptQuest(0); + //m_pInfoInstance->Set_AcceptQuest(0); //m_pInfoInstance->Set_AcceptQuest(1); //m_pInfoInstance->Set_AcceptQuest(2); Add_Function(TEXT("Click"), [this](void* p) {this->Slot_Hover(*reinterpret_cast<_int*>(p)); }); diff --git a/Jusin154_Team3D/Client/Private/Skill_Data.cpp b/Jusin154_Team3D/Client/Private/Skill_Data.cpp index 23182e4a1..8b661c9c8 100644 --- a/Jusin154_Team3D/Client/Private/Skill_Data.cpp +++ b/Jusin154_Team3D/Client/Private/Skill_Data.cpp @@ -20,7 +20,7 @@ HRESULT CSkill_Data::Initialize(ID3D11Device* pDevice, ID3D11DeviceContext* pCon Spell_UnLock(3); Spell_UnLock(4); Spell_UnLock(6); - Spell_UnLock(11); + //Spell_UnLock(11); Spell_UnLock(14); Spell_UnLock(15); Spell_UnLock(20); diff --git a/Jusin154_Team3D/Client/Private/SpellLearn_MovePointer.cpp b/Jusin154_Team3D/Client/Private/SpellLearn_MovePointer.cpp index 4fcfde3c2..fd30e3d24 100644 --- a/Jusin154_Team3D/Client/Private/SpellLearn_MovePointer.cpp +++ b/Jusin154_Team3D/Client/Private/SpellLearn_MovePointer.cpp @@ -92,6 +92,9 @@ void CSpellLearn_MovePointer::Line(_float fTime, _float2 fMouse) m_bMoveStart = false; Set_FadeOut(); static_cast(m_pOwner)->Function_Callback(TEXT("LearnClear")); + m_pInfoInstance->Spell_UnLock(m_iSpellID); + m_pInfoInstance->Event_CallBack(TEXT("SpellLearningSuccess")); + } } } @@ -104,6 +107,11 @@ void CSpellLearn_MovePointer::Set_Booster(void* pArg) m_bBooster = m_Booster.bBoosterOn; } +void CSpellLearn_MovePointer::Set_ID(_int Index) +{ + m_iSpellID = Index; +} + void CSpellLearn_MovePointer::Priority_Update(_float fTimeDelta) { if (!__super::Chack_Visible()) diff --git a/Jusin154_Team3D/Client/Private/SpellLearn_Panel.cpp b/Jusin154_Team3D/Client/Private/SpellLearn_Panel.cpp index d16532b7c..1bd670db2 100644 --- a/Jusin154_Team3D/Client/Private/SpellLearn_Panel.cpp +++ b/Jusin154_Team3D/Client/Private/SpellLearn_Panel.cpp @@ -75,6 +75,7 @@ HRESULT CSpellLearn_Panel::Initialize(void* pArg) void CSpellLearn_Panel::Set_Learn(_int Index) { m_fTime = 0.f; + static_cast(m_pSpellLearn_MovePointer)->Set_ID(m_pInfoInstance->Get_SpellLearn(Index).iSpellID); static_cast(m_pSpellLearn)->Change_Image(Index); static_cast(m_pSpellLearn_MovePointer)->Set_SpellLearn(Index); static_cast(m_pSpellLearn_ChaserPointer)->Set_SpellLearn(Index); diff --git a/Jusin154_Team3D/Client/Private/UI_Manager.cpp b/Jusin154_Team3D/Client/Private/UI_Manager.cpp index 11478a023..72340f529 100644 --- a/Jusin154_Team3D/Client/Private/UI_Manager.cpp +++ b/Jusin154_Team3D/Client/Private/UI_Manager.cpp @@ -62,7 +62,7 @@ HRESULT CUI_Manager::Initialize(void* pArg) m_bActive = false; m_pInfoInstance->Set_UISTATE(m_eType); m_pInfoInstance->Add_Event(TEXT("Canvas_Change"), [this](void* p) {this->Canvas_Change(*reinterpret_cast(p)); }); - m_pInfoInstance->Add_Event(TEXT("NpcInteract"), [this](void* p) {this->NpcInteract(*reinterpret_cast<_bool*>(p)); }); + m_pInfoInstance->Add_Event(TEXT("NpcInteract"), [this](void* p) {this->NpcInteract(p); }); m_pInfoInstance->Add_Event(TEXT("UIManagerFadeIn"), [this](void* p) {this->Set_Fade(); }); m_pInfoInstance->Add_Event(TEXT("UIFadeIn"), [this](void* p) {this->FadeIn(*reinterpret_cast<_float*>(p)); }); m_pInfoInstance->Add_Event(TEXT("RACEREADY"), [this](void* p) {this->Set_Race(*reinterpret_cast<_bool*>(p)); }); @@ -205,19 +205,19 @@ void CUI_Manager::Update(_float fTimeDelta) if (m_pGameInstance->Key_Down(DIK_TAB)) { m_fAlphaVelue = 1.f; + if (m_eType == UI_STATE::GAMEPLAYER) + { + m_eType = UI_STATE::QUEST; + + } + else if (m_eType == UI_STATE::QUEST) + { + m_eType = UI_STATE::GAMEPLAYER; + } if (m_bActive == false) { m_bActive = true; m_bAlphaZero = true; - if (m_eType == UI_STATE::GAMEPLAYER) - { - m_eType = UI_STATE::QUEST; - - } - else if (m_eType == UI_STATE::QUEST) - { - m_eType = UI_STATE::GAMEPLAYER; - } } } } @@ -227,18 +227,18 @@ void CUI_Manager::Update(_float fTimeDelta) if (m_pGameInstance->Key_Down(DIK_ESCAPE)) { m_fAlphaVelue = 1.f; + if (m_eType == UI_STATE::GAMEPLAYER) + { + m_eType = UI_STATE::SPELLLNEARN; + } + else if (m_eType == UI_STATE::SPELLLNEARN) + { + m_eType = UI_STATE::GAMEPLAYER; + } if (m_bActive == false) { m_bActive = true; m_bAlphaZero = true; - if (m_eType == UI_STATE::GAMEPLAYER) - { - m_eType = UI_STATE::SPELLLNEARN; - } - else if (m_eType == UI_STATE::SPELLLNEARN) - { - m_eType = UI_STATE::GAMEPLAYER; - } } } } @@ -279,7 +279,7 @@ void CUI_Manager::Update(_float fTimeDelta) m_fAlpha += fTimeDelta * m_fAlphaTime; } - if (m_fAlpha > m_fAlphaVelue && m_bAlphaZero == true) + if (m_fAlpha >= m_fAlphaVelue && m_bAlphaZero == true) { m_bAlphaZero = false; m_fAlpha = 1.f; @@ -495,11 +495,14 @@ CGameObject* CUI_Manager::Find_Canvas(const _wstring& Name) return iter->second; } -void CUI_Manager::NpcInteract(_bool bInteract) +void CUI_Manager::NpcInteract(void* pArg) { - m_bNPCInteract = bInteract; - m_bHover = bInteract; - m_bActive = bInteract; + NPCINTERACT Interact = *reinterpret_cast(pArg); + + m_bNPCInteract = Interact.bInteract; + m_bHover = Interact.bInteract; + m_bActive = Interact.bInteract; + m_fAlpha= Interact.fAlpha; m_bAlphaZero = true; } diff --git a/Jusin154_Team3D/Client/Public/Client_Enum.h b/Jusin154_Team3D/Client/Public/Client_Enum.h index 0169ed767..66ecd2cc0 100644 --- a/Jusin154_Team3D/Client/Public/Client_Enum.h +++ b/Jusin154_Team3D/Client/Public/Client_Enum.h @@ -43,7 +43,7 @@ namespace Client enum class QUESTTYPE { MAIN, SUB, END }; enum class QUESTSTATE { NONE, ACCEPTED, CLEARED, END }; - enum class NPCTEXTTYPE { ENDTEXT, NEXTTEXT, CHOICE, SHOPTEXT, QUESTTEXT, SPELLLEAN, BROOM, BATTLE, END }; + enum class NPCTEXTTYPE { ENDTEXT, NEXTTEXT, CHOICE, SHOPTEXT, QUESTTEXT, SPELLLEAN, BROOM, BATTLE, CURRENTQUEST, END }; enum class EFFECT_TYPE { EFFECT, TRAIL, END }; diff --git a/Jusin154_Team3D/Client/Public/Client_Struct.h b/Jusin154_Team3D/Client/Public/Client_Struct.h index 75d1cf961..209731778 100644 --- a/Jusin154_Team3D/Client/Public/Client_Struct.h +++ b/Jusin154_Team3D/Client/Public/Client_Struct.h @@ -1,9 +1,9 @@ #pragma once NS_BEGIN(Engine) - class CModel; - class CRigidBody_Static; - class CUnit; - class CTimeSocket; +class CModel; +class CRigidBody_Static; +class CUnit; +class CTimeSocket; NS_END NS_BEGIN(Client) @@ -37,81 +37,89 @@ typedef struct tagSpellInfo _float fVidio{}; }SPELL_INFO; - typedef struct DialogueChoice - { - _int eType = { false }; - _wstring pText; - _int NextTypeID{}; - }DIALOGUECHOICEINFO; +typedef struct DialogueChoice +{ + _int eType = { false }; + _wstring pText; + _int NextTypeID{}; + _int QuestID{}; +}DIALOGUECHOICEINFO; - typedef struct DialogueInfo - { - _int iLineID{}; - _bool bTag{}; - _int iType{}; - _wstring pText; - _int NextTextID{}; - vector ChoiceInfo; - }CURRENTDIALOGUEINFO; +typedef struct DialogueInfo +{ + _int iLineID{}; + _bool bTag{}; + _int iType{}; + _wstring pText; + _int NextTextID{}; + vector ChoiceInfo; +}CURRENTDIALOGUEINFO; - typedef struct NpcDialogue - { - _wstring pNpcName; - _int iNpcID{}; - map<_int, CURRENTDIALOGUEINFO> Info; - }NPCDIALOGUEINFO; +typedef struct NpcDialogue +{ + _wstring pNpcName; + _int iNpcID{}; + map<_int, CURRENTDIALOGUEINFO> Info; +}NPCDIALOGUEINFO; - typedef struct tagLockOnInfo { - CUnit* pUnit = { nullptr }; - class CMapElement_Interactable* pInteractive = { nullptr }; - class CMapElement_Chest* pChest = { nullptr }; - class CEffect_Container* pEffect = { nullptr }; - }LOCKON_INFO; +typedef struct tagLockOnInfo { + CUnit* pUnit = { nullptr }; + class CMapElement_Interactable* pInteractive = { nullptr }; + class CMapElement_Chest* pChest = { nullptr }; + class CEffect_Container* pEffect = { nullptr }; +}LOCKON_INFO; - typedef struct tegNPCInteractionInfo - { - CGameObject* pOwner = { nullptr }; - _wstring pNPCName; - _wstring pName; - _float4 fNPCPosition{}; - _int iTextID{}; - }NPCINTERACTIONINFO; +typedef struct tegNPCInteractionInfo +{ + CGameObject* pOwner = { nullptr }; + _wstring pNPCName; + _wstring pName; + _float4 fNPCPosition{}; + _int iTextID{}; +}NPCINTERACTIONINFO; - typedef struct tegBoxInteractionInfo - { - CGameObject* pOwner = { nullptr }; - _wstring pName; - _float4 fPosition{}; - }BOXINTERACTIONINFO; +typedef struct tegBoxInteractionInfo +{ + CGameObject* pOwner = { nullptr }; + _wstring pName; + _float4 fPosition{}; +}BOXINTERACTIONINFO; - typedef struct Choice - { - _int iChoice{}; - _int iType{}; - }CHOICEINFO; +typedef struct Choice +{ + _int iChoice{}; + _int iType{}; + _int QuestID{}; +}CHOICEINFO; - typedef struct PropUI - { - _float4 vPosition{}; - _int iIndex{}; - }PROPUI; +typedef struct PropUI +{ + _float4 vPosition{}; + _int iIndex{}; +}PROPUI; - typedef struct tagUnitInfo - { - _wstring pUnit_Name; - _float fCurrentHp{}; - _float fMaxHp{}; - _float fTargetHp{}; - _float fMelee{}; - _float fMagic{}; - _float fDefense{}; - _float fSpeed{}; - _float fAgility{}; - _int iLevel{}; - _float fExprince{}; - _float fMaxExprience{}; - _int iGold{}; - }UNITINFO; +typedef struct tagUnitInfo +{ + _wstring pUnit_Name; + _float fCurrentHp{}; + _float fMaxHp{}; + _float fTargetHp{}; + _float fMelee{}; + _float fMagic{}; + _float fDefense{}; + _float fSpeed{}; + _float fAgility{}; + _int iLevel{}; + _float fExprince{}; + _float fMaxExprience{}; + _int iGold{}; +}UNITINFO; + +typedef struct tagNpcInteract +{ + _bool bInteract{}; + _float fAlpha{}; +}NPCINTERACT; typedef struct tagDamageInfo { @@ -312,15 +320,15 @@ typedef struct tagEffectInfo _float4 vPadding4 = {}; _float4 vPadding5 = {}; _float4 vPadding6 = {}; - }EFFECT_INFO; +}EFFECT_INFO; - typedef struct tagTrailInfo - { - EFFECT_TYPE eEffectType = { EFFECT_TYPE::TRAIL }; - /* 디퓨즈 */ - _bool isDiffuse = {}; - _float fDiffuseAlpha = { 1.f }; - _float4 vColor = { 0.f ,0.f ,0.f ,1.f }; +typedef struct tagTrailInfo +{ + EFFECT_TYPE eEffectType = { EFFECT_TYPE::TRAIL }; + /* 디퓨즈 */ + _bool isDiffuse = {}; + _float fDiffuseAlpha = { 1.f }; + _float4 vColor = { 0.f ,0.f ,0.f ,1.f }; /* 마스크 */ _bool isMask = {}; @@ -395,7 +403,7 @@ typedef struct tagEffectInfo struct TimeLine { _float2 m_vTimer = {}; _uint m_eTypeTimeLine = {}; - class CTriggerBox* m_pTriggerBox = { nullptr }; + class CTriggerBox* m_pTriggerBox = { nullptr }; list m_Sockets = {}; }; NS_END diff --git a/Jusin154_Team3D/Client/Public/Dialogue_Font.h b/Jusin154_Team3D/Client/Public/Dialogue_Font.h index 0fc167a15..a606ac795 100644 --- a/Jusin154_Team3D/Client/Public/Dialogue_Font.h +++ b/Jusin154_Team3D/Client/Public/Dialogue_Font.h @@ -46,6 +46,8 @@ class CDialogue_Font final : public CGameObject void NextText(); void NextLevel(CHOICEINFO Choice); void ENDText(); + void NextText(_int Index); + void NpcDialogue(_int Index); private: void NpcInfo(void* pArg); void NpcInteract(_bool bInteract); @@ -82,6 +84,7 @@ class CDialogue_Font final : public CGameObject _wstring m_pName; _int m_iTextID{}; _int m_iNextID{}; + _int m_iQuestID{}; _int m_iType{}; _bool m_bTag{}; diff --git a/Jusin154_Team3D/Client/Public/InfoInstance.h b/Jusin154_Team3D/Client/Public/InfoInstance.h index 0b99775dd..5c52bead8 100644 --- a/Jusin154_Team3D/Client/Public/InfoInstance.h +++ b/Jusin154_Team3D/Client/Public/InfoInstance.h @@ -81,6 +81,7 @@ DECLARE_SINGLETON(CInfoInstance) _float Get_Spell_Damage(_int Index); void Add_Event(_wstring EventName, function Event); void Event_CallBack(_wstring EventName, void* pArg = nullptr); + #pragma endregion #pragma region QuestINFO QUESTINFO Get_Quest(_int QuestType, _int QuestID); @@ -93,6 +94,7 @@ DECLARE_SINGLETON(CInfoInstance) #pragma region SpellLearn_Data const SPELLLEARNINFO& Get_SpellLearn(_int Index) const; _int Get_SpellLearnIndex(); + void Spell_UnLock(_int SpellID); #pragma endregion #pragma region Dialogue_Font //void Set_Font(void* pArg); diff --git a/Jusin154_Team3D/Client/Public/Player.h b/Jusin154_Team3D/Client/Public/Player.h index a53b7ccd4..fff24a592 100644 --- a/Jusin154_Team3D/Client/Public/Player.h +++ b/Jusin154_Team3D/Client/Public/Player.h @@ -147,7 +147,7 @@ class CPlayer final : public CUnit public: virtual void Reset_Sprint() { m_bSprintToggle = false; } virtual void Reset_Walk() { m_bWalkToggle = false; } - + void Set_Spell_Learning_Success(); private: // UI 연동 추가 void Get_Spell(_int SkillIndex); diff --git a/Jusin154_Team3D/Client/Public/Quest_Data.h b/Jusin154_Team3D/Client/Public/Quest_Data.h index c33d834fe..5c7cef5ab 100644 --- a/Jusin154_Team3D/Client/Public/Quest_Data.h +++ b/Jusin154_Team3D/Client/Public/Quest_Data.h @@ -36,7 +36,7 @@ class CQuest_Data final : public CBase const vector& Get_AllQuest() const; const vector& Get_ClearQuest() const; vector& Get_AcceptQuest(); - HRESULT Set_AcceptQuest(_int index); + _int Set_AcceptQuest(_int index); private: CInfoInstance* m_pInfoInstance = { nullptr }; diff --git a/Jusin154_Team3D/Client/Public/SpellLearn_MovePointer.h b/Jusin154_Team3D/Client/Public/SpellLearn_MovePointer.h index 45324a65e..8a8734cbb 100644 --- a/Jusin154_Team3D/Client/Public/SpellLearn_MovePointer.h +++ b/Jusin154_Team3D/Client/Public/SpellLearn_MovePointer.h @@ -41,6 +41,7 @@ class CSpellLearn_MovePointer final : public CElementObject void Set_SpellLearn(_int Index); _int Get_SpellTrail(); _bool Get_MoveStart(); + void Set_ID(_int Index); private: void Line(_float fTime, _float2 fMouse); @@ -64,6 +65,7 @@ class CSpellLearn_MovePointer final : public CElementObject _int m_iCurrentLine{}; vector<_float4> m_MoveLine; vector<_float4> m_Boosters; + _int m_iSpellID{}; public: static CSpellLearn_MovePointer* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); diff --git a/Jusin154_Team3D/Client/Public/UI_Manager.h b/Jusin154_Team3D/Client/Public/UI_Manager.h index 3f896b725..0fa9d439b 100644 --- a/Jusin154_Team3D/Client/Public/UI_Manager.h +++ b/Jusin154_Team3D/Client/Public/UI_Manager.h @@ -46,7 +46,7 @@ class CUI_Manager final : public CUIObject void Add_Canvas(_wstring Name, class CGameObject* pCanvas); CGameObject* Find_Canvas(const _wstring& Name); - void NpcInteract(_bool bInteract); + void NpcInteract(void* pArg); void Set_Fade(); void Change_Map(); diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/Elf.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/Elf.xml index 64257f128..78e433b1e 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/Elf.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/Elf.xml @@ -4,7 +4,7 @@ - + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Dialogue/Dialogue.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/Dialogue/Dialogue.xml index 5890f5101..c9666f74a 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Dialogue/Dialogue.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Dialogue/Dialogue.xml @@ -3,9 +3,9 @@ - - - + + + @@ -21,9 +21,9 @@ - - - + + + @@ -31,23 +31,42 @@ - - + + - - - - + + + + + + + + + + + + + + + + + + + + - + + - - + + @@ -74,8 +93,8 @@ - - + + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Monster/Goblin_Data.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Monster/Goblin_Data.xml index d9b4b485f..9c3b7df91 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Monster/Goblin_Data.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Monster/Goblin_Data.xml @@ -10,7 +10,7 @@ - +