Merge pull request #822 from SpicyGangjeong/Develope

Follow
This commit is contained in:
hyunbin14
2026-01-15 14:51:49 +09:00
committed by GitHub
17 changed files with 99 additions and 53 deletions
@@ -976,8 +976,6 @@
<ClInclude Include="..\Public\Ranrok_EtherInfo.h">
<Filter>02.GameObjects\NPC\Hostile\Monster\Ranrok\Ranrok_Ether</Filter>
</ClInclude>
<ClInclude Include="..\Public\TriggerBox.h" />
<ClInclude Include="..\Public\TriggerBox.h" />
<ClInclude Include="..\Public\CutScene_Lightning.h">
<Filter>02.GameObjects\Effect\CutSceneEffect\CutScene_Lightning</Filter>
</ClInclude>
@@ -989,6 +987,9 @@
</ClInclude>
<ClInclude Include="..\Public\CutScene_Shout.h">
<Filter>02.GameObjects\Effect\CutSceneEffect\CutScene_Shout</Filter>
</ClInclude>
<ClInclude Include="..\Public\TriggerBox.h">
<Filter>04.Mechanic\20.TriggerBox</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
@@ -2944,7 +2945,6 @@
<ClCompile Include="..\Private\Ranrok_EtherInfo.cpp">
<Filter>02.GameObjects\NPC\Hostile\Monster\Ranrok\Ranrok_Ether</Filter>
</ClCompile>
<ClCompile Include="..\Private\TriggerBox.cpp" />
<ClCompile Include="..\Private\CutScene_Lightning.cpp">
<Filter>02.GameObjects\Effect\CutSceneEffect\CutScene_Lightning</Filter>
</ClCompile>
@@ -2971,7 +2971,6 @@
<ClCompile Include="..\Private\State_Parry.cpp">
<Filter>04.Mechanic\State\State_Combat\State_Parry</Filter>
</ClCompile>
<ClCompile Include="..\Private\TriggerBox.cpp" />
<ClCompile Include="..\Private\Broom_TargetGate2D.cpp">
<Filter>02.GameObjects\UI\GamePlay_Canvas\Broom_Panel\Broom_TargetGate2D</Filter>
</ClCompile>
@@ -67,7 +67,6 @@ 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;
@@ -92,13 +91,13 @@ void CDialogue_Font::Update(_float fTimeDelta)
case ENUM_CLASS(NPCTEXTTYPE::BROOM):
m_bRace = true;
m_pInfoInstance->Event_CallBack(TEXT("RACEREADY"), &m_bRace);
ReSet();
ENDText();
break;
case ENUM_CLASS(NPCTEXTTYPE::BATTLE):
m_bBattle = true;
m_pInfoInstance->Event_CallBack(TEXT("BATTLE"), &m_bBattle);
ReSet();
ENDText();
break;
default:
@@ -344,8 +343,6 @@ void CDialogue_Font::Quest()
switch (Index)
{
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);
@@ -363,7 +360,7 @@ void CDialogue_Font::Quest()
break;
case 2:
NextText();
Quest_Complete();
break;
default:
@@ -372,8 +369,18 @@ void CDialogue_Font::Quest()
}
void CDialogue_Font::ReSet()
void CDialogue_Font::ENDText()
{
NPCINTERACT Interact{};
Interact.bInteract = false;
Interact.fAlpha = 0.5f;
m_pNpc->Set_NextID(m_iNextID);
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("NpcInteract"), &Interact);
m_pInfoInstance->Event_CallBack(TEXT("NpcInteraction"), &Interact.bInteract);
m_pInfoInstance->Event_CallBack(TEXT("CHOICERESET"));
m_bChoiceText = false;
m_bCurrentChoiceText = false;
@@ -388,7 +395,42 @@ void CDialogue_Font::ReSet()
m_DialoguInfo.push_back((*it));
it = m_pCurrentDialogue.erase(it);
}
m_pInfoInstance->Event_CallBack(TEXT("NpcInteract"), &m_bChoiceText);
//if (m_iTextID < m_iNextID)
m_pNpc->Set_Flow(m_pNpc->Get_Flow() + 1, Interact.fAlpha);
}
void CDialogue_Font::ReSet()
{
NPCINTERACT Interact{};
Interact.bInteract = false;
Interact.fAlpha = 0.5f;
m_pNpc->Set_NextID(m_iTextID);
m_pInfoInstance->Event_CallBack(TEXT("CHOICERESET"));
m_pCurrentDialogue[0]->Set_Hover(Interact.bInteract);
m_pCurrentDialogue[0]->Visible(Interact.bInteract);
m_pInfoInstance->Event_CallBack(TEXT("NpcInteraction"), &Interact.bInteract);
m_pInfoInstance->Event_CallBack(TEXT("NpcInteract"), &Interact);
m_DialoguInfo.push_back(m_pCurrentDialogue[0]);
m_pCurrentDialogue.erase(m_pCurrentDialogue.begin());
m_bChoiceText = false;
m_bCurrentChoiceText = false;
m_bRace = false;
m_bBattle = false;
vector<_int> Dummy;
m_NextLevel.swap(Dummy);
for (auto it = m_pCurrentDialogue.begin(); it != m_pCurrentDialogue.end();)
{
(*it)->Set_Hover(false);
(*it)->Visible(false);
m_DialoguInfo.push_back((*it));
it = m_pCurrentDialogue.erase(it);
}
}
void CDialogue_Font::Quest_Complete()
{
NpcNextText();
ENDText();
}
void CDialogue_Font::NextText()
@@ -396,11 +438,6 @@ void CDialogue_Font::NextText()
m_pCurrentDialogue[0]->Visible(false);
m_DialoguInfo.push_back(m_pCurrentDialogue[0]);
m_pCurrentDialogue.erase(m_pCurrentDialogue.begin());
if (m_bChoiceText == true)
{
ReSet();
m_pNpc->Set_Flow(m_pNpc->Get_Flow() + 1);
}
NpcDialogue();
}
@@ -411,21 +448,11 @@ void CDialogue_Font::NextLevel(CHOICEINFO Choice)
m_iQuestID = Choice.QuestID;
m_bChoiceText = true;
NpcNextText();
}
void CDialogue_Font::ENDText()
{
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.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();
if (m_iType == ENUM_CLASS(NPCTEXTTYPE::QUESTTEXT))
ReSet();
else
ENDText();
}
void CDialogue_Font::NextText(_int Index)
+16 -2
View File
@@ -76,6 +76,18 @@ void CElf::Update(_float fTimeDelta)
m_iCurrentFlow++;
}
if (m_bFlow == true)
{
m_fFlowTime -= fTimeDelta;
}
if (m_fFlowTime <= 0.f && m_bFlow == true)
{
m_bFlow = false;
m_fFlowTime = 0.f;
m_iCurrentFlow = m_iFlowIndex;
}
m_pModelCom->Play_Animation(fTimeDelta, m_pTransformCom);
__super::Update(fTimeDelta);
@@ -227,9 +239,11 @@ void CElf::Set_Target(CUnit& pTarget, CTransform& pTransform)
m_fTargetDistance = XMVectorGetX(XMVector3Length(vToTargetDir));
}
void CElf::Set_Flow(_int Index)
void CElf::Set_Flow(_int Index, _float fTime)
{
m_iCurrentFlow = Index;
m_iFlowIndex = Index;
m_fFlowTime = fTime;
m_bFlow = true;
}
_int CElf::Get_Flow()
@@ -95,6 +95,7 @@ void CNPCInteraction::ActiveOff()
void CNPCInteraction::BoxOff()
{
m_bBoxActive = false;
m_pBoxInfo.pOwner = nullptr;
}
void CNPCInteraction::NpcInfo(void* pArg)
@@ -161,7 +161,7 @@ _int CQuest_Data::Set_AcceptQuest(_int Index)
return 2;
}
HRESULT hr = m_pGameInstance->Add_GameObject_ToLayer<CQuestInstance>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, &QuestInfos[Index], nullptr, reinterpret_cast<CQuestInstance**>(&m_pQuestInstance));
HRESULT hr = m_pGameInstance->Add_GameObject_ToLayer<CQuestInstance>(g_iStaticLevel, g_iStaticLevel, LAYER_UI, &QuestInfos[Index], nullptr, reinterpret_cast<CQuestInstance**>(&m_pQuestInstance));
if (FAILED(hr))
{
return -1;
@@ -56,7 +56,7 @@ HRESULT CQuest_Panel::Initialize(void* pArg)
Set_Status();
//m_pInfoInstance->Set_AcceptQuest(0);
//m_pInfoInstance->Set_AcceptQuest(1);
//m_pInfoInstance->Set_AcceptQuest(2);
m_pInfoInstance->Set_AcceptQuest(6);
Add_Function(TEXT("Click"), [this](void* p) {this->Slot_Hover(*reinterpret_cast<_int*>(p)); });
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("QuestPanelClose"), [this](void* p) {this->Slot_Hover(*reinterpret_cast<_int*>(p)); });
return S_OK;
@@ -145,6 +145,8 @@ void CUI_Manager::Canvas_Change(UI_STATE eType)
static_cast<CGameObject*>(m_pNPCInteraction)->Set_Visible(false);
static_cast<CGameObject*>(m_pBroom_TargetGate)->Set_Visible(false);
static_cast<CGameObject*>(m_pDamage_Font)->Set_Visible(false);
m_pInfoInstance->Event_CallBack(TEXT("NPCInteractionOff"));
m_pInfoInstance->Event_CallBack(TEXT("BOXInteractionOff"));
break;
default:
@@ -521,7 +523,6 @@ void CUI_Manager::Change_Map()
void CUI_Manager::Set_Race(_bool bRace)
{
m_bRace = bRace;
static_cast<CGameObject*>(m_pBroom_TargetGate)->Set_Visible(bRace);
}
void CUI_Manager::Set_Battle(_bool bBattle)
@@ -63,6 +63,8 @@ class CDialogue_Font final : public CGameObject
void SpellLearn();
void Quest();
void ReSet();
void Quest_Complete();
private:
CInfoInstance* m_pInfoInstance = { nullptr };
+6 -2
View File
@@ -56,8 +56,8 @@ class CElf final : public CUnit
virtual _wstring Get_NpcName() override;
void Set_NpcState(_int iState) { m_eNpcState = iState; }
void Set_Target(CUnit& pTarget, CTransform& pTransform);
virtual void Set_Flow(_int Index);
virtual _int Get_Flow();
virtual void Set_Flow(_int Index, _float fTime) override;
virtual _int Get_Flow() override;
protected:
CInfoInstance* m_pInfoInstance = { nullptr };
CCharacter_Controller* m_pCharacter_Controller = { nullptr };
@@ -82,6 +82,10 @@ class CElf final : public CUnit
_float m_fInteractTime{};
_int m_eNpcState = ENUM_CLASS(ELF_STATE::END);
_int m_iFlowIndex{};
_float m_fFlowTime{};
_bool m_bFlow = { false };
unordered_map<_int, _float4> m_Points;
+2 -1
View File
@@ -41,7 +41,6 @@ class CUI_Manager final : public CUIObject
void Add_Manager_Event(_wstring Name, function<void(void*)> Event);
void Event_Callback(_wstring Name, void* pArg = nullptr);
private:
void Add_Canvas(_wstring Name, class CGameObject* pCanvas);
CGameObject* Find_Canvas(const _wstring& Name);
@@ -94,6 +93,8 @@ class CUI_Manager final : public CUIObject
_bool m_bRace = { false };
_bool m_bBattle = { false };
_bool m_bGate = { false };
_float m_fGateTime{};
public:
static CUI_Manager* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
@@ -38,12 +38,12 @@
<Line ID="4" Tag="1" Type="1" Text="저기 앞에 고블린이 있어." NextID="5"/>
<Line ID="5" Tag="1" Type="2" Text="부탁이야. 저 고블린들 좀 잡아줘." NextID="5">
<Choice Type="4" Text="알겠어. 맡겨." NextID="7" QuestID="0" />
<Choice Type="0" Text="왜 내가?" NextID="6" QuestID="-1" />
<Choice Type="1" Text="왜 내가?" NextID="6" QuestID="-1" />
</Line>
<Line ID="6" Tag="1" Type="0" Text="도비는 싸울 수 없어..." NextID="4"/>
<Line ID="7" Tag="1" Type="2" Text="다 잡았어?" NextID="8">
<Choice Type="4" Text="다 잡았다." NextID="8" QuestID="0" />
<Choice Type="0" Text="아직" NextID="7" QuestID="-1" />
<Choice Type="4" Text="아직" NextID="7" QuestID="0" />
</Line>
<Line ID="8" Tag="1" Type="0" Text="고마워... 이제 마을로 가자." NextID="9"/>
<Line ID="9" Tag="1" Type="1" Text="어...? 저기 숨어있는 건...." NextID="10"/>
@@ -53,12 +53,8 @@
<Line ID="13" Tag="1" Type="1" Text="아직 근처에 고블린이 남아 있어." NextID="14"/>
<Line ID="14" Tag="1" Type="2" Text="한 번만 더 도와줄래?" NextID="-1">
<Choice Type="4" Text="알겠어." NextID="-1"/>
<Choice Type="0" Text="여기까지만 할게." NextID="13"/>
<Choice Type="0" Text="여기까지만 할게." NextID="14"/>
</Line>
<Line ID="13" Tag="1" Type="1"
Text="…여기서 기다릴게."
NextID="-1"/>
<Line ID="999" Tag="1" Type="0" Text="아직 덜 잡았네" NextID="7"/>
</Dialogue>
@@ -52,7 +52,7 @@
</Quest>
<Quest QuestID="6" QuestType="Main" QuestName="드래곤 슬레이어!" QuestInfo="용으로 변신한 란록 처치하기" AcceptState="0">
<Objectives>
<Objective Type="0" TargetID="2" QuestInfo="란록" CurrentCount="0" RequiredCount="1"/>
<Objective Type="0" TargetID="4" QuestInfo="란록" CurrentCount="0" RequiredCount="1"/>
</Objectives>
<Rewards>
<Reward Type="1" Value="BOMBARDA"/>
@@ -5,5 +5,5 @@
<STAT_GOBLIN_WIZARD Name="고블린 마법사" OBJECTID="2" HP="100" MAXHP="100" TARGETHP="100" DAMAGE="10" DEFENSE="10" SPEED="10" LEVEL="2" EXPERIENCE="10" MAX_EXPERIENCE="100" GOLD="4000" BOSS="0"/>
<STAT_TROLL Name="트롤" OBJECTID="3" HP="500" MAXHP="500" TARGETHP="500" DAMAGE="10" DEFENSE="10" SPEED="10" LEVEL="5" EXPERIENCE="10" MAX_EXPERIENCE="100" GOLD="4000" BOSS="1"/>
<STAT_RANROK Name="란록" OBJECTID="4" HP="1000" MAXHP="1000" TARGETHP="1000" DAMAGE="10" DEFENSE="10" SPEED="10" LEVEL="5" EXPERIENCE="10" MAX_EXPERIENCE="100" GOLD="4000" BOSS="1"/>
<STAT_M_STUDENT Name="테오도어 그레이브스" OBJECTID="4" HP="5000" MAXHP="5000" TARGETHP="5000" DAMAGE="1" DEFENSE="10" SPEED="10" LEVEL="5" EXPERIENCE="10" MAX_EXPERIENCE="100" GOLD="4000" BOSS="1"/>
<STAT_M_STUDENT Name="테오도어 그레이브스" OBJECTID="5" HP="5000" MAXHP="5000" TARGETHP="5000" DAMAGE="1" DEFENSE="10" SPEED="10" LEVEL="5" EXPERIENCE="10" MAX_EXPERIENCE="100" GOLD="4000" BOSS="1"/>
</StatInfo>
@@ -134,7 +134,7 @@
Spell_Damage="10" Spell_Cooltime="0" Duration="0" AnimNum="235" SpellInfo="마법 동물을 구출하거나 잡을 수 있는 마법 자루입니다." Spell_Lock="0"
Equip_Spell="0" Use_Skill="1" Preview="0" Vidio="0" />
<Spell Spell_ID="26" Spell_Name="기본 주문" Image_Name="Basic_Cast" Spell_Type="6" Type_Name="필수" Skill_Type="26"
Spell_Damage="10" Spell_Cooltime="0" Duration="0" AnimNum="308" SpellInfo="적과 사물에게 가벼운 대미지를 줍니다. 시전하려면
Spell_Damage="10000" Spell_Cooltime="0" Duration="0" AnimNum="308" SpellInfo="적과 사물에게 가벼운 대미지를 줍니다. 시전하려면
을 탭하세요." Spell_Lock="0"
Equip_Spell="0" Use_Skill="1" Preview="0" Vidio="0" />
<Spell Spell_ID="27" Spell_Name="레벨리오" Image_Name="Revelio" Spell_Type="6" Type_Name="필수" Skill_Type="27"
@@ -1,4 +1,5 @@
#include "pch.h"
#include "UI_Manager.h"
#include "pch.h"
#include "UI_Manager.h"
#include "GameInstance.h"
#include "GamePlay_Canvas.h"
+2 -2
View File
@@ -125,14 +125,14 @@ _wstring CUnit::Get_NpcName()
_int CUnit::Get_TextID()
{
return _int();
return m_iCurrentFlow;
}
void CUnit::Set_NextID(_int ID)
{
}
void CUnit::Set_Flow(_int Index)
void CUnit::Set_Flow(_int Index, _float fTime)
{
}
+1 -1
View File
@@ -62,7 +62,7 @@ class ENGINE_DLL CUnit abstract : public CContainerObject
virtual _int Get_TextID();
virtual void Set_NextID(_int ID);
virtual void Set_Flow(_int Index);
virtual void Set_Flow(_int Index, _float fTime);
virtual _int Get_Flow();
#pragma endregion