Merge branch 'UI' into Develope

This commit is contained in:
qordlsgur
2026-01-15 03:11:05 +09:00
committed by GitHub
23 changed files with 290 additions and 157 deletions
@@ -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");
@@ -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);
+6 -6
View File
@@ -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++;
}
@@ -472,14 +472,14 @@ HRESULT CElf::Ready_Components(void* pArg)
Desc.eBodyType = ACTOR::CAPSULE;
Desc.fContactOffset = 0.0001f;
Desc.fMaterial = { 1.2f, 1.0f, 0.0f };
Desc.bAutoStepping = { true };
Desc.fStepOffset = { 0.08f };
Desc.fRadius = 0.2f;
Desc.fHeight = 0.3f;
Desc.bAutoStepping = { false };
Desc.fStepOffset = { 0.02f };
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;
}
@@ -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);
@@ -177,6 +177,8 @@ void CLevel_GamePlay::Update(_float fTimeDelta)
bStartCinematic = false;
#elif gimch
bStartCinematic = false;
#elif 나
bStartCinematic = false;
#endif
#endif // _DEBUG
+5 -1
View File
@@ -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;
@@ -171,8 +172,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) {
@@ -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)
{
+17 -8
View File
@@ -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<CQuestInstance>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, &QuestInfos[Index], nullptr, reinterpret_cast<CQuestInstance**>(&m_pQuestInstance));
if (FAILED(hr))
{
return -1;
}
QuestInfos[Index].iAcceptState = ENUM_CLASS(QUESTSTATE::ACCEPTED);
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CQuestInstance>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, &QuestInfos[Index], nullptr, reinterpret_cast<CQuestInstance**>(&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)
@@ -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)); });
@@ -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);
@@ -92,6 +92,9 @@ void CSpellLearn_MovePointer::Line(_float fTime, _float2 fMouse)
m_bMoveStart = false;
Set_FadeOut();
static_cast<CUIObject*>(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())
@@ -75,6 +75,7 @@ HRESULT CSpellLearn_Panel::Initialize(void* pArg)
void CSpellLearn_Panel::Set_Learn(_int Index)
{
m_fTime = 0.f;
static_cast<CSpellLearn_MovePointer*>(m_pSpellLearn_MovePointer)->Set_ID(m_pInfoInstance->Get_SpellLearn(Index).iSpellID);
static_cast<CSpellLearn*>(m_pSpellLearn)->Change_Image(Index);
static_cast<CSpellLearn_MovePointer*>(m_pSpellLearn_MovePointer)->Set_SpellLearn(Index);
static_cast<CSpellLearn_ChaserPointer*>(m_pSpellLearn_ChaserPointer)->Set_SpellLearn(Index);
+26 -23
View File
@@ -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<UI_STATE*>(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<NPCINTERACT*>(pArg);
m_bNPCInteract = Interact.bInteract;
m_bHover = Interact.bInteract;
m_bActive = Interact.bInteract;
m_fAlpha= Interact.fAlpha;
m_bAlphaZero = true;
}
+1 -1
View File
@@ -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 };
+88 -80
View File
@@ -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<DIALOGUECHOICEINFO> ChoiceInfo;
}CURRENTDIALOGUEINFO;
typedef struct DialogueInfo
{
_int iLineID{};
_bool bTag{};
_int iType{};
_wstring pText;
_int NextTextID{};
vector<DIALOGUECHOICEINFO> 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<CTimeSocket*> m_Sockets = {};
};
NS_END
@@ -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{};
@@ -81,6 +81,7 @@ DECLARE_SINGLETON(CInfoInstance)
_float Get_Spell_Damage(_int Index);
void Add_Event(_wstring EventName, function<void(void*)> 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);
+1 -1
View File
@@ -148,7 +148,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);
+1 -1
View File
@@ -36,7 +36,7 @@ class CQuest_Data final : public CBase
const vector<QUESTINFO>& Get_AllQuest() const;
const vector<QUESTINFO>& Get_ClearQuest() const;
vector<QUESTINFO>& Get_AcceptQuest();
HRESULT Set_AcceptQuest(_int index);
_int Set_AcceptQuest(_int index);
private:
CInfoInstance* m_pInfoInstance = { nullptr };
@@ -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);
+1 -1
View File
@@ -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();
@@ -3,9 +3,9 @@
<Line ID="0" Tag="1" Type="1" Text="반갑네 친구 나는 올리벤더 라고 하네" NextID="1"> </Line>
<Line ID="1" Tag="1" Type="1" Text="나는 여기서 지팡이를 팔고있어" NextID="2"> </Line>
<Line ID="2" Tag="1" Type="2" Text="뭐 필요한게 있나?" NextID="0">
<Choice Type="3" Text="상점 이용하기" NextID="0" />
<Choice Type="4" Text="퀘스트 확인하기" NextID="0" />
<Choice Type="0" Text="다른일 하러가기" NextID="0" />
<Choice Type="3" Text="상점 이용하기" NextID="0" QuestID="-1"/>
<Choice Type="4" Text="퀘스트 확인하기" NextID="0" QuestID="-1" />
<Choice Type="0" Text="다른일 하러가기" NextID="0" QuestID="-1" />
</Line>
</Dialogue>
@@ -21,9 +21,9 @@
<Line ID="0" Tag="1" Type="1" Text="엘리아자르 피그" NextID="1" NpcInrteract ="1"> </Line>
<Line ID="1" Tag="1" Type="1" Text="나는 여기서 지팡이를 팔고있어" NextID="2"> </Line>
<Line ID="2" Tag="1" Type="2" Text="뭐 필요한게 있나?" NextID="0">
<Choice Type="2" Text="상점 이용하기" NextID="0" />
<Choice Type="3" Text="퀘스트 확인하기" NextID="0" />
<Choice Type="0" Text="다른일 하러가기" NextID="0" />
<Choice Type="2" Text="상점 이용하기" NextID="0" QuestID="-1" />
<Choice Type="3" Text="퀘스트 확인하기" NextID="0" QuestID="-1" />
<Choice Type="0" Text="다른일 하러가기" NextID="0" QuestID="-1" />
</Line>
</Dialogue>
@@ -31,23 +31,42 @@
<Line ID="0" Tag="1" Type="1" Text="어? 인간이네. 여기서 눈 뜬 건 처음 봐" NextID="1"/>
<Line ID="1" Tag="1" Type="1" Text="여긴 위험해. 도비 마을을 보여줄게" NextID="2"/>
<Line ID="2" Tag="1" Type="2" Text="도비 따라올래?" NextID="2">
<Choice Type="1" Text="안내해줘." NextID="3" />
<Choice Type="0" Text="혼자 갈게." NextID="3" />
<Choice Type="0" Text="안내해줘." NextID="3" QuestID="-1" />
<Choice Type="0" Text="혼자 갈게." NextID="3" QuestID="-1" />
</Line>
<Line ID="3" Tag="1" Type="1" Text="잠깐... 고블린이 있어." NextID="4"/>
<Line ID="4" Tag="1" Type="2" Text="부탁이야. 저 고블린들 좀 잡아줘." NextID="4">
<Choice Type="3" Text="알겠어. 맡겨." NextID="6" />
<Choice Type="0" Text="왜 내가?" NextID="5" />
<Line ID="3" Tag="0" Type="1" Text="왜 멈춘거야?" NextID="4"/>
<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" />
</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" />
</Line>
<Line ID="8" Tag="1" Type="0" Text="고마워... 이제 마을로 가자." NextID="9"/>
<Line ID="9" Tag="1" Type="1" Text="어...? 저기 숨어있는 건...." NextID="10"/>
<Line ID="10" Tag="1" Type="1" Text="괜찮아. 이제 나와." NextID="11"/>
<Line ID="11" Tag="1" Type="1" Text="이쪽은 도비가 말한 인간이야." NextID="12"/>
<Line ID="12" Tag="1" Type="1" Text="아, 맞다." NextID="13"/>
<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"/>
</Line>
<Line ID="5" Tag="1" Type="0" Text="도비는 싸울 수 없어..." NextID="4"/>
<Line ID="13" Tag="1" Type="1"
Text="…여기서 기다릴게."
NextID="-1"/>
<Line ID="999" Tag="1" Type="0" Text="아직 덜 잡았네" NextID="7"/>
</Dialogue>
<Dialogue NpcName="PEEVES" NpcID="5" NpcInrteract="1">
<Line ID="0" Tag="1" Type="1" Text="이번에 새로운 코스를 만들었는데" NextID="1"> </Line>
<Line ID="1" Tag="1" Type="2" Text="한번 도전 해볼래?" NextID="0">
<Choice Type="6" Text="실력 한번 보여준다." NextID="0" />
<Choice Type="0" Text="다시 연습 하고온다." NextID="0" />
<Choice Type="6" Text="실력 한번 보여준다." NextID="0" QuestID="-1" />
<Choice Type="0" Text="다시 연습 하고온다." NextID="0" QuestID="-1" />
</Line>
</Dialogue>
@@ -74,8 +93,8 @@
<Dialogue NpcName="DINAHHECAT" NpcID="11" NpcInrteract="1">
<Line ID="0" Tag="1" Type="1" Text="뭐? 대련을 하고 싶다고?" NextID="1"> </Line>
<Line ID="1" Tag="1" Type="2" Text="다시 한번 생각할 시간을 주겠네" NextID="0">
<Choice Tag="1" Type="7" Text="보내 돌라고 한다." NextID="0" />
<Choice Tag="1" Type="0" Text="다시 한번 생각한다." NextID="0" />
<Choice Tag="1" Type="7" Text="보내 돌라고 한다." NextID="0" QuestID="-1" />
<Choice Tag="1" Type="0" Text="다시 한번 생각한다." NextID="0" QuestID="-1" />
</Line>
</Dialogue>
@@ -10,7 +10,7 @@
</Object>
<Object Name="Goblin_Assassin">
<RotQ X="-0.000" Y="-0.186" Z="-0.000" W="0.983"/>
<Trans X="-46.135" Y="-7.030" Z="-15.008"/>
<Trans X="-24.541" Y="-23.196" Z="-57.008"/>
</Object>
<Object Name="Goblin_Mage">
<RotQ X="-0.000" Y="-0.209" Z="-0.000" W="0.978"/>