Merge branch 'Develope' into Camera
This commit is contained in:
@@ -289,6 +289,9 @@ void CAccio::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
{
|
||||
if (m_bHit == false)
|
||||
return;
|
||||
m_pGameInstance->Sound_Stop(SOUND::SD_KIND::SP_ACCIO_15, SD_CHANNEL_GROUP::EFFECT);
|
||||
|
||||
m_pGameInstance->Sound_Play(SOUND::SD_KIND::SP_ACCIO_15, SD_CHANNEL_GROUP::EFFECT, false, 0.7f);
|
||||
|
||||
dynamic_cast<CPlayer*>(m_pOwner)->Set_SpellHit(true);
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
#include "InfoInstance.h"
|
||||
#include "InstancedProp.h"
|
||||
#include "EffectPool.h"
|
||||
|
||||
#include "EffectParts.h"
|
||||
CBroomRaceManager::CBroomRaceManager(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CGameObject(pDevice, pContext)
|
||||
{
|
||||
@@ -49,6 +49,10 @@ void CBroomRaceManager::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
|
||||
for (auto& RaceEnd : m_pRaceEndEffects)
|
||||
{
|
||||
RaceEnd->Priority_Update(fTimeDelta);
|
||||
}
|
||||
switch (m_eRaceState)
|
||||
{
|
||||
case ENUM_CLASS(RACE_STATE::COUNTDOWN):
|
||||
@@ -89,6 +93,11 @@ void CBroomRaceManager::Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Update(fTimeDelta);
|
||||
|
||||
for (auto& RaceEnd : m_pRaceEndEffects)
|
||||
{
|
||||
RaceEnd->Update(fTimeDelta);
|
||||
}
|
||||
|
||||
if (m_bRaceReady == true)
|
||||
{
|
||||
m_fRedayTime += fTimeDelta;
|
||||
@@ -114,6 +123,19 @@ void CBroomRaceManager::Update(_float fTimeDelta)
|
||||
m_fRacingTimer = 0.f;
|
||||
if (m_bRaceStart == true)
|
||||
{
|
||||
CTransform* pRingTransform = m_pRaceRings[m_pRaceRings.size() - 1]->Get_Component<CTransform>();
|
||||
for (auto& RaceEnd : m_pRaceEndEffects)
|
||||
{
|
||||
RaceEnd->Set_Visible(true);
|
||||
|
||||
_vector LastRingPos = pRingTransform->Get_State(STATE::POSITION);
|
||||
_vector ringRIght = pRingTransform->Get_State(STATE::RIGHT);
|
||||
ringRIght = XMVector3Normalize(ringRIght);
|
||||
|
||||
_vector spawnPos = LastRingPos - ringRIght * 27.f;
|
||||
|
||||
RaceEnd->Get_Component<CTransform>()->Set_WorldMatrix(XMMatrixTranslationFromVector(spawnPos));
|
||||
}
|
||||
m_pInfoInstance->Event_CallBack(TEXT("RaceEnd"));
|
||||
m_iCount = 3;
|
||||
m_bRaceStart = false;
|
||||
@@ -152,6 +174,10 @@ void CBroomRaceManager::Update(_float fTimeDelta)
|
||||
void CBroomRaceManager::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Late_Update(fTimeDelta);
|
||||
for (auto& RaceEnd : m_pRaceEndEffects)
|
||||
{
|
||||
RaceEnd->Late_Update(fTimeDelta);
|
||||
}
|
||||
}
|
||||
|
||||
HRESULT CBroomRaceManager::Render()
|
||||
@@ -171,6 +197,38 @@ HRESULT CBroomRaceManager::Ready_Components()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
CPartObject::PARTOBJECT_DESC PartsDesc{};
|
||||
|
||||
PartsDesc.pParentTransform = m_pTransformCom;
|
||||
|
||||
|
||||
{
|
||||
_string BasePath = "../Bin/Resources/Data/Effect/BroomRace/";
|
||||
|
||||
array<_string, 3> Colors =
|
||||
{
|
||||
"Firewark_Blue",
|
||||
"Firewark_Red",
|
||||
"Firewark_Yellow"
|
||||
};
|
||||
|
||||
for (_uint i = 0; i < m_pRaceEndEffects.size(); ++i)
|
||||
{
|
||||
_string EffectFinal = BasePath + Colors[i];
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CEffectParts>(
|
||||
g_iStaticLevel, NEXT_LEVEL, LAYER_EFFECT, &PartsDesc, this, &m_pRaceEndEffects[i])))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pRaceEndEffects[i]->Load(EffectFinal.c_str(), static_cast<LEVEL>(g_iStaticLevel));
|
||||
m_pRaceEndEffects[i]->Set_Visible(false);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -218,6 +276,10 @@ void CBroomRaceManager::Free()
|
||||
SAFE_RELEASE(Ring);
|
||||
}
|
||||
m_pRaceRings.clear();
|
||||
for (auto& RaceEndEffects : m_pRaceEndEffects)
|
||||
{
|
||||
SAFE_RELEASE(RaceEndEffects);
|
||||
}
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
|
||||
@@ -313,6 +375,8 @@ void CBroomRaceManager::Check_RingPassed()
|
||||
{
|
||||
racer.curRing = (_uint)m_pRaceRings.size();
|
||||
|
||||
|
||||
|
||||
if (racer.pAI) {
|
||||
racer.pAI->Get_Broom()->Set_Hover(true);
|
||||
racer.pAI->Get_Broom()->Set_Move(false);
|
||||
@@ -323,11 +387,15 @@ void CBroomRaceManager::Check_RingPassed()
|
||||
racer.pRacer->Get_Broom()->Set_Move(false);
|
||||
}
|
||||
|
||||
|
||||
|
||||
XMStoreFloat4(&racer.prevPos, currPos);
|
||||
continue;
|
||||
}
|
||||
|
||||
racer.pAI ? SetTargetRing(racer.pAI) : SetTargetRing(racer.pRacer);
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -402,15 +470,12 @@ void CBroomRaceManager::RaceReady()
|
||||
if (racer.pAI)
|
||||
{
|
||||
CTransform* pTransform =
|
||||
racer.pAI->Get_Broom()->Get_Component<CTransform>();
|
||||
|
||||
const _float fSpacing = 3.0f;
|
||||
const _float fJitter = 0.5f;
|
||||
racer.pAI->Get_Broom()->Get_Component<CTransform>();
|
||||
|
||||
_float lane = (_float)i - (_float)(m_Racers.size() - 1) * 0.5f;
|
||||
_float side = lane * fSpacing;
|
||||
_float side = lane * 3.0f;
|
||||
|
||||
side += m_pGameInstance->Real_Random_Float(-fJitter, fJitter);
|
||||
side += m_pGameInstance->Real_Random_Float(-0.5f, 0.5f);
|
||||
|
||||
|
||||
_vector offset = XMVectorSet(0.f, 1.3f, 0.f, 0.f) + pTransform->Get_State(STATE::LOOK) * side;
|
||||
@@ -423,8 +488,7 @@ void CBroomRaceManager::RaceReady()
|
||||
}
|
||||
else if (racer.pRacer)
|
||||
{
|
||||
CTransform* pTransform =
|
||||
racer.pRacer->Get_Component<CTransform>();
|
||||
CTransform* pTransform = racer.pRacer->Get_Component<CTransform>();
|
||||
CCharacter_Controller* pCharacter = racer.pRacer->Get_Component<CCharacter_Controller>();
|
||||
XMStoreFloat4(&m_OriginPos, XMVectorSet(-552.794f, -27.676f, -396.840f, 1.f));
|
||||
pCharacter->Set_Position(spawnPos);
|
||||
@@ -432,6 +496,7 @@ void CBroomRaceManager::RaceReady()
|
||||
pTransform->LookAt(pRingTransform->Get_State(STATE::POSITION));
|
||||
racer.pRacer->Get_Broom()->Set_Ride(true);
|
||||
racer.pRacer->Get_Broom()->Set_Move(false);
|
||||
m_pRaceRings[racer.curRing]->Set_Target(true);;
|
||||
|
||||
}
|
||||
}
|
||||
@@ -457,9 +522,15 @@ void CBroomRaceManager::SetTargetRing(CGameObject* pRacer)
|
||||
{
|
||||
if (racer.pRacer == pRacer)
|
||||
{
|
||||
|
||||
m_pRaceRings[racer.curRing-1]->Set_Target(false);
|
||||
|
||||
racer.pRacer->Set_RaceRing(m_pRaceRings[racer.curRing]);
|
||||
m_pInfoInstance->Event_CallBack(TEXT("CurrentRing"));
|
||||
m_iLastRing++;
|
||||
|
||||
m_pRaceRings[racer.curRing]->Set_Target(true);
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -160,7 +160,6 @@ HRESULT CLevioso::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
}
|
||||
|
||||
}
|
||||
m_pGameInstance->Sound_Play(SOUND::SD_KIND::VOICE_LEVIOSO, SD_CHANNEL_GROUP::EFFECT, false, 0.7f);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -309,10 +309,12 @@ void CMapElement_Chest::Chage_State()
|
||||
|
||||
case CMapElement_Chest::CHEST_STATE::FOUND:
|
||||
m_iShaderPass_Index = 21; //ENUM_CLASS(SHADER_PASS_MESH::DEFAULT);
|
||||
m_pGameInstance->Sound_Play(SOUND::SD_KIND::CHEST_FOUND, SD_CHANNEL_GROUP::OBJECT, false, 0.8f);
|
||||
break;
|
||||
|
||||
case CMapElement_Chest::CHEST_STATE::OPENED:
|
||||
m_iShaderPass_Index = ENUM_CLASS(SHADER_PASS_MESH::DEFAULT);
|
||||
m_pGameInstance->Sound_Play(SOUND::SD_KIND::CHEST_OPEN, SD_CHANNEL_GROUP::OBJECT, false, 0.8f);
|
||||
m_pLid->Open();
|
||||
break;
|
||||
|
||||
|
||||
@@ -65,6 +65,9 @@ void CMapElement_Door::ActingIdle()
|
||||
m_bDrive = true;
|
||||
m_pJoint->setRevoluteJointFlag(PSX::PxRevoluteJointFlag::eDRIVE_ENABLED, true);
|
||||
m_pJoint->setDriveForceLimit(120.f);
|
||||
|
||||
// close
|
||||
m_pGameInstance->Sound_Play(SOUND::SD_KIND::DOOR_CLOSE, SD_CHANNEL_GROUP::OBJECT, false, 0.8f);
|
||||
}
|
||||
if (true == m_bDrive) { // 드라이브 중이면
|
||||
if (fCurrentDegree > 0.f) {
|
||||
@@ -138,7 +141,8 @@ void CMapElement_Door::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
m_vKinematicTimer.x = FLT_EPSILON3;
|
||||
return;
|
||||
}
|
||||
|
||||
// open
|
||||
m_pGameInstance->Sound_Play(SOUND::SD_KIND::DOOR_OPEN, SD_CHANNEL_GROUP::OBJECT, false, 0.8f);
|
||||
m_vKinematicTimer.x = FLT_EPSILON3;
|
||||
}
|
||||
|
||||
|
||||
@@ -123,6 +123,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;
|
||||
|
||||
@@ -175,8 +176,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)
|
||||
{
|
||||
|
||||
@@ -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)); });
|
||||
|
||||
@@ -3,14 +3,16 @@
|
||||
|
||||
#include "BroomRaceManager.h"
|
||||
#include "GameInstance.h"
|
||||
#include "PartObject.h"
|
||||
#include "EffectParts.h"
|
||||
|
||||
CRaceRing::CRaceRing(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CGameObject(pDevice, pContext)
|
||||
: CContainerObject(pDevice, pContext)
|
||||
{
|
||||
}
|
||||
|
||||
CRaceRing::CRaceRing(const CRaceRing& Prototype)
|
||||
: CGameObject(Prototype)
|
||||
: CContainerObject(Prototype)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -30,6 +32,10 @@ HRESULT CRaceRing::Initialize(void* pArg)
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(Ready_Parts())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
//m_iIndex = static_cast<RACERING_DESC*>(pArg)->iIndex;
|
||||
//_float X = m_pGameInstance->Real_Random_Float(-200.f, 200.f);
|
||||
@@ -54,6 +60,8 @@ void CRaceRing::Priority_Update(_float fTimeDelta)
|
||||
Describe_Entity();
|
||||
|
||||
#endif // _DEBUG
|
||||
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CRaceRing::Update(_float fTimeDelta)
|
||||
@@ -61,10 +69,22 @@ void CRaceRing::Update(_float fTimeDelta)
|
||||
m_pModelCom->Combined_BoneMatrix();
|
||||
|
||||
World_to_ScreenUI();
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
|
||||
if (m_bTarget == true)
|
||||
{
|
||||
m_pRingEffect->Set_Visible(true);
|
||||
m_pRingEffect->Get_Component<CTransform>()->Set_WorldMatrix(m_pTransformCom->Get_XMWorldMatrix());
|
||||
}
|
||||
else {
|
||||
m_pRingEffect->Set_Visible(false);
|
||||
}
|
||||
}
|
||||
|
||||
void CRaceRing::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Late_Update(fTimeDelta);
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
|
||||
}
|
||||
|
||||
@@ -238,6 +258,24 @@ HRESULT CRaceRing::Bind_ShaderResources()
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CRaceRing::Ready_Parts()
|
||||
{
|
||||
CPartObject::PARTOBJECT_DESC PartsDesc{};
|
||||
|
||||
PartsDesc.pParentTransform = m_pTransformCom;
|
||||
|
||||
|
||||
if (FAILED(Add_PartObject<CEffectParts>("Ring_Blur", g_iStaticLevel, &m_pRingEffect, &PartsDesc)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pRingEffect->Load("../Bin/Resources/Data/Effect/BroomRace/Ring_Blur", static_cast<LEVEL>(g_iStaticLevel));
|
||||
m_pRingEffect->Set_Visible(false);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
|
||||
CRaceRing* CRaceRing::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
@@ -272,6 +310,7 @@ void CRaceRing::Free()
|
||||
|
||||
SAFE_RELEASE(m_pShaderCom);
|
||||
SAFE_RELEASE(m_pModelCom);
|
||||
SAFE_RELEASE(m_pRingEffect);
|
||||
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -808,8 +808,6 @@ void CTroll::Behavior_DeadEnter()
|
||||
m_pDead_Smoke->Get_Component<CTransform>()->Set_State(STATE::POSITION, m_pTransformCom->Get_State(STATE::POSITION));
|
||||
}, 0.55f);
|
||||
|
||||
Get_PartObject<CTroll_Weapon>()->Set_Disolve(true);
|
||||
|
||||
}
|
||||
|
||||
HRESULT CTroll::Behavior_DeadExitCheck(_float fTimeDelta)
|
||||
@@ -820,6 +818,7 @@ HRESULT CTroll::Behavior_DeadExitCheck(_float fTimeDelta)
|
||||
{
|
||||
m_fDeadRatio += fTimeDelta / 3.f;
|
||||
m_fDeadRatio = min(1.f, m_fDeadRatio);
|
||||
Get_PartObject<CTroll_Weapon>()->Set_Disolve(true);
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@ class CBroomRaceManager final : public CGameObject
|
||||
|
||||
private:
|
||||
CInfoInstance* m_pInfoInstance = { nullptr };
|
||||
|
||||
array<class CEffectParts*, 3> m_pRaceEndEffects = { nullptr, nullptr, nullptr };
|
||||
vector<class CRaceRing*> m_pRaceRings = {};
|
||||
vector<RacerInfo> m_Racers = {};
|
||||
_float m_fCountTimer = {};
|
||||
|
||||
@@ -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 };
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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 };
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "PartObject.h"
|
||||
#include "ContainerObject.h"
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CRaceRing final : public CGameObject
|
||||
class CRaceRing final : public CContainerObject
|
||||
{
|
||||
public:
|
||||
typedef struct RaceRingDesc
|
||||
@@ -37,6 +37,7 @@ class CRaceRing final : public CGameObject
|
||||
|
||||
private:
|
||||
class CBroomRaceManager* m_pBroomRaceManager = { nullptr };
|
||||
class CEffectParts* m_pRingEffect = { nullptr };
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
CModel* m_pModelCom = { nullptr };
|
||||
_bool m_bTarget = { false };
|
||||
@@ -47,6 +48,7 @@ class CRaceRing final : public CGameObject
|
||||
private:
|
||||
HRESULT Ready_Components();
|
||||
HRESULT Bind_ShaderResources();
|
||||
HRESULT Ready_Parts();
|
||||
|
||||
public:
|
||||
static CRaceRing* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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"/>
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user