@@ -191,7 +191,11 @@ call Update_Resources.bat
|
||||
<ClInclude Include="..\Public\Human_Duelist.h" />
|
||||
<ClInclude Include="..\public\InstancedProp_Light.h" />
|
||||
<ClInclude Include="..\Public\Duelist_JapSide.h" />
|
||||
<ClInclude Include="..\Public\Duelist_ProtegoHit.h" />
|
||||
<ClInclude Include="..\Public\Goblin_ProtegoHit.h" />
|
||||
<ClInclude Include="..\Public\Protego_Hit.h" />
|
||||
<ClInclude Include="..\Public\RandomNpc.h" />
|
||||
<ClInclude Include="..\Public\Ranrok_ENUM.h" />
|
||||
<ClInclude Include="..\Public\Ranrok_Breath.h" />
|
||||
<ClInclude Include="..\Public\Ranrok_Charge.h" />
|
||||
<ClInclude Include="..\Public\Ranrok_DeadImpact.h" />
|
||||
@@ -223,6 +227,7 @@ call Update_Resources.bat
|
||||
<ClInclude Include="..\Public\Ride_InfoBG.h" />
|
||||
<ClInclude Include="..\Public\Ride_Info_Key.h" />
|
||||
<ClInclude Include="..\Public\Ride_Panel.h" />
|
||||
<ClInclude Include="..\Public\State_Block.h" />
|
||||
<ClInclude Include="..\Public\State_CutScene.h" />
|
||||
<ClInclude Include="..\Public\State_Dash.h" />
|
||||
<ClInclude Include="..\Public\State_Fall.h" />
|
||||
@@ -323,6 +328,7 @@ call Update_Resources.bat
|
||||
<ClInclude Include="..\Public\State_Broom_Ride_Move.h" />
|
||||
<ClInclude Include="..\public\MiniMap_Camera.h" />
|
||||
<ClInclude Include="..\Public\Goblin_Teleport.h" />
|
||||
<ClInclude Include="..\Public\TriggerBox.h" />
|
||||
<ClInclude Include="..\Public\Troll_State_Stun.h" />
|
||||
<ClInclude Include="..\Public\State_Sustain.h" />
|
||||
<ClInclude Include="..\Public\WandEnd.h" />
|
||||
@@ -489,6 +495,9 @@ call Update_Resources.bat
|
||||
<ClCompile Include="..\private\InstancedProp_Light.cpp" />
|
||||
<ClCompile Include="..\Private\Duelist_JapSide.cpp" />
|
||||
<ClCompile Include="..\Private\PlayerRobe_Initialize.cpp" />
|
||||
<ClCompile Include="..\Private\Duelist_ProtegoHit.cpp" />
|
||||
<ClCompile Include="..\Private\Goblin_ProtegoHit.cpp" />
|
||||
<ClCompile Include="..\Private\Protego_Hit.cpp" />
|
||||
<ClCompile Include="..\Private\RandomNpc.cpp" />
|
||||
<ClCompile Include="..\Private\Ranrok_Breath.cpp" />
|
||||
<ClCompile Include="..\Private\Ranrok_Charge.cpp" />
|
||||
@@ -520,6 +529,7 @@ call Update_Resources.bat
|
||||
<ClCompile Include="..\Private\Ride_InfoBG.cpp" />
|
||||
<ClCompile Include="..\Private\Ride_Info_Key.cpp" />
|
||||
<ClCompile Include="..\Private\Ride_Panel.cpp" />
|
||||
<ClCompile Include="..\Private\State_Block.cpp" />
|
||||
<ClCompile Include="..\Private\State_CutScene.cpp" />
|
||||
<ClCompile Include="..\Private\State_Dash.cpp" />
|
||||
<ClCompile Include="..\Private\State_Fall.cpp" />
|
||||
@@ -625,6 +635,7 @@ call Update_Resources.bat
|
||||
<ClCompile Include="..\Private\State_Tucked.cpp" />
|
||||
<ClCompile Include="..\Private\StunEffect.cpp" />
|
||||
<ClCompile Include="..\Private\Goblin_Teleport.cpp" />
|
||||
<ClCompile Include="..\Private\TriggerBox.cpp" />
|
||||
<ClCompile Include="..\Private\Troll_State_Stun.cpp" />
|
||||
<ClCompile Include="..\Private\WandEnd.cpp" />
|
||||
<ClCompile Include="..\Private\Magic_Icon.cpp" />
|
||||
|
||||
@@ -905,6 +905,25 @@
|
||||
<ClInclude Include="..\Public\Duelist_JapSide.h">
|
||||
<Filter>02.GameObjects\Effect\Effects\NomalJap\Duelist_JapSide</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Protego_Hit.h">
|
||||
<Filter>02.GameObjects\Effect\Effects\Protego\ProtegoHit</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Goblin_ProtegoHit.h">
|
||||
<Filter>02.GameObjects\Effect\MonsterEffect\Goblin_Protego\Goblin_ProtegoHit</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Duelist_ProtegoHit.h">
|
||||
<Filter>02.GameObjects\Effect\MonsterEffect\Duelist_Protego\Duelist_ProtegoHit</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Ranrok_Prop.h">
|
||||
<Filter>02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Prop</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\State_Block.h">
|
||||
<Filter>04.Mechanic\State\State_Combat\State_Block</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Ranrok_ENUM.h">
|
||||
<Filter>02.GameObjects\NPC\Hostile\Monster\Ranrok</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\TriggerBox.h" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Image Include="Client.ico">
|
||||
@@ -1878,6 +1897,18 @@
|
||||
<Filter Include="02.GameObjects\Effect\Effects\NomalJap\Duelist_JapSide">
|
||||
<UniqueIdentifier>{f2ddb6fa-89b6-4322-912e-61e0ce79278c}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Effect\Effects\Protego\ProtegoHit">
|
||||
<UniqueIdentifier>{c63abdad-13ae-43af-812a-25bcd5f7064b}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Effect\MonsterEffect\Goblin_Protego\Goblin_ProtegoHit">
|
||||
<UniqueIdentifier>{696df72a-c0ad-483d-9fb3-b5e053696457}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Effect\MonsterEffect\Duelist_Protego\Duelist_ProtegoHit">
|
||||
<UniqueIdentifier>{75632dfe-2808-4ce3-abc1-8020563d3a6e}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="04.Mechanic\State\State_Combat\State_Block">
|
||||
<UniqueIdentifier>{c0fdb122-503b-47f0-a544-90d153464c9a}</UniqueIdentifier>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="Client.cpp">
|
||||
@@ -2736,6 +2767,19 @@
|
||||
<ClCompile Include="..\Private\Duelist_JapSide.cpp">
|
||||
<Filter>02.GameObjects\Effect\Effects\NomalJap\Duelist_JapSide</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Protego_Hit.cpp">
|
||||
<Filter>02.GameObjects\Effect\Effects\Protego\ProtegoHit</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Goblin_ProtegoHit.cpp">
|
||||
<Filter>02.GameObjects\Effect\MonsterEffect\Goblin_Protego\Goblin_ProtegoHit</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Duelist_ProtegoHit.cpp">
|
||||
<Filter>02.GameObjects\Effect\MonsterEffect\Duelist_Protego\Duelist_ProtegoHit</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\State_Block.cpp">
|
||||
<Filter>04.Mechanic\State\State_Combat\State_Block</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\TriggerBox.cpp" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\Private\Goblin_States.cpp">
|
||||
|
||||
@@ -143,6 +143,9 @@ void CBroom::Update(_float fTimeDelta)
|
||||
|
||||
void CBroom::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (!m_pGameInstance->IsIn_WorldFrustum(m_pTransformCom->Get_State(STATE::POSITION), m_pTransformCom->Get_Radius())) {
|
||||
return;
|
||||
}
|
||||
__super::Late_Update(fTimeDelta);
|
||||
|
||||
if (m_bRide == true && m_pWindEffect != nullptr)
|
||||
|
||||
@@ -53,6 +53,24 @@ void CBroomRaceManager::Priority_Update(_float fTimeDelta)
|
||||
break;
|
||||
case ENUM_CLASS(RACE_STATE::FINISH):
|
||||
break;
|
||||
case ENUM_CLASS(RACE_STATE::END):
|
||||
{
|
||||
for (auto& racer : m_Racers)
|
||||
{
|
||||
if (racer.pAI)
|
||||
{
|
||||
racer.pAI->Get_Broom()->Get_Component<CTransform>()->Set_State(STATE::POSITION, XMVectorSet(0.f, -500.f, 0.f, 1.f));
|
||||
}
|
||||
if (racer.pRacer)
|
||||
{
|
||||
if (m_pGameInstance->Key_Up(DIK_ESCAPE))
|
||||
{
|
||||
m_bRaceEnd = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -61,70 +79,6 @@ void CBroomRaceManager::Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Update(fTimeDelta);
|
||||
|
||||
/*if (m_pGameInstance->Key_Up(DIK_PGUP))
|
||||
{
|
||||
m_eRaceState = ENUM_CLASS(RACE_STATE::READY);
|
||||
const _float SPAWN_DISTANCE = 80.f;
|
||||
|
||||
if (FAILED(Load_RaceRing()))
|
||||
{
|
||||
MSG_BOX("Failed Load RaceRing");
|
||||
}
|
||||
CBroomRacerAI::RacerDesc Desc = {};
|
||||
for (_uint i = 1; i < 4; i++)
|
||||
{
|
||||
Desc.pRacerManager = this;
|
||||
Desc.iIndex = i;
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CBroomRacerAI>(g_iStaticLevel, NEXT_LEVEL, LAYER_RACERAI, &Desc)))
|
||||
return;
|
||||
}
|
||||
m_pGameInstance->Get_Layer(NEXT_LEVEL, LAYER_PLAYER)->Get_Object<CPlayer>()->Set_RaceInfo();
|
||||
|
||||
for (auto& racer : m_Racers)
|
||||
{
|
||||
CTransform* pRingTransform =
|
||||
m_pRaceRings[0]->Get_Component<CTransform>();
|
||||
|
||||
_vector ringPos = pRingTransform->Get_State(STATE::POSITION);
|
||||
_vector ringLook = pRingTransform->Get_State(STATE::RIGHT);
|
||||
ringLook = XMVector3Normalize(ringLook);
|
||||
|
||||
_vector spawnPos = ringPos - ringLook * SPAWN_DISTANCE;
|
||||
|
||||
if (racer.pAI)
|
||||
{
|
||||
CTransform* pTransform =
|
||||
racer.pAI->Get_Component<CTransform>();
|
||||
_float fRand = m_pGameInstance->Real_Random_Float(-10.f, 10.f);
|
||||
spawnPos.m128_f32[2] += fRand;
|
||||
|
||||
pTransform->Set_State(STATE::POSITION, spawnPos);
|
||||
pTransform->LookAt(pRingTransform->Get_State(STATE::POSITION));
|
||||
|
||||
racer.pAI->Get_Broom()->Set_Move(false);
|
||||
}
|
||||
else if (racer.pRacer)
|
||||
{
|
||||
CTransform* pTransform =
|
||||
racer.pRacer->Get_Component<CTransform>();
|
||||
pTransform->Set_State(STATE::POSITION, spawnPos);
|
||||
pTransform->LookAt(pRingTransform->Get_State(STATE::POSITION));
|
||||
racer.pRacer->Get_Component<CFSM>()->Change_State(FSMSTATE::BROOM_RIDE);
|
||||
racer.pRacer->Get_Broom()->Set_Move(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (m_pGameInstance->Key_Up(DIK_PGDN))
|
||||
{
|
||||
if (m_eRaceState == ENUM_CLASS(RACE_STATE::READY))
|
||||
{
|
||||
m_pInfoInstance->Event_CallBack(TEXT("Ready_Race"));
|
||||
m_eRaceState = ENUM_CLASS(RACE_STATE::COUNTDOWN);
|
||||
}
|
||||
}*/
|
||||
|
||||
|
||||
if (m_bRaceReady == true)
|
||||
{
|
||||
m_fRedayTime += fTimeDelta;
|
||||
@@ -153,10 +107,33 @@ void CBroomRaceManager::Update(_float fTimeDelta)
|
||||
m_pInfoInstance->Event_CallBack(TEXT("RaceEnd"));
|
||||
m_iCount = 3;
|
||||
m_bRaceStart = false;
|
||||
m_eRaceState = ENUM_CLASS(RACE_STATE::END);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (m_bRaceEnd) {
|
||||
m_fDelay += fTimeDelta;
|
||||
for (auto& racer : m_Racers) {
|
||||
if (racer.pRacer) {
|
||||
if (m_fDelay >= 1.f) {
|
||||
racer.pRacer->Get_Broom()->Set_Ride(false);
|
||||
|
||||
racer.pRacer->Get_Component<CFSM>()->Change_State(FSMSTATE::IDLE);
|
||||
|
||||
CTransform* pTransform = racer.pRacer->Get_Component<CTransform>();
|
||||
CCharacter_Controller* pCharacter = racer.pRacer->Get_Component<CCharacter_Controller>();
|
||||
pCharacter->Set_Position(XMLoadFloat4(&m_OriginPos));
|
||||
pTransform->Set_State(STATE::POSITION, XMLoadFloat4(&m_OriginPos));
|
||||
m_bRaceEnd = false;
|
||||
m_fDelay = 0.f;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
#ifdef _DEBUG
|
||||
//Describe_Entity();
|
||||
#endif // _DEBUG
|
||||
@@ -236,6 +213,7 @@ void CBroomRaceManager::Free()
|
||||
|
||||
void CBroomRaceManager::Describe_Entity()
|
||||
{
|
||||
|
||||
//if (GUI::Button("Race Start"))
|
||||
//{
|
||||
m_eRaceState = ENUM_CLASS(RACE_STATE::READY);
|
||||
@@ -260,50 +238,67 @@ void CBroomRaceManager::Describe_Entity()
|
||||
CTransform* pRingTransform =
|
||||
m_pRaceRings[0]->Get_Component<CTransform>();
|
||||
|
||||
_vector ringPos = pRingTransform->Get_State(STATE::POSITION);
|
||||
_vector ringLook = pRingTransform->Get_State(STATE::RIGHT);
|
||||
ringLook = XMVector3Normalize(ringLook);
|
||||
//_vector ringPos = pRingTransform->Get_State(STATE::POSITION);
|
||||
//_vector ringLook = pRingTransform->Get_State(STATE::RIGHT);
|
||||
//ringLook = XMVector3Normalize(ringLook);
|
||||
|
||||
_vector spawnPos = ringPos - ringLook * SPAWN_DISTANCE;
|
||||
//_vector spawnPos = ringPos - ringLook * SPAWN_DISTANCE;
|
||||
|
||||
|
||||
if (racer.pAI)
|
||||
{
|
||||
CTransform* pTransform =
|
||||
racer.pAI->Get_Component<CTransform>();
|
||||
_float fRand = m_pGameInstance->Real_Random_Float(-10.f, 10.f);
|
||||
spawnPos.m128_f32[0] += fRand;
|
||||
//if (racer.pAI)
|
||||
//{
|
||||
// CTransform* pTransform =
|
||||
// racer.pAI->Get_Component<CTransform>();
|
||||
// _float fRand = m_pGameInstance->Real_Random_Float(-10.f, 10.f);
|
||||
// spawnPos.m128_f32[0] += fRand;
|
||||
|
||||
pTransform->Set_State(STATE::POSITION, spawnPos);
|
||||
pTransform->LookAt(pRingTransform->Get_State(STATE::POSITION));
|
||||
// pTransform->Set_State(STATE::POSITION, spawnPos);
|
||||
// pTransform->LookAt(pRingTransform->Get_State(STATE::POSITION));
|
||||
|
||||
racer.pAI->Get_Broom()->Set_Move(false);
|
||||
}
|
||||
else if (racer.pRacer)
|
||||
{
|
||||
CCharacter_Controller* pCharacter = racer.pRacer->Get_Component<CCharacter_Controller>();
|
||||
pCharacter->Set_Position(spawnPos);
|
||||
CTransform* pTransform = racer.pRacer->Get_Component<CTransform>();
|
||||
// racer.pAI->Get_Broom()->Set_Move(false);
|
||||
//}
|
||||
//else if (racer.pRacer)
|
||||
//{
|
||||
// CCharacter_Controller* pCharacter = racer.pRacer->Get_Component<CCharacter_Controller>();
|
||||
// pCharacter->Set_Position(spawnPos);
|
||||
// CTransform* pTransform = racer.pRacer->Get_Component<CTransform>();
|
||||
|
||||
// pTransform->Set_State(STATE::POSITION, spawnPos);
|
||||
pTransform->LookAt(pRingTransform->Get_State(STATE::POSITION));
|
||||
racer.pRacer->Get_Component<CFSM>()->Change_State(FSMSTATE::BROOM_RIDE);
|
||||
racer.pRacer->Get_Broom()->Set_Move(false);
|
||||
}
|
||||
// // pTransform->Set_State(STATE::POSITION, spawnPos);
|
||||
// pTransform->LookAt(pRingTransform->Get_State(STATE::POSITION));
|
||||
// racer.pRacer->Get_Component<CFSM>()->Change_State(FSMSTATE::BROOM_RIDE);
|
||||
// racer.pRacer->Get_Broom()->Set_Move(false);
|
||||
//}
|
||||
|
||||
else if (racer.pRacer)
|
||||
{
|
||||
CTransform* pTransform =
|
||||
racer.pRacer->Get_Component<CTransform>();
|
||||
CCharacter_Controller* pCharacter = racer.pRacer->Get_Component<CCharacter_Controller>();
|
||||
pCharacter->Set_Position(spawnPos);
|
||||
pTransform->LookAt(pRingTransform->Get_State(STATE::POSITION));
|
||||
racer.pRacer->Get_Component<CFSM>()->Change_State(FSMSTATE::BROOM_RIDE);
|
||||
racer.pRacer->Get_Broom()->Set_Move(false);
|
||||
}
|
||||
//else if (racer.pRacer)
|
||||
//{
|
||||
// CTransform* pTransform =
|
||||
// racer.pRacer->Get_Component<CTransform>();
|
||||
// CCharacter_Controller* pCharacter = racer.pRacer->Get_Component<CCharacter_Controller>();
|
||||
// pCharacter->Set_Position(spawnPos);
|
||||
// pTransform->LookAt(pRingTransform->Get_State(STATE::POSITION));
|
||||
// racer.pRacer->Get_Component<CFSM>()->Change_State(FSMSTATE::BROOM_RIDE);
|
||||
// racer.pRacer->Get_Broom()->Set_Move(false);
|
||||
//}
|
||||
////if (GUI::Button("Race Start"))
|
||||
////{
|
||||
//m_eRaceState = ENUM_CLASS(RACE_STATE::READY);
|
||||
//const _float SPAWN_DISTANCE = 80.f;
|
||||
|
||||
//if (FAILED(Load_RaceRing()))
|
||||
//{
|
||||
// MSG_BOX("Failed Load RaceRing");
|
||||
//}
|
||||
//CBroomRacerAI::RacerDesc Desc = {};
|
||||
//for (_uint i = 1; i < 4; i++)
|
||||
//{
|
||||
// Desc.pRacerManager = this;
|
||||
// Desc.iIndex = i;
|
||||
// if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CBroomRacerAI>(g_iStaticLevel, NEXT_LEVEL, LAYER_RACERAI, &Desc)))
|
||||
// return;
|
||||
//}
|
||||
//m_pGameInstance->Get_Layer(NEXT_LEVEL, LAYER_PLAYER)->Get_Object<CPlayer>()->Set_RaceInfo();
|
||||
|
||||
m_bRaceReady = true;
|
||||
//m_bRaceReady = true;
|
||||
//}
|
||||
//if (m_eRaceState == ENUM_CLASS(RACE_STATE::READY))
|
||||
//{
|
||||
@@ -314,6 +309,65 @@ void CBroomRaceManager::Describe_Entity()
|
||||
// //}
|
||||
//}
|
||||
}
|
||||
//for (auto& racer : m_Racers)
|
||||
//{
|
||||
// CTransform* pRingTransform =
|
||||
// m_pRaceRings[0]->Get_Component<CTransform>();
|
||||
|
||||
// _vector ringPos = pRingTransform->Get_State(STATE::POSITION);
|
||||
// _vector ringLook = pRingTransform->Get_State(STATE::RIGHT);
|
||||
// ringLook = XMVector3Normalize(ringLook);
|
||||
|
||||
// _vector spawnPos = ringPos - ringLook * SPAWN_DISTANCE;
|
||||
|
||||
|
||||
// if (racer.pAI)
|
||||
// {
|
||||
// CTransform* pTransform =
|
||||
// racer.pAI->Get_Component<CTransform>();
|
||||
// _float fRand = m_pGameInstance->Real_Random_Float(-10.f, 10.f);
|
||||
// spawnPos.m128_f32[0] += fRand;
|
||||
|
||||
// pTransform->Set_State(STATE::POSITION, spawnPos);
|
||||
// pTransform->LookAt(pRingTransform->Get_State(STATE::POSITION));
|
||||
|
||||
// racer.pAI->Get_Broom()->Set_Move(false);
|
||||
// }
|
||||
// else if (racer.pRacer)
|
||||
// {
|
||||
// CCharacter_Controller* pCharacter = racer.pRacer->Get_Component<CCharacter_Controller>();
|
||||
// pCharacter->Set_Position(spawnPos);
|
||||
// CTransform* pTransform = racer.pRacer->Get_Component<CTransform>();
|
||||
|
||||
// // pTransform->Set_State(STATE::POSITION, spawnPos);
|
||||
// pTransform->LookAt(pRingTransform->Get_State(STATE::POSITION));
|
||||
// racer.pRacer->Get_Component<CFSM>()->Change_State(FSMSTATE::BROOM_RIDE);
|
||||
// racer.pRacer->Get_Broom()->Set_Move(false);
|
||||
// }
|
||||
|
||||
// else if (racer.pRacer)
|
||||
// {
|
||||
// CTransform* pTransform =
|
||||
// racer.pRacer->Get_Component<CTransform>();
|
||||
// CCharacter_Controller* pCharacter = racer.pRacer->Get_Component<CCharacter_Controller>();
|
||||
// pCharacter->Set_Position(spawnPos);
|
||||
// pTransform->LookAt(pRingTransform->Get_State(STATE::POSITION));
|
||||
// racer.pRacer->Get_Component<CFSM>()->Change_State(FSMSTATE::BROOM_RIDE);
|
||||
// racer.pRacer->Get_Broom()->Set_Move(false);
|
||||
// }
|
||||
|
||||
|
||||
// m_bRaceReady = true;
|
||||
// //}
|
||||
// //if (m_eRaceState == ENUM_CLASS(RACE_STATE::READY))
|
||||
// //{
|
||||
// // /*if (GUI::Button("Countdown"))
|
||||
// // {*/
|
||||
// // m_pInfoInstance->Event_CallBack(TEXT("Ready_Race"));
|
||||
// // m_eRaceState = ENUM_CLASS(RACE_STATE::COUNTDOWN);
|
||||
// // //}
|
||||
// //}
|
||||
//}
|
||||
}
|
||||
|
||||
#endif // _DEBUG
|
||||
@@ -482,15 +536,16 @@ void CBroomRaceManager::RaceReady()
|
||||
}
|
||||
else if (racer.pRacer)
|
||||
{
|
||||
/*CTransform* pTransform =
|
||||
racer.pRacer->Get_Component<CTransform>();*/
|
||||
CTransform* pTransform =
|
||||
racer.pRacer->Get_Broom()->Get_Component<CTransform>();
|
||||
racer.pRacer->Get_Component<CTransform>();
|
||||
CCharacter_Controller* pCharacter = racer.pRacer->Get_Component<CCharacter_Controller>();
|
||||
XMStoreFloat4(&m_OriginPos, racer.pRacer->Get_WorldPostion());
|
||||
pCharacter->Set_Position(spawnPos);
|
||||
pTransform->Set_State(STATE::POSITION, spawnPos);
|
||||
pTransform->LookAt(pRingTransform->Get_State(STATE::POSITION));
|
||||
racer.pRacer->Get_Component<CFSM>()->Change_State(FSMSTATE::BROOM_RIDE);
|
||||
racer.pRacer->Get_Broom()->Set_Move(false);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -138,7 +138,9 @@ void CBroomRacerAI::Update(_float fTimeDelta)
|
||||
|
||||
void CBroomRacerAI::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
|
||||
if (!m_pGameInstance->IsIn_WorldFrustum(m_pTransformCom->Get_State(STATE::POSITION), m_pTransformCom->Get_Radius())) {
|
||||
return;
|
||||
}
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
|
||||
Set_Shadow(m_pGameInstance->IsIn_ShadowViewFrustum(m_pTransformCom->Get_State(STATE::POSITION), m_pTransformCom->Get_Radius()));
|
||||
|
||||
|
||||
@@ -198,7 +198,7 @@ HRESULT CBroom_Exit::Ready_Components(void* pArg)
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_Keyboard_Space"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom1), nullptr)))
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_Keyboard_Esc"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom1), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -51,9 +51,14 @@ void CBroom_TargetGate::Update(_float fTimeDelta)
|
||||
|
||||
m_fSize = _float3(45.f, 45.f, 1.f);
|
||||
m_vPlayerPos = m_pInfoInstance->Get_PalyerPos();
|
||||
|
||||
if (m_vActive == true)
|
||||
{
|
||||
m_Distance = to_wstring(_int(floor(XMVectorGetX(XMVector3Length(XMVectorSubtract(XMLoadFloat4(&m_vTargetPos), XMLoadFloat4(&m_vPlayerPos)))))));
|
||||
_vector Target = XMLoadFloat4(&m_vTargetPos);
|
||||
_vector PlayerPos = XMLoadFloat4(&m_vPlayerPos);
|
||||
_vector Dir = XMVectorSubtract(Target, PlayerPos);
|
||||
_float Dist = XMVectorGetX(XMVector3Length(Dir));
|
||||
m_Distance = to_wstring(_int(Dist));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -424,7 +424,7 @@ HRESULT CCamPosition_Shoulder::Ready_SubParts()
|
||||
CameraDesc.bEnableTransitionLerp = true;
|
||||
CameraDesc.bEnableFollowLerp = false;
|
||||
CameraDesc.bEnableLookLerp = false;
|
||||
CameraDesc.vTransitionTime = { 0.f, 1.f };
|
||||
CameraDesc.vTransitionTime = { 0.f, 3.f };
|
||||
CameraDesc.vFollowLerpTime = { 0.f, TIMER_SHORT_LERP };
|
||||
CameraDesc.vLookLerpTime = { 0.f, TIMER_SHORT_LERP };
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#include "pch.h"
|
||||
|
||||
#include "CamPosition_Target.h"
|
||||
#include "Unit.h"
|
||||
|
||||
CCamPosition_Target::CCamPosition_Target(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
:CCamPosition(pDevice, pContext)
|
||||
@@ -13,6 +14,14 @@ CCamPosition_Target::CCamPosition_Target(const CCamPosition_Target& rhs)
|
||||
|
||||
void CCamPosition_Target::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
if (nullptr != m_pStalkingTarget) {
|
||||
if (nullptr != m_pTargetSocketMatrix) {
|
||||
Set_WorldPostion(XMMatrixMultiply(XMLoadFloat4x4(m_pTargetSocketMatrix), m_pStalkingTarget->Get_Component<CTransform>()->Get_XMWorldMatrix()).r[3]);
|
||||
}
|
||||
else {
|
||||
Set_WorldPostion(m_pStalkingTarget->Get_WorldPostion());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void CCamPosition_Target::Update(_float fTimeDelta)
|
||||
@@ -28,6 +37,29 @@ _vector CCamPosition_Target::Get_WorldPostion()
|
||||
return m_pTransformCom->Get_State(STATE::POSITION);
|
||||
}
|
||||
|
||||
void CCamPosition_Target::Set_WorldPostion(_vector vPos)
|
||||
{
|
||||
m_pTransformCom->Set_State(STATE::POSITION, vPos);
|
||||
}
|
||||
|
||||
_bool CCamPosition_Target::IsStalking()
|
||||
{
|
||||
return nullptr == m_pStalkingTarget;
|
||||
}
|
||||
|
||||
void CCamPosition_Target::Stalking_Target(CUnit* pStalkingTarget, const _float4x4* pTargetSocketMatrix)
|
||||
{
|
||||
SAFE_RELEASE(m_pStalkingTarget);
|
||||
m_pStalkingTarget = pStalkingTarget;
|
||||
m_pTargetSocketMatrix = pTargetSocketMatrix;
|
||||
SAFE_ADDREF(m_pStalkingTarget);
|
||||
}
|
||||
|
||||
void CCamPosition_Target::Stop_Stalking()
|
||||
{
|
||||
SAFE_RELEASE(m_pStalkingTarget);
|
||||
}
|
||||
|
||||
HRESULT CCamPosition_Target::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
@@ -88,6 +120,7 @@ CCamPosition_Target* CCamPosition_Target::Clone(void* pArg, class CGameObject* p
|
||||
void CCamPosition_Target::Free()
|
||||
{
|
||||
__super::Free();
|
||||
SAFE_RELEASE(m_pStalkingTarget);
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
|
||||
|
||||
@@ -2,19 +2,13 @@
|
||||
#include "Camera_Cinematic.h"
|
||||
#include "InfoInstance.h"
|
||||
#include "TimeSocket.h"
|
||||
#include "CamPosition_Target.h"
|
||||
#include "Layer.h"
|
||||
#include "Unit.h"
|
||||
|
||||
|
||||
CCamera_Cinematic::CCamera_Cinematic(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CCamera(pDevice, pContext)
|
||||
{
|
||||
}
|
||||
|
||||
CCamera_Cinematic::CCamera_Cinematic(const CCamera_Cinematic& rhs)
|
||||
: CCamera(rhs),
|
||||
m_pInfoInstance(CInfoInstance::GetInstance())
|
||||
{
|
||||
}
|
||||
CCamera_Cinematic::CCamera_Cinematic(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) : CCamera(pDevice, pContext) {}
|
||||
CCamera_Cinematic::CCamera_Cinematic(const CCamera_Cinematic& rhs) : CCamera(rhs), m_pInfoInstance(CInfoInstance::GetInstance()) { }
|
||||
|
||||
void CCamera_Cinematic::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
@@ -29,7 +23,17 @@ void CCamera_Cinematic::Priority_Update(_float fTimeDelta)
|
||||
if (false == m_bActive) {
|
||||
return;
|
||||
}
|
||||
if (false == m_bIsCurrentTransition) {
|
||||
m_pLookTargetPart->Priority_Update(fTimeDelta);
|
||||
m_pFollowTargetPart->Priority_Update(fTimeDelta);
|
||||
m_pTransformCom->Set_State(STATE::POSITION, m_pFollowTargetPart->Get_WorldPostion());
|
||||
m_pTransformCom->LookAt(m_pLookTargetPart->Get_WorldPostion());
|
||||
}
|
||||
else {
|
||||
Transition(fTimeDelta);
|
||||
}
|
||||
m_bActive = true;
|
||||
Update_LerpTimer(fTimeDelta);
|
||||
__super::Bind_Matrices();
|
||||
}
|
||||
|
||||
@@ -41,9 +45,6 @@ void CCamera_Cinematic::Update(_float fTimeDelta)
|
||||
if (false == m_bActive) {
|
||||
return;
|
||||
}
|
||||
Transition(fTimeDelta);
|
||||
Update_LerpTimer(fTimeDelta);
|
||||
|
||||
}
|
||||
void CCamera_Cinematic::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
@@ -51,9 +52,20 @@ void CCamera_Cinematic::Late_Update(_float fTimeDelta)
|
||||
return;
|
||||
}
|
||||
}
|
||||
HRESULT CCamera_Cinematic::Render()
|
||||
HRESULT CCamera_Cinematic::Render() { return S_OK; }
|
||||
void CCamera_Cinematic::Active_Camera(pair<_float4, _float3>& pairTransitionInfo)
|
||||
{
|
||||
return S_OK;
|
||||
if (true == m_bEnable_TransitionLerp) {
|
||||
_vector vNewPos = XMVectorSetW(XMLoadFloat3(&pairTransitionInfo.second), 1.f);
|
||||
m_pTransformCom->Set_WorldMatrix(XMMatrixAffineTransformation(XMVectorSplatOne(), XMVectorZero(),
|
||||
XMLoadFloat4(&pairTransitionInfo.first), vNewPos));
|
||||
m_vTransitionTime.x = 0.f;
|
||||
m_bIsCurrentTransition = true;
|
||||
|
||||
m_pFollowTargetPart->Set_WorldPostion(vNewPos);
|
||||
m_pLookTargetPart->Set_WorldPostion(vNewPos + m_pTransformCom->Get_State(STATE::LOOK) * 10.f);
|
||||
}
|
||||
m_bActive = true;
|
||||
}
|
||||
|
||||
void CCamera_Cinematic::Update_LerpTimer(_float fTimeDelta)
|
||||
@@ -62,25 +74,8 @@ void CCamera_Cinematic::Update_LerpTimer(_float fTimeDelta)
|
||||
return;
|
||||
}
|
||||
Lerp_Translation(fTimeDelta);
|
||||
Lerp_Rotation(fTimeDelta);
|
||||
Lerp_FovY(fTimeDelta);
|
||||
if (true == m_bEnable_LookLerp) {
|
||||
m_vLookLerpTime.x += fTimeDelta;
|
||||
if (m_vLookLerpTime.y <= m_vLookLerpTime.x) {
|
||||
m_vLookLerpTime.x = 0.f;
|
||||
XMStoreFloat3(&m_vLookPos_Src, XMLoadFloat3(&m_vLookPos_Dest));
|
||||
XMStoreFloat3(&m_vLookPos_Dest, m_pLookTarget->Get_WorldPostion());
|
||||
}
|
||||
}
|
||||
|
||||
if (true == m_bEnable_FollowLerp) {
|
||||
m_vFollowLerpTime.x += fTimeDelta;
|
||||
if (m_vFollowLerpTime.y <= m_vFollowLerpTime.x) {
|
||||
m_vFollowLerpTime.x = 0.f;
|
||||
XMStoreFloat3(&m_vFollowPos_Src, m_pTransformCom->Get_State(STATE::POSITION));
|
||||
XMStoreFloat3(&m_vFollowPos_Dest, m_pFollowTarget->Get_WorldPostion());
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void CCamera_Cinematic::Set_Priority(_uint iPriority)
|
||||
@@ -88,18 +83,14 @@ void CCamera_Cinematic::Set_Priority(_uint iPriority)
|
||||
m_iPriority = iPriority;
|
||||
}
|
||||
|
||||
void CCamera_Cinematic::Set_LookTarget(CGameObject* pTarget)
|
||||
void CCamera_Cinematic::Set_LookTarget(CUnit* pTarget, const _float4x4* pTargetSocketMatrix)
|
||||
{
|
||||
SAFE_RELEASE(m_pLookTarget);
|
||||
m_pLookTarget = pTarget;
|
||||
SAFE_ADDREF(m_pLookTarget);
|
||||
m_pLookTargetPart->Stalking_Target(pTarget, pTargetSocketMatrix);
|
||||
}
|
||||
|
||||
void CCamera_Cinematic::Set_FollowTarget(CGameObject* pTarget)
|
||||
void CCamera_Cinematic::Set_FollowTarget(CUnit* pTarget, const _float4x4* pTargetSocketMatrix)
|
||||
{
|
||||
SAFE_RELEASE(m_pFollowTarget);
|
||||
m_pFollowTarget = pTarget;
|
||||
SAFE_ADDREF(m_pFollowTarget);
|
||||
m_pFollowTargetPart->Stalking_Target(pTarget, pTargetSocketMatrix);
|
||||
}
|
||||
|
||||
void CCamera_Cinematic::Trigger(CTimeSocket& Socket)
|
||||
@@ -111,22 +102,34 @@ void CCamera_Cinematic::Trigger(CTimeSocket& Socket)
|
||||
m_pGameInstance->Bind_Camera(NEXT_LEVEL, pContents->wstrKeyName, true);
|
||||
break;
|
||||
case TIMESOCKET_FUNC::TRANSLATION:
|
||||
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3((_float3*)&pContents->pxTransform.p), 1.f));
|
||||
m_pTransformCom->RotationQ(pContents->pxTransform.q);
|
||||
{
|
||||
m_pFollowTargetPart->Set_WorldPostion(XMVectorSetW(XMLoadFloat3((_float3*)&pContents->pxTransform.p), 1.f));
|
||||
Clear_Lerp_Translation();
|
||||
break;
|
||||
} break;
|
||||
case TIMESOCKET_FUNC::TRANSLATION_LERP:
|
||||
{
|
||||
Clear_Lerp_Translation();
|
||||
Start_Lerp_Translation(pContents->vParam_11.x, pContents->pxTransform);
|
||||
} break;
|
||||
case TIMESOCKET_FUNC::ROTATION: {
|
||||
Rotation(XMLoadFloat4((_float4*)&pContents->pxTransform.q));
|
||||
Clear_Lerp_Rotation();
|
||||
} break;
|
||||
case TIMESOCKET_FUNC::ROTATION_LERP:
|
||||
{
|
||||
Clear_Lerp_Rotation();
|
||||
Start_Lerp_Rotation(pContents->vParam_11.x, pContents->pxTransform);
|
||||
} break;
|
||||
case TIMESOCKET_FUNC::LOOK_AT:
|
||||
{
|
||||
Set_LookTarget(pContents->pOtherTarget);
|
||||
CUnit* pUnit = (CUnit*)pContents->pOtherTarget;
|
||||
Set_LookTarget(pUnit, pUnit->Get_SocketMatrixPtr(pContents->vParam_12.c_str()));
|
||||
//Set_LookTarget(pUnit, nullptr);
|
||||
}break;
|
||||
case TIMESOCKET_FUNC::DONT_LOOK_AT:
|
||||
{
|
||||
Set_LookTarget(pContents->pOtherTarget);
|
||||
CUnit* pUnit = (CUnit*)pContents->pOtherTarget;
|
||||
Set_FollowTarget(pUnit, pUnit->Get_SocketMatrixPtr(pContents->vParam_12.c_str()));
|
||||
}break;
|
||||
case TIMESOCKET_FUNC::ZOOM_IN:
|
||||
{
|
||||
@@ -165,6 +168,10 @@ HRESULT CCamera_Cinematic::Initialize(void* pArg)
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(Ready_SubPart())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
HRESULT CCamera_Cinematic::Ready_Components(void* pArg)
|
||||
@@ -175,6 +182,20 @@ HRESULT CCamera_Cinematic::Ready_Components(void* pArg)
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CCamera_Cinematic::Ready_SubPart()
|
||||
{
|
||||
{
|
||||
CCamPosition_Target::CAMERAPOSITION_TARGET_DESC Desc{};
|
||||
Desc.pParentTransform = m_pTransformCom;
|
||||
m_pFollowTarget = m_pFollowTargetPart = m_pGameInstance->Clone_Prototype< CCamPosition_Target>(g_iStaticLevel, &Desc);
|
||||
m_pFollowTargetPart->Get_Component<CTransform>()->Set_State(STATE::POSITION, XMVectorSet(-34.f, 5, -10.4f, 1.f));
|
||||
m_pLookTarget = m_pLookTargetPart = m_pGameInstance->Clone_Prototype< CCamPosition_Target>(g_iStaticLevel, &Desc);
|
||||
m_pLookTargetPart->Get_Component<CTransform>()->Set_State(STATE::POSITION, XMVectorSet(-34.f, 5, -11.4f, 1.f));
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CCamera_Cinematic::Bind_ShaderResources()
|
||||
{
|
||||
return S_OK;
|
||||
@@ -187,25 +208,22 @@ void CCamera_Cinematic::Lerp_Translation(_float fTimeDelta)
|
||||
m_vLerpTranslationTimer.x = m_vLerpTranslationTimer.y;
|
||||
m_bLerpTranslation = false;
|
||||
}
|
||||
_float4x4 ResultMatrix = {};
|
||||
CMyTools::MatrixLerp(&m_vLerpTranslationStart, &m_vLerpTranslationEnd, &m_vLerpRotQStart, &m_vLerpRotQEnd,
|
||||
ResultMatrix, m_vLerpTranslationTimer.x / m_vLerpTranslationTimer.y);
|
||||
m_pTransformCom->Set_WorldMatrix(ResultMatrix);
|
||||
|
||||
_vector vPos = XMVectorSetW(XMVectorLerp(XMLoadFloat3(&m_vLerpTranslationStart), XMLoadFloat3(&m_vLerpTranslationEnd), m_vLerpTranslationTimer.x / m_vLerpTranslationTimer.y), 1.f);
|
||||
m_pFollowTargetPart->Set_WorldPostion(vPos);
|
||||
}
|
||||
}
|
||||
void CCamera_Cinematic::Start_Lerp_Translation(_float fTimeMaximum, PSX::PxTransform pxTransform)
|
||||
{
|
||||
_float3 vTrans = { pxTransform.p.x , pxTransform.p.y, pxTransform.p.z };
|
||||
_float4 vRotQ = { pxTransform.q.x, pxTransform.q.y, pxTransform.q.z, pxTransform.q.w };
|
||||
Start_Lerp_Translation(fTimeMaximum, vTrans, vRotQ);
|
||||
Start_Lerp_Translation(fTimeMaximum, vTrans);
|
||||
}
|
||||
void CCamera_Cinematic::Start_Lerp_Translation(_float fTimeMaximum, _float3& vTrans, _float4& vRotQ)
|
||||
void CCamera_Cinematic::Start_Lerp_Translation(_float fTimeMaximum, _float3& vTrans)
|
||||
{
|
||||
m_bLerpTranslation = { fTimeMaximum != 0 };
|
||||
m_vLerpTranslationTimer = { 0.f, fTimeMaximum };
|
||||
m_pTransformCom->Compress_WorldMatrix(m_vLerpTranslationStart, m_vLerpRotQStart);
|
||||
XMStoreFloat3(&m_vLerpTranslationStart, m_pFollowTarget->Get_WorldPostion());
|
||||
m_vLerpTranslationEnd = vTrans;
|
||||
m_vLerpRotQEnd = vRotQ;
|
||||
}
|
||||
void CCamera_Cinematic::Clear_Lerp_Translation()
|
||||
{
|
||||
@@ -213,6 +231,35 @@ void CCamera_Cinematic::Clear_Lerp_Translation()
|
||||
m_vLerpTranslationTimer = {};
|
||||
m_vLerpTranslationStart = {};
|
||||
m_vLerpTranslationEnd = {};
|
||||
}
|
||||
void CCamera_Cinematic::Lerp_Rotation(_float fTimeDelta)
|
||||
{
|
||||
if (true == m_bLerpRotiation) {
|
||||
m_vLerpRotiationTimer.x += fTimeDelta;
|
||||
if (m_vLerpRotiationTimer.y < m_vLerpRotiationTimer.x) {
|
||||
m_vLerpRotiationTimer.x = m_vLerpRotiationTimer.y;
|
||||
m_bLerpRotiation = false;
|
||||
}
|
||||
_vector vRotQ = XMQuaternionNormalize(XMQuaternionSlerp(XMLoadFloat4(&m_vLerpRotQStart), XMLoadFloat4(&m_vLerpRotQEnd), m_vLerpRotiationTimer.x / m_vLerpRotiationTimer.y));
|
||||
Rotation(vRotQ);
|
||||
}
|
||||
}
|
||||
void CCamera_Cinematic::Start_Lerp_Rotation(_float fTimeMaximum, PSX::PxTransform pxTransform)
|
||||
{
|
||||
_float4 vRotQ = { pxTransform.q.x, pxTransform.q.y, pxTransform.q.z, pxTransform.q.w };
|
||||
Start_Lerp_Rotation(fTimeMaximum, vRotQ);
|
||||
}
|
||||
void CCamera_Cinematic::Start_Lerp_Rotation(_float fTimeMaximum, _float4& vRotQ)
|
||||
{
|
||||
m_bLerpRotiation = { fTimeMaximum != 0 };
|
||||
m_vLerpRotiationTimer = { 0.f, fTimeMaximum };
|
||||
XMStoreFloat4(&m_vLerpRotQStart, m_pTransformCom->Get_QuarternionVector());
|
||||
m_vLerpRotQEnd = vRotQ;
|
||||
}
|
||||
void CCamera_Cinematic::Clear_Lerp_Rotation()
|
||||
{
|
||||
m_bLerpRotiation = { false };
|
||||
m_vLerpRotiationTimer = {};
|
||||
m_vLerpRotQStart = {};
|
||||
m_vLerpRotQEnd = {};
|
||||
}
|
||||
@@ -239,6 +286,45 @@ void CCamera_Cinematic::Clear_Lerp_FovY()
|
||||
m_vFovYLerp = { 60.f, 60.f };
|
||||
m_vLerpFovYTimer = { 0.f, 0.f };
|
||||
}
|
||||
void CCamera_Cinematic::Transition(_float fTimeDelta)
|
||||
{
|
||||
if (false == m_bIsCurrentTransition) {
|
||||
return;
|
||||
}
|
||||
m_vTransitionTime.x += fTimeDelta;
|
||||
_float fRatio = m_vTransitionTime.x / m_vTransitionTime.y;
|
||||
if (fRatio > 1.f) {
|
||||
fRatio = 1.f;
|
||||
m_bIsCurrentTransition = false;
|
||||
}
|
||||
|
||||
_vector vFollowTarget = m_pFollowTargetPart->Get_WorldPostion();
|
||||
_vector vLookTarget = m_pLookTargetPart->Get_WorldPostion();
|
||||
|
||||
_matrix xmMatTarget = XMMatrixInverse(nullptr, XMMatrixLookAtLH(vFollowTarget, vLookTarget, XMVectorSet(0.f, 1.f, 0.f, 0.f)));
|
||||
|
||||
_float4x4 matOrigin = *m_pTransformCom->Get_WorldMatrixPtr();
|
||||
_float4x4 matTarget = {}; XMStoreFloat4x4(&matTarget, xmMatTarget);
|
||||
_float4x4 matResult = {};
|
||||
|
||||
CMyTools::MatrixLerp(&matOrigin, &matTarget, matResult, fRatio);
|
||||
|
||||
m_pTransformCom->Set_WorldMatrix(matResult);
|
||||
}
|
||||
void CCamera_Cinematic::Rotation(_fvector vRotQ)
|
||||
{
|
||||
_vector vPos = m_pFollowTargetPart->Get_WorldPostion();
|
||||
_vector vLookPos = m_pLookTargetPart->Get_WorldPostion();
|
||||
_float fDistance = XMVectorGetX(XMVector3Length(vLookPos - vPos));
|
||||
_vector vLookDir = XMVector3Rotate(XMVectorSet(0.f, 0.f, 1.f, 0.f), vRotQ);
|
||||
|
||||
if (true == m_pLookTargetPart->IsStalking()) { // 스토킹 중이면 팔로우가 움직이고 아니면 룩타겟이 움직임
|
||||
m_pFollowTargetPart->Set_WorldPostion(XMVectorSetW(vLookPos - (fDistance * vLookDir), 1.f));
|
||||
}
|
||||
else {
|
||||
m_pLookTargetPart->Set_WorldPostion(XMVectorSetW(vPos + (fDistance * vLookDir), 1.f));
|
||||
}
|
||||
}
|
||||
CCamera_Cinematic* CCamera_Cinematic::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CCamera_Cinematic* pInstance = new CCamera_Cinematic(pDevice, pContext);
|
||||
@@ -265,6 +351,9 @@ CGameObject* CCamera_Cinematic::Clone(void* pArg, CGameObject* pOwner)
|
||||
void CCamera_Cinematic::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pLookTargetPart);
|
||||
SAFE_RELEASE(m_pFollowTargetPart);
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
|
||||
@@ -32,12 +32,12 @@ void CCamera_Gaze::Priority_Update(_float fTimeDelta)
|
||||
_vector vNewLook = XMVectorSetW(XMVectorLerp(XMLoadFloat3(&m_vLookPos_Src), XMLoadFloat3(&m_vLookPos_Dest), CMyTools::Saturate(m_vLookLerpTime.x / fTimeDenom)), 1.f);
|
||||
m_pTransformCom->LookAt(vNewLook);
|
||||
}
|
||||
else if (m_bSyncFollow) {
|
||||
m_pTransformCom->Set_WorldMatrix(m_pFollowTarget->Get_Component<CTransform>()->Get_XMWorldMatrix());
|
||||
}
|
||||
else {
|
||||
m_pTransformCom->LookAt(m_pLookTarget->Get_Component<CTransform>()->Get_State(STATE::POSITION));
|
||||
}
|
||||
if (m_bSyncFollow) {
|
||||
m_pTransformCom->Set_WorldMatrix(m_pFollowTarget->Get_Component<CTransform>()->Get_XMWorldMatrix());
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
||||
|
||||
@@ -6,24 +6,34 @@
|
||||
#include "Layer.h"
|
||||
#include "Player.h"
|
||||
#include "TimeSocket.h"
|
||||
#include "Camera_Cinematic.h"
|
||||
#include "Ranrok.h"
|
||||
|
||||
CCutSceneInfo::CCutSceneInfo()
|
||||
{
|
||||
}
|
||||
void CCutSceneInfo::Update(_float fTimeDelta)
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
Describe_Entity();
|
||||
#endif // _DEBUG
|
||||
|
||||
_float fRatio = 0.f;
|
||||
for (map<_string, TimeLine*>::iterator iter = m_funcActiveEvents.begin(); iter != m_funcActiveEvents.end();) {
|
||||
list<CTimeSocket*>* pSockets = &iter->second->m_Sockets;
|
||||
iter->second->m_vTimer.x += fTimeDelta;
|
||||
fRatio = CMyTools::Saturate(iter->second->m_vTimer.x / iter->second->m_vTimer.y);
|
||||
for (list<CTimeSocket*>::iterator socketIter = pSockets->begin(); socketIter != pSockets->end();) {
|
||||
#ifdef _DEBUG
|
||||
GUI::Begin("CutScene");
|
||||
if (GUI::TreeNode((*socketIter)->m_Contents.strEventName.c_str())) {
|
||||
if (GUI::TreeNodeEx((*socketIter)->m_Contents.strEventName.c_str(), ImGuiTreeNodeFlags_::ImGuiTreeNodeFlags_DefaultOpen)) {
|
||||
GUI::Text("fRatio : %.2f", fRatio);
|
||||
GUI::Text("fSecond : %.2f / %.2f", iter->second->m_vTimer.x, iter->second->m_vTimer.y);
|
||||
GUI::TreePop();
|
||||
}
|
||||
GUI::End();
|
||||
#endif // _DEBUG
|
||||
|
||||
if ((*socketIter)->Trigger(fRatio))
|
||||
{
|
||||
SAFE_RELEASE((*socketIter));
|
||||
@@ -46,8 +56,18 @@ void CCutSceneInfo::Update(_float fTimeDelta)
|
||||
|
||||
void CCutSceneInfo::Change_Level()
|
||||
{
|
||||
_uint iLevel = m_pGameInstance->Get_NextLevelID();
|
||||
|
||||
LEVEL eLevel = (LEVEL)m_pGameInstance->Get_NextLevelID();
|
||||
switch (eLevel)
|
||||
{
|
||||
case LEVEL::INTRO:
|
||||
break;
|
||||
case LEVEL::GAMEPLAY:
|
||||
break;
|
||||
case LEVEL::FIELD:
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
Clear_ActiveEvents();
|
||||
}
|
||||
|
||||
@@ -117,7 +137,18 @@ HRESULT CCutSceneInfo::Clear_AllEvents()
|
||||
Clear_Events(m_funcActiveEvents);
|
||||
Clear_Events(m_funcWaitEvents);
|
||||
|
||||
return E_NOTIMPL;
|
||||
return S_OK;
|
||||
}
|
||||
HRESULT CCutSceneInfo::Ready_GameplayCutScenes()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
HRESULT CCutSceneInfo::Ready_FieldCutScenes()
|
||||
{
|
||||
{
|
||||
Load_CutSceneXML("../Bin/Resources/Data/CutScene/RanrokCutScene.xml");
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
CCutSceneInfo* CCutSceneInfo::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContex)
|
||||
{
|
||||
@@ -139,3 +170,300 @@ void CCutSceneInfo::Free()
|
||||
SAFE_RELEASE(m_pDevice);
|
||||
SAFE_RELEASE(m_pContext);
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
void CCutSceneInfo::Describe_Entity()
|
||||
{
|
||||
GUI::Begin("CutScene");
|
||||
if (GUI::Button("ReadyCutScene")) {
|
||||
LEVEL eLevel = (LEVEL)m_pGameInstance->Get_NextLevelID();
|
||||
Clear_AllEvents();
|
||||
switch (eLevel)
|
||||
{
|
||||
case LEVEL::GAMEPLAY:
|
||||
{
|
||||
Ready_GameplayCutScenes();
|
||||
}
|
||||
break;
|
||||
case LEVEL::FIELD:
|
||||
{
|
||||
Ready_FieldCutScenes();
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (GUI::Button("DeActiveCutScene")) {
|
||||
Clear_ActiveEvents();
|
||||
}
|
||||
GUI::End();
|
||||
}
|
||||
#endif // _DEBUG
|
||||
|
||||
|
||||
static _bool IsTrueText(const char* text)
|
||||
{
|
||||
if (!text) { return false; }
|
||||
return (strcmp(text, "true") == 0) || (strcmp(text, "1") == 0);
|
||||
}
|
||||
|
||||
static _bool TryReadFloatAttr(tinyxml2::XMLElement* element, const _char* attrName, _float& outValue)
|
||||
{
|
||||
if (!element || !attrName) {
|
||||
return false;
|
||||
}
|
||||
|
||||
const _char* text = element->Attribute(attrName);
|
||||
if (!text || text[0] == '\0') {
|
||||
return false;
|
||||
}
|
||||
|
||||
return (element->QueryFloatAttribute(attrName, &outValue) == tinyxml2::XML_SUCCESS);
|
||||
}
|
||||
|
||||
static _bool TryReadUIntAttr(tinyxml2::XMLElement* element, const _char* attrName, _uint& outValue)
|
||||
{
|
||||
if (!element || !attrName) return false;
|
||||
|
||||
const _char* text = element->Attribute(attrName);
|
||||
if (!text || text[0] == '\0') {
|
||||
return false;
|
||||
}
|
||||
|
||||
return (element->QueryUnsignedAttribute(attrName, &outValue) == tinyxml2::XML_SUCCESS);
|
||||
}
|
||||
|
||||
static void ReadPxTransform(tinyxml2::XMLElement* transformNode, PSX::PxTransform& outTransform)
|
||||
{
|
||||
outTransform.p = PSX::PxVec3(0.f, 0.f, 0.f);
|
||||
outTransform.q = PSX::PxQuat(0.f, 0.f, 0.f, 1.f);
|
||||
|
||||
if (!transformNode) { return; }
|
||||
|
||||
tinyxml2::XMLElement* rotQNode = transformNode->FirstChildElement("RotQ");
|
||||
tinyxml2::XMLElement* transNode = transformNode->FirstChildElement("Trans");
|
||||
if (!rotQNode || !transNode) {
|
||||
return;
|
||||
}
|
||||
|
||||
TryReadFloatAttr(rotQNode, "X", outTransform.q.x);
|
||||
TryReadFloatAttr(rotQNode, "Y", outTransform.q.y);
|
||||
TryReadFloatAttr(rotQNode, "Z", outTransform.q.z);
|
||||
TryReadFloatAttr(rotQNode, "W", outTransform.q.w);
|
||||
|
||||
TryReadFloatAttr(transNode, "X", outTransform.p.x);
|
||||
TryReadFloatAttr(transNode, "Y", outTransform.p.y);
|
||||
TryReadFloatAttr(transNode, "Z", outTransform.p.z);
|
||||
}
|
||||
|
||||
static void ReadFlags16(tinyxml2::XMLElement* flagsNode, _boolean& outFlags)
|
||||
{
|
||||
memset(&outFlags, 0, sizeof(_boolean));
|
||||
|
||||
if (!flagsNode) {
|
||||
return;
|
||||
}
|
||||
|
||||
for (tinyxml2::XMLElement* flagNode = flagsNode->FirstChildElement("Flag");
|
||||
flagNode;
|
||||
flagNode = flagNode->NextSiblingElement("Flag"))
|
||||
{
|
||||
int flagId = -1;
|
||||
if (flagNode->QueryIntAttribute("id", &flagId) != tinyxml2::XML_SUCCESS) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (flagId < 0 || flagId >= 16) {
|
||||
continue;
|
||||
}
|
||||
|
||||
outFlags.b[flagId] = IsTrueText(flagNode->GetText());
|
||||
}
|
||||
}
|
||||
|
||||
static void ReadUInt4(tinyxml2::XMLElement* param10Node, _uint4& outValue)
|
||||
{
|
||||
outValue = {};
|
||||
|
||||
if (!param10Node) {
|
||||
return;
|
||||
}
|
||||
tinyxml2::XMLElement* uintNode = param10Node->FirstChildElement("uint");
|
||||
if (!uintNode) return;
|
||||
|
||||
_uint temp = 0;
|
||||
if (TryReadUIntAttr(uintNode, "X", temp)) outValue.x = temp;
|
||||
if (TryReadUIntAttr(uintNode, "Y", temp)) outValue.y = temp;
|
||||
if (TryReadUIntAttr(uintNode, "Z", temp)) outValue.z = temp;
|
||||
if (TryReadUIntAttr(uintNode, "W", temp)) outValue.w = temp;
|
||||
}
|
||||
|
||||
static void ReadFloat4(tinyxml2::XMLElement* param11Node, _float4& outValue)
|
||||
{
|
||||
outValue = {};
|
||||
|
||||
if (!param11Node) {
|
||||
return;
|
||||
}
|
||||
tinyxml2::XMLElement* floatNode = param11Node->FirstChildElement("float");
|
||||
if (!floatNode) {
|
||||
return;
|
||||
}
|
||||
|
||||
TryReadFloatAttr(floatNode, "X", outValue.x);
|
||||
TryReadFloatAttr(floatNode, "Y", outValue.y);
|
||||
TryReadFloatAttr(floatNode, "Z", outValue.z);
|
||||
TryReadFloatAttr(floatNode, "W", outValue.w);
|
||||
}
|
||||
|
||||
|
||||
void CCutSceneInfo::Load_CutSceneXML(const string& path)
|
||||
{
|
||||
tinyxml2::XMLDocument doc;
|
||||
if (doc.LoadFile(path.c_str()) != tinyxml2::XML_SUCCESS) {
|
||||
return;
|
||||
}
|
||||
|
||||
TimeLine* pTimeLine = new TimeLine();
|
||||
tinyxml2::XMLElement* pContentsNode = doc.FirstChildElement("RanrokIntro");
|
||||
if (!pContentsNode) {
|
||||
return;
|
||||
}
|
||||
|
||||
pTimeLine->m_vTimer.y = 0.f;
|
||||
pContentsNode->QueryFloatAttribute("fDuration", &pTimeLine->m_vTimer.y);
|
||||
|
||||
pTimeLine->m_Sockets.clear();
|
||||
|
||||
for (tinyxml2::XMLElement* pSocketNode = pContentsNode->FirstChildElement("Socket");
|
||||
pSocketNode; pSocketNode = pSocketNode->NextSiblingElement("Socket"))
|
||||
{
|
||||
SOCKETCONTENTS SocketContents = {};
|
||||
|
||||
SocketContents.fRatio = 0.f;
|
||||
_float fStartPosition = 0;
|
||||
pSocketNode->QueryFloatAttribute("fStartPosition", &fStartPosition);
|
||||
SocketContents.fRatio = CMyTools::Saturate(fStartPosition / pTimeLine->m_vTimer.y);
|
||||
// Info
|
||||
tinyxml2::XMLElement* pInfoNode = pSocketNode->FirstChildElement("Info");
|
||||
if (pInfoNode != nullptr)
|
||||
{
|
||||
const _char* pEventNameText = pInfoNode->Attribute("strEventName");
|
||||
SocketContents.strEventName = pEventNameText ? pEventNameText : "";
|
||||
|
||||
SocketContents.eTypeParam = TIMESOCKET_PARAM::END;
|
||||
const _char* pTypeText = pInfoNode->Attribute("eTypeParam");
|
||||
if (nullptr != pTypeText)
|
||||
{
|
||||
CTimeSocket::TryParse_TimeSocketParam(string_view(pTypeText), SocketContents.eTypeParam);
|
||||
}
|
||||
|
||||
SocketContents.eTypeFunc = TIMESOCKET_FUNC::END;
|
||||
const _char* pFuncText = pInfoNode->Attribute("eTypeFunc");
|
||||
if (nullptr != pFuncText)
|
||||
{
|
||||
CTimeSocket::TryParse_TimeSocketFunc(string_view(pFuncText), SocketContents.eTypeFunc);
|
||||
}
|
||||
|
||||
SocketContents.pEventTarget = nullptr;
|
||||
SocketContents.funcEvent = nullptr;
|
||||
const _char* pTargetText = pInfoNode->Attribute("pTarget");
|
||||
if (nullptr != pTargetText)
|
||||
{
|
||||
if (strcmp(pTargetText, "CAMERA_CINEMATIC") == 0)
|
||||
{
|
||||
CCamera* pEventTarget = m_pGameInstance->Get_Camera(NEXT_LEVEL, CAMERA_CINEMATIC);
|
||||
SocketContents.pEventTarget = pEventTarget;
|
||||
SocketContents.funcEvent = [pEventTarget](CTimeSocket& Socket) { pEventTarget->Trigger(Socket); };
|
||||
}
|
||||
else if (strcmp(pTargetText, "CAMERA_SHOULDER") == 0)
|
||||
{
|
||||
CCamera* pEventTarget = m_pGameInstance->Get_Camera(NEXT_LEVEL, CAMERA_SHOULDER);
|
||||
SocketContents.pEventTarget = pEventTarget;
|
||||
SocketContents.funcEvent = [pEventTarget](CTimeSocket& Socket) { pEventTarget->Trigger(Socket); };
|
||||
}
|
||||
else if (strcmp(pTargetText, "ACTOR_PLAYER") == 0)
|
||||
{
|
||||
CPlayer* pEventTarget = m_pGameInstance->Get_Layer(NEXT_LEVEL, LAYER_PLAYER)->Get_Object<CPlayer>();
|
||||
SocketContents.pEventTarget = pEventTarget;
|
||||
SocketContents.funcEvent = [pEventTarget](CTimeSocket& Socket) { pEventTarget->Trigger(Socket); };
|
||||
}
|
||||
else if (strcmp(pTargetText, "ACTOR_RANROK") == 0)
|
||||
{
|
||||
CMonster* pEventTarget = m_pGameInstance->Get_Layer(NEXT_LEVEL, LAYER_PLAYER)->Get_Object<CRanrok>();
|
||||
SocketContents.pEventTarget = pEventTarget;
|
||||
SocketContents.funcEvent = [pEventTarget](CTimeSocket& Socket) { pEventTarget->Trigger(Socket); };
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// -------- Param_0 ----------
|
||||
tinyxml2::XMLElement* pParam0Node = pSocketNode->FirstChildElement("Param_0");
|
||||
if (nullptr != pParam0Node)
|
||||
{
|
||||
switch (SocketContents.eTypeParam)
|
||||
{
|
||||
case TIMESOCKET_PARAM::TARGET:
|
||||
{
|
||||
tinyxml2::XMLElement* pOtherTargetNode = pParam0Node->FirstChildElement("OtherTarget");
|
||||
if (!pOtherTargetNode) break;
|
||||
|
||||
const _char* pLayerNameText = pOtherTargetNode->Attribute("Layer");
|
||||
const _char* pTypeIdText = pOtherTargetNode->Attribute("TypeID");
|
||||
|
||||
if (!pLayerNameText || !pTypeIdText) break;
|
||||
if (pLayerNameText[0] == '\0' || pTypeIdText[0] == '\0') break;
|
||||
|
||||
SocketContents.wstrLayerName = CMyTools::ToWstring(pLayerNameText);
|
||||
SocketContents.wstrKeyName = CMyTools::ToWstring(pTypeIdText);
|
||||
|
||||
if (string_view(pTypeIdText) == "Ranrok")
|
||||
{
|
||||
SocketContents.pOtherTarget =
|
||||
m_pGameInstance->Get_Layer(NEXT_LEVEL, SocketContents.wstrLayerName)->Get_Object<CRanrok>();
|
||||
}
|
||||
else if (string_view(pTypeIdText) == "CAMERA_CINEMATIC")
|
||||
{
|
||||
SocketContents.pOtherTarget = m_pGameInstance->Get_Camera(NEXT_LEVEL, CAMERA_CINEMATIC);
|
||||
}
|
||||
else if (string_view(pTypeIdText) == "CAMERA_SHOULDER")
|
||||
{
|
||||
SocketContents.pOtherTarget = m_pGameInstance->Get_Camera(NEXT_LEVEL, CAMERA_SHOULDER);
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
case TIMESOCKET_PARAM::TRANSFORM:
|
||||
{
|
||||
tinyxml2::XMLElement* pTransformNode = pParam0Node->FirstChildElement("Transform");
|
||||
ReadPxTransform(pTransformNode, SocketContents.pxTransform);
|
||||
break;
|
||||
}
|
||||
case TIMESOCKET_PARAM::END:
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// -------- vFlags / Param_10 / Param_11 / Param_12 ----------
|
||||
ReadFlags16(pSocketNode->FirstChildElement("vFlags"), SocketContents.vFlags);
|
||||
ReadUInt4(pSocketNode->FirstChildElement("Param_10"), SocketContents.vParam_10);
|
||||
ReadFloat4(pSocketNode->FirstChildElement("Param_11"), SocketContents.vParam_11);
|
||||
const _char* pStringParma = pSocketNode->FirstChildElement("Param_12")->FirstChildElement("string")->Attribute("tag");
|
||||
SocketContents.vParam_12 = pStringParma;
|
||||
CTimeSocket* pSocket = CTimeSocket::Create(&SocketContents);
|
||||
if (!pSocket) {
|
||||
continue;
|
||||
}
|
||||
pTimeLine->m_Sockets.push_back(pSocket);
|
||||
}
|
||||
tinyxml2::XMLElement* pTriggerNode = pContentsNode->FirstChildElement("Trigger");
|
||||
|
||||
//pTriggerNode->QueryIntAttribute("W", )
|
||||
pTimeLine->m_Sockets.sort([](CTimeSocket* a, CTimeSocket* b) {
|
||||
return a->m_Contents.fRatio < b->m_Contents.fRatio;
|
||||
});
|
||||
pair<_string, TimeLine*> pairResult = { _string(pContentsNode->Name()), pTimeLine };
|
||||
m_pInfoInstance->Load_Events(pairResult);
|
||||
}
|
||||
|
||||
@@ -51,7 +51,7 @@ HRESULT CDialogue_Data::Load_SpellInfo(const _char* pFilePath)
|
||||
const char* text = pLine->Attribute("Text");
|
||||
if (text) line.pText = CMyTools::ToWstring(text);
|
||||
|
||||
pLine->QueryIntAttribute("NextText", &line.NextTextID);
|
||||
pLine->QueryIntAttribute("NextID", &line.NextTextID);
|
||||
|
||||
// 선택지 처리
|
||||
tinyxml2::XMLElement* pChoice = pLine->FirstChildElement("Choice");
|
||||
@@ -64,7 +64,7 @@ HRESULT CDialogue_Data::Load_SpellInfo(const _char* pFilePath)
|
||||
const char* choiceText = pChoice->Attribute("Text");
|
||||
if (choiceText) choice.pText = CMyTools::ToWstring(choiceText);
|
||||
|
||||
pChoice->QueryIntAttribute("NextText", &choice.NextTypeID);
|
||||
pChoice->QueryIntAttribute("NextID", &choice.NextTypeID);
|
||||
|
||||
line.ChoiceInfo.push_back(choice);
|
||||
pChoice = pChoice->NextSiblingElement("Choice");
|
||||
|
||||
@@ -61,6 +61,8 @@ void CDialogue_Font::Update(_float fTimeDelta)
|
||||
|
||||
if (m_bCurrentInteract == true)
|
||||
{
|
||||
_int a = 10;
|
||||
|
||||
if (m_bChoiceText == true)
|
||||
{
|
||||
switch (m_iType)
|
||||
@@ -72,18 +74,20 @@ void CDialogue_Font::Update(_float fTimeDelta)
|
||||
CHoice();
|
||||
break;
|
||||
case ENUM_CLASS(NPCTEXTTYPE::SHOPTEXT):
|
||||
|
||||
a = 10;
|
||||
break;
|
||||
|
||||
case ENUM_CLASS(NPCTEXTTYPE::QUESTTEXT):
|
||||
|
||||
Quest();
|
||||
break;
|
||||
|
||||
case ENUM_CLASS(NPCTEXTTYPE::SPELLLEAN):
|
||||
|
||||
a = 10;
|
||||
break;
|
||||
|
||||
case ENUM_CLASS(NPCTEXTTYPE::BROOM):
|
||||
m_bRace = true;
|
||||
m_pInfoInstance->Event_CallBack(TEXT("RACEREADY"), &m_bRace);
|
||||
NextText();
|
||||
break;
|
||||
default:
|
||||
@@ -281,10 +285,27 @@ 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)
|
||||
{
|
||||
m_pInfoInstance->Event_CallBack(TEXT("CHOICERESET"));
|
||||
ReSet();
|
||||
}
|
||||
}
|
||||
|
||||
void CDialogue_Font::ReSet()
|
||||
{
|
||||
m_bChoiceText = false;
|
||||
m_bCurrentChoiceText = false;
|
||||
m_bRace = false;
|
||||
vector<_int> Dummy;
|
||||
m_NextLevel.swap(Dummy);
|
||||
for (auto it = m_pCurrentDialogue.begin(); it != m_pCurrentDialogue.end();)
|
||||
|
||||
@@ -88,11 +88,11 @@ void CDialogue_Panel::Choice_Slot(CHOICEINFO Choice)
|
||||
break;
|
||||
|
||||
case ENUM_CLASS(NPCTEXTTYPE::SHOPTEXT):
|
||||
|
||||
m_pInfoInstance->Event_CallBack(TEXT("NPCNEXTTEXT"), &Choice);
|
||||
break;
|
||||
|
||||
case ENUM_CLASS(NPCTEXTTYPE::QUESTTEXT):
|
||||
|
||||
m_pInfoInstance->Event_CallBack(TEXT("NPCNEXTTEXT"), &Choice);
|
||||
break;
|
||||
|
||||
case ENUM_CLASS(NPCTEXTTYPE::SPELLLEAN):
|
||||
|
||||
@@ -300,12 +300,14 @@ void CDuelist_NormalJap::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
_vector vDir = m_pTransformCom->Get_State(STATE::LOOK);
|
||||
vDir = XMVector3Normalize(vDir);
|
||||
|
||||
_float fRandAngle = XMConvertToRadians(m_pGameInstance->Real_Random_Float(-180.f, 0.f));
|
||||
_float fRandAngle = XMConvertToRadians(m_pGameInstance->Real_Random_Float(-180.f, 180.f));
|
||||
|
||||
_matrix rotX = XMMatrixRotationX(fRandAngle);
|
||||
_vector vRandDir = XMVector3TransformNormal(vDir, rotX);
|
||||
|
||||
XMStoreFloat3(&m_vCameraLook, XMVector3Normalize(vRandDir));
|
||||
|
||||
m_fLinearSpeed = 15.f;
|
||||
}
|
||||
else {
|
||||
Get_PartObject<CEffectParts>("JapPT0")->Get_Component<CTransform>()->LookAt(m_pOwner->Get_WorldPostion());
|
||||
|
||||
@@ -4,7 +4,8 @@
|
||||
#include "GameInstance.h"
|
||||
#include "EffectParts.h"
|
||||
#include "Player.h"
|
||||
|
||||
#include "EffectPool.h"
|
||||
#include "Layer.h"
|
||||
|
||||
CDuelist_Protego::CDuelist_Protego(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CEffect_Container{ pDevice, pContext }
|
||||
@@ -18,6 +19,8 @@ CDuelist_Protego::CDuelist_Protego(const CDuelist_Protego& rhs)
|
||||
|
||||
HRESULT CDuelist_Protego::Initialize_Prototype()
|
||||
{
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/NPCProtego")))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
|
||||
@@ -31,8 +34,6 @@ HRESULT CDuelist_Protego::Initialize(void* pArg)
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Protego")))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(Create_Effect()))
|
||||
return E_FAIL;
|
||||
@@ -49,7 +50,7 @@ HRESULT CDuelist_Protego::Initialize(void* pArg)
|
||||
m_fAmountSize = 0.1f;
|
||||
m_fSpeed = 5.f;
|
||||
|
||||
m_fDuration = 3.f;
|
||||
m_fDuration = 6.f;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
@@ -94,6 +95,7 @@ void CDuelist_Protego::Late_Update(_float fTimeDelta)
|
||||
if (m_bVisible == false) {
|
||||
return;
|
||||
}
|
||||
|
||||
m_pTransformCom->Set_State(STATE::POSITION, m_pOwner->Get_Component<CCharacter_Controller>()->Get_Position());
|
||||
__super::Late_Update(fTimeDelta);
|
||||
|
||||
@@ -116,6 +118,8 @@ HRESULT CDuelist_Protego::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
m_pSphere->Get_Component<CTransform>()->Set_Scale(vSize);
|
||||
m_pSphereLay->Get_Component<CTransform>()->Set_Scale(vSize);
|
||||
|
||||
|
||||
|
||||
m_fSizeAccTime = 0.f;
|
||||
|
||||
return S_OK;
|
||||
@@ -134,6 +138,7 @@ HRESULT CDuelist_Protego::Ready_Components(void* pArg)
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_SHIELD"), (CComponent**)&m_pRigidBody, &Desc))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pGameInstance->Attach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL);
|
||||
}
|
||||
|
||||
@@ -197,6 +202,9 @@ void CDuelist_Protego::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
m_pGameInstance->Get_Layer(NEXT_LEVEL, TEXT("Layer_EffectPool"))->Get_Object<CEffectPool>()
|
||||
->Use_Skill(SKILL_TYPE::DUELIST_PROTEGO_HIT, m_pOwner, &CollisionDesc->vWorldPos);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,188 @@
|
||||
#include "pch.h"
|
||||
#include "Duelist_ProtegoHit.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
#include "EffectParts.h"
|
||||
|
||||
|
||||
CDuelist_ProtegoHit::CDuelist_ProtegoHit(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CEffect_Container{ pDevice, pContext }
|
||||
{
|
||||
}
|
||||
|
||||
CDuelist_ProtegoHit::CDuelist_ProtegoHit(const CDuelist_ProtegoHit& rhs)
|
||||
: CEffect_Container(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CDuelist_ProtegoHit::Initialize_Prototype()
|
||||
{
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/NPCProtegoHit")))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
|
||||
HRESULT CDuelist_ProtegoHit::Initialize(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Initialize(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(Create_Effect()))
|
||||
return E_FAIL;
|
||||
|
||||
m_wstrEffectName = L"NPCProtegoHit";
|
||||
|
||||
m_pHit_SphereLay = Get_PartObject<CEffectParts>("ProtegoHit_Lay");
|
||||
m_pHit_Light = Get_PartObject<CEffectParts>("Hit_Light");
|
||||
|
||||
SAFE_ADDREF(m_pHit_SphereLay);
|
||||
SAFE_ADDREF(m_pHit_Light);
|
||||
|
||||
|
||||
m_fDuration = 3.f;
|
||||
|
||||
_float3 vScale = _float3(1.1f, 1.1f, 1.1f);
|
||||
|
||||
m_pHit_SphereLay->Get_Component<CTransform>()->Set_Scale(vScale);
|
||||
m_pHit_Light->Get_Component<CTransform>()->Set_Scale(vScale);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CDuelist_ProtegoHit::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
|
||||
}
|
||||
|
||||
void CDuelist_ProtegoHit::Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
|
||||
Update_Event(fTimeDelta);
|
||||
|
||||
m_pHit_SphereLay->Get_Component<CTransform>()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
|
||||
m_pHit_Light->Get_Component<CTransform>()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
|
||||
}
|
||||
|
||||
void CDuelist_ProtegoHit::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Late_Update(fTimeDelta);
|
||||
|
||||
|
||||
}
|
||||
|
||||
HRESULT CDuelist_ProtegoHit::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Pre_Setting(pObject, nullptr)))
|
||||
return E_FAIL;
|
||||
|
||||
_vector vHitPos = XMLoadFloat4(static_cast<_float4*>(pArg));
|
||||
|
||||
CEffectParts* pProtego_HitPT = Get_PartObject<CEffectParts>("Protego_HitPT");
|
||||
CEffectParts* pProtego_HitPT_Line = Get_PartObject<CEffectParts>("Protego_HitPT_Line");
|
||||
CEffectParts* pProtegoHit = Get_PartObject<CEffectParts>("ProtegoHit");
|
||||
|
||||
m_pHit_SphereLay->Get_Component<CTransform>()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
|
||||
m_pHit_Light->Get_Component<CTransform>()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
|
||||
|
||||
pProtego_HitPT->Get_Component<CTransform>()->Set_State(STATE::POSITION, vHitPos);
|
||||
pProtego_HitPT_Line->Get_Component<CTransform>()->Set_State(STATE::POSITION, vHitPos);
|
||||
pProtegoHit->Get_Component<CTransform>()->Set_State(STATE::POSITION, vHitPos);
|
||||
|
||||
|
||||
m_pHit_SphereLay->Set_Visible(true);
|
||||
m_pHit_Light->Set_Visible(true);
|
||||
|
||||
pProtego_HitPT->Set_Visible(true);
|
||||
pProtego_HitPT_Line->Set_Visible(true);
|
||||
pProtegoHit->Set_Visible(true);
|
||||
|
||||
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CDuelist_ProtegoHit::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Ready_Components(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CDuelist_ProtegoHit::Ready_Child()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CDuelist_ProtegoHit* CDuelist_ProtegoHit::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CDuelist_ProtegoHit* pInstance = new CDuelist_ProtegoHit(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CDuelist_ProtegoHit");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
|
||||
CGameObject* CDuelist_ProtegoHit::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CDuelist_ProtegoHit* pInstance = new CDuelist_ProtegoHit(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CDuelist_ProtegoHit");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CDuelist_ProtegoHit::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
{
|
||||
//CTransform* pOtherTransform = p
|
||||
ON_COLLISION_INFO* CollisionDesc = static_cast<ON_COLLISION_INFO*>(pDesc);
|
||||
|
||||
}
|
||||
|
||||
void CDuelist_ProtegoHit::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pHit_SphereLay);
|
||||
SAFE_RELEASE(m_pHit_Light);
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
|
||||
void CDuelist_ProtegoHit::Describe_Entity()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
#endif // _DEBUG
|
||||
|
||||
HRESULT CDuelist_ProtegoHit::Bind_ShaderResources()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -24,6 +24,8 @@
|
||||
#include "Lumos.h"
|
||||
#include "WandEnd.h"
|
||||
|
||||
#include "Protego_Hit.h"
|
||||
|
||||
#include "Troll_Rush_Hit.h"
|
||||
#include "Troll_Nomal_Smoke.h"
|
||||
#include "TrollSwing.h"
|
||||
@@ -45,6 +47,10 @@
|
||||
#include "Blink.h"
|
||||
#include "Transformation.h"
|
||||
#include "Avadakedavra.h"
|
||||
|
||||
#include "Goblin_ProtegoHit.h"
|
||||
#include "Duelist_ProtegoHit.h"
|
||||
|
||||
#include "Ranrok_FireBall.h"
|
||||
#include "Ranrok_Breath.h"
|
||||
#include "Ranrok_Point.h"
|
||||
@@ -104,7 +110,7 @@ HRESULT CEffectPool::Initialize(void* pArg)
|
||||
m_isActiveMonsterEffectCreate = true;
|
||||
#endif //
|
||||
#ifdef 나
|
||||
m_isActiveEffectCreate = false;
|
||||
m_isActiveEffectCreate = true;
|
||||
m_isActiveMonsterEffectCreate = false;
|
||||
#endif //
|
||||
#endif
|
||||
@@ -496,6 +502,17 @@ HRESULT CEffectPool::Ready_Effect()
|
||||
))) return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::PROTEGO_HIT, 10, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CProtego_Hit* pEffect = nullptr;
|
||||
|
||||
pEffect = m_pGameInstance->Clone_Prototype<CProtego_Hit>(iPrototypeLevel, nullptr);
|
||||
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -738,6 +755,24 @@ HRESULT CEffectPool::Ready_MonsterEffect()
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::GOBLIN_PROTEGO_HIT, 10, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CGoblin_ProtegoHit* pEffect = nullptr;
|
||||
|
||||
pEffect = m_pGameInstance->Clone_Prototype<CGoblin_ProtegoHit>(iPrototypeLevel, nullptr);
|
||||
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::DUELIST_PROTEGO_HIT, 10, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CDuelist_ProtegoHit* pEffect = nullptr;
|
||||
|
||||
pEffect = m_pGameInstance->Clone_Prototype<CDuelist_ProtegoHit>(iPrototypeLevel, nullptr);
|
||||
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -915,6 +915,7 @@ ON_COLLISION_INFO CEffect_Container::MonsterSweepTarget(_fvector StartPos, _fvec
|
||||
{
|
||||
pUserData->pOwner->OnCollision(this, &tagCollInfo);
|
||||
m_bHit = true;
|
||||
m_bHitShield = true;
|
||||
}
|
||||
break;
|
||||
}
|
||||
@@ -1069,7 +1070,7 @@ _vector CEffect_Container::Get_LockOnPos(LOCKON_INFO Info)
|
||||
return Info.pEffect->Get_WorldPostion();
|
||||
}
|
||||
if (Info.pUnit) {
|
||||
return Info.pUnit->Get_Component<CCharacter_Controller>()->Get_Position();
|
||||
return Info.pUnit->Get_LockOnPos();
|
||||
}
|
||||
return XMVectorZero();
|
||||
}
|
||||
|
||||
@@ -393,7 +393,7 @@ void CGoblin::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
if (pEffect_Container != nullptr)
|
||||
{
|
||||
_uint iSkillType = pEffect_Container->Get_SkillType();
|
||||
//damagePair = Get_Damage(m_pInfoInstance->Get_Spell_Damage(iSkillType));
|
||||
damagePair = Get_Damage(m_pInfoInstance->Get_Spell_Damage(iSkillType));
|
||||
|
||||
switch (iSkillType)
|
||||
{
|
||||
@@ -439,14 +439,14 @@ void CGoblin::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
}
|
||||
|
||||
|
||||
//m_DamageInfo.fDamage = damagePair.first;
|
||||
//m_pInfoInstance->Event_CallBack(TEXT("Monster_Hit"), &m_DamageInfo);
|
||||
//if (0 == damagePair.second) {
|
||||
// m_pFSM->Change_State(FSMSTATE::DEAD);
|
||||
// _int ID = m_pStat->Get_Stat().iObjectID;
|
||||
// m_pInfoInstance->Event_CallBack(TEXT("MonsterDead"), &ID);
|
||||
// return;
|
||||
//}
|
||||
m_DamageInfo.fDamage = damagePair.first;
|
||||
m_pInfoInstance->Event_CallBack(TEXT("Monster_Hit"), &m_DamageInfo);
|
||||
if (0 == damagePair.second) {
|
||||
m_pFSM->Change_State(FSMSTATE::DEAD);
|
||||
_int ID = m_pStat->Get_Stat().iObjectID;
|
||||
m_pInfoInstance->Event_CallBack(TEXT("MonsterDead"), &ID);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
m_pFSM->Change_State(FSMSTATE::HIT);
|
||||
|
||||
@@ -3,9 +3,11 @@
|
||||
|
||||
#include "GameInstance.h"
|
||||
#include "EffectParts.h"
|
||||
#include "Player.h"
|
||||
#include "EffectPool.h"
|
||||
#include "Layer.h"
|
||||
#include "MapElement_Interactable.h"
|
||||
|
||||
|
||||
CGoblin_Protego::CGoblin_Protego(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CEffect_Container{ pDevice, pContext }
|
||||
{
|
||||
@@ -33,24 +35,23 @@ HRESULT CGoblin_Protego::Initialize(void* pArg)
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Create_Effect()))
|
||||
return E_FAIL;
|
||||
|
||||
m_pSphere = Get_PartObject<CEffectParts>("ProtegoSphere");
|
||||
m_pBottom = Get_PartObject<CEffectParts>("ProtegoBottom");
|
||||
m_pCircle = Get_PartObject<CEffectParts>("ProtegoCircle");
|
||||
m_pSphereLay = Get_PartObject<CEffectParts>("ProtegoLay");
|
||||
|
||||
SAFE_ADDREF(m_pSphere);
|
||||
SAFE_ADDREF(m_pBottom);
|
||||
SAFE_ADDREF(m_pCircle);
|
||||
SAFE_ADDREF(m_pSphereLay);
|
||||
|
||||
m_wstrEffectName = L"Goblin_Protego";
|
||||
m_wstrEffectName = L"Protego";
|
||||
|
||||
|
||||
m_fAmountSize = 0.1f;
|
||||
m_fSpeed = 5.f;
|
||||
|
||||
m_fDuration = 3.f;
|
||||
m_fDuration = 6.f;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
@@ -58,7 +59,6 @@ HRESULT CGoblin_Protego::Initialize(void* pArg)
|
||||
void CGoblin_Protego::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
|
||||
}
|
||||
|
||||
void CGoblin_Protego::Update(_float fTimeDelta)
|
||||
@@ -67,8 +67,7 @@ void CGoblin_Protego::Update(_float fTimeDelta)
|
||||
return;
|
||||
|
||||
m_pSphere->Get_Component<CTransform>()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
|
||||
m_pBottom->Get_Component<CTransform>()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
|
||||
m_pCircle-> Get_Component<CTransform>()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
|
||||
m_pSphereLay->Get_Component<CTransform>()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
|
||||
@@ -89,15 +88,18 @@ void CGoblin_Protego::Update(_float fTimeDelta)
|
||||
_float3 vSize = _float3(fSize, fSize, fSize);
|
||||
|
||||
m_pSphere->Get_Component<CTransform>()->Set_Scale(vSize);
|
||||
m_pCircle->Get_Component<CTransform>()->Set_Scale(vSize);
|
||||
m_pSphereLay->Get_Component<CTransform>()->Set_Scale(vSize);
|
||||
}
|
||||
|
||||
void CGoblin_Protego::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
if (m_bVisible == false) {
|
||||
return;
|
||||
}
|
||||
|
||||
m_pTransformCom->Set_State(STATE::POSITION, m_pOwner->Get_Component<CCharacter_Controller>()->Get_Position());
|
||||
__super::Late_Update(fTimeDelta);
|
||||
|
||||
}
|
||||
|
||||
HRESULT CGoblin_Protego::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
@@ -106,17 +108,18 @@ HRESULT CGoblin_Protego::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
return E_FAIL;
|
||||
|
||||
m_pSphere->Get_Component<CTransform>()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
|
||||
m_pBottom->Get_Component<CTransform>()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
|
||||
m_pCircle->Get_Component<CTransform>()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
|
||||
m_pSphereLay->Get_Component<CTransform>()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
|
||||
|
||||
m_pSphere->Set_Visible(true);
|
||||
m_pCircle->Set_Visible(true);
|
||||
m_pBottom->Set_Visible(true);
|
||||
m_pSphereLay->Set_Visible(true);
|
||||
|
||||
|
||||
|
||||
_float3 vSize = _float3(1.f, 1.f, 1.f);
|
||||
m_pSphere->Get_Component<CTransform>()->Set_Scale(vSize);
|
||||
m_pCircle->Get_Component<CTransform>()->Set_Scale(vSize);
|
||||
m_pSphereLay->Get_Component<CTransform>()->Set_Scale(vSize);
|
||||
|
||||
|
||||
|
||||
m_fSizeAccTime = 0.f;
|
||||
|
||||
@@ -129,12 +132,14 @@ HRESULT CGoblin_Protego::Ready_Components(void* pArg)
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
{ // DO
|
||||
CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc{};
|
||||
Desc.iSubKind = ENUM_CLASS(PXOBJECT::GOBLIN_PROTEGO);
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_SHIELD"), (CComponent**)&m_pRigidBody, &Desc))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pGameInstance->Attach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL);
|
||||
}
|
||||
|
||||
@@ -175,8 +180,6 @@ CGameObject* CGoblin_Protego::Clone(void* pArg, CGameObject* pOwner)
|
||||
|
||||
void CGoblin_Protego::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
{
|
||||
if (!m_bVisible)
|
||||
return;
|
||||
|
||||
ON_COLLISION_INFO* CollisionDesc = static_cast<ON_COLLISION_INFO*>(pDesc);
|
||||
|
||||
@@ -212,6 +215,9 @@ void CGoblin_Protego::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
}
|
||||
}
|
||||
|
||||
m_pGameInstance->Get_Layer(NEXT_LEVEL, TEXT("Layer_EffectPool"))->Get_Object<CEffectPool>()
|
||||
->Use_Skill(SKILL_TYPE::GOBLIN_PROTEGO_HIT, m_pOwner, &CollisionDesc->vWorldPos);
|
||||
|
||||
}
|
||||
|
||||
void CGoblin_Protego::Free()
|
||||
@@ -221,21 +227,19 @@ void CGoblin_Protego::Free()
|
||||
//if(m_pPhysHitBox != nullptr)
|
||||
// if (m_pPhysHitBox->Get_Depth() == false)
|
||||
// SAFE_RELEASE(m_pPhysHitBox);
|
||||
|
||||
SAFE_RELEASE(m_pSphere);
|
||||
SAFE_RELEASE(m_pBottom);
|
||||
SAFE_RELEASE(m_pCircle);
|
||||
SAFE_RELEASE(m_pRigidBody);
|
||||
SAFE_RELEASE(m_pSphere);
|
||||
SAFE_RELEASE(m_pSphereLay);
|
||||
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
|
||||
void CGoblin_Protego::Describe_Entity()
|
||||
{
|
||||
GUI::Begin("PROTEGO", 0, IMGUI_GLOBAL_BEGIN_FLAG);
|
||||
GUI::Begin("PROTEGO");
|
||||
|
||||
GUI::DragFloat("fAmountSize" ,&m_fAmountSize);
|
||||
GUI::DragFloat("fSpeed" , &m_fSpeed);
|
||||
GUI::DragFloat("fAmountSize", &m_fAmountSize);
|
||||
GUI::DragFloat("fSpeed", &m_fSpeed);
|
||||
|
||||
GUI::End();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,188 @@
|
||||
#include "pch.h"
|
||||
#include "Goblin_ProtegoHit.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
#include "EffectParts.h"
|
||||
|
||||
|
||||
CGoblin_ProtegoHit::CGoblin_ProtegoHit(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CEffect_Container{ pDevice, pContext }
|
||||
{
|
||||
}
|
||||
|
||||
CGoblin_ProtegoHit::CGoblin_ProtegoHit(const CGoblin_ProtegoHit& rhs)
|
||||
: CEffect_Container(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CGoblin_ProtegoHit::Initialize_Prototype()
|
||||
{
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/GoblinProtegoHit")))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
|
||||
HRESULT CGoblin_ProtegoHit::Initialize(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Initialize(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(Create_Effect()))
|
||||
return E_FAIL;
|
||||
|
||||
m_wstrEffectName = L"GoblinProtegoHit";
|
||||
|
||||
m_pHit_SphereLay = Get_PartObject<CEffectParts>("ProtegoHit_Lay");
|
||||
m_pHit_Light = Get_PartObject<CEffectParts>("Hit_Light");
|
||||
|
||||
SAFE_ADDREF(m_pHit_SphereLay);
|
||||
SAFE_ADDREF(m_pHit_Light);
|
||||
|
||||
|
||||
m_fDuration = 3.f;
|
||||
|
||||
_float3 vScale = _float3(1.1f, 1.1f, 1.1f);
|
||||
|
||||
m_pHit_SphereLay->Get_Component<CTransform>()->Set_Scale(vScale);
|
||||
m_pHit_Light->Get_Component<CTransform>()->Set_Scale(vScale);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CGoblin_ProtegoHit::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
|
||||
}
|
||||
|
||||
void CGoblin_ProtegoHit::Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
|
||||
Update_Event(fTimeDelta);
|
||||
|
||||
m_pHit_SphereLay->Get_Component<CTransform>()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
|
||||
m_pHit_Light->Get_Component<CTransform>()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
|
||||
}
|
||||
|
||||
void CGoblin_ProtegoHit::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Late_Update(fTimeDelta);
|
||||
|
||||
|
||||
}
|
||||
|
||||
HRESULT CGoblin_ProtegoHit::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Pre_Setting(pObject, nullptr)))
|
||||
return E_FAIL;
|
||||
|
||||
_vector vHitPos = XMLoadFloat4(static_cast<_float4*>(pArg));
|
||||
|
||||
CEffectParts* pProtego_HitPT = Get_PartObject<CEffectParts>("Protego_HitPT");
|
||||
CEffectParts* pProtego_HitPT_Line = Get_PartObject<CEffectParts>("Protego_HitPT_Line");
|
||||
CEffectParts* pProtegoHit = Get_PartObject<CEffectParts>("ProtegoHit");
|
||||
|
||||
m_pHit_SphereLay->Get_Component<CTransform>()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
|
||||
m_pHit_Light->Get_Component<CTransform>()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
|
||||
|
||||
pProtego_HitPT->Get_Component<CTransform>()->Set_State(STATE::POSITION, vHitPos);
|
||||
pProtego_HitPT_Line->Get_Component<CTransform>()->Set_State(STATE::POSITION, vHitPos);
|
||||
pProtegoHit->Get_Component<CTransform>()->Set_State(STATE::POSITION, vHitPos);
|
||||
|
||||
|
||||
m_pHit_SphereLay->Set_Visible(true);
|
||||
m_pHit_Light->Set_Visible(true);
|
||||
|
||||
pProtego_HitPT->Set_Visible(true);
|
||||
pProtego_HitPT_Line->Set_Visible(true);
|
||||
pProtegoHit->Set_Visible(true);
|
||||
|
||||
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CGoblin_ProtegoHit::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Ready_Components(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CGoblin_ProtegoHit::Ready_Child()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CGoblin_ProtegoHit* CGoblin_ProtegoHit::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CGoblin_ProtegoHit* pInstance = new CGoblin_ProtegoHit(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CGoblin_ProtegoHit");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
|
||||
CGameObject* CGoblin_ProtegoHit::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CGoblin_ProtegoHit* pInstance = new CGoblin_ProtegoHit(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CGoblin_ProtegoHit");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CGoblin_ProtegoHit::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
{
|
||||
//CTransform* pOtherTransform = p
|
||||
ON_COLLISION_INFO* CollisionDesc = static_cast<ON_COLLISION_INFO*>(pDesc);
|
||||
|
||||
}
|
||||
|
||||
void CGoblin_ProtegoHit::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pHit_SphereLay);
|
||||
SAFE_RELEASE(m_pHit_Light);
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
|
||||
void CGoblin_ProtegoHit::Describe_Entity()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
#endif // _DEBUG
|
||||
|
||||
HRESULT CGoblin_ProtegoHit::Bind_ShaderResources()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -97,6 +97,9 @@ void CHuman_Duelist::Update(_float fTimeDelta)
|
||||
|
||||
Play_Event();
|
||||
|
||||
|
||||
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
#ifdef _DEBUG
|
||||
Describe_Entity();
|
||||
@@ -563,6 +566,8 @@ void CHuman_Duelist::Free()
|
||||
|
||||
void CHuman_Duelist::Describe_Entity()
|
||||
{
|
||||
|
||||
|
||||
GUI::Begin("UNIT", 0, IMGUI_GLOBAL_BEGIN_FLAG);
|
||||
GUI::PushItemWidth(IMGUI_GLOBAL_ITEM_WIDTH);
|
||||
if (GUI::CollapsingHeader("HUMAN_DUELIST_DESC")) {
|
||||
@@ -610,6 +615,12 @@ void CHuman_Duelist::Describe_Entity()
|
||||
GUI::Text("HP : %f, %f", m_pStat->Get_Stat().fCurrentHp, m_pStat->Get_Stat().fMaxHp);
|
||||
GUI::SameLine(); if (GUI::Button("FULL")) { m_pStat->Set_Stat(ENUM_CLASS(STAT::CURRENTHP), m_pStat->Get_Stat().fMaxHp); }
|
||||
|
||||
|
||||
if(GUI::Button("Reset Pos"))
|
||||
{
|
||||
m_pCharacter_Controller->Set_Position(XMVectorSet(1007.f, 6.f, 1016.f, 1.f));
|
||||
}
|
||||
|
||||
m_pLightCom->Describe_Entity();
|
||||
}
|
||||
GUI::End();
|
||||
|
||||
@@ -231,49 +231,12 @@ void CInfoInstance::Key_Input(_uint Input)
|
||||
case ENUM_CLASS(KEYINPUT::INPUT_4):
|
||||
Event_CallBack(TEXT("Spell"), &m_eInput);
|
||||
break;
|
||||
//case ENUM_CLASS(KEYINPUT::INPUT_T):
|
||||
// if (m_eUI_State == UI_STATE::GAMEPLAYER)
|
||||
// {
|
||||
// m_eUI_State = UI_STATE::SPELL;
|
||||
// Event_CallBack(TEXT("Canvas_Change"), &m_eUI_State);
|
||||
// }
|
||||
// else if (m_eUI_State == UI_STATE::SPELL)
|
||||
// {
|
||||
// m_eUI_State = UI_STATE::GAMEPLAYER;
|
||||
// Event_CallBack(TEXT("Canvas_Change"), &m_eUI_State);
|
||||
// }
|
||||
// break;
|
||||
case ENUM_CLASS(KEYINPUT::INPUT_X):
|
||||
Event_CallBack(TEXT("Ancient_Magic_Throw"));
|
||||
break;
|
||||
case ENUM_CLASS(KEYINPUT::INPUT_G):
|
||||
Event_CallBack(TEXT("Use_Potion"));
|
||||
break;
|
||||
/*case ENUM_CLASS(KEYINPUT::INPUT_TAB):
|
||||
if (m_eUI_State == UI_STATE::GAMEPLAYER)
|
||||
{
|
||||
m_eUI_State = UI_STATE::QUEST;
|
||||
Event_CallBack(TEXT("Canvas_Change"), &m_eUI_State);
|
||||
}
|
||||
else if (m_eUI_State == UI_STATE::QUEST)
|
||||
{
|
||||
m_eUI_State = UI_STATE::GAMEPLAYER;
|
||||
Event_CallBack(TEXT("Canvas_Change"), &m_eUI_State);
|
||||
}
|
||||
break;
|
||||
case ENUM_CLASS(KEYINPUT::INPUT_ESPACE):
|
||||
if (m_eUI_State == UI_STATE::GAMEPLAYER)
|
||||
{
|
||||
m_eUI_State = UI_STATE::SPELLNEARN;
|
||||
Event_CallBack(TEXT("Canvas_Change"), &m_eUI_State);
|
||||
}
|
||||
else if (m_eUI_State == UI_STATE::SPELLNEARN)
|
||||
{
|
||||
m_eUI_State = UI_STATE::GAMEPLAYER;
|
||||
Event_CallBack(TEXT("Canvas_Change"), &m_eUI_State);
|
||||
}
|
||||
break;*/
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -62,10 +62,6 @@ HRESULT CLevel_Field::Initialize(void* pArg)
|
||||
if (FAILED(Ready_Layer_Monster())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Ready_Layer_CutScene())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_bLevel = true;
|
||||
m_pInfoInstance->Event_CallBack(TEXT("UIManagerFadeIn"));
|
||||
|
||||
@@ -106,8 +102,6 @@ void CLevel_Field::Update(_float fTimeDelta)
|
||||
UI_STATE eState = UI_STATE::GAMEPLAYER;
|
||||
m_pInfoInstance->Event_CallBack(TEXT("Canvas_Change"), &eState);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
HRESULT CLevel_Field::Render()
|
||||
@@ -243,9 +237,9 @@ HRESULT CLevel_Field::Ready_Camera()
|
||||
Camera_Desc.fFar = 500.f;
|
||||
Camera_Desc.pCameraKey = CAMERA_CINEMATIC;
|
||||
Camera_Desc.iPriority = 65;
|
||||
Camera_Desc.bEnableTransitionLerp = true;
|
||||
Camera_Desc.bEnableLookLerp = true;
|
||||
Camera_Desc.bEnableFollowLerp = true;
|
||||
Camera_Desc.bEnableTransitionLerp = false;
|
||||
Camera_Desc.bEnableLookLerp = false;
|
||||
Camera_Desc.bEnableFollowLerp = false;
|
||||
Camera_Desc.vTransitionTime.y = 1.f;
|
||||
Camera_Desc.pFollowTarget = { nullptr };
|
||||
Camera_Desc.pLookTarget = { nullptr };
|
||||
@@ -340,27 +334,6 @@ HRESULT CLevel_Field::Reday_Layer_EffectPool()
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CLevel_Field::Ready_Layer_CutScene()
|
||||
{
|
||||
CMonster* pMonster = { nullptr };
|
||||
CCamera* pCamera = { nullptr };
|
||||
{
|
||||
CLayer* pLayer = m_pGameInstance->Get_Layer(NEXT_LEVEL, LAYER_MONSTER);
|
||||
if (nullptr != pLayer) {
|
||||
pMonster = pLayer->Get_Object<CRanrok>();
|
||||
}
|
||||
}
|
||||
{
|
||||
pCamera = m_pGameInstance->Get_Camera(NEXT_LEVEL, CAMERA_CINEMATIC);
|
||||
}
|
||||
|
||||
if (nullptr == pMonster || nullptr == pCamera) {
|
||||
return E_FAIL;
|
||||
}
|
||||
Load_CutSceneXML("../Bin/Resources/Data/CutScene/RanrokCutScene.xml", pCamera, pMonster);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
pair<CLevel*, function<void()>> CLevel_Field::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID, void* pArg)
|
||||
{
|
||||
CLevel_Field* pInstance = new CLevel_Field(pDevice, pContext, eLevelID);
|
||||
@@ -381,270 +354,9 @@ void CLevel_Field::Free()
|
||||
SAFE_RELEASE(m_pInfoInstance);
|
||||
}
|
||||
|
||||
static _bool IsTrueText(const char* text)
|
||||
{
|
||||
if (!text){ return false; }
|
||||
return (strcmp(text, "true") == 0) || (strcmp(text, "1") == 0);
|
||||
}
|
||||
|
||||
static _bool TryReadFloatAttr(tinyxml2::XMLElement* element, const _char* attrName, _float& outValue)
|
||||
{
|
||||
if (!element || !attrName) {
|
||||
return false;
|
||||
}
|
||||
|
||||
const _char* text = element->Attribute(attrName);
|
||||
if (!text || text[0] == '\0'){
|
||||
return false;
|
||||
}
|
||||
|
||||
return (element->QueryFloatAttribute(attrName, &outValue) == tinyxml2::XML_SUCCESS);
|
||||
}
|
||||
|
||||
static _bool TryReadUIntAttr(tinyxml2::XMLElement* element, const _char* attrName, _uint& outValue)
|
||||
{
|
||||
if (!element || !attrName) return false;
|
||||
|
||||
const _char* text = element->Attribute(attrName);
|
||||
if (!text || text[0] == '\0') {
|
||||
return false;
|
||||
}
|
||||
|
||||
return (element->QueryUnsignedAttribute(attrName, &outValue) == tinyxml2::XML_SUCCESS);
|
||||
}
|
||||
|
||||
static void ReadPxTransform(tinyxml2::XMLElement* transformNode, PSX::PxTransform& outTransform)
|
||||
{
|
||||
outTransform.p = PSX::PxVec3(0.f, 0.f, 0.f);
|
||||
outTransform.q = PSX::PxQuat(0.f, 0.f, 0.f, 1.f);
|
||||
|
||||
if (!transformNode) { return; }
|
||||
|
||||
tinyxml2::XMLElement* rotQNode = transformNode->FirstChildElement("RotQ");
|
||||
tinyxml2::XMLElement* transNode = transformNode->FirstChildElement("Trans");
|
||||
if (!rotQNode || !transNode) {
|
||||
return;
|
||||
}
|
||||
|
||||
TryReadFloatAttr(rotQNode, "X", outTransform.q.x);
|
||||
TryReadFloatAttr(rotQNode, "Y", outTransform.q.y);
|
||||
TryReadFloatAttr(rotQNode, "Z", outTransform.q.z);
|
||||
TryReadFloatAttr(rotQNode, "W", outTransform.q.w);
|
||||
|
||||
TryReadFloatAttr(transNode, "X", outTransform.p.x);
|
||||
TryReadFloatAttr(transNode, "Y", outTransform.p.y);
|
||||
TryReadFloatAttr(transNode, "Z", outTransform.p.z);
|
||||
}
|
||||
|
||||
static void ReadFlags16(tinyxml2::XMLElement* flagsNode, _boolean& outFlags)
|
||||
{
|
||||
memset(&outFlags, 0, sizeof(_boolean));
|
||||
|
||||
if (!flagsNode) {
|
||||
return;
|
||||
}
|
||||
|
||||
for (tinyxml2::XMLElement* flagNode = flagsNode->FirstChildElement("Flag");
|
||||
flagNode;
|
||||
flagNode = flagNode->NextSiblingElement("Flag"))
|
||||
{
|
||||
int flagId = -1;
|
||||
if (flagNode->QueryIntAttribute("id", &flagId) != tinyxml2::XML_SUCCESS) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (flagId < 0 || flagId >= 16) {
|
||||
continue;
|
||||
}
|
||||
|
||||
outFlags.b[flagId] = IsTrueText(flagNode->GetText());
|
||||
}
|
||||
}
|
||||
|
||||
static void ReadUInt4(tinyxml2::XMLElement* param10Node, _uint4& outValue)
|
||||
{
|
||||
outValue = {};
|
||||
|
||||
if (!param10Node) {
|
||||
return;
|
||||
}
|
||||
tinyxml2::XMLElement* uintNode = param10Node->FirstChildElement("uint");
|
||||
if (!uintNode) return;
|
||||
|
||||
_uint temp = 0;
|
||||
if (TryReadUIntAttr(uintNode, "X", temp)) outValue.x = temp;
|
||||
if (TryReadUIntAttr(uintNode, "Y", temp)) outValue.y = temp;
|
||||
if (TryReadUIntAttr(uintNode, "Z", temp)) outValue.z = temp;
|
||||
if (TryReadUIntAttr(uintNode, "W", temp)) outValue.w = temp;
|
||||
}
|
||||
|
||||
static void ReadFloat4(tinyxml2::XMLElement* param11Node, _float4& outValue)
|
||||
{
|
||||
outValue = {};
|
||||
|
||||
if (!param11Node) {
|
||||
return;
|
||||
}
|
||||
tinyxml2::XMLElement* floatNode = param11Node->FirstChildElement("float");
|
||||
if (!floatNode) {
|
||||
return;
|
||||
}
|
||||
|
||||
TryReadFloatAttr(floatNode, "X", outValue.x);
|
||||
TryReadFloatAttr(floatNode, "Y", outValue.y);
|
||||
TryReadFloatAttr(floatNode, "Z", outValue.z);
|
||||
TryReadFloatAttr(floatNode, "W", outValue.w);
|
||||
}
|
||||
|
||||
void CLevel_Field::Load_CutSceneXML(const string& path, CCamera* pCamera, CMonster* pMonster)
|
||||
{
|
||||
tinyxml2::XMLDocument doc;
|
||||
if (doc.LoadFile(path.c_str()) != tinyxml2::XML_SUCCESS){
|
||||
return;
|
||||
}
|
||||
|
||||
TimeLine* pTimeLine = new TimeLine();
|
||||
tinyxml2::XMLElement* pContentsNode = doc.FirstChildElement("RanrokIntro");
|
||||
if (!pContentsNode){
|
||||
return;
|
||||
}
|
||||
|
||||
pTimeLine->m_vTimer.y = 0.f;
|
||||
pContentsNode->QueryFloatAttribute("fDuration", &pTimeLine->m_vTimer.y);
|
||||
|
||||
pTimeLine->m_Sockets.clear();
|
||||
|
||||
for (tinyxml2::XMLElement* pSocketNode = pContentsNode->FirstChildElement("Socket");
|
||||
pSocketNode; pSocketNode = pSocketNode->NextSiblingElement("Socket"))
|
||||
{
|
||||
SOCKETCONTENTS SocketContents = {};
|
||||
|
||||
SocketContents .fRatio = 0.f;
|
||||
_int fStartPosition = 0;
|
||||
pSocketNode->QueryIntAttribute("fStartPosition", &fStartPosition);
|
||||
SocketContents.fRatio = CMyTools::Saturate(fStartPosition / pTimeLine->m_vTimer.y);
|
||||
// Info
|
||||
tinyxml2::XMLElement* pInfoNode = pSocketNode->FirstChildElement("Info");
|
||||
if (pInfoNode != nullptr)
|
||||
{
|
||||
const _char* pEventNameText = pInfoNode->Attribute("strEventName");
|
||||
SocketContents.strEventName = pEventNameText ? pEventNameText : "";
|
||||
|
||||
SocketContents.eTypeParam = TIMESOCKET_PARAM::END;
|
||||
if (const _char* pTypeText = pInfoNode->Attribute("eTypeParam"))
|
||||
{
|
||||
CTimeSocket::TryParse_TimeSocketParam(string_view(pTypeText), SocketContents.eTypeParam);
|
||||
}
|
||||
|
||||
SocketContents.eTypeFunc = TIMESOCKET_FUNC::END;
|
||||
if (const _char* pFuncText = pInfoNode->Attribute("eTypeFunc"))
|
||||
{
|
||||
CTimeSocket::TryParse_TimeSocketFunc(string_view(pFuncText), SocketContents.eTypeFunc);
|
||||
}
|
||||
|
||||
SocketContents.pEventTarget = nullptr;
|
||||
SocketContents.funcEvent = nullptr;
|
||||
|
||||
if (const _char* pTargetText = pInfoNode->Attribute("pTarget"))
|
||||
{
|
||||
if (strcmp(pTargetText, "CAMERA_CINEMATIC") == 0)
|
||||
{
|
||||
CCamera* pEventTarget = pCamera;
|
||||
SocketContents.pEventTarget = pEventTarget;
|
||||
SocketContents.funcEvent = [pEventTarget](CTimeSocket& Socket) { pEventTarget->Trigger(Socket); };
|
||||
}
|
||||
else if (strcmp(pTargetText, "CAMERA_SHOULDER") == 0)
|
||||
{
|
||||
CCamera* pEventTarget = m_pGameInstance->Get_Camera(NEXT_LEVEL, CAMERA_SHOULDER);
|
||||
SocketContents.pEventTarget = pEventTarget;
|
||||
SocketContents.funcEvent = [pEventTarget](CTimeSocket& Socket) { pEventTarget->Trigger(Socket); };
|
||||
}
|
||||
else if (strcmp(pTargetText, "ACTOR_PLAYER") == 0)
|
||||
{
|
||||
CPlayer* pEventTarget = m_pGameInstance->Get_Layer(NEXT_LEVEL, LAYER_PLAYER)->Get_Object<CPlayer>();
|
||||
SocketContents.pEventTarget = pEventTarget;
|
||||
SocketContents.funcEvent = [pEventTarget](CTimeSocket& Socket) { pEventTarget->Trigger(Socket); };
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// -------- Param_0 ----------
|
||||
tinyxml2::XMLElement* pParam0Node = pSocketNode->FirstChildElement("Param_0");
|
||||
if (nullptr != pParam0Node)
|
||||
{
|
||||
switch (SocketContents.eTypeParam)
|
||||
{
|
||||
case TIMESOCKET_PARAM::TARGET:
|
||||
{
|
||||
tinyxml2::XMLElement* pOtherTargetNode = pParam0Node->FirstChildElement("OtherTarget");
|
||||
if (!pOtherTargetNode) break;
|
||||
|
||||
const _char* pLayerNameText = pOtherTargetNode->Attribute("Layer");
|
||||
const _char* pTypeIdText = pOtherTargetNode->Attribute("TypeID");
|
||||
|
||||
if (!pLayerNameText || !pTypeIdText) break;
|
||||
if (pLayerNameText[0] == '\0' || pTypeIdText[0] == '\0') break;
|
||||
|
||||
SocketContents.wstrLayerName = CMyTools::ToWstring(pLayerNameText);
|
||||
SocketContents.wstrKeyName = CMyTools::ToWstring(pTypeIdText);
|
||||
|
||||
if (string_view(pTypeIdText) == "Ranrok")
|
||||
{
|
||||
SocketContents.pOtherTarget =
|
||||
m_pGameInstance->Get_Layer(NEXT_LEVEL, SocketContents.wstrLayerName)->Get_Object<CRanrok>();
|
||||
}
|
||||
else if (string_view(pTypeIdText) == "CAMERA_CINEMATIC")
|
||||
{
|
||||
SocketContents.pOtherTarget = pCamera;
|
||||
}
|
||||
else if (string_view(pTypeIdText) == "CAMERA_SHOULDER")
|
||||
{
|
||||
SocketContents.pOtherTarget = m_pGameInstance->Get_Camera(NEXT_LEVEL, CAMERA_SHOULDER);
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
case TIMESOCKET_PARAM::TRANSFORM:
|
||||
{
|
||||
tinyxml2::XMLElement* pTransformNode = pParam0Node->FirstChildElement("Transform");
|
||||
ReadPxTransform(pTransformNode, SocketContents.pxTransform);
|
||||
break;
|
||||
}
|
||||
case TIMESOCKET_PARAM::END:
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// -------- vFlags / Param_10 / Param_11 ----------
|
||||
ReadFlags16(pSocketNode->FirstChildElement("vFlags"), SocketContents.vFlags);
|
||||
ReadUInt4(pSocketNode->FirstChildElement("Param_10"), SocketContents.vParam_10);
|
||||
ReadFloat4(pSocketNode->FirstChildElement("Param_11"), SocketContents.vParam_11);
|
||||
CTimeSocket* pSocket = CTimeSocket::Create(&SocketContents);
|
||||
if (!pSocket) {
|
||||
continue;
|
||||
}
|
||||
pTimeLine->m_Sockets.push_back(pSocket);
|
||||
}
|
||||
pTimeLine->m_Sockets.sort([](CTimeSocket* a, CTimeSocket* b) {
|
||||
return a->m_Contents.fRatio < b->m_Contents.fRatio;
|
||||
});
|
||||
pair<_string, TimeLine*> pairResult = { _string(pContentsNode->Name()), pTimeLine };
|
||||
m_pInfoInstance->Load_Events(pairResult);
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
void CLevel_Field::Describe_Entity()
|
||||
{
|
||||
GUI::Begin("CutScene");
|
||||
if (GUI::Button("ReadyCutScene")) {
|
||||
Ready_Layer_CutScene();
|
||||
}
|
||||
if (GUI::Button("DeActiveCutScene")) {
|
||||
_string strDeActiveEvent = "RanrokIntro";
|
||||
m_pInfoInstance->DeActive_ActiveEvent(strDeActiveEvent);
|
||||
}
|
||||
GUI::End();
|
||||
}
|
||||
#endif // _DEBUG
|
||||
|
||||
@@ -62,7 +62,7 @@ HRESULT CLevel_GamePlay::Initialize(void* pArg)
|
||||
m_isDay = true;
|
||||
#endif //
|
||||
#ifdef 나
|
||||
m_isDay = true;
|
||||
m_isDay = false;
|
||||
#endif //
|
||||
#endif // _DEBUG
|
||||
|
||||
@@ -312,11 +312,11 @@ HRESULT CLevel_GamePlay::Ready_Background()
|
||||
#ifdef 기무리
|
||||
isReady_Background = true;
|
||||
isReady_Hogsmeade = true;
|
||||
isReady_Hogwart = true;
|
||||
isReady_Hogwart = false;
|
||||
#endif //
|
||||
#ifdef 나
|
||||
isReady_Background = true;
|
||||
isReady_Hogsmeade = true;
|
||||
isReady_Background = false;
|
||||
isReady_Hogsmeade = false;
|
||||
isReady_Hogwart = false;
|
||||
#endif //
|
||||
#endif // _DEBUG
|
||||
@@ -998,7 +998,7 @@ HRESULT CLevel_GamePlay::Ready_Layer_Monster()
|
||||
isLoad_Monster = true;
|
||||
#endif //
|
||||
#ifdef 기무리
|
||||
isLoad_Monster = true;
|
||||
isLoad_Monster = false;
|
||||
#endif //
|
||||
#ifdef 나
|
||||
|
||||
@@ -1063,7 +1063,6 @@ HRESULT CLevel_GamePlay::Ready_Layer_Manager(const _wstring& strLayerTag)
|
||||
|
||||
HRESULT CLevel_GamePlay::Reday_Layer_EffectPool()
|
||||
{
|
||||
|
||||
//플레이어보다 먼저 생성해야함!
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CEffectPool>(g_iStaticLevel, NEXT_LEVEL, LAYER_EFFECTPOOL))) {
|
||||
return E_FAIL;
|
||||
|
||||
@@ -193,6 +193,10 @@
|
||||
#include "TransformationSide.h"
|
||||
#include "AvadakedavraSide.h"
|
||||
|
||||
#include "Protego_Hit.h"
|
||||
#include "Goblin_ProtegoHit.h"
|
||||
#include "Duelist_ProtegoHit.h"
|
||||
|
||||
#include "TrailObject.h"
|
||||
#include "Instance_Model.h"
|
||||
#include "Trail.h"
|
||||
@@ -425,15 +429,16 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
#endif //
|
||||
#ifdef 기무리
|
||||
isLoad_Background = true;
|
||||
isLoad_Hogwart = true;
|
||||
isLoad_UI_SEQUANTIAL = true;
|
||||
isLoad_Hogwart = false;
|
||||
isLoad_UI_SEQUANTIAL = false;
|
||||
isLoad_NPC = true;
|
||||
isLoad_Monster = true;
|
||||
#endif //
|
||||
#ifdef 나
|
||||
isLoad_Background = true;
|
||||
isLoad_Hogwart = true;
|
||||
isLoad_UI_SEQUANTIAL = false;
|
||||
isLoad_Background = false;
|
||||
isLoad_Hogwart = false;
|
||||
isLoad_UI_SEQUANTIAL = true;
|
||||
isLoad_Monster = true;
|
||||
#endif //
|
||||
#ifdef Bin
|
||||
isLoad_Background = false;
|
||||
@@ -444,6 +449,7 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
|
||||
#pragma region MAP_MODELS
|
||||
vector<future<vector<FOLDER_LOAD*>*>> jobMapModels;
|
||||
vector<future<pair<_wstring, CShader*>*>> jobMapShaders;
|
||||
{
|
||||
{ /* Terrain */
|
||||
jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
@@ -1076,6 +1082,43 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
#pragma region SHADER
|
||||
|
||||
{
|
||||
jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext,
|
||||
FX_UIEDITOR,
|
||||
TEXT("../Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl"), VTXPOSTEX::Elements, VTXPOSTEX::iNumElements));
|
||||
jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext,
|
||||
FX_UIINSTANCE,
|
||||
TEXT("../Bin/Resources/ShaderFiles/Shader_UI_Instance.hlsl"), VTX_POSTEX_INSTANCE_UI::Elements, VTX_POSTEX_INSTANCE_UI::iNumElements));
|
||||
jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext,
|
||||
FX_INSTANCE_MODEL,
|
||||
TEXT("../Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl"), VTX_MODEL_INSTANCE_PARTICLE::Elements, VTX_MODEL_INSTANCE_PARTICLE::iNumElements));
|
||||
jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext,
|
||||
FX_INSTANCE_PROP_MODEL,
|
||||
TEXT("../Bin/Resources/ShaderFiles/Shader_VtxWorldModelInstance.hlsl"), VTX_MODEL_INSTANCE_MODEL::Elements, VTX_MODEL_INSTANCE_MODEL::iNumElements));
|
||||
jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext,
|
||||
FX_NPC_PBR_ANIM,
|
||||
TEXT("../Bin/Resources/ShaderFiles/Shader_NPC_PBR_Anim.hlsl"), VTXANIMMESH::Elements, VTXANIMMESH::iNumElements));
|
||||
jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext,
|
||||
FX_ANIMMESH,
|
||||
TEXT("../Bin/Resources/ShaderFiles/Shader_VtxAnimMesh.hlsl"), VTXANIMMESH::Elements, VTXANIMMESH::iNumElements));
|
||||
jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext,
|
||||
FX_POSTEX,
|
||||
TEXT("../Bin/Resources/ShaderFiles/Shader_VtxPosTex.hlsl"), VTXPOSTEX::Elements, VTXPOSTEX::iNumElements));
|
||||
jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext,
|
||||
FX_NORTEX,
|
||||
TEXT("../Bin/Resources/ShaderFiles/Shader_VtxNorTex.hlsl"), VTXNORTEX::Elements, VTXNORTEX::iNumElements));
|
||||
jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext,
|
||||
FX_MESH,
|
||||
TEXT("../Bin/Resources/ShaderFiles/Shader_VtxMesh.hlsl"), VTXMESH::Elements, VTXMESH::iNumElements));
|
||||
jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext,
|
||||
FX_VTXPOS,
|
||||
TEXT("../Bin/Resources/ShaderFiles/Shader_VtxPos.hlsl"), VTXPOS::Elements, VTXPOS::iNumElements));
|
||||
}
|
||||
|
||||
#pragma endregion
|
||||
/* LAND_MODEL */
|
||||
{
|
||||
/* For.Prototype_Component_South_Hogwart_Land_LOD1 */
|
||||
@@ -1891,70 +1934,6 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
|
||||
|
||||
|
||||
#pragma endregion
|
||||
#pragma region SHADER
|
||||
|
||||
m_strMessage = TEXT("셰이더를(을) 로딩 중 입니다.");
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_UIEDITOR,
|
||||
CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl"),
|
||||
VTXPOSTEX::Elements, VTXPOSTEX::iNumElements)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_UIINSTANCE,
|
||||
CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_UI_Instance.hlsl"),
|
||||
VTX_POSTEX_INSTANCE_UI::Elements, VTX_POSTEX_INSTANCE_UI::iNumElements)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_INSTANCE_MODEL,
|
||||
CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl"),
|
||||
VTX_MODEL_INSTANCE_PARTICLE::Elements, VTX_MODEL_INSTANCE_PARTICLE::iNumElements)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_INSTANCE_PROP_MODEL,
|
||||
CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_VtxWorldModelInstance.hlsl"),
|
||||
VTX_MODEL_INSTANCE_MODEL::Elements, VTX_MODEL_INSTANCE_MODEL::iNumElements)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_VTXPOS,
|
||||
CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_VtxPos.hlsl"),
|
||||
VTXPOS::Elements, VTXPOS::iNumElements)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_NPC_PBR_ANIM,
|
||||
CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_NPC_PBR_Anim.hlsl"),
|
||||
VTXANIMMESH::Elements, VTXANIMMESH::iNumElements)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_MESH,
|
||||
CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_VtxMesh.hlsl"),
|
||||
VTXMESH::Elements, VTXMESH::iNumElements)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_ANIMMESH,
|
||||
CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_VtxAnimMesh.hlsl"),
|
||||
VTXANIMMESH::Elements, VTXANIMMESH::iNumElements)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_POSTEX,
|
||||
CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_VtxPosTex.hlsl"),
|
||||
VTXPOSTEX::Elements, VTXPOSTEX::iNumElements)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_NORTEX,
|
||||
CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_VtxNorTex.hlsl"),
|
||||
VTXNORTEX::Elements, VTXNORTEX::iNumElements)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
#pragma endregion
|
||||
m_strMessage = TEXT("모델를(을) 로딩 중 입니다.");
|
||||
|
||||
@@ -2570,6 +2549,16 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CGoblin_ProtegoHit>(g_iStaticLevel, CGoblin_ProtegoHit::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CDuelist_ProtegoHit>(g_iStaticLevel, CDuelist_ProtegoHit::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CGoblin_Attack>(g_iStaticLevel, CGoblin_Attack::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -2614,6 +2603,10 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CProtego_Hit>(g_iStaticLevel, CProtego_Hit::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CLightningSide>(g_iStaticLevel, CLightningSide::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -3737,11 +3730,28 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
|
||||
|
||||
#pragma region RECEIVE_THREAD
|
||||
{ // MapModels
|
||||
{
|
||||
m_strMessage = TEXT("셰이더를(을) 로딩 중 입니다.");
|
||||
_uint iIndex = 0;
|
||||
for (auto& JobMapModels : jobMapModels)
|
||||
for (auto& JobMapShader : jobMapShaders)
|
||||
{
|
||||
vector<FOLDER_LOAD*>* pOut = JobMapModels.get();
|
||||
pair<_wstring, CShader*>* pOut = JobMapShader.get();
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, pOut->first, pOut->second))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
Safe_Delete(pOut);
|
||||
}
|
||||
}
|
||||
|
||||
/* 쉐이더 로딩 종료 이후 로딩*/
|
||||
|
||||
|
||||
{ // MapModels
|
||||
m_strMessage = TEXT("모델를(을) 로딩 중 입니다.");
|
||||
_uint iIndex = 0;
|
||||
for (auto& JobMapModel : jobMapModels)
|
||||
{
|
||||
vector<FOLDER_LOAD*>* pOut = JobMapModel.get();
|
||||
for (_uint i = 0; i < pOut->size(); ++i) {
|
||||
FOLDER_LOAD* pContents = (*pOut)[i];
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, pContents->pModelTag, pContents->pLoadedModel))) {
|
||||
@@ -3763,25 +3773,28 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
m_strMessage = TEXT("정보를 불러오는 중입니다.");
|
||||
|
||||
m_strMessage = TEXT("모델을 다시 불러오는 중입니다. ");
|
||||
{
|
||||
CModel* pModelOriginal = (CModel*)m_pGameInstance->Find_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Ranrok_Model"));
|
||||
CMotion_Trail::MODELCAPTURE_DESC Desc{};
|
||||
Desc.fMaxCaptureLifeTime = 2.f;
|
||||
Desc.iMaximumCapture = 4;
|
||||
Desc.iNumBones = pModelOriginal->Get_BoneAbsoluteCount();
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Ranrok_MotionTrail"), CMotion_Trail::Create(m_pDevice, m_pContext, &Desc)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
CModel* pModelOriginal = (CModel*)m_pGameInstance->Find_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Goblin_Assassin_Model"));
|
||||
CMotion_Trail::MODELCAPTURE_DESC Desc{};
|
||||
Desc.fMaxCaptureLifeTime = 2.f;
|
||||
Desc.iMaximumCapture = 4;
|
||||
Desc.iNumBones = pModelOriginal->Get_BoneAbsoluteCount();
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Goblin_Assassin_MotionTrail"), CMotion_Trail::Create(m_pDevice, m_pContext, &Desc)))) {
|
||||
return E_FAIL;
|
||||
if (isLoad_Monster) {
|
||||
{
|
||||
CModel* pModelOriginal = (CModel*)m_pGameInstance->Find_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Ranrok_Model"));
|
||||
CMotion_Trail::MODELCAPTURE_DESC Desc{};
|
||||
Desc.fMaxCaptureLifeTime = 2.f;
|
||||
Desc.iMaximumCapture = 4;
|
||||
Desc.iNumBones = pModelOriginal->Get_BoneAbsoluteCount();
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Ranrok_MotionTrail"), CMotion_Trail::Create(m_pDevice, m_pContext, &Desc)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
CModel* pModelOriginal = (CModel*)m_pGameInstance->Find_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Goblin_Assassin_Model"));
|
||||
CMotion_Trail::MODELCAPTURE_DESC Desc{};
|
||||
Desc.fMaxCaptureLifeTime = 2.f;
|
||||
Desc.iMaximumCapture = 4;
|
||||
Desc.iNumBones = pModelOriginal->Get_BoneAbsoluteCount();
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Goblin_Assassin_MotionTrail"), CMotion_Trail::Create(m_pDevice, m_pContext, &Desc)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4100,10 +4113,28 @@ pair<_wstring, CModel*>* APIENTRY Deferred_ModelLoad_Main(ID3D11Device* pDevice,
|
||||
return Out;
|
||||
}
|
||||
|
||||
pair<_wstring, CShader*>* APIENTRY Deferred_ShaderLoad_Main(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, const _wstring& strPrototypeTag, const _tchar* pShaderFilePath, const D3D11_INPUT_ELEMENT_DESC* pElements, _uint iNumElements)
|
||||
{
|
||||
if (FAILED(CoInitializeEx(nullptr, 0))) {
|
||||
assert(false);
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
CShader* pShader = CShader::Create(pDevice, pContext, pShaderFilePath, pElements, iNumElements);
|
||||
|
||||
CoUninitialize();
|
||||
pair<_wstring, CShader*>* Out = new pair<_wstring, CShader*>(strPrototypeTag, pShader);
|
||||
return Out;
|
||||
}
|
||||
|
||||
future<pair<_wstring, CModel*>*> CLoader::Deferred_ModelLoad(MODEL eType, const _char* pDirectoryPath, _fmatrix PreTransform, const _tchar* pPrototypeTag) {
|
||||
return m_pGameInstance->EnqueueJob(&Deferred_ModelLoad_Main, m_pDevice, m_pContext, eType, pDirectoryPath, pPrototypeTag, PreTransform);
|
||||
}
|
||||
|
||||
future<pair<_wstring, CShader*>*> CLoader::Deferred_ShaderLoad(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, const _wstring& strPrototypeTag, const _tchar* pShaderFilePath, const D3D11_INPUT_ELEMENT_DESC* pElements, _uint iNumElements) {
|
||||
return m_pGameInstance->EnqueueJob(&Deferred_ShaderLoad_Main, pDevice, pContext, strPrototypeTag, pShaderFilePath, pElements, iNumElements);
|
||||
}
|
||||
|
||||
void CLoader::Ready_MapModels(vector<future<vector<FOLDER_LOAD*>*>>& jobMapModels)
|
||||
{
|
||||
|
||||
|
||||
@@ -151,13 +151,11 @@ void CMapElement_Static::ReadyForPhysX()
|
||||
}
|
||||
m_bConverted = true;
|
||||
_uint iLevel = NEXT_LEVEL;
|
||||
for (_uint iIndexLOD = 0; iIndexLOD < m_iMaxLodLevel + 1; ++iIndexLOD)
|
||||
{
|
||||
CModel* pModel = m_pModelComs[iIndexLOD];
|
||||
|
||||
if (FAILED(pModel->Ready_PhysXMeshes(XMMatrixIdentity(), iLevel))) {
|
||||
assert(false);
|
||||
}
|
||||
CModel* pModel = m_pModelComs[0];
|
||||
|
||||
if (FAILED(pModel->Ready_PhysXMeshes(XMMatrixIdentity(), iLevel))) {
|
||||
assert(false);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -168,26 +166,22 @@ void CMapElement_Static::ConvertToPhysX()
|
||||
}
|
||||
m_bReadyToCreatePhysX = true;
|
||||
|
||||
m_RigidBodies.resize(m_iMaxLodLevel + 1);
|
||||
for (_uint iIndexLOD = 0; iIndexLOD < m_iMaxLodLevel + 1; ++iIndexLOD)
|
||||
CModel* pModel = m_pModelComs[0];
|
||||
|
||||
_uint iNumMeshes = pModel->Get_NumMeshes();
|
||||
|
||||
for (_uint iIndex = 0; iIndex < iNumMeshes; ++iIndex)
|
||||
{
|
||||
CModel* pModel = m_pModelComs[iIndexLOD];
|
||||
|
||||
_uint iNumMeshes = pModel->Get_NumMeshes();
|
||||
|
||||
for (_uint iIndex = 0; iIndex < iNumMeshes; ++iIndex)
|
||||
{
|
||||
_wstring wstrName = CMyTools::ToWstring(pModel->Get_MeshName(iIndex)) + to_wstring(iIndex);
|
||||
CRigidBody_Static* pRigidBody = { nullptr };
|
||||
CRigidBody_Static::RIGIDBODY_STATIC_DESC Desc = {};
|
||||
Desc.iSubKind = ENUM_CLASS(PXOBJECT::TERRAIN);
|
||||
Desc.pMeshName = wstrName.c_str();
|
||||
Desc.pWorldMatrix = m_pTransformCom->Get_WorldMatrixPtr();
|
||||
if (FAILED(__super::Add_Asset_Component(NEXT_LEVEL, wstrName, (CComponent**)&pRigidBody, &Desc))) {
|
||||
assert(false);
|
||||
}
|
||||
m_RigidBodies[iIndexLOD].push_back(pRigidBody);
|
||||
_wstring wstrName = CMyTools::ToWstring(pModel->Get_MeshName(iIndex)) + to_wstring(iIndex);
|
||||
CRigidBody_Static* pRigidBody = { nullptr };
|
||||
CRigidBody_Static::RIGIDBODY_STATIC_DESC Desc = {};
|
||||
Desc.iSubKind = ENUM_CLASS(PXOBJECT::TERRAIN);
|
||||
Desc.pMeshName = wstrName.c_str();
|
||||
Desc.pWorldMatrix = m_pTransformCom->Get_WorldMatrixPtr();
|
||||
if (FAILED(__super::Add_Asset_Component(NEXT_LEVEL, wstrName, (CComponent**)&pRigidBody, &Desc))) {
|
||||
assert(false);
|
||||
}
|
||||
m_RigidBodies.push_back(pRigidBody);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -224,9 +218,7 @@ void CMapElement_Static::Free()
|
||||
SAFE_RELEASE(m_pShaderCom);
|
||||
|
||||
for (_uint i = 0; i < m_RigidBodies.size(); ++i) {
|
||||
for (_uint j = 0; j < m_RigidBodies[i].size(); ++j) {
|
||||
SAFE_RELEASE(m_RigidBodies[i][j]);
|
||||
}
|
||||
SAFE_RELEASE(m_RigidBodies[i]);
|
||||
} m_RigidBodies.clear();
|
||||
|
||||
for (auto& pModel : m_pModelComs)
|
||||
|
||||
@@ -143,26 +143,23 @@ void CMapObject_Collision::ReadyForPhysX()
|
||||
}
|
||||
m_bConverted = true;
|
||||
_uint iLevel = NEXT_LEVEL;
|
||||
for (_uint iIndexLOD = 0; iIndexLOD < m_iMaxLodLevel + 1; ++iIndexLOD)
|
||||
{
|
||||
CModel* pModel = m_pModelComs[iIndexLOD];
|
||||
|
||||
_matrix parentMatrix = m_pParentTransformCom->Get_XMWorldMatrix();
|
||||
_matrix idenMatrix = XMMatrixIdentity();
|
||||
_bool bSkip = { false };
|
||||
for (_int i = 0; i < 4; ++i) {
|
||||
if (false == XMVector4NearEqual(idenMatrix.r[i], parentMatrix.r[i], XMVectorReplicate(FLT_EPSILON5))) {
|
||||
if (FAILED(pModel->Ready_PhysXMeshes(XMLoadFloat4x4(&m_CombinedWorldMatrix), iLevel))) {
|
||||
assert(false);
|
||||
}
|
||||
bSkip = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (false == bSkip) {
|
||||
if (FAILED(pModel->Ready_PhysXMeshes(m_pParentTransformCom->Get_XMWorldMatrix(), iLevel))) {
|
||||
CModel* pModel = m_pModelComs[0];
|
||||
_matrix parentMatrix = m_pParentTransformCom->Get_XMWorldMatrix();
|
||||
_matrix idenMatrix = XMMatrixIdentity();
|
||||
_bool bSkip = { false };
|
||||
for (_int i = 0; i < 4; ++i) {
|
||||
if (false == XMVector4NearEqual(idenMatrix.r[i], parentMatrix.r[i], XMVectorReplicate(FLT_EPSILON5))) {
|
||||
if (FAILED(pModel->Ready_PhysXMeshes(XMLoadFloat4x4(&m_CombinedWorldMatrix), iLevel))) {
|
||||
assert(false);
|
||||
}
|
||||
bSkip = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (false == bSkip) {
|
||||
if (FAILED(pModel->Ready_PhysXMeshes(m_pParentTransformCom->Get_XMWorldMatrix(), iLevel))) {
|
||||
assert(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -174,26 +171,22 @@ void CMapObject_Collision::ConvertToPhysX()
|
||||
}
|
||||
m_bReadyToCreatePhysX = true;
|
||||
|
||||
m_RigidBodies.resize(m_iMaxLodLevel + 1);
|
||||
for (_uint iIndexLOD = 0; iIndexLOD < m_iMaxLodLevel + 1; ++iIndexLOD)
|
||||
{
|
||||
CModel* pModel = m_pModelComs[iIndexLOD];
|
||||
CModel* pModel = m_pModelComs[0];
|
||||
|
||||
_uint iNumMeshes = pModel->Get_NumMeshes();
|
||||
|
||||
for (_uint iIndex = 0; iIndex < iNumMeshes; ++iIndex)
|
||||
{
|
||||
_wstring wstrName = CMyTools::ToWstring(pModel->Get_MeshName(iIndex)) + to_wstring(iIndex);
|
||||
CRigidBody_Static* pRigidBody = { nullptr };
|
||||
CRigidBody_Static::RIGIDBODY_STATIC_DESC Desc = {};
|
||||
Desc.iSubKind = ENUM_CLASS(PXOBJECT::TERRAIN);
|
||||
Desc.pMeshName = wstrName.c_str();
|
||||
Desc.pWorldMatrix = m_pTransformCom->Get_WorldMatrixPtr();
|
||||
if (FAILED(__super::Add_Asset_Component(NEXT_LEVEL, wstrName, (CComponent**)&pRigidBody, &Desc))) {
|
||||
assert(false);
|
||||
}
|
||||
m_RigidBodies[iIndexLOD].push_back(pRigidBody);
|
||||
_uint iNumMeshes = pModel->Get_NumMeshes();
|
||||
|
||||
for (_uint iIndex = 0; iIndex < iNumMeshes; ++iIndex)
|
||||
{
|
||||
_wstring wstrName = CMyTools::ToWstring(pModel->Get_MeshName(iIndex)) + to_wstring(iIndex);
|
||||
CRigidBody_Static* pRigidBody = { nullptr };
|
||||
CRigidBody_Static::RIGIDBODY_STATIC_DESC Desc = {};
|
||||
Desc.iSubKind = ENUM_CLASS(PXOBJECT::TERRAIN);
|
||||
Desc.pMeshName = wstrName.c_str();
|
||||
Desc.pWorldMatrix = m_pTransformCom->Get_WorldMatrixPtr();
|
||||
if (FAILED(__super::Add_Asset_Component(NEXT_LEVEL, wstrName, (CComponent**)&pRigidBody, &Desc))) {
|
||||
assert(false);
|
||||
}
|
||||
m_RigidBodies.push_back(pRigidBody);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -278,10 +271,7 @@ void CMapObject_Collision::Free()
|
||||
} m_pModelComs.clear();
|
||||
|
||||
for (_uint i = 0; i < m_RigidBodies.size(); ++i) {
|
||||
for (_uint j = 0; j < m_RigidBodies[i].size(); ++j) {
|
||||
SAFE_RELEASE(m_RigidBodies[i][j]);
|
||||
}
|
||||
m_RigidBodies[i].clear();
|
||||
SAFE_RELEASE(m_RigidBodies[i]);
|
||||
} m_RigidBodies.clear();
|
||||
|
||||
m_ModelPrototypeTags.clear();
|
||||
|
||||
@@ -158,13 +158,11 @@ void CMapObject_Render::ReadyForPhysX()
|
||||
m_bConverted = true;
|
||||
|
||||
_uint iLevel = NEXT_LEVEL;
|
||||
for (_uint iIndexLOD = 0; iIndexLOD < m_iMaxLodLevel + 1; ++iIndexLOD)
|
||||
{
|
||||
CModel* pModel = m_pModelComs[iIndexLOD];
|
||||
|
||||
if (FAILED(pModel->Ready_PhysXMeshes(XMMatrixIdentity(), iLevel))) {
|
||||
assert(false);
|
||||
}
|
||||
CModel* pModel = m_pModelComs[0];
|
||||
|
||||
if (FAILED(pModel->Ready_PhysXMeshes(XMMatrixIdentity(), iLevel))) {
|
||||
assert(false);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -175,26 +173,22 @@ void CMapObject_Render::ConvertToPhysX()
|
||||
}
|
||||
m_bReadyToCreatePhysX = true;
|
||||
|
||||
m_RigidBodies.resize(m_iMaxLodLevel + 1);
|
||||
for (_uint iIndexLOD = 0; iIndexLOD < m_iMaxLodLevel + 1; ++iIndexLOD)
|
||||
CModel* pModel = m_pModelComs[0];
|
||||
|
||||
_uint iNumMeshes = pModel->Get_NumMeshes();
|
||||
|
||||
for (_uint iIndex = 0; iIndex < iNumMeshes; ++iIndex)
|
||||
{
|
||||
CModel* pModel = m_pModelComs[iIndexLOD];
|
||||
|
||||
_uint iNumMeshes = pModel->Get_NumMeshes();
|
||||
|
||||
for (_uint iIndex = 0; iIndex < iNumMeshes; ++iIndex)
|
||||
{
|
||||
_wstring wstrName = CMyTools::ToWstring(pModel->Get_MeshName(iIndex)) + to_wstring(iIndex);
|
||||
CRigidBody_Static* pRigidBody = { nullptr };
|
||||
CRigidBody_Static::RIGIDBODY_STATIC_DESC Desc = {};
|
||||
Desc.iSubKind = ENUM_CLASS(PXOBJECT::TERRAIN);
|
||||
Desc.pMeshName = wstrName.c_str();
|
||||
Desc.pWorldMatrix = &m_CombinedWorldMatrix;
|
||||
if (FAILED(__super::Add_Asset_Component(NEXT_LEVEL, wstrName, (CComponent**)&pRigidBody, &Desc))) {
|
||||
assert(false);
|
||||
}
|
||||
m_RigidBodies[iIndexLOD].push_back(pRigidBody);
|
||||
_wstring wstrName = CMyTools::ToWstring(pModel->Get_MeshName(iIndex)) + to_wstring(iIndex);
|
||||
CRigidBody_Static* pRigidBody = { nullptr };
|
||||
CRigidBody_Static::RIGIDBODY_STATIC_DESC Desc = {};
|
||||
Desc.iSubKind = ENUM_CLASS(PXOBJECT::TERRAIN);
|
||||
Desc.pMeshName = wstrName.c_str();
|
||||
Desc.pWorldMatrix = &m_CombinedWorldMatrix;
|
||||
if (FAILED(__super::Add_Asset_Component(NEXT_LEVEL, wstrName, (CComponent**)&pRigidBody, &Desc))) {
|
||||
assert(false);
|
||||
}
|
||||
m_RigidBodies.push_back(pRigidBody);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -305,9 +299,7 @@ void CMapObject_Render::Free()
|
||||
SAFE_RELEASE(m_pDefaultGlassTextureCom);
|
||||
|
||||
for (_uint i = 0; i < m_RigidBodies.size(); ++i) {
|
||||
for (_uint j = 0; j < m_RigidBodies[i].size(); ++j) {
|
||||
SAFE_RELEASE(m_RigidBodies[i][j]);
|
||||
}
|
||||
SAFE_RELEASE(m_RigidBodies[i]);
|
||||
} m_RigidBodies.clear();
|
||||
|
||||
for (auto& pModel : m_pModelComs)
|
||||
|
||||
@@ -100,7 +100,7 @@ void CNPCInteraction::NpcInfo(void* pArg)
|
||||
m_pInfo.fNPCPosition = Info->fNPCPosition;
|
||||
|
||||
_vector MonsterPos = static_cast<CUnit*>(Info->pOwner)->Get_WorldPostion();
|
||||
_vector HeadPos = MonsterPos + XMVectorSet(0.5f, 2.f, 0.f, 0.f);
|
||||
_vector HeadPos = MonsterPos + XMVectorSet(0.f, 2.f, 0.f, 0.f);
|
||||
XMStoreFloat4(&m_pInfo.fNPCPosition, HeadPos);
|
||||
}
|
||||
|
||||
@@ -109,7 +109,7 @@ void CNPCInteraction::Priority_Update(_float fTimeDelta)
|
||||
if (m_pInfo.pOwner != nullptr)
|
||||
{
|
||||
_vector MonsterPos = static_cast<CUnit*>(m_pInfo.pOwner)->Get_WorldPostion();
|
||||
_vector HeadPos = XMVectorAdd(MonsterPos, XMVectorSet(0.5f, 2.f, 0.f, 0.f));
|
||||
_vector HeadPos = XMVectorAdd(MonsterPos, XMVectorSet(0.f, 2.f, 0.f, 0.f));
|
||||
XMStoreFloat4(&m_pInfo.fNPCPosition, HeadPos);
|
||||
|
||||
_vector ScreenPos = XMVector3Project(
|
||||
|
||||
@@ -296,12 +296,14 @@ void CNomalJap::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
_vector vDir = m_pTransformCom->Get_State(STATE::LOOK);
|
||||
vDir = XMVector3Normalize(vDir);
|
||||
|
||||
_float fRandAngle = XMConvertToRadians(m_pGameInstance->Real_Random_Float(-180.f, 0.f));
|
||||
_float fRandAngle = XMConvertToRadians(m_pGameInstance->Real_Random_Float(-180.f, 180.f));
|
||||
|
||||
_matrix rotX = XMMatrixRotationX(fRandAngle);
|
||||
_vector vRandDir = XMVector3TransformNormal(vDir, rotX);
|
||||
|
||||
XMStoreFloat3(&m_vCameraLook, XMVector3Normalize(vRandDir));
|
||||
|
||||
m_fLinearSpeed = 15.f;
|
||||
}
|
||||
else {
|
||||
Get_PartObject<CEffectParts>("JapPT0")->Get_Component<CTransform>()->LookAt(m_pOwner->Get_WorldPostion());
|
||||
|
||||
@@ -116,7 +116,7 @@ HRESULT CPlayer::Initialize(void* pArg)
|
||||
|
||||
// UI 연동 추가
|
||||
m_pInfoInstance->Add_Event(TEXT("UseSpell"), [this](void* p) {this->Get_Spell(*reinterpret_cast<_int*>(p)); });
|
||||
m_pInfoInstance->Add_Event(TEXT("Canvas_Change"), [this](void* p) {this->Get_UIState(*reinterpret_cast<_int*>(p)); });
|
||||
m_pInfoInstance->Add_Event(TEXT("Player_CanvasChange"), [this](void* p) {this->Get_UIState(*reinterpret_cast<_int*>(p)); });
|
||||
|
||||
m_bAI = false;
|
||||
|
||||
@@ -430,14 +430,21 @@ HRESULT CPlayer::Render_Shadow(SHADOW eType)
|
||||
}
|
||||
void CPlayer::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
{
|
||||
pair<_uint, _bool> pairAnimInfo;
|
||||
_int iCurrAnim = m_pModelCom->Get_AnimIndex();
|
||||
|
||||
if (m_pFSM->IsEnable(FSMSTATE::DODGE | FSMSTATE::BLINK) ||
|
||||
m_bShield ||
|
||||
iCurrAnim == m_Animation[STATEANIM::AVADA_KEDAVRA].first ||
|
||||
iCurrAnim == m_Animation[STATEANIM::ANCIENT_LIGHTNING].first ||
|
||||
iCurrAnim == m_Animation[STATEANIM::ANCIENT_THROW].first)
|
||||
return;
|
||||
|
||||
if (m_bShield)
|
||||
{
|
||||
m_pFSM->Change_State(FSMSTATE::BLOCK);
|
||||
return;
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
if (m_isDebugMode == true)
|
||||
return;
|
||||
@@ -855,7 +862,8 @@ void CPlayer::Player_PixRot()
|
||||
{
|
||||
_int iCurrAnim = m_pModelCom->Get_AnimIndex();
|
||||
if (iCurrAnim == m_Animation[STATEANIM::AVADA_KEDAVRA].first ||
|
||||
iCurrAnim == m_Animation[STATEANIM::BROOM_DISMOUNT].first)
|
||||
iCurrAnim == m_Animation[STATEANIM::BROOM_DISMOUNT].first||
|
||||
iCurrAnim == m_Animation[STATEANIM::IDLE].first)
|
||||
{
|
||||
_vector vUp = XMVectorSet(0.f, 1.f, 0.f, 0.f);
|
||||
|
||||
@@ -1014,6 +1022,7 @@ void CPlayer::Describe_Entity()
|
||||
m_pShaderCom->Shader_Refresh();
|
||||
}
|
||||
m_pCharacter_Controller->Describe_Entity();
|
||||
GUI::Checkbox("Shield", &m_bShield);
|
||||
_float4 vMomentum = {};
|
||||
XMStoreFloat4(&vMomentum, m_pTransformCom->Get_CurrentMomentum());
|
||||
GUI::Text("%.2f %.2f %.2f %.2f ", vMomentum.x, vMomentum.y, vMomentum.z, vMomentum.w);
|
||||
|
||||
@@ -32,6 +32,7 @@
|
||||
#include "State_Spell.h"
|
||||
#include "State_AncientSpell.h"
|
||||
#include "State_Shield.h"
|
||||
#include "State_Block.h"
|
||||
#include "State_Hit.h"
|
||||
#include "State_Broom_Ride.h"
|
||||
#include "State_Broom_Ride_Move.h"
|
||||
@@ -192,7 +193,6 @@ void CPlayer::Behavior_IdleEnter() {
|
||||
|
||||
pairAnimInfo = m_Animation[STATEANIM::IDLE];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
|
||||
}
|
||||
|
||||
HRESULT CPlayer::Behavior_IdleExitCheck(_float fTimeDelta)
|
||||
@@ -370,16 +370,16 @@ HRESULT CPlayer::Behavior_CutSceneExitCheck(_float fTimeDelta)
|
||||
{
|
||||
if (m_bOpeningCutScene)
|
||||
{
|
||||
_vector Offset = XMVectorSet(1.820f, 0.44f, 0.f, 0.f);
|
||||
m_pTransformCom->Set_WorldMatrix(m_pCarriage->Get_Component<CTransform>()->Get_XMWorldMatrix());
|
||||
m_pCharacter_Controller->Set_Position(m_pCarriage->Get_WorldPostion() + Offset);
|
||||
//_vector Offset = XMVectorSet(1.820f, 0.44f, 0.f, 0.f);
|
||||
//m_pTransformCom->Set_WorldMatrix(m_pCarriage->Get_Component<CTransform>()->Get_XMWorldMatrix());
|
||||
m_pCharacter_Controller->Set_Position(m_pCarriage->Get_WorldPostion() /*+ Offset*/);
|
||||
}
|
||||
|
||||
if (m_pCarriage->Get_Component<CModel>()->IsFinishedAnim())
|
||||
/*if (m_pCarriage->Get_Component<CModel>()->IsFinishedAnim())
|
||||
{
|
||||
m_pFSM->Change_State(FSMSTATE::IDLE);
|
||||
return E_FAIL;
|
||||
}
|
||||
}*/
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -1686,6 +1686,7 @@ void CPlayer::Behavior_ShieldEnter()
|
||||
pair<_uint, _bool> pairAnimInfo;
|
||||
|
||||
m_pFSM->Enable_State(FSMSTATE::SHIELD);
|
||||
|
||||
pairAnimInfo = m_Animation[STATEANIM::SKILL2];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true, 1.3f);
|
||||
|
||||
@@ -1694,87 +1695,12 @@ void CPlayer::Behavior_ShieldEnter()
|
||||
0.1f);
|
||||
}
|
||||
|
||||
HRESULT CPlayer::Behavior_ShieldExitCheck()
|
||||
HRESULT CPlayer::Behavior_ShieldExitCheck(_float fTimeDelta)
|
||||
{
|
||||
pair<_uint, _bool> pairAnimInfo;
|
||||
_int iCurrAnimIndex = m_pModelCom->Get_AnimIndex();
|
||||
_float fRatio = m_pModelCom->Get_CurrentTrackProgressRatio();
|
||||
_float fEventRatio = 0.2f;
|
||||
|
||||
if (m_bShield)
|
||||
{
|
||||
pairAnimInfo = m_Animation[STATEANIM::SHIELD_BLOCK];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
|
||||
if (m_pGameInstance->Key_Pressing(DIK_Q))
|
||||
{
|
||||
m_pFSM->Enable_State(FSMSTATE::PARRY);
|
||||
if (m_LockOnInfo.pUnit)
|
||||
{
|
||||
_vector vLook = m_pTransformCom->Get_State(STATE::LOOK);
|
||||
_vector vCameraLook = XMVectorSet(m_vCameraLookDir.x, 0.f, m_vCameraLookDir.z, 0.f);
|
||||
|
||||
vLook = XMVector3Normalize(vLook);
|
||||
vCameraLook = XMVector3Normalize(vCameraLook);
|
||||
|
||||
_float fDot = XMVectorGetX(XMVector3Dot(vLook, vCameraLook));
|
||||
fDot = clamp(fDot, -1.0f, 1.0f);
|
||||
|
||||
_float fAngleRad = acosf(fDot);
|
||||
_float Degree = XMConvertToDegrees(fAngleRad);
|
||||
_vector vCross = XMVector3Cross(vLook, vCameraLook);
|
||||
_float Cross = XMVectorGetY(vCross);
|
||||
|
||||
if (Degree <= 30.f)
|
||||
{
|
||||
pairAnimInfo = m_Animation[STATEANIM::PARRY4];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second,1.f,false,1.f,true, false, false);
|
||||
}
|
||||
else if (Degree <= 60.f)
|
||||
{
|
||||
pairAnimInfo = m_Animation[STATEANIM::PARRY4];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 1.f, true, false, false);
|
||||
}
|
||||
else if (Degree <= 135.f)
|
||||
{
|
||||
if (Cross < 0.f)
|
||||
{
|
||||
pairAnimInfo = m_Animation[STATEANIM::PARRY2];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 1.5f, true, false, false);
|
||||
}
|
||||
else {
|
||||
pairAnimInfo = m_Animation[STATEANIM::PARRY3];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 1.5f, true, false, false);
|
||||
fEventRatio = 0.3f;
|
||||
}
|
||||
}
|
||||
else {
|
||||
pairAnimInfo = m_Animation[STATEANIM::PARRY_180];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 1.3f, true,false, false);
|
||||
}
|
||||
|
||||
}
|
||||
else {
|
||||
pairAnimInfo = m_Animation[STATEANIM::PARRY4];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
}
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::BOMBARDA_SIDE, Get_PartObject<CWand>()); },
|
||||
0.01f);
|
||||
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::STUPEFY, this); },
|
||||
fEventRatio);
|
||||
|
||||
Start_CameraShake(0.3f, 2.f);
|
||||
//m_pGameInstance->SlowMotion(0.8f, 0.3f);
|
||||
m_bShield = false;
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
if (m_pModelCom->IsFinishedAnim()) {
|
||||
if (SUCCEEDED(InputMove()))
|
||||
@@ -1811,10 +1737,153 @@ void CPlayer::Behavior_ShieldExit()
|
||||
m_pFSM->Disable_State(FSMSTATE::SHIELD);
|
||||
m_pFSM->Disable_State(FSMSTATE::PARRY);
|
||||
Reset_Event();
|
||||
m_bShield = false;
|
||||
m_bLookAt = false;
|
||||
}
|
||||
|
||||
void CPlayer::Behavior_BlockEnter()
|
||||
{
|
||||
m_pFSM->Enable_State(FSMSTATE::BLOCK);
|
||||
pair<_uint, _bool> pairAnimInfo;
|
||||
if (m_bShield) {
|
||||
m_bBlock = true;
|
||||
Start_CameraShake(0.3f, 3.f);
|
||||
_int iRand = m_pGameInstance->Real_Random_Int(0, 6);
|
||||
|
||||
switch (iRand)
|
||||
{
|
||||
case 0:
|
||||
pairAnimInfo = m_Animation[STATEANIM::SHIELD_BLOCK1];
|
||||
break;
|
||||
case 1:
|
||||
pairAnimInfo = m_Animation[STATEANIM::SHIELD_BLOCK2];
|
||||
break;
|
||||
case 2:
|
||||
pairAnimInfo = m_Animation[STATEANIM::SHIELD_BLOCK3];
|
||||
break;
|
||||
case 3:
|
||||
pairAnimInfo = m_Animation[STATEANIM::SHIELD_BLOCK4];
|
||||
break;
|
||||
case 4:
|
||||
pairAnimInfo = m_Animation[STATEANIM::SHIELD_BLOCK5];
|
||||
break;
|
||||
case 5:
|
||||
pairAnimInfo = m_Animation[STATEANIM::SHIELD_BLOCK6];
|
||||
break;
|
||||
case 6:
|
||||
pairAnimInfo = m_Animation[STATEANIM::SHIELD_BLOCK7];
|
||||
break;
|
||||
}
|
||||
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 1.f, true, false, false);
|
||||
}
|
||||
}
|
||||
|
||||
HRESULT CPlayer::Behavior_BlockExitCheck(_float fTimeDelta)
|
||||
{
|
||||
pair<_uint, _bool> pairAnimInfo;
|
||||
_int iCurrAnimIndex = m_pModelCom->Get_AnimIndex();
|
||||
_float fRatio = m_pModelCom->Get_CurrentTrackProgressRatio();
|
||||
_float fEventRatio = 0.2f;
|
||||
if (m_bBlock)
|
||||
{
|
||||
if (fRatio >= 0.1f && fRatio <= 0.2f) {
|
||||
m_bCanParry = true;
|
||||
}
|
||||
else {
|
||||
m_bCanParry = false;
|
||||
}
|
||||
}
|
||||
|
||||
if (m_bShield && m_bCanParry && m_pGameInstance->Key_Pressing(DIK_Q))
|
||||
{
|
||||
m_bBlock = false;
|
||||
m_pFSM->Enable_State(FSMSTATE::PARRY);
|
||||
if (m_LockOnInfo.pUnit)
|
||||
{
|
||||
_vector vLook = m_pTransformCom->Get_State(STATE::LOOK);
|
||||
_vector vCameraLook = XMVectorSet(m_vCameraLookDir.x, 0.f, m_vCameraLookDir.z, 0.f);
|
||||
|
||||
vLook = XMVector3Normalize(vLook);
|
||||
vCameraLook = XMVector3Normalize(vCameraLook);
|
||||
|
||||
_float fDot = XMVectorGetX(XMVector3Dot(vLook, vCameraLook));
|
||||
fDot = clamp(fDot, -1.0f, 1.0f);
|
||||
|
||||
_float fAngleRad = acosf(fDot);
|
||||
_float Degree = XMConvertToDegrees(fAngleRad);
|
||||
_vector vCross = XMVector3Cross(vLook, vCameraLook);
|
||||
_float Cross = XMVectorGetY(vCross);
|
||||
|
||||
if (Degree <= 30.f)
|
||||
{
|
||||
pairAnimInfo = m_Animation[STATEANIM::PARRY4];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 1.f, true, false, false);
|
||||
}
|
||||
else if (Degree <= 60.f)
|
||||
{
|
||||
pairAnimInfo = m_Animation[STATEANIM::PARRY4];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 1.f, true, false, false);
|
||||
}
|
||||
else if (Degree <= 135.f)
|
||||
{
|
||||
if (Cross < 0.f)
|
||||
{
|
||||
pairAnimInfo = m_Animation[STATEANIM::PARRY2];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 1.5f, true, false, false);
|
||||
}
|
||||
else {
|
||||
pairAnimInfo = m_Animation[STATEANIM::PARRY3];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 1.5f, true, false, false);
|
||||
fEventRatio = 0.3f;
|
||||
}
|
||||
}
|
||||
else {
|
||||
pairAnimInfo = m_Animation[STATEANIM::PARRY_180];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 1.3f, true, false, false);
|
||||
}
|
||||
}
|
||||
else {
|
||||
pairAnimInfo = m_Animation[STATEANIM::PARRY4];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
}
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::BOMBARDA_SIDE, Get_PartObject<CWand>()); },
|
||||
0.01f);
|
||||
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::STUPEFY, this); },
|
||||
fEventRatio);
|
||||
|
||||
//m_pGameInstance->SlowMotion(0.8f, 0.3f);
|
||||
m_bShield = false;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
if (m_pModelCom->IsFinishedAnim()) {
|
||||
if (SUCCEEDED(InputMove()))
|
||||
{
|
||||
m_pFSM->Change_State(FSMSTATE::MOVE);
|
||||
return E_FAIL;
|
||||
}
|
||||
else {
|
||||
m_pFSM->Change_State(FSMSTATE::IDLE);
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CPlayer::Behavior_BlockExit()
|
||||
{
|
||||
m_pFSM->Disable_State(FSMSTATE::BLOCK);
|
||||
m_bShield = false;
|
||||
}
|
||||
|
||||
void CPlayer::Behavior_HitEnter()
|
||||
{
|
||||
m_pBroom->Set_Ride(false);
|
||||
@@ -1896,6 +1965,7 @@ void CPlayer::Behavior_HitExit()
|
||||
m_pCharacter_Controller->SetGravity(true);
|
||||
m_eHitType = ENUM_CLASS(HIT_TYPE::END);
|
||||
m_bLookAt = false;
|
||||
m_bShield = false;
|
||||
m_fAirTime = 0.f;
|
||||
|
||||
}
|
||||
@@ -2430,16 +2500,16 @@ void CPlayer::Behavior_Broom_DismountEnter()
|
||||
pairAnimInfo = Get_AnimInfo(STATEANIM::BROOM_DISMOUNT);
|
||||
m_pFSM->Enable_State(FSMSTATE::BROOM_DISMOUNT);
|
||||
m_pBroom->Set_Ride(false);
|
||||
_vector look = XMVector3Normalize(m_pTransformCom->Get_State(STATE::LOOK));
|
||||
//_vector look = XMVector3Normalize(m_pTransformCom->Get_State(STATE::LOOK));
|
||||
|
||||
_vector worldUp = XMVectorSet(0.f, 1.f, 0.f, 0.f);
|
||||
//_vector worldUp = XMVectorSet(0.f, 1.f, 0.f, 0.f);
|
||||
|
||||
_vector right = XMVector3Normalize(XMVector3Cross(worldUp, look));
|
||||
_vector up = XMVector3Normalize(XMVector3Cross(look, right));
|
||||
//_vector right = XMVector3Normalize(XMVector3Cross(worldUp, look));
|
||||
//_vector up = XMVector3Normalize(XMVector3Cross(look, right));
|
||||
|
||||
m_pTransformCom->Set_State(STATE::RIGHT, right);
|
||||
m_pTransformCom->Set_State(STATE::UP, up);
|
||||
m_pTransformCom->Set_State(STATE::LOOK, look);
|
||||
//m_pTransformCom->Set_State(STATE::RIGHT, right);
|
||||
//m_pTransformCom->Set_State(STATE::UP, up);
|
||||
//m_pTransformCom->Set_State(STATE::LOOK, look);
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second,1.f,false,1.6f);
|
||||
}
|
||||
|
||||
@@ -3183,12 +3253,23 @@ void CPlayer::Add_FSM()
|
||||
CState_Shield::STATE_SHIELD_DESC Desc{};
|
||||
Desc.pOwner = this;
|
||||
Desc.funcEnterEvent = [this]() { Behavior_ShieldEnter(); };
|
||||
Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_ShieldExitCheck(); };
|
||||
Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_ShieldExitCheck(fTimedelta); };
|
||||
Desc.funcExitEvent = [this]() { Behavior_ShieldExit(); };
|
||||
Desc.funcPriorityUpdate = nullptr;
|
||||
Desc.funcLateUpdate = nullptr;
|
||||
m_States.emplace(FSMSTATE::SHIELD, CState_Shield::Create(&Desc));
|
||||
}
|
||||
|
||||
{
|
||||
CState_Block::STATE_BLOCK_DESC Desc{};
|
||||
Desc.pOwner = this;
|
||||
Desc.funcEnterEvent = [this]() { Behavior_BlockEnter(); };
|
||||
Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_BlockExitCheck(fTimedelta); };
|
||||
Desc.funcExitEvent = [this]() { Behavior_BlockExit(); };
|
||||
Desc.funcPriorityUpdate = nullptr;
|
||||
Desc.funcLateUpdate = nullptr;
|
||||
m_States.emplace(FSMSTATE::BLOCK, CState_Block::Create(&Desc));
|
||||
}
|
||||
#pragma endregion
|
||||
#pragma region Behavior_Combat_Focus
|
||||
|
||||
|
||||
@@ -4,7 +4,8 @@
|
||||
#include "GameInstance.h"
|
||||
#include "EffectParts.h"
|
||||
#include "Player.h"
|
||||
|
||||
#include "EffectPool.h"
|
||||
#include "Layer.h"
|
||||
|
||||
CProtego::CProtego(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CEffect_Container{ pDevice, pContext }
|
||||
@@ -18,6 +19,8 @@ CProtego::CProtego(const CProtego& rhs)
|
||||
|
||||
HRESULT CProtego::Initialize_Prototype()
|
||||
{
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Protego")))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
|
||||
@@ -31,8 +34,6 @@ HRESULT CProtego::Initialize(void* pArg)
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Protego")))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(Create_Effect()))
|
||||
return E_FAIL;
|
||||
@@ -49,7 +50,7 @@ HRESULT CProtego::Initialize(void* pArg)
|
||||
m_fAmountSize = 0.1f;
|
||||
m_fSpeed = 5.f;
|
||||
|
||||
m_fDuration = 3.f;
|
||||
m_fDuration = 6.f;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
@@ -61,8 +62,12 @@ void CProtego::Priority_Update(_float fTimeDelta)
|
||||
|
||||
void CProtego::Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
if (m_bVisible == false) {
|
||||
dynamic_cast<CPlayer*>(m_pOwner)->Set_Shield(false);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
|
||||
m_pSphere->Get_Component<CTransform>()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
|
||||
m_pSphereLay->Get_Component<CTransform>()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
|
||||
@@ -105,6 +110,8 @@ HRESULT CProtego::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
if (FAILED(__super::Pre_Setting(pObject, nullptr)))
|
||||
return E_FAIL;
|
||||
|
||||
m_pGameInstance->Attach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL);
|
||||
|
||||
m_pSphere->Get_Component<CTransform>()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
|
||||
m_pSphereLay->Get_Component<CTransform>()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
|
||||
|
||||
@@ -117,6 +124,8 @@ HRESULT CProtego::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
m_pSphere->Get_Component<CTransform>()->Set_Scale(vSize);
|
||||
m_pSphereLay->Get_Component<CTransform>()->Set_Scale(vSize);
|
||||
|
||||
|
||||
|
||||
m_fSizeAccTime = 0.f;
|
||||
|
||||
return S_OK;
|
||||
@@ -182,6 +191,17 @@ void CProtego::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
ON_COLLISION_INFO* CollisionDesc = static_cast<ON_COLLISION_INFO*>(pDesc);
|
||||
|
||||
dynamic_cast<CPlayer*>(m_pOwner)->Set_Shield(true);
|
||||
|
||||
m_pGameInstance->Get_Layer(NEXT_LEVEL, TEXT("Layer_EffectPool"))->Get_Object<CEffectPool>()
|
||||
->Use_Skill(SKILL_TYPE::PROTEGO_HIT, m_pOwner, &CollisionDesc->vWorldPos);
|
||||
|
||||
m_pOwner->OnCollision(pOther, &CollisionDesc);
|
||||
|
||||
static_cast<CPlayer*>(m_pOwner)->Start_CameraShake(0.3f, 2.f);
|
||||
|
||||
m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL);
|
||||
|
||||
m_bVisible = false;
|
||||
}
|
||||
|
||||
void CProtego::Free()
|
||||
|
||||
@@ -0,0 +1,188 @@
|
||||
#include "pch.h"
|
||||
#include "Protego_Hit.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
#include "EffectParts.h"
|
||||
|
||||
|
||||
CProtego_Hit::CProtego_Hit(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CEffect_Container{ pDevice, pContext }
|
||||
{
|
||||
}
|
||||
|
||||
CProtego_Hit::CProtego_Hit(const CProtego_Hit& rhs)
|
||||
: CEffect_Container(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CProtego_Hit::Initialize_Prototype()
|
||||
{
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/ProtegoHit")))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
|
||||
HRESULT CProtego_Hit::Initialize(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Initialize(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(Create_Effect()))
|
||||
return E_FAIL;
|
||||
|
||||
m_wstrEffectName = L"ProtegoHit";
|
||||
|
||||
m_pHit_SphereLay = Get_PartObject<CEffectParts>("ProtegoHit_Lay");
|
||||
m_pHit_Light = Get_PartObject<CEffectParts>("Hit_Light");
|
||||
|
||||
SAFE_ADDREF(m_pHit_SphereLay);
|
||||
SAFE_ADDREF(m_pHit_Light);
|
||||
|
||||
|
||||
m_fDuration = 3.f;
|
||||
|
||||
_float3 vScale = _float3(1.1f, 1.1f, 1.1f);
|
||||
|
||||
m_pHit_SphereLay->Get_Component<CTransform>()->Set_Scale(vScale);
|
||||
m_pHit_Light->Get_Component<CTransform>()->Set_Scale(vScale);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CProtego_Hit::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
|
||||
}
|
||||
|
||||
void CProtego_Hit::Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
|
||||
Update_Event(fTimeDelta);
|
||||
|
||||
m_pHit_SphereLay->Get_Component<CTransform>()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
|
||||
m_pHit_Light->Get_Component<CTransform>()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
|
||||
}
|
||||
|
||||
void CProtego_Hit::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Late_Update(fTimeDelta);
|
||||
|
||||
|
||||
}
|
||||
|
||||
HRESULT CProtego_Hit::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Pre_Setting(pObject, nullptr)))
|
||||
return E_FAIL;
|
||||
|
||||
_vector vHitPos = XMLoadFloat4(static_cast<_float4*>(pArg));
|
||||
|
||||
CEffectParts* pProtego_HitPT = Get_PartObject<CEffectParts>("Protego_HitPT");
|
||||
CEffectParts* pProtego_HitPT_Line = Get_PartObject<CEffectParts>("Protego_HitPT_Line");
|
||||
CEffectParts* pProtegoHit = Get_PartObject<CEffectParts>("ProtegoHit");
|
||||
|
||||
m_pHit_SphereLay->Get_Component<CTransform>()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
|
||||
m_pHit_Light->Get_Component<CTransform>()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
|
||||
|
||||
pProtego_HitPT->Get_Component<CTransform>()->Set_State(STATE::POSITION, vHitPos);
|
||||
pProtego_HitPT_Line->Get_Component<CTransform>()->Set_State(STATE::POSITION, vHitPos);
|
||||
pProtegoHit->Get_Component<CTransform>()->Set_State(STATE::POSITION, vHitPos);
|
||||
|
||||
|
||||
m_pHit_SphereLay->Set_Visible(true);
|
||||
m_pHit_Light->Set_Visible(true);
|
||||
|
||||
pProtego_HitPT->Set_Visible(true);
|
||||
pProtego_HitPT_Line->Set_Visible(true);
|
||||
pProtegoHit->Set_Visible(true);
|
||||
|
||||
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CProtego_Hit::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Ready_Components(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CProtego_Hit::Ready_Child()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CProtego_Hit* CProtego_Hit::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CProtego_Hit* pInstance = new CProtego_Hit(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CProtego_Hit");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
|
||||
CGameObject* CProtego_Hit::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CProtego_Hit* pInstance = new CProtego_Hit(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CProtego_Hit");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CProtego_Hit::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
{
|
||||
//CTransform* pOtherTransform = p
|
||||
ON_COLLISION_INFO* CollisionDesc = static_cast<ON_COLLISION_INFO*>(pDesc);
|
||||
|
||||
}
|
||||
|
||||
void CProtego_Hit::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pHit_SphereLay);
|
||||
SAFE_RELEASE(m_pHit_Light);
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
|
||||
void CProtego_Hit::Describe_Entity()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
#endif // _DEBUG
|
||||
|
||||
HRESULT CProtego_Hit::Bind_ShaderResources()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
#include "Quest_Canvas.h"
|
||||
#include "GameInstance.h"
|
||||
#include "Quest_Panel.h"
|
||||
#include "InfoInstance.h"
|
||||
|
||||
CQuest_Canvas::CQuest_Canvas(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
:CCanvasObject(pDevice, pContext)
|
||||
@@ -11,8 +10,7 @@ CQuest_Canvas::CQuest_Canvas(ID3D11Device* pDevice, ID3D11DeviceContext* pContex
|
||||
}
|
||||
|
||||
CQuest_Canvas::CQuest_Canvas(const CQuest_Canvas& rhs)
|
||||
:CCanvasObject(rhs),
|
||||
m_pInfoInstance(CInfoInstance::GetInstance())
|
||||
:CCanvasObject(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -43,9 +41,6 @@ HRESULT CQuest_Canvas::Initialize(void* pArg)
|
||||
return E_FAIL;
|
||||
}
|
||||
Visible(false);
|
||||
m_pInfoInstance->Set_AcceptQuest(0);
|
||||
m_pInfoInstance->Set_AcceptQuest(1);
|
||||
m_pInfoInstance->Set_AcceptQuest(2);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -61,8 +61,9 @@ HRESULT CQuest_Data::Load_QuestInfo(const _char* pFilePath)
|
||||
pObjective->QueryIntAttribute("Clear", &Clear);
|
||||
obj.bClear = Clear != 0;
|
||||
pObjective->QueryIntAttribute("TargetID", &obj.iTargetID);
|
||||
pObjective->QueryIntAttribute("RequiredCount", &obj.iRequiredCount);
|
||||
obj.pQuestInfo = CMyTools::ToWstring(pObjective->Attribute("QuestInfo"));
|
||||
pObjective->QueryIntAttribute("CurrentCount", &obj.iCurrentCount);
|
||||
pObjective->QueryIntAttribute("RequiredCount", &obj.iRequiredCount);
|
||||
|
||||
quest.ObjectiveInfo.push_back(obj);
|
||||
|
||||
|
||||
@@ -98,6 +98,13 @@ void CQuest_Info::Update(_float fTimeDelta)
|
||||
m_fAlpha = 0.f;
|
||||
}
|
||||
}
|
||||
|
||||
if (m_iCurrentIndex != m_iQuest_Index)
|
||||
{
|
||||
Y(m_fOriginPerviewSize + (m_pInfoInstance->Get_Quest(m_iCurrentQuest, m_iQuest_Index).ObjectiveInfo.size() * 50.f));
|
||||
m_iCurrentIndex = m_iQuest_Index;
|
||||
}
|
||||
|
||||
m_fTime += fTimeDelta * m_fTimeMult;
|
||||
__super::Update(fTimeDelta);
|
||||
}
|
||||
@@ -129,9 +136,14 @@ HRESULT CQuest_Info::Render()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (m_iQuest_Index != 0)
|
||||
if (m_iQuest_Index != -1)
|
||||
{
|
||||
m_pGameInstance->Render_Text(TEXT("Font_size20"), m_pInfoInstance->Get_Quest(m_iCurrentQuest, m_iQuest_Index).pQuestInfo.c_str(), _float2(m_fFontX + m_fX, m_fFontY - m_fY), XMVectorSet(1.f * m_fAlpha, 1.f * m_fAlpha, 1.f * m_fAlpha, m_fAlpha));
|
||||
|
||||
for (_int i = 0; i < m_pInfoInstance->Get_Quest(m_iCurrentQuest, m_iQuest_Index).ObjectiveInfo.size(); ++i)
|
||||
{
|
||||
m_pGameInstance->Render_Text(TEXT("Font_size20"), m_pInfoInstance->Get_Quest(m_iCurrentQuest, m_iQuest_Index).ObjectiveInfo[i].pQuestInfo.c_str(), _float2(m_fFontX + m_fX, m_fFontY - m_fY + 100 + (50.f * i)), XMVectorSet(1.f * m_fAlpha, 1.f * m_fAlpha, 1.f * m_fAlpha, m_fAlpha));
|
||||
}
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
@@ -235,6 +247,15 @@ void CQuest_Info::Set_Hover(void* pArg)
|
||||
Visible(true);
|
||||
}
|
||||
|
||||
void CQuest_Info::Y(_float fSizeY)
|
||||
{
|
||||
m_fSizeY = fSizeY;
|
||||
|
||||
_float Delta = fSizeY - m_fOriginPerviewSize;
|
||||
|
||||
m_fY = m_fOrigin_Position.y - (Delta * 0.5f);
|
||||
}
|
||||
|
||||
CQuest_Info* CQuest_Info::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CQuest_Info* pInstance = new CQuest_Info(pDevice, pContext);
|
||||
|
||||
@@ -129,7 +129,7 @@ HRESULT CQuest_Info_Header::Render()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (m_iQuest_Index != 0)
|
||||
if (m_iQuest_Index != -1)
|
||||
{
|
||||
_float OffSet = (m_pGameInstance->FontSizeX(TEXT("Font_size20"), m_pInfoInstance->Get_Quest(m_iCurrentQuest, m_iQuest_Index).pQuestName.c_str()) - 30) * 0.5f;
|
||||
m_pGameInstance->Render_Text(TEXT("Font_size20"), m_pInfoInstance->Get_Quest(m_iCurrentQuest, m_iQuest_Index).pQuestName.c_str(), _float2((m_fFontX + m_fX) - OffSet, m_fFontY - m_fY), XMVectorSet(1.f * m_fAlpha, 1.f * m_fAlpha, 1.f * m_fAlpha, m_fAlpha));
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
#include "Quest_Data.h"
|
||||
#include "Quest_Slot.h"
|
||||
#include "Quest_Status.h"
|
||||
#include "InfoInstance.h"
|
||||
|
||||
CQuest_Panel::CQuest_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
:CPanelObject(pDevice, pContext)
|
||||
@@ -15,7 +16,8 @@ CQuest_Panel::CQuest_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
}
|
||||
|
||||
CQuest_Panel::CQuest_Panel(const CQuest_Panel& rhs)
|
||||
:CPanelObject(rhs)
|
||||
:CPanelObject(rhs),
|
||||
m_pInfoInstance(CInfoInstance::GetInstance())
|
||||
{
|
||||
}
|
||||
|
||||
@@ -52,6 +54,9 @@ HRESULT CQuest_Panel::Initialize(void* pArg)
|
||||
Visible(true);
|
||||
ElementAllVisible(true);
|
||||
Set_Status();
|
||||
//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)); });
|
||||
//static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("QuestPanelClose"), [this](void* p) {this->Slot_Hover(*reinterpret_cast<_int*>(p)); });
|
||||
return S_OK;
|
||||
|
||||
@@ -105,7 +105,6 @@ void CQuest_Slot::Update(_float fTimeDelta)
|
||||
|
||||
static_cast<CUIObject*>(m_pOwner)->Function_Callback(TEXT("QuestListHover"), &m_Info);
|
||||
|
||||
|
||||
m_fTime += fTimeDelta * m_fTimeMult;
|
||||
__super::Update(fTimeDelta);
|
||||
}
|
||||
@@ -154,7 +153,7 @@ void CQuest_Slot::Font_Size()
|
||||
{
|
||||
for (_int i = 0; i < m_iQuestCount; ++i)
|
||||
{
|
||||
m_fFontY = 190 + i * 85.f;
|
||||
m_fFontY = Get_SlotY(i);
|
||||
if (m_iIndex == -1)
|
||||
{
|
||||
m_Fonts[i].pFontSizeName = TEXT("Font_size20");
|
||||
@@ -183,7 +182,7 @@ void CQuest_Slot::Font_Setting(_int Index)
|
||||
|
||||
for (_int i = 0; i < Index; ++i)
|
||||
{
|
||||
m_fFontY = 190 + i * 85.f;
|
||||
m_fFontY = Get_SlotY(i);
|
||||
Fonts.pFontSizeName = TEXT("Font_size20");
|
||||
Fonts.pQuestName = m_pInfoInstance->Get_Quest(m_Info.iQuestCategory, i).pQuestName.c_str();
|
||||
Fonts.m_fFontSize = _float2(m_fFontX + m_fX, m_fFontY - m_fY);
|
||||
@@ -196,15 +195,17 @@ _int CQuest_Slot::Mousechack(POINT Mouse)
|
||||
{
|
||||
for (_int i = 0; i < m_iQuestCount; ++i)
|
||||
{
|
||||
_float SlotY = m_fPositionY - (i * m_fOffSetY);
|
||||
|
||||
RECT Box = {
|
||||
long(m_fPositionX - m_fSizeX * 0.5f),
|
||||
long((m_fPositionY - (i * m_fOffSetY)) - m_fSizeY * 0.5f),
|
||||
long(SlotY - m_fSizeY * 0.5f),
|
||||
long(m_fPositionX + m_fSizeX * 0.5f),
|
||||
long((m_fPositionY + (i * m_fOffSetY)) + m_fSizeY * 0.5f) };
|
||||
long(SlotY + m_fSizeY * 0.5f)
|
||||
};
|
||||
|
||||
if (PtInRect(&Box, Mouse))
|
||||
{
|
||||
|
||||
return i;
|
||||
}
|
||||
}
|
||||
@@ -212,6 +213,11 @@ _int CQuest_Slot::Mousechack(POINT Mouse)
|
||||
return -1;
|
||||
}
|
||||
|
||||
_float CQuest_Slot::Get_SlotY(_int iIndex)
|
||||
{
|
||||
return 190 + (iIndex * m_fOffSetY);
|
||||
}
|
||||
|
||||
_vector CQuest_Slot::Get_WorldPostion()
|
||||
{
|
||||
return m_pTransformCom->Get_State(STATE::POSITION);
|
||||
@@ -320,11 +326,11 @@ void CQuest_Slot::Hover()
|
||||
Mouse.x = _long(fMouse.x);
|
||||
Mouse.y = _long(fMouse.y);
|
||||
|
||||
m_iIndex = Mousechack(Mouse);
|
||||
|
||||
m_Info.iQuestIndex = m_iIndex = Mousechack(Mouse);
|
||||
|
||||
if (m_iIndex != m_iPrevIndex)
|
||||
{
|
||||
m_pVIBufferCom->Set_Hover(m_iIndex);
|
||||
//m_pVIBufferCom->Set_Hover(m_iIndex);
|
||||
Font_Size();
|
||||
m_iPrevIndex = m_iIndex;
|
||||
}
|
||||
|
||||
@@ -79,6 +79,9 @@ HRESULT CRanrok::Initialize(void* pArg)
|
||||
|
||||
|
||||
m_pModelCom->Set_DisableRootMotionScale(true);
|
||||
#ifdef _DEBUG
|
||||
m_pTransformCom->Compress_WorldMatrix(m_vInitialTrans, m_vInitialRotQ);
|
||||
#endif // _DEBUG
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
@@ -112,7 +115,7 @@ void CRanrok::Update(_float fTimeDelta)
|
||||
}
|
||||
|
||||
m_pFSM->Update_State(fTimeDelta);
|
||||
|
||||
Update_CollidersPosition();
|
||||
if (m_bMotionTrail) {
|
||||
m_vCaptureTimer.x += fTimeDelta;
|
||||
if (m_vCaptureTimer.y < m_vCaptureTimer.x) {
|
||||
@@ -193,38 +196,42 @@ void CRanrok::Update(_float fTimeDelta)
|
||||
|
||||
|
||||
#pragma region CREATE PROP
|
||||
|
||||
if (!m_pFSM->IsEnable(FSMSTATE::IDLE | FSMSTATE::PULSE | FSMSTATE::TUCKED | FSMSTATE::DEAD))
|
||||
{
|
||||
m_vCreatePropTime.x += fTimeDelta;
|
||||
|
||||
if (m_vCreatePropTime.x >= m_vCreatePropTime.y)
|
||||
{
|
||||
CEffect_Container* pEffect = nullptr;
|
||||
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_PROP, this,nullptr,&pEffect);
|
||||
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_PROP, this, nullptr, &pEffect);
|
||||
m_vCreatePropTime.x = 0.f;
|
||||
|
||||
m_pRanrok_Props.push_back(pEffect);
|
||||
}
|
||||
|
||||
|
||||
_bool bAllHidden = true;
|
||||
|
||||
for (auto& Props : m_pRanrok_Props)
|
||||
{
|
||||
if (Props->Get_Visible())
|
||||
_bool bAllHidden = true;
|
||||
|
||||
for (auto& Props : m_pRanrok_Props)
|
||||
{
|
||||
bAllHidden = false;
|
||||
break;
|
||||
if (Props->Get_Visible())
|
||||
{
|
||||
bAllHidden = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (m_pRanrok_Props.size() == 0) {
|
||||
bAllHidden = false;
|
||||
}
|
||||
}
|
||||
if (m_pRanrok_Props.size() == 0) {
|
||||
bAllHidden = false;
|
||||
}
|
||||
|
||||
if (bAllHidden)
|
||||
{
|
||||
m_bFireBurst = false;
|
||||
}
|
||||
else {
|
||||
m_bFireBurst = true;
|
||||
if (bAllHidden)
|
||||
{
|
||||
m_bFireBurst = false;
|
||||
}
|
||||
else {
|
||||
m_bFireBurst = true;
|
||||
}
|
||||
}
|
||||
|
||||
#pragma endregion
|
||||
@@ -259,6 +266,7 @@ void CRanrok::Late_Update(_float fTimeDelta)
|
||||
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::BLEND, this);
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::NONLIGHT, this);
|
||||
Set_Shadow(m_pGameInstance->IsIn_ShadowViewFrustum(m_pTransformCom->Get_State(STATE::POSITION), m_pTransformCom->Get_Radius()));
|
||||
}
|
||||
|
||||
@@ -276,6 +284,12 @@ HRESULT CRanrok::Render()
|
||||
//hr = Render_Blend();
|
||||
hr = S_OK;
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
else if (RENDER::NONLIGHT == eCurrentPass) {
|
||||
hr = Render_Collider();
|
||||
}
|
||||
#endif // _DEBUG
|
||||
|
||||
return hr;
|
||||
}
|
||||
|
||||
@@ -332,11 +346,15 @@ void CRanrok::Trigger(CTimeSocket& Socket)
|
||||
}break;
|
||||
case TIMESOCKET_FUNC::SET_ANIMSTATE:
|
||||
{
|
||||
//m_pFSM->Set_State(FSMSTATE::CUTSCENE);
|
||||
}break;
|
||||
case TIMESOCKET_FUNC::SET_FSMSTATE:
|
||||
{
|
||||
//m_pModelCom->Set_AnimationIndex();
|
||||
if (Socket.m_Contents.vFlags.b[0]) {
|
||||
m_pFSM->Change_State(FSMSTATE::TUCKED);
|
||||
}
|
||||
else if (Socket.m_Contents.vFlags.b[1]) {
|
||||
m_pFSM->Change_State(FSMSTATE::FIRESWEEP);
|
||||
}
|
||||
}break;
|
||||
default:
|
||||
break;
|
||||
@@ -369,18 +387,27 @@ HRESULT CRanrok::Render_MotionTrail(ID3D11ShaderResourceView* pSRV)
|
||||
|
||||
_vector CRanrok::Get_LockOnPos()
|
||||
{
|
||||
_vector Offset = XMVectorZero();
|
||||
//if (m_ePhase == ENUM_CLASS(RANROK_PHASE::PHASE_AIR))
|
||||
//{
|
||||
// Offset = XMVectorSetY(Offset, 10.f);
|
||||
//}
|
||||
if (nullptr != m_pCharacter_Controller && true == m_pCharacter_Controller->IsActive()) {
|
||||
return m_pCharacter_Controller->Get_Position() + Offset;
|
||||
_vector vCameraLook = m_pGameInstance->Get_CameraLook();
|
||||
_vector vCameraPos = m_pGameInstance->Get_CamXMPosition();
|
||||
|
||||
_vector vNearestPos = m_pCharacter_Controller->Get_Position();
|
||||
_vector vToMonsterDir = vNearestPos - vCameraPos;
|
||||
_float fMaxDot = CMyTools::DirectionCompare(vCameraLook, vToMonsterDir);
|
||||
|
||||
{
|
||||
for (_uint i = 0; i < ENUM_CLASS(RANROK_ENUM_BONEMATRICES::END); ++i) {
|
||||
_vector vPosResult = m_pTargetableDO[i]->Get_Position();
|
||||
vToMonsterDir = vPosResult - vCameraPos;
|
||||
|
||||
_float fDotResult = CMyTools::DirectionCompare(vCameraLook, vToMonsterDir);
|
||||
|
||||
if (fMaxDot < fDotResult) {
|
||||
vNearestPos = vPosResult;
|
||||
fMaxDot = fDotResult;
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (nullptr != m_pRigidBody) {
|
||||
return m_pRigidBody->Get_Position() + Offset;
|
||||
}
|
||||
return Get_WorldPostion() + Offset;
|
||||
return XMVectorSetW(vNearestPos, 1.f);
|
||||
}
|
||||
|
||||
void CRanrok::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
@@ -469,6 +496,12 @@ void CRanrok::OnHit(CGameObject* pOther, CGameObject* pCaller)
|
||||
{
|
||||
}
|
||||
|
||||
_vector CRanrok::Get_BonePos(RANROK_ENUM_BONEMATRICES eType)
|
||||
{
|
||||
PSX::PxTransform pxPos = m_pTargetableDO[ENUM_CLASS(eType)]->Get_GlobalPosition();
|
||||
return XMVectorSet(pxPos.p.x, pxPos.p.y, pxPos.p.z, 1.f);
|
||||
}
|
||||
|
||||
HRESULT CRanrok::Ready_Components()
|
||||
{
|
||||
CTransform::TRANSFORM_DESC Desc = {};
|
||||
@@ -609,9 +642,9 @@ HRESULT CRanrok::Ready_Parts()
|
||||
m_pRightEye_Trail->Load_Trail("../Bin/Resources/Data/Effect/Ranrok/RanrokSide/Eye_Trail", static_cast<LEVEL>(g_iStaticLevel));
|
||||
m_pRightEye_Trail->Set_Visible(true);
|
||||
|
||||
m_pLeftEye_BoneMat = m_pModelCom->Get_BoneMatrixPtr("eye_left");
|
||||
m_pRightEye_BoneMat = m_pModelCom->Get_BoneMatrixPtr("eye_right");
|
||||
|
||||
if (FAILED(Ready_SubParts())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
#pragma endregion
|
||||
|
||||
return S_OK;
|
||||
@@ -643,6 +676,50 @@ HRESULT CRanrok::Bind_ShaderResources()
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
HRESULT CRanrok::Ready_SubParts()
|
||||
{
|
||||
m_pLeftEye_BoneMat = m_pModelCom->Get_BoneMatrixPtr("eye_left");
|
||||
m_pRightEye_BoneMat = m_pModelCom->Get_BoneMatrixPtr("eye_right");
|
||||
|
||||
m_pRanrokCombinedBoneMatrices[ENUM_CLASS(RANROK_ENUM_BONEMATRICES::RIGHTWING_WRIST)] = m_pRightWingWrist_BoneMat = m_pModelCom->Get_BoneMatrixPtr("wrist_right");
|
||||
m_pRanrokCombinedBoneMatrices[ENUM_CLASS(RANROK_ENUM_BONEMATRICES::RIGHTWING_TIP)] = m_pRightWingTip_BoneMat = m_pModelCom->Get_BoneMatrixPtr("middle_05_right");
|
||||
m_pRanrokCombinedBoneMatrices[ENUM_CLASS(RANROK_ENUM_BONEMATRICES::RIGHTWING_PINKY)] = m_pRightWingPinky_BoneMat = m_pModelCom->Get_BoneMatrixPtr("pinkyelbowwing_04_right");
|
||||
|
||||
m_pRanrokCombinedBoneMatrices[ENUM_CLASS(RANROK_ENUM_BONEMATRICES::LEFTWING_WRIST)] = m_pLeftWingWrist_BoneMat = m_pModelCom->Get_BoneMatrixPtr("wrist_left");
|
||||
m_pRanrokCombinedBoneMatrices[ENUM_CLASS(RANROK_ENUM_BONEMATRICES::LEFTWING_TIP)] = m_pLeftWingTip_BoneMat = m_pModelCom->Get_BoneMatrixPtr("middle_05_left");
|
||||
m_pRanrokCombinedBoneMatrices[ENUM_CLASS(RANROK_ENUM_BONEMATRICES::LEFTWING_PINKY)] = m_pLeftWingPinky_BoneMat = m_pModelCom->Get_BoneMatrixPtr("pinkyelbowwing_04_left");
|
||||
|
||||
m_pRanrokCombinedBoneMatrices[ENUM_CLASS(RANROK_ENUM_BONEMATRICES::HEAD)] = m_pHead_BoneMat = m_pModelCom->Get_BoneMatrixPtr("head");
|
||||
m_pRanrokCombinedBoneMatrices[ENUM_CLASS(RANROK_ENUM_BONEMATRICES::BODY)] = m_pBody_BoneMat = m_pModelCom->Get_BoneMatrixPtr("chest_Main");
|
||||
m_pRanrokCombinedBoneMatrices[ENUM_CLASS(RANROK_ENUM_BONEMATRICES::TAIL0)] = m_pTail0_BoneMat = m_pModelCom->Get_BoneMatrixPtr("tail_04");
|
||||
m_pRanrokCombinedBoneMatrices[ENUM_CLASS(RANROK_ENUM_BONEMATRICES::TAIL1)] = m_pTail1_BoneMat = m_pModelCom->Get_BoneMatrixPtr("tail_08");
|
||||
m_pRanrokCombinedBoneMatrices[ENUM_CLASS(RANROK_ENUM_BONEMATRICES::TAIL2)] = m_pTail2_BoneMat = m_pModelCom->Get_BoneMatrixPtr("tail_12");
|
||||
|
||||
CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc{};
|
||||
Desc.bAutoOwnerTranslation = false;
|
||||
Desc.iSubKind = ENUM_CLASS(PXOBJECT::RANROK_PROP);
|
||||
for (_uint i = 0; i < ENUM_CLASS(RANROK_ENUM_BONEMATRICES::END); ++i) {
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_SHIELD"), (CComponent**)&m_pTargetableDO[i], &Desc))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
m_pTargetableDO[i]->Set_Kinematic(true);
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
m_pSubShape = (GeometricPrimitive::CreateSphere(m_pContext, 1.f, 6, false, false));
|
||||
D3D11_DEPTH_STENCIL_DESC depthStencilDesc = {};
|
||||
depthStencilDesc.DepthEnable = FALSE;
|
||||
depthStencilDesc.DepthWriteMask = D3D11_DEPTH_WRITE_MASK_ZERO;
|
||||
depthStencilDesc.DepthFunc = D3D11_COMPARISON_ALWAYS;
|
||||
depthStencilDesc.StencilEnable = FALSE;
|
||||
|
||||
HRESULT result = m_pDevice->CreateDepthStencilState(&depthStencilDesc, &m_pDepthStencilStateNone);
|
||||
if (FAILED(result)) {
|
||||
return E_FAIL;
|
||||
}
|
||||
#endif // _DEBUG
|
||||
return S_OK;
|
||||
}
|
||||
HRESULT CRanrok::Render_Nonblend()
|
||||
{
|
||||
if (FAILED(Render_DeadDisolve())) {
|
||||
@@ -725,6 +802,14 @@ HRESULT CRanrok::Render_Nonblend()
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CRanrok::Update_CollidersPosition()
|
||||
{
|
||||
for (_uint i = 0; i < ENUM_CLASS(RANROK_ENUM_BONEMATRICES::END); ++i) {
|
||||
m_pTargetableDO[i]->Set_Transform(XMLoadFloat4x4(m_pRanrokCombinedBoneMatrices[i]) * m_pTransformCom->Get_XMWorldMatrix(), true);
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CRanrok::Render_Blend()
|
||||
{
|
||||
_float fDiffuseUVRatio = (m_vEtherealTimer.x / m_vEtherealTimer.y);
|
||||
@@ -966,7 +1051,11 @@ void CRanrok::Free()
|
||||
for (auto& Props : m_pRanrok_Props) {
|
||||
SAFE_RELEASE(Props);
|
||||
}
|
||||
for (_uint i = 0; i < ENUM_CLASS(RANROK_ENUM_BONEMATRICES::END); ++i) {
|
||||
SAFE_RELEASE(m_pTargetableDO[i]);
|
||||
}
|
||||
m_pRanrok_Props.clear();
|
||||
SAFE_RELEASE(m_pDepthStencilStateNone);
|
||||
SAFE_RELEASE(m_pMotionTrailCom);
|
||||
SAFE_RELEASE(m_pCharacter_Controller);
|
||||
SAFE_RELEASE(m_pRigidBody);
|
||||
@@ -990,7 +1079,13 @@ void CRanrok::Describe_Entity()
|
||||
GUI::Begin("UNIT", 0, IMGUI_GLOBAL_BEGIN_FLAG);
|
||||
if (GUI::CollapsingHeader("Ranrak")) {
|
||||
__super::Describe_Entity();
|
||||
|
||||
if (GUI::SmallButton("ResetPos")) {
|
||||
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&m_vInitialTrans), 1.f));
|
||||
m_pCharacter_Controller->Set_Position(m_pTransformCom->Get_State(STATE::POSITION));
|
||||
m_pTransformCom->RotationQ(XMLoadFloat4(&m_vInitialRotQ));
|
||||
m_iCurrentFlow = 0;
|
||||
m_iCurrentPoint = 0;
|
||||
}
|
||||
string AnimList = m_pModelCom->Get_AnimList(m_pModelCom->Get_AnimIndex());
|
||||
GUI::Text(AnimList.c_str());
|
||||
|
||||
@@ -1074,10 +1169,28 @@ void CRanrok::Describe_Entity()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
m_pTransformCom->Describe_Entity();
|
||||
m_pModelCom->Describe_Entity();
|
||||
}
|
||||
GUI::End();
|
||||
}
|
||||
|
||||
HRESULT CRanrok::Render_Collider()
|
||||
{
|
||||
static _bool s_bRenderCollider = { true };
|
||||
GUI::Begin("CutScene");
|
||||
if (GUI::TreeNode("RenderCollider")) {
|
||||
if (true == s_bRenderCollider) {
|
||||
for (_uint i = 0; i < ENUM_CLASS(RANROK_ENUM_BONEMATRICES::END); ++i) {
|
||||
m_pTargetableDO[i]->Render([this]() {
|
||||
m_pContext->OMSetDepthStencilState(m_pDepthStencilStateNone, 0);
|
||||
}, CMyTools::ColorRGB_A_HEXtoVECTOR(0x00ff00, 1.f));
|
||||
}
|
||||
}
|
||||
GUI::TreePop();
|
||||
}
|
||||
GUI::End();
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
#endif // _DEBUG
|
||||
|
||||
@@ -131,7 +131,15 @@ HRESULT CRanrok_Prop::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
|
||||
_vector vPos = pObject->Get_WorldPostion();
|
||||
|
||||
_vector vRandomPos = XMVectorSet(m_pGameInstance->Real_Random_Float(-20.f, 0.f), m_pGameInstance->Real_Random_Float(5.f, 15.f), m_pGameInstance->Real_Random_Float(-20.f, 0.f), 0.f);
|
||||
|
||||
_vector vForward = pObject->Get_Component<CTransform>()->Get_State(STATE::LOOK);
|
||||
_vector vRight = pObject->Get_Component<CTransform>()->Get_State(STATE::RIGHT);
|
||||
_vector vUp = pObject->Get_Component<CTransform>()->Get_State(STATE::UP);
|
||||
|
||||
_float randRight = m_pGameInstance->Real_Random_Float(-13.f, 13.f);
|
||||
_float randUp = m_pGameInstance->Real_Random_Float(5.f, 15.f);
|
||||
_float randForward = m_pGameInstance->Real_Random_Float(0.f, 5.f);
|
||||
_vector vRandomPos = vRight * randRight + vUp * randUp + vForward * randForward;
|
||||
|
||||
vPos += vRandomPos;
|
||||
|
||||
|
||||
@@ -248,7 +248,8 @@ void CRanrok::Behavior_HoverEnter()
|
||||
pair<_uint, _bool> pairAnimInfo = {};
|
||||
m_pFSM->Enable_State(FSMSTATE::HOVER);
|
||||
_int iRand = m_pGameInstance->Real_Random_Int(0, 1);
|
||||
switch (iRand)
|
||||
m_iHoverDash = iRand;
|
||||
switch (m_iHoverDash)
|
||||
{
|
||||
case 0:
|
||||
pairAnimInfo = m_Animation[STATEANIM::HOVER_DASH_LEFT];
|
||||
@@ -834,9 +835,15 @@ void CRanrok::Behavior_PulseEnter()
|
||||
pair<_uint, _bool> pairAnimInfo = {};
|
||||
m_pFSM->Enable_State(FSMSTATE::PULSE);
|
||||
m_bLookAt = false;
|
||||
m_fSkillCoolTime[ENUM_CLASS(RANROK_SKILL::PULSE)] = m_fMaxSkillCoolTime[ENUM_CLASS(RANROK_SKILL::PULSE)];
|
||||
|
||||
if (m_iCurrentFlow == 2) {
|
||||
m_pFSM->Change_State(FSMSTATE::HOVER);
|
||||
return;
|
||||
}
|
||||
|
||||
pairAnimInfo = m_Animation[STATEANIM::PULSE];
|
||||
m_fSkillCoolTime[ENUM_CLASS(RANROK_SKILL::PULSE)] = m_fMaxSkillCoolTime[ENUM_CLASS(RANROK_SKILL::PULSE)];
|
||||
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
@@ -969,7 +976,7 @@ void CRanrok::Behavior_LandEnter()
|
||||
_float fAnimSpeed = 1.f;
|
||||
m_pCharacter_Controller->SetGravity(true);
|
||||
if (m_pFSM->IsEnable_Previous(FSMSTATE::TUCKED)) {
|
||||
fAnimSpeed = 2.f;
|
||||
fAnimSpeed = 3.f;
|
||||
}
|
||||
|
||||
pairAnimInfo = m_Animation[STATEANIM::LAND];
|
||||
|
||||
@@ -0,0 +1,64 @@
|
||||
#include "pch.h"
|
||||
#include "State_Block.h"
|
||||
#include "Unit.h"
|
||||
|
||||
|
||||
CState_Block::CState_Block()
|
||||
:CState_Root()
|
||||
{
|
||||
}
|
||||
|
||||
void CState_Block::Enter()
|
||||
{
|
||||
__super::Enter();
|
||||
}
|
||||
|
||||
HRESULT CState_Block::Update(_float fTimeDelta)
|
||||
{
|
||||
if (nullptr != m_funcPriorityUpdate) {
|
||||
m_funcPriorityUpdate(fTimeDelta);
|
||||
}
|
||||
if (E_FAIL == (__super::Update(fTimeDelta))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (nullptr != m_funcLateUpdate) {
|
||||
m_funcLateUpdate(fTimeDelta);
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CState_Block::Exit()
|
||||
{
|
||||
__super::Exit();
|
||||
}
|
||||
|
||||
HRESULT CState_Block::Initialize(STATE_BLOCK_DESC* pDesc)
|
||||
{
|
||||
if (FAILED(__super::Initialize(pDesc))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
m_funcPriorityUpdate = pDesc->funcPriorityUpdate;
|
||||
m_funcLateUpdate = pDesc->funcLateUpdate;
|
||||
m_pModel = m_pOwner->Get_Component<CModel>();
|
||||
m_pFSM = m_pOwner->Get_Component<CFSM>();
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CState_Block* CState_Block::Create(STATE_BLOCK_DESC* pDesc)
|
||||
{
|
||||
CState_Block* pInstance = new CState_Block;
|
||||
if (FAILED(pInstance->Initialize(pDesc))) {
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CState_Block::Free()
|
||||
{
|
||||
__super::Free();
|
||||
}
|
||||
|
||||
void CState_Block::Describe_Entity()
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
#include "pch.h"
|
||||
#include "TriggerBox.h"
|
||||
@@ -65,7 +65,7 @@ HRESULT CTroll::Initialize(void* pArg)
|
||||
|
||||
|
||||
|
||||
m_pCharacter_Controller->Set_Position(XMVectorSet(126.464f, 30.f, 117.585f, 1.f));
|
||||
m_pCharacter_Controller->Set_Position(XMVectorSet(110.f, 24.f, 135.f, 1.f));
|
||||
|
||||
m_pEffectPool = m_pGameInstance->Get_Layer(NEXT_LEVEL, TEXT("Layer_EffectPool"))->Get_Object<CEffectPool>();
|
||||
SAFE_ADDREF(m_pEffectPool);
|
||||
|
||||
@@ -59,10 +59,12 @@ HRESULT CUI_Manager::Initialize(void* pArg)
|
||||
m_fAlpha = 0.f;
|
||||
m_fAlphaTime = 1.f;
|
||||
m_fSortZ = 0.f;
|
||||
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("UIManagerFadeIn"), [this](void* p) {this->Set_Fade(); });
|
||||
m_pInfoInstance->Add_Event(TEXT("RACEREADY"), [this](void* p) {this->Set_Race(*reinterpret_cast<_bool*>(p)); });
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -138,7 +140,9 @@ void CUI_Manager::Canvas_Change(UI_STATE eType)
|
||||
default:
|
||||
return;
|
||||
}
|
||||
m_pInfoInstance->Event_CallBack(TEXT("Player_CanvasChange"), &m_eType);
|
||||
m_pGameInstance->Toggle_MouseCenter();
|
||||
m_pInfoInstance->Event_CallBack(TEXT("Player_CanvasChange"), &m_eType);
|
||||
}
|
||||
|
||||
void CUI_Manager::Clear_Canvas()
|
||||
@@ -175,6 +179,7 @@ void CUI_Manager::Update(_float fTimeDelta)
|
||||
#ifdef _DEBUG
|
||||
Describe_Entity();
|
||||
#endif // _DEBUG
|
||||
|
||||
if (m_pGameInstance->Key_Down(DIK_T))
|
||||
{
|
||||
m_fAlphaVelue = 1.f;
|
||||
@@ -183,45 +188,49 @@ void CUI_Manager::Update(_float fTimeDelta)
|
||||
else if (m_eType == UI_STATE::SPELL)
|
||||
Canvas_Change(UI_STATE::GAMEPLAYER);
|
||||
}
|
||||
|
||||
|
||||
if (m_eType == UI_STATE::GAMEPLAYER || m_eType == UI_STATE::QUEST)
|
||||
if (m_bRace == false)
|
||||
{
|
||||
if (m_pGameInstance->Key_Down(DIK_TAB))
|
||||
if (m_eType == UI_STATE::GAMEPLAYER || m_eType == UI_STATE::QUEST)
|
||||
{
|
||||
m_fAlphaVelue = 1.f;
|
||||
if (m_bActive == false)
|
||||
if (m_pGameInstance->Key_Down(DIK_TAB))
|
||||
{
|
||||
m_bActive = true;
|
||||
m_bAlphaZero = true;
|
||||
if (m_eType == UI_STATE::GAMEPLAYER)
|
||||
m_fAlphaVelue = 1.f;
|
||||
if (m_bActive == false)
|
||||
{
|
||||
m_eType = UI_STATE::QUEST;
|
||||
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;
|
||||
}
|
||||
else if (m_eType == UI_STATE::QUEST)
|
||||
{
|
||||
m_eType = UI_STATE::GAMEPLAYER;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (m_eType == UI_STATE::GAMEPLAYER || m_eType == UI_STATE::SPELLLNEARN)
|
||||
{
|
||||
if (m_pGameInstance->Key_Down(DIK_ESCAPE))
|
||||
if (m_eType == UI_STATE::GAMEPLAYER || m_eType == UI_STATE::SPELLLNEARN)
|
||||
{
|
||||
m_fAlphaVelue = 1.f;
|
||||
if (m_bActive == false)
|
||||
if (m_pGameInstance->Key_Down(DIK_ESCAPE))
|
||||
{
|
||||
m_bActive = true;
|
||||
m_bAlphaZero = true;
|
||||
if (m_eType == UI_STATE::GAMEPLAYER)
|
||||
m_fAlphaVelue = 1.f;
|
||||
if (m_bActive == false)
|
||||
{
|
||||
m_eType = UI_STATE::SPELLLNEARN;
|
||||
}
|
||||
else if (m_eType == UI_STATE::SPELLLNEARN)
|
||||
{
|
||||
m_eType = UI_STATE::GAMEPLAYER;
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -290,7 +299,7 @@ void CUI_Manager::Update(_float fTimeDelta)
|
||||
m_bCgangede = true;
|
||||
}
|
||||
|
||||
if (m_fAlpha < 0.f)
|
||||
if (m_fAlpha <= 0.f)
|
||||
{
|
||||
m_fAlpha = 0.f;
|
||||
m_bActive = false;
|
||||
@@ -509,6 +518,11 @@ void CUI_Manager::Change_Map()
|
||||
}
|
||||
}
|
||||
|
||||
void CUI_Manager::Set_Race(_bool bRace)
|
||||
{
|
||||
m_bRace = bRace;
|
||||
}
|
||||
|
||||
CUI_Manager* CUI_Manager::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CUI_Manager* pInstance = new CUI_Manager(pDevice, pContext);
|
||||
|
||||
@@ -59,13 +59,11 @@ void CWand::Update(_float fTimeDelta)
|
||||
|
||||
void CWand::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
|
||||
}
|
||||
|
||||
HRESULT CWand::Render()
|
||||
{
|
||||
|
||||
_matrix socketMatrix = {};
|
||||
|
||||
socketMatrix = XMLoadFloat4x4(m_pSocketMatrices);
|
||||
|
||||
@@ -61,6 +61,9 @@ class CBroomRaceManager final : public CGameObject
|
||||
_float m_fRedayTime{};
|
||||
_bool m_bRaceStart = { false };
|
||||
_bool m_bRaceReady = { false };
|
||||
_float4 m_OriginPos = {};
|
||||
_float m_fDelay = {};
|
||||
_bool m_bRaceEnd = {};
|
||||
|
||||
private:
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
|
||||
@@ -2,6 +2,10 @@
|
||||
#include "Client_Define.h"
|
||||
#include "CamPosition.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
class CUnit;
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CCamPosition_Target final : public CCamPosition
|
||||
@@ -20,6 +24,10 @@ class CCamPosition_Target final : public CCamPosition
|
||||
virtual void Update(_float fTimeDelta) override;
|
||||
virtual void Late_Update(_float fTimeDelta) override;
|
||||
virtual _vector Get_WorldPostion() override;
|
||||
virtual void Set_WorldPostion(_vector vPos);
|
||||
virtual _bool IsStalking();
|
||||
virtual void Stalking_Target(CUnit* pStalkingTarget, const _float4x4* pTargetSocketMatrix);
|
||||
virtual void Stop_Stalking();
|
||||
|
||||
private:
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
@@ -27,6 +35,8 @@ class CCamPosition_Target final : public CCamPosition
|
||||
HRESULT Ready_Components(void* pArg);
|
||||
HRESULT Bind_ShaderResources() override;
|
||||
|
||||
CUnit* m_pStalkingTarget = { nullptr };
|
||||
const _float4x4* m_pTargetSocketMatrix = { nullptr };
|
||||
public:
|
||||
static CCamPosition_Target* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CCamPosition_Target* Clone(void* pArg, class CGameObject* pOWner) override;
|
||||
|
||||
@@ -3,7 +3,12 @@
|
||||
#include "Client_Define.h"
|
||||
#include "Camera.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
class CUnit;
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
class CCamPosition_Target;
|
||||
|
||||
class CCamera_Cinematic final : public CCamera
|
||||
{
|
||||
@@ -24,34 +29,49 @@ class CCamera_Cinematic final : public CCamera
|
||||
virtual void Trigger(CTimeSocket& Socket)override;
|
||||
|
||||
public:
|
||||
virtual void Active_Camera(pair<_float4, _float3>& pairTransitionInfo)override;
|
||||
void Update_LerpTimer(_float fTimeDelta);
|
||||
void Set_Priority(_uint iPriority);
|
||||
void Set_LookTarget(CGameObject* pTarget);
|
||||
void Set_FollowTarget(CGameObject* pTarget);
|
||||
void Set_LookTarget(CUnit* pTarget, const _float4x4* pTargetSocketMatrix);
|
||||
void Set_FollowTarget(CUnit* pTarget, const _float4x4* pTargetSocketMatrix);
|
||||
|
||||
|
||||
private:
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
virtual HRESULT Ready_Components(void* pArg) override;
|
||||
virtual HRESULT Ready_SubPart();
|
||||
HRESULT Bind_ShaderResources() override;
|
||||
|
||||
void Lerp_Translation(_float fTimeDelta);
|
||||
void Start_Lerp_Translation(_float fTimeMaximum, PSX::PxTransform pxTransform);
|
||||
void Start_Lerp_Translation(_float fTimeMaximum, _float3& vTrans, _float4& vRotQ);
|
||||
void Start_Lerp_Translation(_float fTimeMaximum, _float3& vTrans);
|
||||
void Clear_Lerp_Translation();
|
||||
void Lerp_Rotation(_float fTimeDelta);
|
||||
void Start_Lerp_Rotation(_float fTimeMaximum, PSX::PxTransform pxTransform);
|
||||
void Start_Lerp_Rotation(_float fTimeMaximum, _float4& vRotQ);
|
||||
void Clear_Lerp_Rotation();
|
||||
|
||||
|
||||
void Lerp_FovY(_float fTimeDelta);
|
||||
void Start_Lerp_FovY(_float fTimeMaximum, _float2 vRange);
|
||||
void Clear_Lerp_FovY();
|
||||
|
||||
virtual void Transition(_float fTimeDelta) override;
|
||||
|
||||
|
||||
void Rotation(_fvector vRotQ);
|
||||
private:
|
||||
CInfoInstance* m_pInfoInstance = { nullptr };
|
||||
CCamPosition_Target* m_pLookTargetPart = { nullptr };
|
||||
CCamPosition_Target* m_pFollowTargetPart = { nullptr };
|
||||
|
||||
_bool m_bLerpTranslation = { false };
|
||||
_float2 m_vLerpTranslationTimer = {};
|
||||
|
||||
_bool m_bLerpRotiation = { false };
|
||||
_float2 m_vLerpRotiationTimer = {};
|
||||
|
||||
_float3 m_vLerpTranslationStart = {};
|
||||
_float3 m_vLerpTranslationEnd = {};
|
||||
_float4 m_vLerpRotQStart = {};
|
||||
|
||||
@@ -68,6 +68,9 @@ namespace Client
|
||||
/*스크린 이펙트*/
|
||||
SCREEN_WIND,
|
||||
|
||||
/* 히트 이펙트 */
|
||||
PROTEGO_HIT, DUELIST_PROTEGO_HIT , GOBLIN_PROTEGO_HIT,
|
||||
|
||||
/*사이드*/
|
||||
JAP_SIDE, BOMBARDA_SIDE, DESCENDO_SIDE, LEVIOSO_SIDE, WAND_END, LIGHTNING_SIDE, TRANSFORMATION_SIDE, AVADAKEDAVRA_SIDE,
|
||||
|
||||
|
||||
@@ -14,7 +14,6 @@ namespace Client {
|
||||
#define FX_MESH TEXT("FX_MESH")
|
||||
#define FX_POSTEX TEXT("FX_POSTEX")
|
||||
#define FX_NORTEX TEXT("FX_NORTEX")
|
||||
#define FX_CELL TEXT("FX_CELL")
|
||||
#define FX_INSTANCE_MODEL TEXT("FX_INSTANCE_MODEL")
|
||||
#define FX_INSTANCE_PROP_MODEL TEXT("FX_INSTANCE_PROP_MODEL")
|
||||
#define FX_UIEDITOR TEXT("FX_UIEDITOR")
|
||||
|
||||
@@ -108,10 +108,11 @@ typedef struct tagDamageInfo
|
||||
|
||||
typedef struct tagObjectiveInfo
|
||||
{
|
||||
_bool bClear{};
|
||||
_int iTargetID{};
|
||||
_int iRequiredCount{};
|
||||
_int iCurrentCount{};
|
||||
_bool bClear{};
|
||||
_int iTargetID{};
|
||||
_wstring pQuestInfo{};
|
||||
_int iRequiredCount{};
|
||||
_int iCurrentCount{};
|
||||
}OBJECTIVEINFO;
|
||||
|
||||
typedef struct tagRewardsInfo
|
||||
@@ -374,6 +375,7 @@ typedef struct tagEffectInfo
|
||||
struct TimeLine {
|
||||
_float2 m_vTimer = {};
|
||||
_uint m_eTypeTimeLine = {};
|
||||
|
||||
list<CTimeSocket*> m_Sockets = {};
|
||||
};
|
||||
NS_END
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
class CGameObject;
|
||||
class CCamera;
|
||||
NS_END
|
||||
|
||||
|
||||
@@ -36,17 +37,25 @@ class CCutSceneInfo final : public CBase
|
||||
|
||||
private:
|
||||
HRESULT Initialize(ID3D11Device* pDevice, ID3D11DeviceContext* pContex);
|
||||
void Load_CutSceneXML(const string& path);
|
||||
|
||||
#ifdef _DEBUG
|
||||
public:
|
||||
#endif // _DEBUG
|
||||
HRESULT Clear_ActiveEvents();
|
||||
HRESULT Clear_Events(map<_string, TimeLine*>&Events);
|
||||
|
||||
HRESULT Clear_AllEvents();
|
||||
|
||||
HRESULT Ready_GameplayCutScenes();
|
||||
HRESULT Ready_FieldCutScenes();
|
||||
|
||||
public:
|
||||
static CCutSceneInfo* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContex);
|
||||
virtual void Free() override;
|
||||
#ifdef _DEBUG
|
||||
virtual void Describe_Entity();
|
||||
#endif // _DEBUG
|
||||
|
||||
};
|
||||
|
||||
NS_END
|
||||
|
||||
@@ -59,7 +59,7 @@ class CDialogue_Font final : public CGameObject
|
||||
|
||||
void Shop();
|
||||
void SpellLearn();
|
||||
|
||||
void Quest();
|
||||
void ReSet();
|
||||
private:
|
||||
CInfoInstance* m_pInfoInstance = { nullptr };
|
||||
@@ -76,15 +76,16 @@ class CDialogue_Font final : public CGameObject
|
||||
_bool m_bCurrentInteract = { false };
|
||||
_bool m_bEndText = { false };
|
||||
_bool m_bNextText = { false };
|
||||
|
||||
|
||||
_wstring m_pNpcName;
|
||||
_wstring m_pName;
|
||||
_int m_iTextID{};
|
||||
_int m_iNextID{};
|
||||
_int m_iType{};
|
||||
|
||||
_bool m_bChoiceText = {false};
|
||||
_bool m_bCurrentChoiceText = {false};
|
||||
_bool m_bChoiceText = { false };
|
||||
_bool m_bCurrentChoiceText = { false };
|
||||
_bool m_bRace = { false };
|
||||
|
||||
public:
|
||||
static CDialogue_Font* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "Effect_Container.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CDuelist_ProtegoHit final : public CEffect_Container
|
||||
{
|
||||
private:
|
||||
CDuelist_ProtegoHit(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CDuelist_ProtegoHit(const CDuelist_ProtegoHit& rhs);
|
||||
virtual ~CDuelist_ProtegoHit() = default;
|
||||
|
||||
public:
|
||||
virtual void Priority_Update(_float fTimeDelta) override;
|
||||
virtual void Update(_float fTimeDelta) override;
|
||||
virtual void Late_Update(_float fTimeDelta) override;
|
||||
|
||||
public:
|
||||
virtual HRESULT Pre_Setting(CGameObject* pObject, void* pArg = nullptr) override;
|
||||
|
||||
private:
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
virtual HRESULT Ready_Components(void* pArg) override;
|
||||
HRESULT Ready_Child();
|
||||
HRESULT Bind_ShaderResources() override;
|
||||
virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override;
|
||||
private:
|
||||
_wstring m_wstrEffectName = {};
|
||||
|
||||
class CEffectParts* m_pHit_SphereLay = { nullptr };
|
||||
class CEffectParts* m_pHit_Light = { nullptr };
|
||||
public:
|
||||
static CDuelist_ProtegoHit* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual void Free() override;
|
||||
CGameObject* Clone(void* pArg, CGameObject* pOwner) override;
|
||||
#ifdef _DEBUG
|
||||
void Describe_Entity() override;
|
||||
#endif // _DEBUG
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -32,11 +32,10 @@ class CGoblin_Protego final : public CEffect_Container
|
||||
virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override;
|
||||
private:
|
||||
_wstring m_wstrEffectName = {};
|
||||
CRigidBody_Dynamic* m_pRigidBody = { nullptr };
|
||||
class CEffectParts* m_pSphere = { nullptr };
|
||||
class CEffectParts* m_pBottom = { nullptr };
|
||||
class CEffectParts* m_pCircle = { nullptr };
|
||||
|
||||
class CEffectParts* m_pSphere = { nullptr };
|
||||
class CEffectParts* m_pSphereLay = { nullptr };
|
||||
CRigidBody_Dynamic* m_pRigidBody = { nullptr };
|
||||
_float m_fSizeAccTime = {};
|
||||
_float m_fAmountSize = {};
|
||||
_float m_fSpeed = {};
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "Effect_Container.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CGoblin_ProtegoHit final : public CEffect_Container
|
||||
{
|
||||
private:
|
||||
CGoblin_ProtegoHit(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CGoblin_ProtegoHit(const CGoblin_ProtegoHit& rhs);
|
||||
virtual ~CGoblin_ProtegoHit() = default;
|
||||
|
||||
public:
|
||||
virtual void Priority_Update(_float fTimeDelta) override;
|
||||
virtual void Update(_float fTimeDelta) override;
|
||||
virtual void Late_Update(_float fTimeDelta) override;
|
||||
|
||||
public:
|
||||
virtual HRESULT Pre_Setting(CGameObject* pObject, void* pArg = nullptr) override;
|
||||
|
||||
private:
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
virtual HRESULT Ready_Components(void* pArg) override;
|
||||
HRESULT Ready_Child();
|
||||
HRESULT Bind_ShaderResources() override;
|
||||
virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override;
|
||||
private:
|
||||
_wstring m_wstrEffectName = {};
|
||||
|
||||
class CEffectParts* m_pHit_SphereLay = { nullptr };
|
||||
class CEffectParts* m_pHit_Light = { nullptr };
|
||||
public:
|
||||
static CGoblin_ProtegoHit* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual void Free() override;
|
||||
CGameObject* Clone(void* pArg, CGameObject* pOwner) override;
|
||||
#ifdef _DEBUG
|
||||
void Describe_Entity() override;
|
||||
#endif // _DEBUG
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -42,14 +42,11 @@ class CLevel_Field final : public CLevel
|
||||
HRESULT Ready_Layer_Effect(const _wstring& strLayerTag);
|
||||
HRESULT Ready_Layer_Monster();
|
||||
HRESULT Reday_Layer_EffectPool();
|
||||
HRESULT Ready_Layer_CutScene();
|
||||
|
||||
public:
|
||||
static pair<CLevel*, function<void()>> Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID, void* pArg);
|
||||
virtual void Free() override;
|
||||
|
||||
void Load_CutSceneXML(const string& path, CCamera* pCamera, class CMonster* pMonster);
|
||||
|
||||
#ifdef _DEBUG
|
||||
virtual void Describe_Entity();
|
||||
#endif // _DEBUG
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
NS_BEGIN(Engine)
|
||||
class CGameInstance;
|
||||
class CModel;
|
||||
class CShader;
|
||||
class CVIBuffer_Model_Instance;
|
||||
NS_END
|
||||
|
||||
@@ -43,6 +44,7 @@ class CLoader final : public CBase
|
||||
HRESULT Asset_FileLoad(const _char* pDirectoryPath, const _tchar* pPreName, function<HRESULT(_wstring, const _char*)> AddPrototypeEvent);
|
||||
future<vector<FOLDER_LOAD*>*> Deferred_FolderLoad(const _char* pDirectoryPath, const _char* pFileExt, _bool bUseTag);
|
||||
future<pair<_wstring, CModel*>*> Deferred_ModelLoad(MODEL eType, const _char* pDirectoryPath, _fmatrix PreTransform, const _tchar* pPrototypeTag);
|
||||
future<pair<_wstring, CShader*>*> Deferred_ShaderLoad(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, const _wstring& strPrototypeTag, const _tchar* pShaderFilePath, const D3D11_INPUT_ELEMENT_DESC* pElements, _uint iNumElements);
|
||||
void Ready_MapModels(vector<future<vector<FOLDER_LOAD*>*>>& jobMapModels);
|
||||
HRESULT Ready_RigidBody_Static(CVIBuffer_Model_Instance* pModel_Instance);
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ class CMapElement_Static : public CMapElement
|
||||
_bool m_bConverted = { false };
|
||||
_float m_fRadius = {};
|
||||
|
||||
vector<vector<CRigidBody_Static*>> m_RigidBodies;
|
||||
vector<CRigidBody_Static*> m_RigidBodies;
|
||||
|
||||
private:
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
|
||||
@@ -25,7 +25,7 @@ class CMapObject_Collision final : public CMapPartObject // 충돌용 Mesh
|
||||
void ConvertToPhysX();
|
||||
private:
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
vector<vector<CRigidBody_Static*>> m_RigidBodies;
|
||||
vector<CRigidBody_Static*> m_RigidBodies;
|
||||
vector<CModel*> m_pModelComs;
|
||||
|
||||
_bool m_bReadyToCreatePhysX = { false };
|
||||
|
||||
@@ -48,7 +48,7 @@ class CMapObject_Render final : public CMapPartObject // Render PartObject
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
CTexture* m_pDefaultGlassTextureCom = { nullptr };
|
||||
vector<CModel*> m_pModelComs;
|
||||
vector<vector<CRigidBody_Static*>> m_RigidBodies;
|
||||
vector<CRigidBody_Static*> m_RigidBodies;
|
||||
|
||||
vector<_wstring> m_ModelPrototypeTags;
|
||||
vector<_uint> m_ModelPathIndices = {};
|
||||
|
||||
@@ -167,7 +167,8 @@ class CPlayer final : public CUnit
|
||||
_bool m_bOpenDoor = { false };
|
||||
_bool m_bOpeningCutScene = { false };
|
||||
_float m_fAirTime = {};
|
||||
|
||||
_bool m_bCanParry = {};
|
||||
_bool m_bBlock = {};
|
||||
/* 무적 불 변수*/
|
||||
#ifdef _DEBUG
|
||||
_bool m_isDebugMode = { false };
|
||||
@@ -233,9 +234,13 @@ class CPlayer final : public CUnit
|
||||
void Behavior_AncientSpellExit();
|
||||
|
||||
void Behavior_ShieldEnter();
|
||||
HRESULT Behavior_ShieldExitCheck();
|
||||
HRESULT Behavior_ShieldExitCheck(_float fTimeDelta);
|
||||
void Behavior_ShieldExit();
|
||||
|
||||
void Behavior_BlockEnter();
|
||||
HRESULT Behavior_BlockExitCheck(_float fTimeDelta);
|
||||
void Behavior_BlockExit();
|
||||
|
||||
void Behavior_HitEnter();
|
||||
HRESULT Behavior_HitExitCheck(_float fTimeDelta);
|
||||
void Behavior_HitExit();
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "Effect_Container.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CProtego_Hit final : public CEffect_Container
|
||||
{
|
||||
private:
|
||||
CProtego_Hit(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CProtego_Hit(const CProtego_Hit& rhs);
|
||||
virtual ~CProtego_Hit() = default;
|
||||
|
||||
public:
|
||||
virtual void Priority_Update(_float fTimeDelta) override;
|
||||
virtual void Update(_float fTimeDelta) override;
|
||||
virtual void Late_Update(_float fTimeDelta) override;
|
||||
|
||||
public:
|
||||
virtual HRESULT Pre_Setting(CGameObject* pObject, void* pArg = nullptr) override;
|
||||
|
||||
private:
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
virtual HRESULT Ready_Components(void* pArg) override;
|
||||
HRESULT Ready_Child();
|
||||
HRESULT Bind_ShaderResources() override;
|
||||
virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override;
|
||||
private:
|
||||
_wstring m_wstrEffectName = {};
|
||||
|
||||
class CEffectParts* m_pHit_SphereLay = { nullptr };
|
||||
class CEffectParts* m_pHit_Light = { nullptr };
|
||||
public:
|
||||
static CProtego_Hit* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual void Free() override;
|
||||
CGameObject* Clone(void* pArg, CGameObject* pOwner) override;
|
||||
#ifdef _DEBUG
|
||||
void Describe_Entity() override;
|
||||
#endif // _DEBUG
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -39,7 +39,6 @@ class CQuest_Canvas final : public CCanvasObject
|
||||
private:
|
||||
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
||||
CGameObject* m_pQuest_Panel = { nullptr };
|
||||
CInfoInstance* m_pInfoInstance = { nullptr };
|
||||
_bool m_bClick[3] = { false };
|
||||
_int m_iIndex{};
|
||||
public:
|
||||
|
||||
@@ -34,6 +34,9 @@ class CQuest_Info final : public CElementObject
|
||||
public:
|
||||
void Set_Hover(void* pArg);
|
||||
|
||||
private:
|
||||
void Y(_float fSizeY);
|
||||
|
||||
private:
|
||||
CTexture* m_pDiffuse_TextureCom = { nullptr };
|
||||
CTexture* m_pDiffuse_TextureCom1 = { nullptr };
|
||||
@@ -51,6 +54,7 @@ class CQuest_Info final : public CElementObject
|
||||
_int m_iCurrentQuest{};
|
||||
|
||||
_int m_iPerQuestIndex{};
|
||||
_int m_iCurrentIndex{};
|
||||
public:
|
||||
static CQuest_Info* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
|
||||
@@ -37,6 +37,7 @@ class CQuest_Panel final : public CPanelObject
|
||||
void Slot_Hover(_int Index);
|
||||
|
||||
private:
|
||||
CInfoInstance* m_pInfoInstance = { nullptr };
|
||||
CTexture* m_pDiffuse_TextureCom = { nullptr };
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
||||
|
||||
@@ -47,7 +47,7 @@ class CQuest_Slot final : public CElementObject
|
||||
void Font_Setting(_int Index);
|
||||
|
||||
_int Mousechack(POINT Mouse);
|
||||
|
||||
_float Get_SlotY(_int iIndex);
|
||||
public:
|
||||
void Set_QuestType(_int Index);
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
#include "Monster.h"
|
||||
#include "CallBack_Monster_Behavior.h"
|
||||
#include "CallBack_Ranrok_HitReport.h"
|
||||
#include "Ranrok_ENUM.h"
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
@@ -60,6 +61,7 @@ class CRanrok final : public CMonster
|
||||
virtual _vector Get_LockOnPos() override;
|
||||
virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr)override;
|
||||
virtual void OnHit(CGameObject* pOther, CGameObject* pCaller = nullptr)override;
|
||||
_vector Get_BonePos(RANROK_ENUM_BONEMATRICES eType);
|
||||
|
||||
private:
|
||||
CCallBack_Monster_Behavior* m_pCallBack_Behavior = { nullptr };
|
||||
@@ -81,7 +83,9 @@ class CRanrok final : public CMonster
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
HRESULT Ready_Components();
|
||||
HRESULT Ready_Parts();
|
||||
HRESULT Ready_SubParts();
|
||||
HRESULT Bind_ShaderResources();
|
||||
HRESULT Update_CollidersPosition();
|
||||
HRESULT Render_Nonblend();
|
||||
HRESULT Render_Blend();
|
||||
void MoveTo(_float fTimeDelta);
|
||||
@@ -92,7 +96,7 @@ class CRanrok final : public CMonster
|
||||
virtual void Free() override;
|
||||
#ifdef _DEBUG
|
||||
virtual void Describe_Entity() override;
|
||||
|
||||
HRESULT Render_Collider();
|
||||
#endif // _DEBUG
|
||||
|
||||
private:
|
||||
@@ -122,12 +126,13 @@ class CRanrok final : public CMonster
|
||||
_bool m_bMotionTrail = {};
|
||||
_bool m_bFireBurst = {true};
|
||||
_int m_iPropSize = {};
|
||||
_int m_iHoverDash = { };
|
||||
|
||||
_float2 m_vCaptureTimer = { 0.f, 0.1f };
|
||||
|
||||
class CEffect_Container* m_pRanrok_Point = { nullptr };
|
||||
vector<class CEffect_Container*> m_pRanrok_Props;
|
||||
_float m_fTuckedSpeed = { 90.f };
|
||||
_float m_fTuckedSpeed = { 80.f };
|
||||
|
||||
|
||||
class CEffectParts* m_pLeftSmoke = { nullptr };
|
||||
@@ -144,6 +149,28 @@ class CRanrok final : public CMonster
|
||||
const _float4x4* m_pLeftEye_BoneMat = { nullptr };
|
||||
const _float4x4* m_pRightEye_BoneMat = { nullptr };
|
||||
|
||||
const _float4x4* m_pRightWingWrist_BoneMat = { nullptr };
|
||||
const _float4x4* m_pRightWingTip_BoneMat = { nullptr };
|
||||
const _float4x4* m_pRightWingPinky_BoneMat = { nullptr };
|
||||
const _float4x4* m_pLeftWingWrist_BoneMat = { nullptr };
|
||||
const _float4x4* m_pLeftWingTip_BoneMat = { nullptr };
|
||||
const _float4x4* m_pLeftWingPinky_BoneMat = { nullptr };
|
||||
const _float4x4* m_pHead_BoneMat = { nullptr };
|
||||
const _float4x4* m_pBody_BoneMat = { nullptr };
|
||||
const _float4x4* m_pTail0_BoneMat = { nullptr };
|
||||
const _float4x4* m_pTail1_BoneMat = { nullptr };
|
||||
const _float4x4* m_pTail2_BoneMat = { nullptr };
|
||||
const _float4x4* m_pRanrokCombinedBoneMatrices[ENUM_CLASS(RANROK_ENUM_BONEMATRICES::END)] = { nullptr };
|
||||
CRigidBody_Dynamic* m_pTargetableDO[ENUM_CLASS(RANROK_ENUM_BONEMATRICES::END)] = { nullptr };
|
||||
#ifdef _DEBUG
|
||||
unique_ptr<GeometricPrimitive> m_pSubShape = { nullptr };
|
||||
ID3D11DepthStencilState* m_pDepthStencilStateNone = { nullptr };
|
||||
|
||||
_float4 m_vInitialRotQ = {};
|
||||
_float3 m_vInitialTrans = {};
|
||||
#endif // _DEBUG
|
||||
|
||||
|
||||
void Behavior_IdleEnter();
|
||||
HRESULT Behavior_IdleExitCheck();
|
||||
void Behavior_IdleExit();
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "GameInstance.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
|
||||
NS_END
|
||||
NS_BEGIN(Client)
|
||||
|
||||
enum class RANROK_ENUM_BONEMATRICES {
|
||||
RIGHTWING_WRIST
|
||||
, RIGHTWING_TIP
|
||||
, RIGHTWING_PINKY
|
||||
|
||||
, LEFTWING_WRIST
|
||||
, LEFTWING_TIP
|
||||
, LEFTWING_PINKY
|
||||
|
||||
, HEAD
|
||||
, BODY
|
||||
|
||||
, TAIL0
|
||||
, TAIL1
|
||||
, TAIL2
|
||||
, END
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -0,0 +1,36 @@
|
||||
#pragma once
|
||||
#include "Client_Define.h"
|
||||
#include "State_Root.h"
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CState_Block final : public CState_Root
|
||||
{
|
||||
public:
|
||||
typedef struct tagBlock : public CState_Root::STATE_ROOT_DESC {
|
||||
function<void(_float fTimeDelta)> funcPriorityUpdate = { nullptr };
|
||||
function<void(_float fTimeDelta)> funcLateUpdate = { nullptr };
|
||||
}STATE_BLOCK_DESC;
|
||||
private:
|
||||
CState_Block();
|
||||
virtual ~CState_Block() = default;
|
||||
|
||||
public:
|
||||
virtual void Enter();
|
||||
virtual HRESULT Update(_float fTimeDelta);
|
||||
virtual void Exit();
|
||||
|
||||
private:
|
||||
function<void(_float fTimeDelta)> m_funcPriorityUpdate = { nullptr };
|
||||
function<void(_float fTimeDelta)> m_funcLateUpdate = { nullptr };
|
||||
|
||||
private:
|
||||
HRESULT Initialize(STATE_BLOCK_DESC* pDesc);
|
||||
|
||||
public:
|
||||
static CState_Block* Create(STATE_BLOCK_DESC* pDesc);
|
||||
virtual void Free() override;
|
||||
virtual void Describe_Entity();
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -0,0 +1,23 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "GameInstance.h"
|
||||
NS_BEGIN(Engine)
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CTriggerBox final : public CBase
|
||||
{
|
||||
private:
|
||||
CTriggerBox();
|
||||
virtual ~CTriggerBox() = default;
|
||||
|
||||
|
||||
|
||||
public:
|
||||
static CTriggerBox Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID, void* pArg);
|
||||
virtual void Free() override;
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -50,6 +50,7 @@ class CUI_Manager final : public CUIObject
|
||||
|
||||
void Set_Fade();
|
||||
void Change_Map();
|
||||
void Set_Race(_bool bRace);
|
||||
private:
|
||||
CInfoInstance* m_pInfoInstance = { nullptr };
|
||||
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
||||
@@ -89,6 +90,8 @@ class CUI_Manager final : public CUIObject
|
||||
|
||||
_bool m_bAlphaZero = { false };
|
||||
|
||||
_bool m_bRace = { false };
|
||||
|
||||
public:
|
||||
static CUI_Manager* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
|
||||
@@ -56,7 +56,13 @@
|
||||
<!-- SKILL / ATTACK -->
|
||||
<Anim state="SKILL" index="594" loop="false"/>
|
||||
<Anim state="SKILL2" index="992" loop="false"/>
|
||||
<Anim state="SHIELD_BLOCK" index="986" loop="false"/>
|
||||
<Anim state="SHIELD_BLOCK1" index="985" loop="false"/>
|
||||
<Anim state="SHIELD_BLOCK2" index="986" loop="false"/>
|
||||
<Anim state="SHIELD_BLOCK3" index="1011" loop="false"/>
|
||||
<Anim state="SHIELD_BLOCK4" index="1012" loop="false"/>
|
||||
<Anim state="SHIELD_BLOCK5" index="1013" loop="false"/>
|
||||
<Anim state="SHIELD_BLOCK6" index="1015" loop="false"/>
|
||||
<Anim state="SHIELD_BLOCK7" index="1016" loop="false"/>
|
||||
|
||||
<Anim state="LIGHT_ATTACK" index="414" loop="false"/>
|
||||
<Anim state="LIGHT_ATTACK_180_R" index="810" loop="false"/>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<RanrokIntro fDuration = "10">
|
||||
<RanrokIntro fDuration = "19">
|
||||
<Socket fStartPosition = "0">
|
||||
<Info strEventName = "On_Camera" eTypeParam = "TARGET" pTarget = "CAMERA_CINEMATIC" eTypeFunc="BIND_CAMERA"/>
|
||||
<Param_0>
|
||||
@@ -32,14 +32,17 @@
|
||||
<Param_11>
|
||||
<float X="" Y="" Z="" W=""/>
|
||||
</Param_11>
|
||||
<Param_12>
|
||||
<string tag =""/>
|
||||
</Param_12>
|
||||
</Socket>
|
||||
<Socket fStartPosition = "0">
|
||||
<Info strEventName = "Translation" eTypeParam = "TRANSFORM" pTarget = "CAMERA_CINEMATIC" eTypeFunc="TRANSLATION"/>
|
||||
<Param_0>
|
||||
<OtherTarget Layer = "" TypeID = ""/>
|
||||
<Transform>
|
||||
<RotQ X="-0.078" Y="0.221" Z="0.018" W="0.972"/>
|
||||
<Trans X="10.088" Y="7.579" Z="26.052"/>
|
||||
<RotQ X="-0.096" Y="0.216" Z="0.021" W="0.972"/>
|
||||
<Trans X="11.494" Y="7.807" Z="27.081"/>
|
||||
</Transform>
|
||||
</Param_0>
|
||||
<vFlags>
|
||||
@@ -66,6 +69,46 @@
|
||||
<Param_11>
|
||||
<float X="" Y="" Z="" W=""/>
|
||||
</Param_11>
|
||||
<Param_12>
|
||||
<string tag =""/>
|
||||
</Param_12>
|
||||
</Socket>
|
||||
<Socket fStartPosition = "0">
|
||||
<Info strEventName = "Rotation" eTypeParam = "TRANSFORM" pTarget = "CAMERA_CINEMATIC" eTypeFunc="ROTATION"/>
|
||||
<Param_0>
|
||||
<OtherTarget Layer = "" TypeID = ""/>
|
||||
<Transform>
|
||||
<RotQ X="-0.096" Y="0.216" Z="0.021" W="0.972"/>
|
||||
<Trans X="11.494" Y="7.807" Z="27.081"/>
|
||||
</Transform>
|
||||
</Param_0>
|
||||
<vFlags>
|
||||
<Flag id ="0">false</Flag>
|
||||
<Flag id ="1">false</Flag>
|
||||
<Flag id ="2">false</Flag>
|
||||
<Flag id ="3">false</Flag>
|
||||
<Flag id ="4">false</Flag>
|
||||
<Flag id ="5">false</Flag>
|
||||
<Flag id ="6">false</Flag>
|
||||
<Flag id ="7">false</Flag>
|
||||
<Flag id ="8">false</Flag>
|
||||
<Flag id ="9">false</Flag>
|
||||
<Flag id ="10">false</Flag>
|
||||
<Flag id ="11">false</Flag>
|
||||
<Flag id ="12">false</Flag>
|
||||
<Flag id ="13">false</Flag>
|
||||
<Flag id ="14">false</Flag>
|
||||
<Flag id ="15">false</Flag>
|
||||
</vFlags>
|
||||
<Param_10>
|
||||
<uint X="" Y="" Z="" W=""/>
|
||||
</Param_10>
|
||||
<Param_11>
|
||||
<float X="" Y="" Z="" W=""/>
|
||||
</Param_11>
|
||||
<Param_12>
|
||||
<string tag =""/>
|
||||
</Param_12>
|
||||
</Socket>
|
||||
<Socket fStartPosition = "0">
|
||||
<Info strEventName = "LOOK_RANROK" eTypeParam = "TARGET" pTarget = "CAMERA_CINEMATIC" eTypeFunc="LOOK_AT"/>
|
||||
@@ -100,41 +143,10 @@
|
||||
<Param_11>
|
||||
<float X="" Y="" Z="" W=""/>
|
||||
</Param_11>
|
||||
<Param_12>
|
||||
<string tag ="chest_Main"/>
|
||||
</Param_12>
|
||||
</Socket>
|
||||
<!-- <Socket fStartPosition = "0" >
|
||||
<Info strEventName = "Transition" eTypeParam = "END" pTarget ="CAMERA_CINEMATIC" eTypeFunc="TRANSLATION_LERP"/>
|
||||
<Param_0>
|
||||
<OtherTarget Layer = "" TypeID = ""/>
|
||||
<Transform>
|
||||
<RotQ X="" Y="" Z="" W=""/>
|
||||
<Trans X="" Y="" Z=""/>
|
||||
</Transform>
|
||||
</Param_0>
|
||||
<vFlags>
|
||||
<Flag id ="0">true</Flag>
|
||||
<Flag id ="1">false</Flag>
|
||||
<Flag id ="2">false</Flag>
|
||||
<Flag id ="3">false</Flag>
|
||||
<Flag id ="4">false</Flag>
|
||||
<Flag id ="5">false</Flag>
|
||||
<Flag id ="6">false</Flag>
|
||||
<Flag id ="7">false</Flag>
|
||||
<Flag id ="8">false</Flag>
|
||||
<Flag id ="9">false</Flag>
|
||||
<Flag id ="10">false</Flag>
|
||||
<Flag id ="11">false</Flag>
|
||||
<Flag id ="12">false</Flag>
|
||||
<Flag id ="13">false</Flag>
|
||||
<Flag id ="14">false</Flag>
|
||||
<Flag id ="15">false</Flag>
|
||||
</vFlags>
|
||||
<Param_10>
|
||||
<uint X="" Y="" Z="" W=""/>
|
||||
</Param_10>
|
||||
<Param_11>
|
||||
<float X="" Y="" Z="" W=""/>
|
||||
</Param_11>
|
||||
</Socket> -->
|
||||
<Socket fStartPosition = "1" >
|
||||
<Info strEventName = "ZOOM_IN_LERP" eTypeParam = "NOT_USE" pTarget = "CAMERA_CINEMATIC" eTypeFunc="ZOOM_LERP"/>
|
||||
<Param_0>
|
||||
@@ -166,44 +178,13 @@
|
||||
<uint X="" Y="" Z="" W=""/>
|
||||
</Param_10>
|
||||
<Param_11>
|
||||
<float X="60" Y="20" Z="0.5" W=""/>
|
||||
<float X="60" Y="4" Z="1" W=""/>
|
||||
</Param_11>
|
||||
<Param_12>
|
||||
<string tag =""/>
|
||||
</Param_12>
|
||||
</Socket>
|
||||
<Socket fStartPosition = "1.5" >
|
||||
<Info strEventName = "ZOOM_OUT_TRANS_LERP" eTypeParam = "TRANSFORM" pTarget = "CAMERA_CINEMATIC" eTypeFunc="TRANSLATION_LERP"/>
|
||||
<Param_0>
|
||||
<OtherTarget Layer = "" TypeID = ""/>
|
||||
<Transform>
|
||||
<RotQ X="-0.133" Y="0.200" Z="0.027" W="0.970"/>
|
||||
<Trans X="61.119" Y="25.549" Z="130.570"/>
|
||||
</Transform>
|
||||
</Param_0>
|
||||
<vFlags>
|
||||
<Flag id ="0">false</Flag>
|
||||
<Flag id ="1">false</Flag>
|
||||
<Flag id ="2">false</Flag>
|
||||
<Flag id ="3">false</Flag>
|
||||
<Flag id ="4">false</Flag>
|
||||
<Flag id ="5">false</Flag>
|
||||
<Flag id ="6">false</Flag>
|
||||
<Flag id ="7">false</Flag>
|
||||
<Flag id ="8">false</Flag>
|
||||
<Flag id ="9">false</Flag>
|
||||
<Flag id ="10">false</Flag>
|
||||
<Flag id ="11">false</Flag>
|
||||
<Flag id ="12">false</Flag>
|
||||
<Flag id ="13">false</Flag>
|
||||
<Flag id ="14">false</Flag>
|
||||
<Flag id ="15">false</Flag>
|
||||
</vFlags>
|
||||
<Param_10>
|
||||
<uint X="" Y="" Z="" W=""/>
|
||||
</Param_10>
|
||||
<Param_11>
|
||||
<float X="2" Y="0" Z="0" W=""/>
|
||||
</Param_11>
|
||||
</Socket>
|
||||
<Socket fStartPosition = "1.5" >
|
||||
<Socket fStartPosition = "2" >
|
||||
<Info strEventName = "ZOOM_OUT_LERP" eTypeParam = "NOT_USE" pTarget = "CAMERA_CINEMATIC" eTypeFunc="ZOOM_LERP"/>
|
||||
<Param_0>
|
||||
<OtherTarget Layer = "" TypeID = ""/>
|
||||
@@ -234,10 +215,383 @@
|
||||
<uint X="" Y="" Z="" W=""/>
|
||||
</Param_10>
|
||||
<Param_11>
|
||||
<float X="20" Y="40" Z="2" W=""/>
|
||||
<float X="4" Y="40" Z="2" W=""/>
|
||||
</Param_11>
|
||||
<Param_12>
|
||||
<string tag =""/>
|
||||
</Param_12>
|
||||
</Socket>
|
||||
<Socket fStartPosition = "9" >
|
||||
<Socket fStartPosition = "2" >
|
||||
<Info strEventName = "ZOOM_OUT_TRANS_LERP" eTypeParam = "TRANSFORM" pTarget = "CAMERA_CINEMATIC" eTypeFunc="TRANSLATION_LERP"/>
|
||||
<Param_0>
|
||||
<OtherTarget Layer = "" TypeID = ""/>
|
||||
<Transform>
|
||||
<RotQ X="-0.128" Y="0.392" Z="0.055" W="0.909"/>
|
||||
<Trans X="59.834" Y="33.752" Z="149.152"/>
|
||||
</Transform>
|
||||
</Param_0>
|
||||
<vFlags>
|
||||
<Flag id ="0">false</Flag>
|
||||
<Flag id ="1">false</Flag>
|
||||
<Flag id ="2">false</Flag>
|
||||
<Flag id ="3">false</Flag>
|
||||
<Flag id ="4">false</Flag>
|
||||
<Flag id ="5">false</Flag>
|
||||
<Flag id ="6">false</Flag>
|
||||
<Flag id ="7">false</Flag>
|
||||
<Flag id ="8">false</Flag>
|
||||
<Flag id ="9">false</Flag>
|
||||
<Flag id ="10">false</Flag>
|
||||
<Flag id ="11">false</Flag>
|
||||
<Flag id ="12">false</Flag>
|
||||
<Flag id ="13">false</Flag>
|
||||
<Flag id ="14">false</Flag>
|
||||
<Flag id ="15">false</Flag>
|
||||
</vFlags>
|
||||
<Param_10>
|
||||
<uint X="" Y="" Z="" W=""/>
|
||||
</Param_10>
|
||||
<Param_11>
|
||||
<float X="2" Y="0" Z="0" W=""/>
|
||||
</Param_11>
|
||||
<Param_12>
|
||||
<string tag =""/>
|
||||
</Param_12>
|
||||
</Socket>
|
||||
<Socket fStartPosition = "2" >
|
||||
<Info strEventName = "ZOOM_OUT_ROT_LERP" eTypeParam = "TRANSFORM" pTarget = "CAMERA_CINEMATIC" eTypeFunc="ROTATION_LERP"/>
|
||||
<Param_0>
|
||||
<OtherTarget Layer = "" TypeID = ""/>
|
||||
<Transform>
|
||||
<RotQ X="-0.128" Y="0.392" Z="0.055" W="0.909"/>
|
||||
<Trans X="59.834" Y="33.752" Z="149.152"/>
|
||||
</Transform>
|
||||
</Param_0>
|
||||
<vFlags>
|
||||
<Flag id ="0">false</Flag>
|
||||
<Flag id ="1">false</Flag>
|
||||
<Flag id ="2">false</Flag>
|
||||
<Flag id ="3">false</Flag>
|
||||
<Flag id ="4">false</Flag>
|
||||
<Flag id ="5">false</Flag>
|
||||
<Flag id ="6">false</Flag>
|
||||
<Flag id ="7">false</Flag>
|
||||
<Flag id ="8">false</Flag>
|
||||
<Flag id ="9">false</Flag>
|
||||
<Flag id ="10">false</Flag>
|
||||
<Flag id ="11">false</Flag>
|
||||
<Flag id ="12">false</Flag>
|
||||
<Flag id ="13">false</Flag>
|
||||
<Flag id ="14">false</Flag>
|
||||
<Flag id ="15">false</Flag>
|
||||
</vFlags>
|
||||
<Param_10>
|
||||
<uint X="" Y="" Z="" W=""/>
|
||||
</Param_10>
|
||||
<Param_11>
|
||||
<float X="2" Y="0" Z="0" W=""/>
|
||||
</Param_11>
|
||||
<Param_12>
|
||||
<string tag =""/>
|
||||
</Param_12>
|
||||
</Socket>
|
||||
<Socket fStartPosition = "3" >
|
||||
<Info strEventName = "Ranrok_FEAR_0" eTypeParam = "NOT_USE" pTarget = "ACTOR_RANROK" eTypeFunc="SET_FSMSTATE"/>
|
||||
<Param_0>
|
||||
<OtherTarget Layer = "" TypeID = ""/>
|
||||
<Transform>
|
||||
<RotQ X="" Y="" Z="" W=""/>
|
||||
<Trans X="" Y="" Z=""/>
|
||||
</Transform>
|
||||
</Param_0>
|
||||
<vFlags>
|
||||
<Flag id ="0">false</Flag>
|
||||
<Flag id ="1">true</Flag>
|
||||
<Flag id ="2">false</Flag>
|
||||
<Flag id ="3">false</Flag>
|
||||
<Flag id ="4">false</Flag>
|
||||
<Flag id ="5">false</Flag>
|
||||
<Flag id ="6">false</Flag>
|
||||
<Flag id ="7">false</Flag>
|
||||
<Flag id ="8">false</Flag>
|
||||
<Flag id ="9">false</Flag>
|
||||
<Flag id ="10">false</Flag>
|
||||
<Flag id ="11">false</Flag>
|
||||
<Flag id ="12">false</Flag>
|
||||
<Flag id ="13">false</Flag>
|
||||
<Flag id ="14">false</Flag>
|
||||
<Flag id ="15">false</Flag>
|
||||
</vFlags>
|
||||
<Param_10>
|
||||
<uint X="" Y="" Z="" W=""/>
|
||||
</Param_10>
|
||||
<Param_11>
|
||||
<float X="" Y="" Z="" W=""/>
|
||||
</Param_11>
|
||||
<Param_12>
|
||||
<string tag =""/>
|
||||
</Param_12>
|
||||
</Socket>
|
||||
<Socket fStartPosition = "5" >
|
||||
<Info strEventName = "Ranrok_ROTATION_ARM_START" eTypeParam = "TRANSFORM" pTarget = "CAMERA_CINEMATIC" eTypeFunc="TRANSLATION"/>
|
||||
<Param_0>
|
||||
<OtherTarget Layer = "" TypeID = ""/>
|
||||
<Transform>
|
||||
<RotQ X="0.110" Y="0.574" Z="-0.078" W="0.808"/>
|
||||
<Trans X="59.803" Y="39.705" Z="157.962"/>
|
||||
</Transform>
|
||||
</Param_0>
|
||||
<vFlags>
|
||||
<Flag id ="0">false</Flag>
|
||||
<Flag id ="1">true</Flag>
|
||||
<Flag id ="2">false</Flag>
|
||||
<Flag id ="3">false</Flag>
|
||||
<Flag id ="4">false</Flag>
|
||||
<Flag id ="5">false</Flag>
|
||||
<Flag id ="6">false</Flag>
|
||||
<Flag id ="7">false</Flag>
|
||||
<Flag id ="8">false</Flag>
|
||||
<Flag id ="9">false</Flag>
|
||||
<Flag id ="10">false</Flag>
|
||||
<Flag id ="11">false</Flag>
|
||||
<Flag id ="12">false</Flag>
|
||||
<Flag id ="13">false</Flag>
|
||||
<Flag id ="14">false</Flag>
|
||||
<Flag id ="15">false</Flag>
|
||||
</vFlags>
|
||||
<Param_10>
|
||||
<uint X="" Y="" Z="" W=""/>
|
||||
</Param_10>
|
||||
<Param_11>
|
||||
<float X="" Y="" Z="" W=""/>
|
||||
</Param_11>
|
||||
<Param_12>
|
||||
<string tag =""/>
|
||||
</Param_12>
|
||||
</Socket>
|
||||
<Socket fStartPosition = "5" >
|
||||
<Info strEventName = "Ranrok_ROTATION_ARM_START" eTypeParam = "TRANSFORM" pTarget = "CAMERA_CINEMATIC" eTypeFunc="ROTATION"/>
|
||||
<Param_0>
|
||||
<OtherTarget Layer = "" TypeID = ""/>
|
||||
<Transform>
|
||||
<RotQ X="0.110" Y="0.574" Z="-0.078" W="0.808"/>
|
||||
<Trans X="59.803" Y="39.705" Z="157.962"/>
|
||||
</Transform>
|
||||
</Param_0>
|
||||
<vFlags>
|
||||
<Flag id ="0">false</Flag>
|
||||
<Flag id ="1">true</Flag>
|
||||
<Flag id ="2">false</Flag>
|
||||
<Flag id ="3">false</Flag>
|
||||
<Flag id ="4">false</Flag>
|
||||
<Flag id ="5">false</Flag>
|
||||
<Flag id ="6">false</Flag>
|
||||
<Flag id ="7">false</Flag>
|
||||
<Flag id ="8">false</Flag>
|
||||
<Flag id ="9">false</Flag>
|
||||
<Flag id ="10">false</Flag>
|
||||
<Flag id ="11">false</Flag>
|
||||
<Flag id ="12">false</Flag>
|
||||
<Flag id ="13">false</Flag>
|
||||
<Flag id ="14">false</Flag>
|
||||
<Flag id ="15">false</Flag>
|
||||
</vFlags>
|
||||
<Param_10>
|
||||
<uint X="" Y="" Z="" W=""/>
|
||||
</Param_10>
|
||||
<Param_11>
|
||||
<float X="" Y="" Z="" W=""/>
|
||||
</Param_11>
|
||||
<Param_12>
|
||||
<string tag =""/>
|
||||
</Param_12>
|
||||
</Socket>
|
||||
<Socket fStartPosition = "5" >
|
||||
<Info strEventName = "Ranrok_ROTATION_ARM_LERP" eTypeParam = "TRANSFORM" pTarget = "CAMERA_CINEMATIC" eTypeFunc="ROTATION_LERP"/>
|
||||
<Param_0>
|
||||
<OtherTarget Layer = "" TypeID = ""/>
|
||||
<Transform>
|
||||
<RotQ X="0.091" Y="0.428" Z="-0.043" W="0.898"/>
|
||||
<Trans X="59.605" Y="39.634" Z="149.484"/>
|
||||
</Transform>
|
||||
</Param_0>
|
||||
<vFlags>
|
||||
<Flag id ="0">false</Flag>
|
||||
<Flag id ="1">true</Flag>
|
||||
<Flag id ="2">false</Flag>
|
||||
<Flag id ="3">false</Flag>
|
||||
<Flag id ="4">false</Flag>
|
||||
<Flag id ="5">false</Flag>
|
||||
<Flag id ="6">false</Flag>
|
||||
<Flag id ="7">false</Flag>
|
||||
<Flag id ="8">false</Flag>
|
||||
<Flag id ="9">false</Flag>
|
||||
<Flag id ="10">false</Flag>
|
||||
<Flag id ="11">false</Flag>
|
||||
<Flag id ="12">false</Flag>
|
||||
<Flag id ="13">false</Flag>
|
||||
<Flag id ="14">false</Flag>
|
||||
<Flag id ="15">false</Flag>
|
||||
</vFlags>
|
||||
<Param_10>
|
||||
<uint X="" Y="" Z="" W=""/>
|
||||
</Param_10>
|
||||
<Param_11>
|
||||
<float X="1" Y="" Z="" W=""/>
|
||||
</Param_11>
|
||||
<Param_12>
|
||||
<string tag =""/>
|
||||
</Param_12>
|
||||
</Socket>
|
||||
<Socket fStartPosition = "5" >
|
||||
<Info strEventName = "Ranrok_ROTATION_ARM_LERP" eTypeParam = "TRANSFORM" pTarget = "CAMERA_CINEMATIC" eTypeFunc="TRANSLATION_LERP"/>
|
||||
<Param_0>
|
||||
<OtherTarget Layer = "" TypeID = ""/>
|
||||
<Transform>
|
||||
<RotQ X="0.091" Y="0.428" Z="-0.043" W="0.898"/>
|
||||
<Trans X="59.605" Y="39.634" Z="149.484"/>
|
||||
</Transform>
|
||||
</Param_0>
|
||||
<vFlags>
|
||||
<Flag id ="0">false</Flag>
|
||||
<Flag id ="1">true</Flag>
|
||||
<Flag id ="2">false</Flag>
|
||||
<Flag id ="3">false</Flag>
|
||||
<Flag id ="4">false</Flag>
|
||||
<Flag id ="5">false</Flag>
|
||||
<Flag id ="6">false</Flag>
|
||||
<Flag id ="7">false</Flag>
|
||||
<Flag id ="8">false</Flag>
|
||||
<Flag id ="9">false</Flag>
|
||||
<Flag id ="10">false</Flag>
|
||||
<Flag id ="11">false</Flag>
|
||||
<Flag id ="12">false</Flag>
|
||||
<Flag id ="13">false</Flag>
|
||||
<Flag id ="14">false</Flag>
|
||||
<Flag id ="15">false</Flag>
|
||||
</vFlags>
|
||||
<Param_10>
|
||||
<uint X="" Y="" Z="" W=""/>
|
||||
</Param_10>
|
||||
<Param_11>
|
||||
<float X="1" Y="" Z="" W=""/>
|
||||
</Param_11>
|
||||
<Param_12>
|
||||
<string tag =""/>
|
||||
</Param_12>
|
||||
</Socket>
|
||||
<Socket fStartPosition = "6" >
|
||||
<Info strEventName = "Ranrok_ROTATION_ARM_LERP" eTypeParam = "TRANSFORM" pTarget = "CAMERA_CINEMATIC" eTypeFunc="ROTATION_LERP"/>
|
||||
<Param_0>
|
||||
<OtherTarget Layer = "" TypeID = ""/>
|
||||
<Transform>
|
||||
<RotQ X="0.171" Y="-0.455" Z="0.089" W="0.870"/>
|
||||
<Trans X="86.546" Y="41.362" Z="144.744"/>
|
||||
</Transform>
|
||||
</Param_0>
|
||||
<vFlags>
|
||||
<Flag id ="0">false</Flag>
|
||||
<Flag id ="1">true</Flag>
|
||||
<Flag id ="2">false</Flag>
|
||||
<Flag id ="3">false</Flag>
|
||||
<Flag id ="4">false</Flag>
|
||||
<Flag id ="5">false</Flag>
|
||||
<Flag id ="6">false</Flag>
|
||||
<Flag id ="7">false</Flag>
|
||||
<Flag id ="8">false</Flag>
|
||||
<Flag id ="9">false</Flag>
|
||||
<Flag id ="10">false</Flag>
|
||||
<Flag id ="11">false</Flag>
|
||||
<Flag id ="12">false</Flag>
|
||||
<Flag id ="13">false</Flag>
|
||||
<Flag id ="14">false</Flag>
|
||||
<Flag id ="15">false</Flag>
|
||||
</vFlags>
|
||||
<Param_10>
|
||||
<uint X="" Y="" Z="" W=""/>
|
||||
</Param_10>
|
||||
<Param_11>
|
||||
<float X="1" Y="" Z="" W=""/>
|
||||
</Param_11>
|
||||
<Param_12>
|
||||
<string tag =""/>
|
||||
</Param_12>
|
||||
</Socket>
|
||||
<Socket fStartPosition = "6" >
|
||||
<Info strEventName = "Ranrok_ROTATION_ARM_LERP" eTypeParam = "TRANSFORM" pTarget = "CAMERA_CINEMATIC" eTypeFunc="TRANSLATION_LERP"/>
|
||||
<Param_0>
|
||||
<OtherTarget Layer = "" TypeID = ""/>
|
||||
<Transform>
|
||||
<RotQ X="0.171" Y="-0.455" Z="0.089" W="0.870"/>
|
||||
<Trans X="86.546" Y="41.362" Z="144.744"/>
|
||||
</Transform>
|
||||
</Param_0>
|
||||
<vFlags>
|
||||
<Flag id ="0">false</Flag>
|
||||
<Flag id ="1">true</Flag>
|
||||
<Flag id ="2">false</Flag>
|
||||
<Flag id ="3">false</Flag>
|
||||
<Flag id ="4">false</Flag>
|
||||
<Flag id ="5">false</Flag>
|
||||
<Flag id ="6">false</Flag>
|
||||
<Flag id ="7">false</Flag>
|
||||
<Flag id ="8">false</Flag>
|
||||
<Flag id ="9">false</Flag>
|
||||
<Flag id ="10">false</Flag>
|
||||
<Flag id ="11">false</Flag>
|
||||
<Flag id ="12">false</Flag>
|
||||
<Flag id ="13">false</Flag>
|
||||
<Flag id ="14">false</Flag>
|
||||
<Flag id ="15">false</Flag>
|
||||
</vFlags>
|
||||
<Param_10>
|
||||
<uint X="" Y="" Z="" W=""/>
|
||||
</Param_10>
|
||||
<Param_11>
|
||||
<float X="1" Y="" Z="" W=""/>
|
||||
</Param_11>
|
||||
<Param_12>
|
||||
<string tag =""/>
|
||||
</Param_12>
|
||||
</Socket>
|
||||
<Socket fStartPosition = "11" >
|
||||
<Info strEventName = "Ranrok_TUCK_0" eTypeParam = "NOT_USE" pTarget = "ACTOR_RANROK" eTypeFunc="SET_FSMSTATE"/>
|
||||
<Param_0>
|
||||
<OtherTarget Layer = "" TypeID = ""/>
|
||||
<Transform>
|
||||
<RotQ X="" Y="" Z="" W=""/>
|
||||
<Trans X="" Y="" Z=""/>
|
||||
</Transform>
|
||||
</Param_0>
|
||||
<vFlags>
|
||||
<Flag id ="0">true</Flag>
|
||||
<Flag id ="1">false</Flag>
|
||||
<Flag id ="2">false</Flag>
|
||||
<Flag id ="3">false</Flag>
|
||||
<Flag id ="4">false</Flag>
|
||||
<Flag id ="5">false</Flag>
|
||||
<Flag id ="6">false</Flag>
|
||||
<Flag id ="7">false</Flag>
|
||||
<Flag id ="8">false</Flag>
|
||||
<Flag id ="9">false</Flag>
|
||||
<Flag id ="10">false</Flag>
|
||||
<Flag id ="11">false</Flag>
|
||||
<Flag id ="12">false</Flag>
|
||||
<Flag id ="13">false</Flag>
|
||||
<Flag id ="14">false</Flag>
|
||||
<Flag id ="15">false</Flag>
|
||||
</vFlags>
|
||||
<Param_10>
|
||||
<uint X="" Y="" Z="" W=""/>
|
||||
</Param_10>
|
||||
<Param_11>
|
||||
<float X="" Y="" Z="" W=""/>
|
||||
</Param_11>
|
||||
<Param_12>
|
||||
<string tag =""/>
|
||||
</Param_12>
|
||||
</Socket>
|
||||
<Socket fStartPosition = "14" >
|
||||
<Info strEventName = "Ready_PLAYERPos" eTypeParam = "TRANSFORM" pTarget = "ACTOR_PLAYER" eTypeFunc="TRANSLATION"/>
|
||||
<Param_0>
|
||||
<OtherTarget Layer = "" TypeID = ""/>
|
||||
@@ -270,8 +624,11 @@
|
||||
<Param_11>
|
||||
<float X="" Y="" Z="" W=""/>
|
||||
</Param_11>
|
||||
<Param_12>
|
||||
<string tag =""/>
|
||||
</Param_12>
|
||||
</Socket>
|
||||
<Socket fStartPosition = "9" >
|
||||
<Socket fStartPosition = "14" >
|
||||
<Info strEventName = "SET_PITCHLIMIT" eTypeParam = "NOT_USE" pTarget = "CAMERA_SHOULDER" eTypeFunc="SET_PITCHLIMIT"/>
|
||||
<Param_0>
|
||||
<OtherTarget Layer = "" TypeID = ""/>
|
||||
@@ -302,10 +659,13 @@
|
||||
<uint X="" Y="" Z="" W=""/>
|
||||
</Param_10>
|
||||
<Param_11>
|
||||
<float X="20" Y="60" Z="" W=""/>
|
||||
<float X="50" Y="5" Z="" W=""/>
|
||||
</Param_11>
|
||||
<Param_12>
|
||||
<string tag =""/>
|
||||
</Param_12>
|
||||
</Socket>
|
||||
<Socket fStartPosition = "9" >
|
||||
<Socket fStartPosition = "14" >
|
||||
<Info strEventName = "Off_Camera" eTypeParam = "TARGET" pTarget = "CAMERA_CINEMATIC" eTypeFunc="END_CINEMATIC"/>
|
||||
<Param_0>
|
||||
<OtherTarget Layer = "Layer_Camera" TypeID = "CAMERA_SHOULDER"/>
|
||||
@@ -338,5 +698,9 @@
|
||||
<Param_11>
|
||||
<float X="" Y="" Z="" W=""/>
|
||||
</Param_11>
|
||||
<Param_12>
|
||||
<string tag =""/>
|
||||
</Param_12>
|
||||
</Socket>
|
||||
<Trigger X="11.494" Y="7.807" Z="27.081" W="5.f"/>
|
||||
</RanrokIntro>
|
||||
|
||||
@@ -1,73 +1,78 @@
|
||||
<DialogueInfo>
|
||||
<Dialogue NpcName="OLLIVENDER" NpcID="0" NpcInrteract ="1" >
|
||||
<Line ID="0" Type="0" Text="반갑네 친구 나는 올리벤더 라고 하네" NextText="1"> </Line>
|
||||
<Line ID="1" Type="0" Text="나는 여기서 지팡이를 팔고있어" NextText="2"> </Line>
|
||||
<Line ID="2" Type="1" Text="뭐 필요한게 있나?" NextText="-1">
|
||||
<Choice Type="2" Text="상점 이용하기" NextText="-1" />
|
||||
<Choice Type="3" Text="퀘스트 확인하기" NextText="-1" />
|
||||
<Choice Type="0" Text="다른일 하러가기" NextText="-1" />
|
||||
<Line ID="0" Type="0" Text="반갑네 친구 나는 올리벤더 라고 하네" NextID="1"> </Line>
|
||||
<Line ID="1" Type="0" Text="나는 여기서 지팡이를 팔고있어" NextID="2"> </Line>
|
||||
<Line ID="2" Type="1" Text="뭐 필요한게 있나?" NextID="-1">
|
||||
<Choice Type="2" Text="상점 이용하기" NextID="-1" />
|
||||
<Choice Type="3" Text="퀘스트 확인하기" NextID="-1" />
|
||||
<Choice Type="0" Text="다른일 하러가기" NextID="-1" />
|
||||
</Line>
|
||||
</Dialogue>
|
||||
|
||||
<Dialogue NpcName="SATYAVATI" NpcID="1" NpcInrteract ="0">
|
||||
<Line ID="0" Type="0" Text="사티아바티" NextText="-1"> </Line>
|
||||
<Line ID="0" Type="0" Text="사티아바티" NextID="-1"> </Line>
|
||||
</Dialogue>
|
||||
|
||||
<Dialogue NpcName="MATILDAWEASELY" NpcID="2" NpcInrteract ="0">
|
||||
<Line ID="0" Type="0" Text="마틸다 위즐리" NextText="1"> </Line>
|
||||
<Line ID="0" Type="0" Text="마틸다 위즐리" NextID="1"> </Line>
|
||||
</Dialogue>
|
||||
|
||||
<Dialogue NpcName="ELEAZARFIG" NpcID="3" NpcInrteract="1">
|
||||
<Line ID="0" Type="0" Text="엘리아자르 피그" NextText="1" NpcInrteract ="1"> </Line>
|
||||
<Line ID="1" Type="0" Text="나는 여기서 지팡이를 팔고있어" NextText="2"> </Line>
|
||||
<Line ID="2" Type="1" Text="뭐 필요한게 있나?" NextText="-1">
|
||||
<Choice Type="1" Text="상점 이용하기" NextText="-1" />
|
||||
<Choice Type="2" Text="퀘스트 확인하기" NextText="-1" />
|
||||
<Choice Type="0" Text="다른일 하러가기" NextText="-1" />
|
||||
<Line ID="0" Type="0" Text="엘리아자르 피그" NextID="1" NpcInrteract ="1"> </Line>
|
||||
<Line ID="1" Type="0" Text="나는 여기서 지팡이를 팔고있어" NextID="2"> </Line>
|
||||
<Line ID="2" Type="1" Text="뭐 필요한게 있나?" NextID="-1">
|
||||
<Choice Type="1" Text="상점 이용하기" NextID="-1" />
|
||||
<Choice Type="2" Text="퀘스트 확인하기" NextID="-1" />
|
||||
<Choice Type="0" Text="다른일 하러가기" NextID="-1" />
|
||||
</Line>
|
||||
</Dialogue>
|
||||
|
||||
<Dialogue NpcName="ELF" NpcID="4" NpcInrteract="1">
|
||||
<Line ID="0" Type="0" Text="도비" NextText="-1"> </Line>
|
||||
<Line ID="0" Type="0" Text="길을 가고 있었는데 고블린 무리가 저를 공격 했어요!" NextID="1"> </Line>
|
||||
<Line ID="1" Type="1" Text="그 못된 친구들을 혼내주세요!" NextID="-1">
|
||||
<Choice Type="3" Text="뭐? 어디야 당장 가자" NextID="0" />
|
||||
<Choice Type="0" Text="흥! 너가 나약해서 그런거 아니야" NextID="-1" />
|
||||
</Line>
|
||||
</Dialogue>
|
||||
|
||||
<Dialogue NpcName="PEEVES" NpcID="5" NpcInrteract="1">
|
||||
<Line ID="0" Type="0" Text="이번에 새로운 코스를 만들었는데" NextText="1"> </Line>
|
||||
<Line ID="1" Type="1" Text="한번 도전 해볼래?" NextText="-1">
|
||||
<Choice Type="5" Text="실력 한번 보여준다." NextText="-1" />
|
||||
<Choice Type="0" Text="다시 연습 하고온다." NextText="-1" />
|
||||
<Line ID="0" Type="0" Text="이번에 새로운 코스를 만들었는데" NextID="1"> </Line>
|
||||
<Line ID="1" Type="1" Text="한번 도전 해볼래?" NextID="-1">
|
||||
<Choice Type="5" Text="실력 한번 보여준다." NextID="-1" />
|
||||
<Choice Type="0" Text="다시 연습 하고온다." NextID="-1" />
|
||||
</Line>
|
||||
</Dialogue>
|
||||
|
||||
<Dialogue NpcName="PHINEASBLACK" NpcID="6" NpcInrteract="0">
|
||||
<Line ID="0" Type="0" Text="피니어스 블랙" NextText="-1"> </Line>
|
||||
<Line ID="0" Type="0" Text="올해 퀴디치 시즌은 취소 되었습니다." NextID="-1"> </Line>
|
||||
</Dialogue>
|
||||
|
||||
<Dialogue NpcName="F_STUDENT" NpcID="7" NpcInrteract="1">
|
||||
<Line ID="0" Type="0" Text="아우렐리아 로즈" NextText="-1"> </Line>
|
||||
<Line ID="0" Type="0" Text="혹시 그 소문 들었어?" NextID="-1"> </Line>
|
||||
</Dialogue>
|
||||
|
||||
<Dialogue NpcName="M_STUDENT" NpcID="8" NpcInrteract="0">
|
||||
<Line ID="0" Type="0" Text="테오도어 그레이브스" NextText="-1"> </Line>
|
||||
<Line ID="0" Type="0" Text="테오도어 그레이브스" NextID="-1"> </Line>
|
||||
</Dialogue>
|
||||
|
||||
<Dialogue NpcName="BAIHOWIN" NpcID="9" NpcInrteract="0">
|
||||
<Line ID="0" Type="0" Text="바이호윈" NextText="-1"> </Line>
|
||||
<Line ID="0" Type="0" Text="바이호윈" NextID="-1"> </Line>
|
||||
</Dialogue>
|
||||
|
||||
<Dialogue NpcName="GEORGEOSRIC" NpcID="10" NpcInrteract="0">
|
||||
<Line ID="0" Type="0" Text="조지오스릭" NextText="-1"> </Line>
|
||||
<Line ID="0" Type="0" Text="조지오스릭" NextID="-1"> </Line>
|
||||
</Dialogue>
|
||||
|
||||
<Dialogue NpcName="DINAHHECAT" NpcID="11" NpcInrteract="1">
|
||||
<Line ID="0" Type="0" Text="디나 헤카트" NextText="-1"> </Line>
|
||||
<Line ID="0" Type="0" Text="뭐? 나랑 대결을 하고싶다고?" NextID="1"> </Line>
|
||||
<Line ID="1" Type="0" Text="아직은 때가 아니야" NextID="-1"> </Line>
|
||||
</Dialogue>
|
||||
|
||||
<Dialogue NpcName="MUDIWAONAI" NpcID="12" NpcInrteract="0">
|
||||
<Line ID="0" Type="0" Text="무디아 오나이" NextText="-1"> </Line>
|
||||
<Line ID="0" Type="0" Text="무디아 오나이" NextID="-1"> </Line>
|
||||
</Dialogue>
|
||||
|
||||
<Dialogue NpcName="KITCHENFEMALE" NpcID="13" NpcInrteract="0">
|
||||
<Line ID="0" Type="0" Text="주방 도비" NextText="-1"> </Line>
|
||||
<Line ID="0" Type="0" Text="주방 도비" NextID="-1"> </Line>
|
||||
</Dialogue>
|
||||
</DialogueInfo>
|
||||
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
BIN
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.
BIN
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