@@ -165,12 +165,18 @@ call Update_Resources.bat
|
||||
<ClInclude Include="..\Public\Eessential_Spell.h" />
|
||||
<ClInclude Include="..\Public\Eessential_Spell_Slot.h" />
|
||||
<ClInclude Include="..\Public\HpBarBG.h" />
|
||||
<ClInclude Include="..\Public\Levioso.h" />
|
||||
<ClInclude Include="..\Public\Magic_Icon.h" />
|
||||
<ClInclude Include="..\Public\Magic_Item.h" />
|
||||
<ClInclude Include="..\Public\Magic_Meter.h" />
|
||||
<ClInclude Include="..\Public\DecendoSide.h" />
|
||||
<ClInclude Include="..\Public\BombardSide.h" />
|
||||
<ClInclude Include="..\Public\LeviosoSide.h" />
|
||||
<ClInclude Include="..\public\MapElement.h" />
|
||||
<ClInclude Include="..\public\MapElement_Light.h" />
|
||||
<ClInclude Include="..\Public\Potion.h" />
|
||||
<ClInclude Include="..\Public\NomalJapSide.h" />
|
||||
<ClInclude Include="..\Public\Lumos.h" />
|
||||
<ClInclude Include="..\Public\Protego.h" />
|
||||
<ClInclude Include="..\Public\Bombard.h" />
|
||||
<ClInclude Include="..\Public\Broom.h" />
|
||||
@@ -261,6 +267,7 @@ call Update_Resources.bat
|
||||
<ClInclude Include="..\Public\TrailObject.h" />
|
||||
<ClInclude Include="..\Public\Troll.h" />
|
||||
<ClInclude Include="..\Public\Troll_Weapon.h" />
|
||||
<ClInclude Include="..\public\UI_Manager.h" />
|
||||
<ClInclude Include="..\Public\Wand.h" />
|
||||
<ClInclude Include="Client.h" />
|
||||
<ClInclude Include="framework.h" />
|
||||
@@ -274,12 +281,18 @@ call Update_Resources.bat
|
||||
<ClCompile Include="..\Private\Eessential_Spell.cpp" />
|
||||
<ClCompile Include="..\Private\Eessential_Spell_Slot.cpp" />
|
||||
<ClCompile Include="..\Private\HpBarBG.cpp" />
|
||||
<ClCompile Include="..\Private\Levioso.cpp" />
|
||||
<ClCompile Include="..\Private\Magic_Icon.cpp" />
|
||||
<ClCompile Include="..\Private\Magic_Item.cpp" />
|
||||
<ClCompile Include="..\Private\Magic_Meter.cpp" />
|
||||
<ClCompile Include="..\Private\DecendoSide.cpp" />
|
||||
<ClCompile Include="..\Private\BombardSide.cpp" />
|
||||
<ClCompile Include="..\Private\LeviosoSide.cpp" />
|
||||
<ClCompile Include="..\private\MapElement.cpp" />
|
||||
<ClCompile Include="..\private\MapElement_Light.cpp" />
|
||||
<ClCompile Include="..\Private\Potion.cpp" />
|
||||
<ClCompile Include="..\Private\NomalJapSide.cpp" />
|
||||
<ClCompile Include="..\Private\Lumos.cpp" />
|
||||
<ClCompile Include="..\Private\Protego.cpp" />
|
||||
<ClCompile Include="..\Private\Bombard.cpp" />
|
||||
<ClCompile Include="..\Private\Broom.cpp" />
|
||||
@@ -373,6 +386,7 @@ call Update_Resources.bat
|
||||
<ClCompile Include="..\Private\Troll.cpp" />
|
||||
<ClCompile Include="..\Private\Troll_States.cpp" />
|
||||
<ClCompile Include="..\Private\Troll_Weapon.cpp" />
|
||||
<ClCompile Include="..\private\UI_Manager.cpp" />
|
||||
<ClCompile Include="..\Private\Wand.cpp" />
|
||||
<ClCompile Include="Broom_States.cpp" />
|
||||
<ClCompile Include="Client.cpp" />
|
||||
|
||||
@@ -257,7 +257,16 @@
|
||||
<Filter>04.Mechanic\Skill\Skill_Data</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Revelio.h">
|
||||
<Filter>02.GameObjects\Effect\Revelio</Filter>
|
||||
<Filter>02.GameObjects\Effect\Effects\Revelio</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\NomalJapSide.h">
|
||||
<Filter>02.GameObjects\Effect\Effects\NomalJap\NomalJapSide</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Levioso.h">
|
||||
<Filter>02.GameObjects\Effect\Effects\Levioso</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Lumos.h">
|
||||
<Filter>02.GameObjects\Effect\Effects\Lumos</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Troll.h">
|
||||
<Filter>02.GameObjects\Monster\Troll</Filter>
|
||||
@@ -265,6 +274,15 @@
|
||||
<ClInclude Include="..\Public\Troll_Weapon.h">
|
||||
<Filter>02.GameObjects\Item\Troll_Weapon</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\LeviosoSide.h">
|
||||
<Filter>02.GameObjects\Effect\Effects\Levioso\LeviosoSide</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\DecendoSide.h">
|
||||
<Filter>02.GameObjects\Effect\Effects\Decendo\DecendoSide</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\BombardSide.h">
|
||||
<Filter>02.GameObjects\Effect\Effects\Bombard\BombardSide</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\public\GamePlay_Canvas.h">
|
||||
<Filter>02.GameObjects\UI\GamePlay_Canvas</Filter>
|
||||
</ClInclude>
|
||||
@@ -322,11 +340,8 @@
|
||||
<ClInclude Include="..\public\MapElement_Light.h">
|
||||
<Filter>02.GameObjects\Environment\03.MapElement\Light</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\public\MapElement.h">
|
||||
<Filter>02.GameObjects\Environment\03.MapElement</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\public\MapElement_Light.h">
|
||||
<Filter>02.GameObjects\Environment\03.MapElement\Light</Filter>
|
||||
<ClInclude Include="..\public\UI_Manager.h">
|
||||
<Filter>02.GameObjects\UI\UI_Manager</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
@@ -629,9 +644,15 @@
|
||||
<Filter Include="02.GameObjects\Environment\00.MapContainer\StreetContainer">
|
||||
<UniqueIdentifier>{e12a4228-0754-4217-b65d-7f962409f85c}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Effect\Revelio">
|
||||
<Filter Include="02.GameObjects\Effect\Effects\Revelio">
|
||||
<UniqueIdentifier>{19a2325e-1184-4ee0-92e1-657bf184418c}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Effect\Effects\Levioso">
|
||||
<UniqueIdentifier>{b982d9d6-7561-43d4-b542-88483119047b}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Effect\Effects\Lumos">
|
||||
<UniqueIdentifier>{6bc9fd95-31bc-40f3-83cc-15ebb756b04a}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="04.Mechanic\Skill">
|
||||
<UniqueIdentifier>{c5b61cb3-bc5f-4429-8715-b309dcf054b2}</UniqueIdentifier>
|
||||
</Filter>
|
||||
@@ -644,18 +665,25 @@
|
||||
<Filter Include="02.GameObjects\Environment\03.MapElement\Light">
|
||||
<UniqueIdentifier>{71f6a568-488d-4ec1-be79-8fcce6677e27}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Environment\03.MapElement">
|
||||
<UniqueIdentifier>{f3f219aa-034f-4aa2-9f2e-d75d15bd1f4a}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Environment\03.MapElement\Light">
|
||||
<UniqueIdentifier>{71f6a568-488d-4ec1-be79-8fcce6677e27}</UniqueIdentifier>
|
||||
</Filter>
|
||||
|
||||
<Filter Include="02.GameObjects\Monster\Troll">
|
||||
<UniqueIdentifier>{a1b1f17d-ed4f-4b20-aa8e-c52e693683d4}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Item\Troll_Weapon">
|
||||
<UniqueIdentifier>{1d6c078d-dddd-493d-a6f0-f2cac2e4107e}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Effect\Effects\NomalJap\NomalJapSide">
|
||||
<UniqueIdentifier>{d260ec7e-150c-4a25-8e25-83eb141652bc}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Effect\Effects\Levioso\LeviosoSide">
|
||||
<UniqueIdentifier>{dc00cfd8-105f-419f-a4e4-109096258347}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Effect\Effects\Decendo\DecendoSide">
|
||||
<UniqueIdentifier>{1cb823f5-a6fe-4bef-9292-b49480a42524}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Effect\Effects\Bombard\BombardSide">
|
||||
<UniqueIdentifier>{b6076bdb-df15-498f-b951-6b2d0b777a0b}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\UI\Spell_Canvas">
|
||||
<UniqueIdentifier>{257a5a09-b15b-4fd2-9615-054a00cf4b25}</UniqueIdentifier>
|
||||
</Filter>
|
||||
@@ -707,6 +735,9 @@
|
||||
<Filter Include="02.GameObjects\UI\Spell_Canvas\Spell_Panel\Spell_Header">
|
||||
<UniqueIdentifier>{00b37924-ab02-4287-b67e-80375a8d3268}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\UI\UI_Manager">
|
||||
<UniqueIdentifier>{9cc8fea6-837e-4f68-b116-134c9dc68a26}</UniqueIdentifier>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="Client.cpp">
|
||||
@@ -953,7 +984,16 @@
|
||||
<Filter>02.GameObjects\Environment\00.MapContainer\StreetContainer</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Revelio.cpp">
|
||||
<Filter>02.GameObjects\Effect\Revelio</Filter>
|
||||
<Filter>02.GameObjects\Effect\Effects\Revelio</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\NomalJapSide.cpp">
|
||||
<Filter>02.GameObjects\Effect\Effects\NomalJap\NomalJapSide</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Levioso.cpp">
|
||||
<Filter>02.GameObjects\Effect\Effects\Levioso</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Lumos.cpp">
|
||||
<Filter>02.GameObjects\Effect\Effects\Lumos</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\private\Skill_Data.cpp">
|
||||
<Filter>04.Mechanic\Skill\Skill_Data</Filter>
|
||||
@@ -964,12 +1004,6 @@
|
||||
<ClCompile Include="..\private\MapElement_Light.cpp">
|
||||
<Filter>02.GameObjects\Environment\03.MapElement\Light</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\private\MapElement.cpp">
|
||||
<Filter>02.GameObjects\Environment\03.MapElement</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\private\MapElement_Light.cpp">
|
||||
<Filter>02.GameObjects\Environment\03.MapElement\Light</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Troll.cpp">
|
||||
<Filter>02.GameObjects\Monster\Troll</Filter>
|
||||
</ClCompile>
|
||||
@@ -979,6 +1013,15 @@
|
||||
<ClCompile Include="..\Private\Troll_Weapon.cpp">
|
||||
<Filter>02.GameObjects\Item\Troll_Weapon</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\LeviosoSide.cpp">
|
||||
<Filter>02.GameObjects\Effect\Effects\Levioso\LeviosoSide</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\DecendoSide.cpp">
|
||||
<Filter>02.GameObjects\Effect\Effects\Decendo\DecendoSide</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\BombardSide.cpp">
|
||||
<Filter>02.GameObjects\Effect\Effects\Bombard\BombardSide</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\private\GamePlay_Canvas.cpp">
|
||||
<Filter>02.GameObjects\UI\GamePlay_Canvas</Filter>
|
||||
</ClCompile>
|
||||
@@ -1030,6 +1073,9 @@
|
||||
<ClCompile Include="..\Private\Current_Slot_Number.cpp">
|
||||
<Filter>02.GameObjects\UI\Spell_Canvas\Spell_Panel\Current_Slot_Number</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\private\UI_Manager.cpp">
|
||||
<Filter>02.GameObjects\UI\UI_Manager</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ResourceCompile Include="Client.rc">
|
||||
|
||||
@@ -4,7 +4,8 @@
|
||||
#include "GameInstance.h"
|
||||
#include "EffectParts.h"
|
||||
#include "PhysXEffectHitBox.h"
|
||||
|
||||
#include "Wand.h"
|
||||
#include "Player.h"
|
||||
|
||||
CBombard::CBombard(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CEffect_Container{ pDevice, pContext }
|
||||
@@ -50,6 +51,7 @@ void CBombard::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
|
||||
XMStoreFloat4(&m_vStartPos, m_pLight_Projectile->Get_WorldPostion());
|
||||
}
|
||||
|
||||
void CBombard::Update(_float fTimeDelta)
|
||||
@@ -61,9 +63,18 @@ void CBombard::Update(_float fTimeDelta)
|
||||
|
||||
Update_Event(fTimeDelta);
|
||||
|
||||
_vector vOwnerLook = m_pOwner->Get_Component<CTransform>()->Get_State(STATE::LOOK);
|
||||
CTransform* pPJTransform = m_pLight_Projectile->Get_Component<CTransform>();
|
||||
|
||||
pPJTransform->Translation(m_vCameraLook * 2.f);
|
||||
|
||||
|
||||
|
||||
if (true == m_pGameInstance->SphereCast(0.125f, XMLoadFloat4(&m_vStartPos), m_vCameraLook, XMVectorGetX(XMVector3Length(m_vCameraLook * 2.f))
|
||||
, PSX::PxHitFlag::ePOSITION | PSX::PxHitFlag::eNORMAL, PSX::PxQueryFlag::eSTATIC, hitBuffer))
|
||||
{
|
||||
OnCollision();
|
||||
}
|
||||
|
||||
m_pLight_Projectile->Get_Component<CTransform>()->Translation(vOwnerLook * 2.f);
|
||||
}
|
||||
|
||||
void CBombard::Late_Update(_float fTimeDelta)
|
||||
@@ -72,6 +83,8 @@ void CBombard::Late_Update(_float fTimeDelta)
|
||||
return;
|
||||
|
||||
__super::Late_Update(fTimeDelta);
|
||||
|
||||
XMStoreFloat4(&m_vEndPos, m_pLight_Projectile->Get_WorldPostion());
|
||||
|
||||
}
|
||||
|
||||
@@ -91,15 +104,20 @@ HRESULT CBombard::Pre_Setting(CGameObject* pObject)
|
||||
__super::m_fAccTime = 0.f;
|
||||
m_fPreAccTime = 0.f;
|
||||
|
||||
CWand* pWand = static_cast<CPlayer*>(m_pOwner)->Get_PartObject<CWand>();
|
||||
|
||||
if (pWand == nullptr)
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
CPartObject* pShootPt = Get_PartObject<CEffectParts>("Bombard_Shoot_Pt");
|
||||
|
||||
CPartObject* pCircle0 = Get_PartObject<CEffectParts>("Bombard_Circle0");
|
||||
|
||||
pShootPt->Get_Component<CTransform>()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
|
||||
m_pLight_Projectile->Get_Component<CTransform>()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
|
||||
pCircle0->Get_Component<CTransform>()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
|
||||
m_vCameraLook = m_pOwner->Get_Component<CTransform>()->Get_State(STATE::LOOK);
|
||||
|
||||
pShootPt->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
|
||||
m_pLight_Projectile->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
|
||||
pCircle0->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
|
||||
|
||||
pCircle0->Set_Visible(true);
|
||||
pShootPt->Set_Visible(true);
|
||||
@@ -124,32 +142,6 @@ HRESULT CBombard::Ready_Components(void* pArg)
|
||||
|
||||
HRESULT CBombard::Ready_Child()
|
||||
{
|
||||
CPhysXEffectHitBox::PHYSXDUMMY_DESC Desc{};
|
||||
|
||||
m_pTransformCom->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
|
||||
|
||||
XMStoreFloat3(&Desc.vPos, m_pOwner->Get_WorldPostion() + XMVectorSet(0.f, 0.f, 1.f, 0.f));
|
||||
|
||||
|
||||
_vector vOwnerLook = m_pOwner->Get_Component<CTransform>()->Get_State(STATE::LOOK);
|
||||
|
||||
_float3 vDir = {};
|
||||
|
||||
XMStoreFloat3(&Desc.vPos, m_pOwner->Get_WorldPostion() + XMVectorSet(0.f, 0.f, 1.f, 0.f));
|
||||
|
||||
XMStoreFloat3(&vDir, vOwnerLook * 2.f);
|
||||
|
||||
Desc.vRotRPY = { 0.f, 0.f, 0.f };
|
||||
Desc.iSubKind = 70;
|
||||
Desc.vDeltaPos = vDir;
|
||||
Desc.vLifeTime = { 0.f, 2.f };
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CPhysXEffectHitBox>(g_iStaticLevel, CURRENT_LEVEL, LAYER_HITBOX, &Desc, this, &m_pPhysHitBox))) {
|
||||
assert(false);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
SAFE_ADDREF(m_pPhysHitBox);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -183,15 +175,16 @@ CGameObject* CBombard::Clone(void* pArg, CGameObject* pOwner)
|
||||
void CBombard::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
{
|
||||
//CTransform* pOtherTransform = p
|
||||
ON_COLLISION_INFO* CollisionDesc = static_cast<ON_COLLISION_INFO*>(pDesc);
|
||||
|
||||
_vector vPos = XMVectorSet(hitBuffer.block.position.x, hitBuffer.block.position.y, hitBuffer.block.position.z, 1.f);
|
||||
|
||||
|
||||
for (auto& pPair : m_PartObjects)
|
||||
{
|
||||
pPair.second->Set_Visible(true);
|
||||
pPair.second->Get_Component<CTransform>()->Set_State(STATE::POSITION, CollisionDesc->vWorldPos);
|
||||
pPair.second->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
}
|
||||
|
||||
|
||||
m_pLight_Projectile->Set_Visible(false);
|
||||
Get_PartObject<CEffectParts>("Bombard_Shoot_Pt")->Set_Visible(false);
|
||||
|
||||
@@ -200,18 +193,12 @@ void CBombard::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
|
||||
Get_PartObject<CEffectParts>("Bombard_Circle0")->Set_Visible(false);
|
||||
|
||||
|
||||
m_pPhysHitBox->Set_Dead();
|
||||
SAFE_RELEASE(m_pPhysHitBox);
|
||||
}
|
||||
|
||||
void CBombard::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
if (m_pPhysHitBox != nullptr)
|
||||
SAFE_RELEASE(m_pPhysHitBox);
|
||||
|
||||
SAFE_RELEASE(m_pLight_Projectile);
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,205 @@
|
||||
#include "pch.h"
|
||||
#include "BombardSide.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
#include "EffectParts.h"
|
||||
#include "Player.h"
|
||||
#include "Wand.h"
|
||||
#include "TrailObject.h"
|
||||
|
||||
|
||||
CBombardSide::CBombardSide(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CEffect_Container{ pDevice, pContext }
|
||||
{
|
||||
}
|
||||
|
||||
CBombardSide::CBombardSide(const CBombardSide& rhs)
|
||||
: CEffect_Container(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CBombardSide::Initialize_Prototype()
|
||||
{
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
|
||||
HRESULT CBombardSide::Initialize(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Initialize(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/BombardaSide")))
|
||||
return E_FAIL;
|
||||
|
||||
m_wstrEffectName = L"BombardSide";
|
||||
|
||||
|
||||
m_pWandParticle = Get_PartObject<CEffectParts>("WandParticle_B_100");
|
||||
m_pWandLight = Get_PartObject<CEffectParts>("Wand_Light_B");
|
||||
m_pWandTrail = Get_PartObject<CTrailObject>();
|
||||
|
||||
SAFE_ADDREF(m_pWandLight);
|
||||
SAFE_ADDREF(m_pWandTrail);
|
||||
SAFE_ADDREF(m_pWandParticle);
|
||||
|
||||
m_fDuration = 1.f;
|
||||
|
||||
m_Events.emplace(0.4f, [&](){
|
||||
m_pWandTrail->Set_Visible(false);
|
||||
});
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CBombardSide::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
|
||||
}
|
||||
|
||||
void CBombardSide::Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
|
||||
Update_Event(fTimeDelta);
|
||||
|
||||
|
||||
CWand* pWand = static_cast<CWand*>(m_pOwner);
|
||||
|
||||
if (pWand == nullptr)
|
||||
return;
|
||||
|
||||
m_pWandLight->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
|
||||
|
||||
m_pWandTrail->Get_Component<CTrail>()->Trail_Update(fTimeDelta, pWand->Get_WorldMatrix());
|
||||
m_pWandParticle->Get_Component<CTransform>()->Set_WorldMatrix(pWand->Get_WorldMatrix());
|
||||
|
||||
}
|
||||
|
||||
void CBombardSide::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Late_Update(fTimeDelta);
|
||||
|
||||
|
||||
}
|
||||
|
||||
HRESULT CBombardSide::Pre_Setting(CGameObject* pObject)
|
||||
{
|
||||
if (pObject == nullptr)
|
||||
return E_FAIL;
|
||||
|
||||
m_pOwner = pObject;
|
||||
|
||||
Reset_EffectParts();
|
||||
|
||||
m_fAccTime = 0.f;
|
||||
__super::m_fAccTime = 0.f;
|
||||
m_fPreAccTime = 0.f;
|
||||
|
||||
|
||||
CWand* pWand = static_cast<CWand*>(m_pOwner);
|
||||
|
||||
if (pWand == nullptr)
|
||||
return E_FAIL;
|
||||
|
||||
m_pWandParticle->Set_Visible(true);
|
||||
|
||||
m_pWandLight->Set_Visible(true);
|
||||
|
||||
/*트레일 초기화 */
|
||||
m_pWandTrail->Set_Visible(true);
|
||||
m_pWandTrail->Get_Component<CTrail>()->Reset_Trail();
|
||||
|
||||
/*_vector pPos = pPlayer->Get_WandPos().r[3];*/
|
||||
|
||||
m_pWandLight->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
|
||||
|
||||
|
||||
m_bVisible = true;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CBombardSide::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Ready_Components(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CBombardSide::Ready_Child()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CBombardSide* CBombardSide::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CBombardSide* pInstance = new CBombardSide(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CBombardSide");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
|
||||
CGameObject* CBombardSide::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CBombardSide* pInstance = new CBombardSide(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CBombardSide");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CBombardSide::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
{
|
||||
ON_COLLISION_INFO* CollisionDesc = static_cast<ON_COLLISION_INFO*>(pDesc);
|
||||
|
||||
}
|
||||
|
||||
void CBombardSide::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
|
||||
Safe_Release(m_pWandLight);
|
||||
Safe_Release(m_pWandTrail);
|
||||
Safe_Release(m_pWandParticle);
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
|
||||
void CBombardSide::Describe_Entity()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
#endif // _DEBUG
|
||||
|
||||
HRESULT CBombardSide::Bind_ShaderResources()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -34,15 +34,15 @@ void CBuildingContainer::Update(_float fTimeDelta)
|
||||
|
||||
void CBuildingContainer::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_pOcclusionQueryCom->isDraw()){
|
||||
// if (m_pOcclusionQueryCom->isDraw()){
|
||||
__super::Late_Update(fTimeDelta);
|
||||
}
|
||||
//}
|
||||
|
||||
for (auto& pCollisiton : m_ColiisonPartObjects){
|
||||
pCollisiton->Late_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::OCCLUSION, this);
|
||||
//m_pGameInstance->Add_RenderGroup(RENDER::OCCLUSION, this);
|
||||
}
|
||||
|
||||
HRESULT CBuildingContainer::Render()
|
||||
|
||||
@@ -116,8 +116,6 @@ void CCamPosition_Shoulder::Priority_Update(_float fTimeDelta)
|
||||
|
||||
void CCamPosition_Shoulder::Update(_float fTimeDelta)
|
||||
{
|
||||
GUI::DragFloat3("Camera Shoulder Position",(_float*)&m_vShoulderPosRatio,0.01f);
|
||||
GUI::DragFloat("Camera Shoulder Length",&m_fCameraFocalLength, 0.01f);
|
||||
if (m_pGameInstance->Key_Up(DIK_INSERT)) {
|
||||
|
||||
m_pBinded_Camera->Toggle_Priority();
|
||||
|
||||
@@ -41,7 +41,6 @@ void CCamera_Gaze::Priority_Update(_float fTimeDelta)
|
||||
|
||||
void CCamera_Gaze::Update(_float fTimeDelta)
|
||||
{
|
||||
GUI::Text("CAM_GAZE_PRIORITY : %d", m_iPriority);
|
||||
if (false == m_bActive) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -47,6 +47,7 @@ HRESULT CCurrent_Slot_Number::Initialize(void* pArg)
|
||||
m_pVIBufferCom->Set_Pos(-805.f, 380.f, m_fOffSetX, m_fOffSetY, m_iCols);
|
||||
m_pVIBufferCom->Set_Size(m_fSizeX, m_fSizeY);
|
||||
m_pVIBufferCom->Set_ImageUV(pUVDesc);
|
||||
m_bActive = true;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -47,6 +47,7 @@ HRESULT CCurrent_Spell_Slot::Initialize(void* pArg)
|
||||
m_pVIBufferCom->Set_Cloned(true);
|
||||
m_pVIBufferCom->Set_Pos(-780.f, 340.f, m_fOffSetX, m_fOffSetY, m_iCols);
|
||||
m_pVIBufferCom->Set_Size(m_fSizeX, m_fSizeY);
|
||||
m_bActive = true;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -6,6 +6,9 @@
|
||||
#include "PhysXEffectHitBox.h"
|
||||
#include "TrailObject.h"
|
||||
|
||||
#include "Wand.h"
|
||||
#include "Player.h"
|
||||
|
||||
|
||||
CDecendo::CDecendo(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CEffect_Container{ pDevice, pContext }
|
||||
@@ -53,11 +56,7 @@ void CDecendo::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
|
||||
|
||||
if (nullptr != m_pPhysHitBox) {
|
||||
m_pPhysHitBox->Get_Component<CTransform>()->RewindMomentum();
|
||||
}
|
||||
|
||||
XMStoreFloat4(&m_vStartPos, m_pProjectile->Get_WorldPostion());
|
||||
}
|
||||
|
||||
void CDecendo::Update(_float fTimeDelta)
|
||||
@@ -73,11 +72,6 @@ void CDecendo::Update(_float fTimeDelta)
|
||||
m_pProjectile->Get_Component<CTransform>()->Translation(m_vCameraLook * 0.5f);
|
||||
|
||||
|
||||
if (nullptr != m_pPhysHitBox) {
|
||||
m_pPhysHitBox->Get_Component<CTransform>()->AccumulateMomentum(m_vCameraLook * 0.5f);
|
||||
}
|
||||
|
||||
|
||||
if (m_fAccTime > XM_2PI)
|
||||
return;
|
||||
|
||||
@@ -86,9 +80,14 @@ void CDecendo::Update(_float fTimeDelta)
|
||||
m_pProjectile_Blur->Get_Component<CTransform>()->Translation(m_vRotateUp * 0.2f * sinf(m_fAccTime));
|
||||
m_pProjectile->Get_Component<CTransform>()->Translation(m_vRotateUp * 0.2f * sinf(m_fAccTime));
|
||||
|
||||
if (nullptr != m_pPhysHitBox) {
|
||||
m_pPhysHitBox->Get_Component<CTransform>()->AccumulateMomentum(m_vRotateUp * 0.2f * sinf(m_fAccTime));
|
||||
|
||||
//TODO : 다시 위치 잡기
|
||||
if (true == m_pGameInstance->SphereCast(0.125f, XMLoadFloat4(&m_vStartPos), m_vCameraLook, XMVectorGetX(XMVector3Length(m_vCameraLook * 0.5f))
|
||||
, PSX::PxHitFlag::ePOSITION | PSX::PxHitFlag::eNORMAL, PSX::PxQueryFlag::eSTATIC, hitBuffer))
|
||||
{
|
||||
OnCollision();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void CDecendo::Late_Update(_float fTimeDelta)
|
||||
@@ -98,6 +97,8 @@ void CDecendo::Late_Update(_float fTimeDelta)
|
||||
|
||||
Get_PartObject<CTrailObject>()->Trail_Update(m_pProjectile->Get_Component<CTransform>()->Get_XMWorldMatrix(), fTimeDelta);
|
||||
|
||||
XMStoreFloat4(&m_vEndPos, m_pProjectile->Get_WorldPostion());
|
||||
|
||||
__super::Late_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
@@ -120,12 +121,18 @@ HRESULT CDecendo::Pre_Setting(CGameObject* pObject)
|
||||
m_fPreAccTime = 0.f;
|
||||
|
||||
|
||||
CWand* pWand = static_cast<CPlayer*>(m_pOwner)->Get_PartObject<CWand>();
|
||||
|
||||
if (pWand == nullptr)
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
CPartObject* pCircle0 = Get_PartObject<CEffectParts>();
|
||||
|
||||
/* 초기 객체 위치 초기화 */
|
||||
pCircle0->Get_Component<CTransform>()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
|
||||
m_pProjectile->Get_Component<CTransform>()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
|
||||
m_pProjectile_Blur->Get_Component<CTransform>()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
|
||||
m_pProjectile->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
|
||||
m_pProjectile_Blur->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
|
||||
|
||||
/* 초기 객체 비지블 */
|
||||
pCircle0->Set_Visible(true);
|
||||
@@ -163,24 +170,6 @@ HRESULT CDecendo::Ready_Components(void* pArg)
|
||||
|
||||
HRESULT CDecendo::Ready_Child()
|
||||
{
|
||||
CPhysXEffectHitBox::PHYSXDUMMY_DESC Desc{};
|
||||
|
||||
m_pTransformCom->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
|
||||
|
||||
XMStoreFloat3(&Desc.vPos, m_pOwner->Get_WorldPostion() + XMVectorSet(0.f, 0.f, 1.f, 0.f));
|
||||
|
||||
|
||||
Desc.vRotRPY = { 0.f, 0.f, 0.f };
|
||||
Desc.iSubKind = 70;
|
||||
Desc.vDeltaPos = _float3(0.f, 0.f, 0.f);
|
||||
Desc.vLifeTime = { 0.f, 1.f };
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CPhysXEffectHitBox>(g_iStaticLevel, CURRENT_LEVEL, LAYER_HITBOX, &Desc, this, &m_pPhysHitBox))) {
|
||||
assert(false);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
SAFE_ADDREF(m_pPhysHitBox);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -214,13 +203,13 @@ CGameObject* CDecendo::Clone(void* pArg, CGameObject* pOwner)
|
||||
void CDecendo::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
{
|
||||
//CTransform* pOtherTransform = p
|
||||
ON_COLLISION_INFO* CollisionDesc = static_cast<ON_COLLISION_INFO*>(pDesc);
|
||||
_vector vPos = XMVectorSet(hitBuffer.block.position.x, hitBuffer.block.position.y, hitBuffer.block.position.z, 1.f);
|
||||
|
||||
|
||||
for (auto& pPair : m_PartObjects)
|
||||
{
|
||||
pPair.second->Set_Visible(true);
|
||||
pPair.second->Get_Component<CTransform>()->Set_State(STATE::POSITION, CollisionDesc->vWorldPos);
|
||||
pPair.second->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
}
|
||||
|
||||
|
||||
@@ -240,18 +229,12 @@ void CDecendo::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
Get_PartObject<CTrailObject>()->Get_Component<CTransform>()->Set_State(STATE::POSITION, XMVectorSet(0.f, 0.f, 0.f, 1.f));
|
||||
Get_PartObject<CTrailObject>()->Set_Visible(false);
|
||||
|
||||
|
||||
m_pPhysHitBox->Set_Dead();
|
||||
SAFE_RELEASE(m_pPhysHitBox);
|
||||
}
|
||||
|
||||
void CDecendo::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
if (m_pPhysHitBox != nullptr)
|
||||
SAFE_RELEASE(m_pPhysHitBox);
|
||||
|
||||
SAFE_RELEASE(m_pProjectile_Blur);
|
||||
SAFE_RELEASE(m_pProjectile);
|
||||
|
||||
|
||||
@@ -0,0 +1,194 @@
|
||||
#include "pch.h"
|
||||
#include "DecendoSide.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
#include "EffectParts.h"
|
||||
#include "Player.h"
|
||||
#include "Wand.h"
|
||||
#include "TrailObject.h"
|
||||
|
||||
|
||||
CDecendoSide::CDecendoSide(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CEffect_Container{ pDevice, pContext }
|
||||
{
|
||||
}
|
||||
|
||||
CDecendoSide::CDecendoSide(const CDecendoSide& rhs)
|
||||
: CEffect_Container(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CDecendoSide::Initialize_Prototype()
|
||||
{
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
|
||||
HRESULT CDecendoSide::Initialize(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Initialize(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/DecendoSide")))
|
||||
return E_FAIL;
|
||||
|
||||
m_wstrEffectName = L"DecendoSide";
|
||||
|
||||
m_pWandLight = Get_PartObject<CEffectParts>("Wand_Light_R");
|
||||
m_pWandTrail = Get_PartObject<CTrailObject>();
|
||||
|
||||
SAFE_ADDREF(m_pWandLight);
|
||||
SAFE_ADDREF(m_pWandTrail);
|
||||
|
||||
m_fDuration = 1.f;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CDecendoSide::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
|
||||
}
|
||||
|
||||
void CDecendoSide::Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
|
||||
Update_Event(fTimeDelta);
|
||||
|
||||
|
||||
CWand* pWand = static_cast<CWand*>(m_pOwner);
|
||||
|
||||
if (pWand == nullptr)
|
||||
return;
|
||||
|
||||
m_pWandLight->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
|
||||
|
||||
m_pWandTrail->Get_Component<CTrail>()->Trail_Update(fTimeDelta, pWand->Get_WorldMatrix());
|
||||
|
||||
}
|
||||
|
||||
void CDecendoSide::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Late_Update(fTimeDelta);
|
||||
|
||||
|
||||
}
|
||||
|
||||
HRESULT CDecendoSide::Pre_Setting(CGameObject* pObject)
|
||||
{
|
||||
if (pObject == nullptr)
|
||||
return E_FAIL;
|
||||
|
||||
m_pOwner = pObject;
|
||||
|
||||
Reset_EffectParts();
|
||||
|
||||
m_fAccTime = 0.f;
|
||||
__super::m_fAccTime = 0.f;
|
||||
m_fPreAccTime = 0.f;
|
||||
|
||||
|
||||
CWand* pWand = static_cast<CWand*>(m_pOwner);
|
||||
|
||||
if (pWand == nullptr)
|
||||
return E_FAIL;
|
||||
|
||||
m_pWandLight->Set_Visible(true);
|
||||
|
||||
/*트레일 초기화 */
|
||||
m_pWandTrail->Set_Visible(true);
|
||||
m_pWandTrail->Get_Component<CTrail>()->Reset_Trail();
|
||||
|
||||
/*_vector pPos = pPlayer->Get_WandPos().r[3];*/
|
||||
|
||||
m_pWandLight->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
|
||||
|
||||
|
||||
m_bVisible = true;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CDecendoSide::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Ready_Components(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CDecendoSide::Ready_Child()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CDecendoSide* CDecendoSide::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CDecendoSide* pInstance = new CDecendoSide(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CDecendoSide");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
|
||||
CGameObject* CDecendoSide::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CDecendoSide* pInstance = new CDecendoSide(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CDecendoSide");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CDecendoSide::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
{
|
||||
ON_COLLISION_INFO* CollisionDesc = static_cast<ON_COLLISION_INFO*>(pDesc);
|
||||
|
||||
}
|
||||
|
||||
void CDecendoSide::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
|
||||
Safe_Release(m_pWandLight);
|
||||
Safe_Release(m_pWandTrail);
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
|
||||
void CDecendoSide::Describe_Entity()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
#endif // _DEBUG
|
||||
|
||||
HRESULT CDecendoSide::Bind_ShaderResources()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -49,6 +49,7 @@ HRESULT CEessential_Spell::Initialize(void* pArg)
|
||||
m_pVIBufferCom->Set_Pos(-731.f, -300.f, m_fOffSetX, m_fOffSetY, m_iCols);
|
||||
m_pVIBufferCom->Set_Size(m_fSizeX, m_fSizeY);
|
||||
m_pVIBufferCom->Set_ImageUV(pUVDesc);
|
||||
m_bActive = true;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -48,6 +48,7 @@ HRESULT CEessential_Spell_Slot::Initialize(void* pArg)
|
||||
m_pVIBufferCom->Set_Size(m_fSizeX, m_fSizeY);
|
||||
m_fDelayTime = 0.5f;
|
||||
m_iPerSpell_Slot = -1;
|
||||
m_bActive = true;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -74,13 +74,30 @@ HRESULT CEffectObject::Render_Blur()
|
||||
|
||||
SHADER_PASS_INSTANCE_MODEL BlurPass = {};
|
||||
|
||||
|
||||
if (m_EffectInfo.eShaderPass == SHADER_PASS_INSTANCE_MODEL::NON_WORLD || m_EffectInfo.eShaderPass == SHADER_PASS_INSTANCE_MODEL::BLEND_NOWORLD)
|
||||
{
|
||||
BlurPass = SHADER_PASS_INSTANCE_MODEL::NON_WORLD_BLUR;
|
||||
if (m_EffectInfo.isBlurNoEmissive == false)
|
||||
{
|
||||
BlurPass = SHADER_PASS_INSTANCE_MODEL::NON_WORLD_BLUR;
|
||||
}
|
||||
else
|
||||
{
|
||||
BlurPass = SHADER_PASS_INSTANCE_MODEL::BLUR_NO_WORLD_NO_EMISSIVE;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
BlurPass = SHADER_PASS_INSTANCE_MODEL::BLUR;
|
||||
if (m_EffectInfo.isBlurNoEmissive == false)
|
||||
{
|
||||
BlurPass = SHADER_PASS_INSTANCE_MODEL::BLUR;
|
||||
}
|
||||
else
|
||||
{
|
||||
BlurPass = SHADER_PASS_INSTANCE_MODEL::BLUR_NO_EMMISVE;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
for (_uint i = 0; i < m_pInstance_ModelCom->Get_NumMeshes(); i++)
|
||||
@@ -524,11 +541,11 @@ HRESULT CEffectObject::Bind_ShaderResources()
|
||||
}
|
||||
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_isDiffuseBlur", &m_EffectInfo.isDiffuseBlur, sizeof(_bool)))) {
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_isBlurNoEmissive", &m_EffectInfo.isBlurNoEmissive, sizeof(_bool)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_isMaskBlur", &m_EffectInfo.isMaskBlur, sizeof(_bool)))) {
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_isTexBlur", &m_EffectInfo.isTexBlur, sizeof(_bool)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -687,11 +704,6 @@ HRESULT CEffectObject::Bind_ShaderResources()
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
return S_OK;
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -88,6 +88,11 @@ void CEffectParts::Late_Update(_float fTimeDelta)
|
||||
|
||||
}
|
||||
|
||||
_vector CEffectParts::Get_WorldPostion()
|
||||
{
|
||||
return m_pTransformCom->Get_State(STATE::POSITION);
|
||||
}
|
||||
|
||||
|
||||
|
||||
HRESULT CEffectParts::Ready_Components(void* pArg)
|
||||
|
||||
@@ -9,6 +9,14 @@
|
||||
#include "Decendo.h"
|
||||
#include "Protego.h"
|
||||
#include "Revelio.h"
|
||||
#include "Levioso.h"
|
||||
|
||||
#include "BombardSide.h"
|
||||
#include "LeviosoSide.h"
|
||||
#include "DecendoSide.h"
|
||||
|
||||
#include "NomalJapSide.h"
|
||||
#include "Lumos.h"
|
||||
|
||||
CEffectPool::CEffectPool(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CGameObject(pDevice, pContext)
|
||||
@@ -158,6 +166,65 @@ HRESULT CEffectPool::Ready_Effect()
|
||||
))) return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::JAP_SIDE, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel)-> CEffect_Container* {
|
||||
|
||||
CNomalJapSide* pEffect = nullptr;
|
||||
|
||||
pEffect = m_pGameInstance->Clone_Prototype<CNomalJapSide>(iPrototypeLevel, nullptr);
|
||||
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::LEVIOSO, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CLevioso* pEffect = nullptr;
|
||||
|
||||
pEffect = m_pGameInstance->Clone_Prototype<CLevioso>(iPrototypeLevel, nullptr);
|
||||
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::LUMOS, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CLumos* pEffect = nullptr;
|
||||
|
||||
pEffect = m_pGameInstance->Clone_Prototype<CLumos>(iPrototypeLevel, nullptr);
|
||||
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::BOMBARDA_SIDE, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CBombardSide* pEffect = nullptr;
|
||||
|
||||
pEffect = m_pGameInstance->Clone_Prototype<CBombardSide>(iPrototypeLevel, nullptr);
|
||||
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::LEVIOSO_SIDE, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CLeviosoSide* pEffect = nullptr;
|
||||
|
||||
pEffect = m_pGameInstance->Clone_Prototype<CLeviosoSide>(iPrototypeLevel, nullptr);
|
||||
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::DESCENDO_SIDE, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CDecendoSide* pEffect = nullptr;
|
||||
|
||||
pEffect = m_pGameInstance->Clone_Prototype<CDecendoSide>(iPrototypeLevel, nullptr);
|
||||
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -208,11 +208,6 @@ void CEffect_Container::Update_Event(_float fTimeDelta)
|
||||
pPart.second->Set_Visible(false);
|
||||
}
|
||||
|
||||
if (m_pPhysHitBox != nullptr && m_pPhysHitBox->isDead() == false)
|
||||
{
|
||||
m_pPhysHitBox->Set_Dead();
|
||||
SAFE_RELEASE(m_pPhysHitBox);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
#include "MapInfo.h"
|
||||
#include "MonsterInfo.h"
|
||||
#include "PlayerInfo.h"
|
||||
#include "Skill_Data.h"
|
||||
|
||||
IMPLEMENT_SINGLETON(CInfoInstance)
|
||||
|
||||
@@ -17,6 +18,7 @@ void CInfoInstance::Update(_float fTimeDelta)
|
||||
m_pPlayerInfo->Update(fTimeDelta);
|
||||
m_pMonsterInfo->Update(fTimeDelta);
|
||||
m_pMapInfo->Update(fTimeDelta);
|
||||
m_pSkillInfo->Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CInfoInstance::Change_Level()
|
||||
@@ -24,6 +26,7 @@ void CInfoInstance::Change_Level()
|
||||
m_pPlayerInfo->Change_Level();
|
||||
m_pMonsterInfo->Change_Level();
|
||||
m_pMapInfo->Change_Level();
|
||||
m_pSkillInfo->Change_Level();
|
||||
}
|
||||
|
||||
void CInfoInstance::Update_CameraCoordinateSystem(_float3& vLook, _float3& vRight)
|
||||
@@ -86,6 +89,21 @@ HRESULT CInfoInstance::Load_LightElements(const _char* pFilePath)
|
||||
return m_pMapInfo->Load_LightElements(pFilePath);
|
||||
}
|
||||
#pragma endregion
|
||||
|
||||
#pragma region SPELL_INFO
|
||||
HRESULT CInfoInstance::Load_SpellInfo(const _char* pFilePath)
|
||||
{
|
||||
return m_pSkillInfo->Load_SpellInfo(pFilePath);
|
||||
}
|
||||
SPELL_INFO CInfoInstance::Get_Spell_Info(_int Spell_Info)
|
||||
{
|
||||
return m_pSkillInfo->Get_Info(Spell_Info);
|
||||
}
|
||||
void CInfoInstance::Change_Canvas()
|
||||
{
|
||||
|
||||
}
|
||||
#pragma endregion
|
||||
LEVEL CInfoInstance::Get_RestartLevel()
|
||||
{
|
||||
return LEVEL::GAMEPLAY;
|
||||
@@ -112,6 +130,10 @@ HRESULT CInfoInstance::Initialize_Information(ID3D11Device* pDevice, ID3D11Devic
|
||||
if (nullptr == m_pMonsterInfo) {
|
||||
return E_FAIL;
|
||||
}
|
||||
m_pSkillInfo = CSkill_Data::Create(pDevice, pContext);
|
||||
if (nullptr == m_pSkillInfo) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
return S_OK;
|
||||
@@ -125,6 +147,7 @@ void CInfoInstance::Release_Information()
|
||||
SAFE_RELEASE(m_pMapInfo);
|
||||
SAFE_RELEASE(m_pPlayerInfo);
|
||||
SAFE_RELEASE(m_pMonsterInfo);
|
||||
SAFE_RELEASE(m_pSkillInfo);
|
||||
SAFE_RELEASE(m_pDevice);
|
||||
SAFE_RELEASE(m_pContext);
|
||||
SAFE_RELEASE(m_pGameInstance);
|
||||
|
||||
@@ -57,7 +57,46 @@ void CLevel_Field::Update(_float fTimeDelta)
|
||||
|
||||
HRESULT CLevel_Field::Render()
|
||||
{
|
||||
SetWindowText(g_hWnd, TEXT("필드레벨"));
|
||||
_float fDeltaTimeSeconds = m_pGameInstance->Get_TimeDelta(TEXT("Timer_60"));
|
||||
|
||||
static _float fAccumulatedTimeSeconds = 0.0f;
|
||||
static _uint iFrameCountForFps = 0;
|
||||
static _float fCurrentFps = 0.0f;
|
||||
static _float fAverageFrameTimeMilliseconds = 0.0f;
|
||||
|
||||
fAccumulatedTimeSeconds += fDeltaTimeSeconds;
|
||||
++iFrameCountForFps;
|
||||
|
||||
if (fAccumulatedTimeSeconds >= 1.0f)
|
||||
{
|
||||
if (fAccumulatedTimeSeconds > 0.0f)
|
||||
{
|
||||
fCurrentFps = static_cast<_float>(iFrameCountForFps) / fAccumulatedTimeSeconds;
|
||||
if (fCurrentFps > 0.0f)
|
||||
{
|
||||
fAverageFrameTimeMilliseconds = 1000.0f / fCurrentFps;
|
||||
}
|
||||
}
|
||||
|
||||
fAccumulatedTimeSeconds = 0.0f;
|
||||
iFrameCountForFps = 0;
|
||||
}
|
||||
|
||||
_float fCurrentFrameTimeMilliseconds = fDeltaTimeSeconds * 1000.0f;
|
||||
|
||||
_tchar szWindowTitle[256] = {};
|
||||
|
||||
// 현재 프레임 시간 + 평균 FPS / 평균 프레임 타임(ms)
|
||||
_stprintf_s(
|
||||
szWindowTitle,
|
||||
TEXT("필드레벨입니다 | Frame: %.3f ms | Avg: %.3f ms | FPS: %.1f"),
|
||||
fCurrentFrameTimeMilliseconds,
|
||||
fAverageFrameTimeMilliseconds,
|
||||
fCurrentFps
|
||||
);
|
||||
|
||||
SetWindowText(g_hWnd, szWindowTitle);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -5,8 +5,7 @@
|
||||
#include "Light_Main.h"
|
||||
#include "Camera_Debug.h"
|
||||
#include "InfoInstance.h"
|
||||
#include "GamePlay_Canvas.h"
|
||||
#include "Spell_Canvas.h"
|
||||
#include "UI_Manager.h"
|
||||
#include "Layer.h"
|
||||
#include "SkyBox.h"
|
||||
#include "Broom.h"
|
||||
@@ -93,7 +92,46 @@ void CLevel_GamePlay::Update(_float fTimeDelta)
|
||||
|
||||
HRESULT CLevel_GamePlay::Render()
|
||||
{
|
||||
SetWindowText(g_hWnd, TEXT("게임플레이레벨입니다"));
|
||||
_float fDeltaTimeSeconds = m_pGameInstance->Get_TimeDelta(TEXT("Timer_60"));
|
||||
|
||||
static _float fAccumulatedTimeSeconds = 0.0f;
|
||||
static _uint iFrameCountForFps = 0;
|
||||
static _float fCurrentFps = 0.0f;
|
||||
static _float fAverageFrameTimeMilliseconds = 0.0f;
|
||||
|
||||
fAccumulatedTimeSeconds += fDeltaTimeSeconds;
|
||||
++iFrameCountForFps;
|
||||
|
||||
if (fAccumulatedTimeSeconds >= 1.0f)
|
||||
{
|
||||
if (fAccumulatedTimeSeconds > 0.0f)
|
||||
{
|
||||
fCurrentFps = static_cast<_float>(iFrameCountForFps) / fAccumulatedTimeSeconds;
|
||||
if (fCurrentFps > 0.0f)
|
||||
{
|
||||
fAverageFrameTimeMilliseconds = 1000.0f / fCurrentFps;
|
||||
}
|
||||
}
|
||||
|
||||
fAccumulatedTimeSeconds = 0.0f;
|
||||
iFrameCountForFps = 0;
|
||||
}
|
||||
|
||||
_float fCurrentFrameTimeMilliseconds = fDeltaTimeSeconds * 1000.0f;
|
||||
|
||||
_tchar szWindowTitle[256] = {};
|
||||
|
||||
// 현재 프레임 시간 + 평균 FPS / 평균 프레임 타임(ms)
|
||||
_stprintf_s(
|
||||
szWindowTitle,
|
||||
TEXT("게임플레이레벨입니다 | Frame: %.3f ms | Avg: %.3f ms | FPS: %.1f"),
|
||||
fCurrentFrameTimeMilliseconds,
|
||||
fAverageFrameTimeMilliseconds,
|
||||
fCurrentFps
|
||||
);
|
||||
|
||||
SetWindowText(g_hWnd, szWindowTitle);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -121,6 +159,7 @@ HRESULT CLevel_GamePlay::Ready_Background()
|
||||
|
||||
/* Map Containters */
|
||||
/* 테스트용 맵 */
|
||||
|
||||
//CInfoInstance::GetInstance()->Load_MapObjects("ClientTest");
|
||||
/* 전체 맵 */
|
||||
CInfoInstance::GetInstance()->Load_MapObjects("Map1129");
|
||||
@@ -150,10 +189,7 @@ HRESULT CLevel_GamePlay::Ready_Background()
|
||||
|
||||
HRESULT CLevel_GamePlay::Ready_Layer_UI(const _wstring& strLayerTag)
|
||||
{
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CGamePlay_Canvas>(g_iStaticLevel, g_iStaticLevel, LAYER_UI))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CSpell_Canvas>(g_iStaticLevel, g_iStaticLevel, LAYER_UI))) {
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CUI_Manager>(g_iStaticLevel, g_iStaticLevel, LAYER_UI))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
@@ -39,7 +39,46 @@ void CLevel_Logo::Update(_float fTimeDelta)
|
||||
|
||||
HRESULT CLevel_Logo::Render()
|
||||
{
|
||||
SetWindowText(g_hWnd, TEXT("로고레벨입니다"));
|
||||
_float fDeltaTimeSeconds = m_pGameInstance->Get_TimeDelta(TEXT("Timer_60"));
|
||||
|
||||
static _float fAccumulatedTimeSeconds = 0.0f;
|
||||
static _uint iFrameCountForFps = 0;
|
||||
static _float fCurrentFps = 0.0f;
|
||||
static _float fAverageFrameTimeMilliseconds = 0.0f;
|
||||
|
||||
fAccumulatedTimeSeconds += fDeltaTimeSeconds;
|
||||
++iFrameCountForFps;
|
||||
|
||||
if (fAccumulatedTimeSeconds >= 1.0f)
|
||||
{
|
||||
if (fAccumulatedTimeSeconds > 0.0f)
|
||||
{
|
||||
fCurrentFps = static_cast<_float>(iFrameCountForFps) / fAccumulatedTimeSeconds;
|
||||
if (fCurrentFps > 0.0f)
|
||||
{
|
||||
fAverageFrameTimeMilliseconds = 1000.0f / fCurrentFps;
|
||||
}
|
||||
}
|
||||
|
||||
fAccumulatedTimeSeconds = 0.0f;
|
||||
iFrameCountForFps = 0;
|
||||
}
|
||||
|
||||
_float fCurrentFrameTimeMilliseconds = fDeltaTimeSeconds * 1000.0f;
|
||||
|
||||
_tchar szWindowTitle[256] = {};
|
||||
|
||||
// 현재 프레임 시간 + 평균 FPS / 평균 프레임 타임(ms)
|
||||
_stprintf_s(
|
||||
szWindowTitle,
|
||||
TEXT("로고 레벨입니다 | Frame: %.3f ms | Avg: %.3f ms | FPS: %.1f"),
|
||||
fCurrentFrameTimeMilliseconds,
|
||||
fAverageFrameTimeMilliseconds,
|
||||
fCurrentFps
|
||||
);
|
||||
|
||||
SetWindowText(g_hWnd, szWindowTitle);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -38,7 +38,46 @@ void CLevel_Restart::Update(_float fTimeDelta)
|
||||
|
||||
HRESULT CLevel_Restart::Render()
|
||||
{
|
||||
SetWindowText(g_hWnd, TEXT("리스타트레벨"));
|
||||
_float fDeltaTimeSeconds = m_pGameInstance->Get_TimeDelta(TEXT("Timer_60"));
|
||||
|
||||
static _float fAccumulatedTimeSeconds = 0.0f;
|
||||
static _uint iFrameCountForFps = 0;
|
||||
static _float fCurrentFps = 0.0f;
|
||||
static _float fAverageFrameTimeMilliseconds = 0.0f;
|
||||
|
||||
fAccumulatedTimeSeconds += fDeltaTimeSeconds;
|
||||
++iFrameCountForFps;
|
||||
|
||||
if (fAccumulatedTimeSeconds >= 1.0f)
|
||||
{
|
||||
if (fAccumulatedTimeSeconds > 0.0f)
|
||||
{
|
||||
fCurrentFps = static_cast<_float>(iFrameCountForFps) / fAccumulatedTimeSeconds;
|
||||
if (fCurrentFps > 0.0f)
|
||||
{
|
||||
fAverageFrameTimeMilliseconds = 1000.0f / fCurrentFps;
|
||||
}
|
||||
}
|
||||
|
||||
fAccumulatedTimeSeconds = 0.0f;
|
||||
iFrameCountForFps = 0;
|
||||
}
|
||||
|
||||
_float fCurrentFrameTimeMilliseconds = fDeltaTimeSeconds * 1000.0f;
|
||||
|
||||
_tchar szWindowTitle[256] = {};
|
||||
|
||||
// 현재 프레임 시간 + 평균 FPS / 평균 프레임 타임(ms)
|
||||
_stprintf_s(
|
||||
szWindowTitle,
|
||||
TEXT("리스타트레벨입니다 | Frame: %.3f ms | Avg: %.3f ms | FPS: %.1f"),
|
||||
fCurrentFrameTimeMilliseconds,
|
||||
fAverageFrameTimeMilliseconds,
|
||||
fCurrentFps
|
||||
);
|
||||
|
||||
SetWindowText(g_hWnd, szWindowTitle);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,262 @@
|
||||
#include "pch.h"
|
||||
#include "Levioso.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
#include "EffectParts.h"
|
||||
#include "Player.h"
|
||||
#include "TrailObject.h"
|
||||
#include "PhysXEffectHitBox.h"
|
||||
|
||||
|
||||
CLevioso::CLevioso(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CEffect_Container{ pDevice, pContext }
|
||||
{
|
||||
}
|
||||
|
||||
CLevioso::CLevioso(const CLevioso& rhs)
|
||||
: CEffect_Container(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CLevioso::Initialize_Prototype()
|
||||
{
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
|
||||
HRESULT CLevioso::Initialize(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Initialize(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Levioso")))
|
||||
return E_FAIL;
|
||||
|
||||
m_pLeviosoPJ_0 = Get_PartObject<CEffectParts>("Levioso_PJ0");
|
||||
m_pLeviosoPJ_1 = Get_PartObject<CEffectParts>("Levioso_PJ1");
|
||||
m_pLeviosoTrail = Get_PartObject<CTrailObject>("Levioso_Trail");
|
||||
m_pTrail_PT_0 = Get_PartObject<CEffectParts>("Trail_PT0");
|
||||
|
||||
SAFE_ADDREF(m_pLeviosoPJ_0);
|
||||
SAFE_ADDREF(m_pLeviosoPJ_1);
|
||||
SAFE_ADDREF(m_pLeviosoTrail);
|
||||
SAFE_ADDREF(m_pTrail_PT_0);
|
||||
|
||||
m_wstrEffectName = L"Levioso";
|
||||
|
||||
m_fTurnSpeed = 10.f;
|
||||
m_fRange = 1.f;
|
||||
|
||||
m_fDuration = 2.f;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CLevioso::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
|
||||
|
||||
XMStoreFloat4(&m_vStartPos, m_pLeviosoPJ_0->Get_WorldPostion());
|
||||
|
||||
}
|
||||
|
||||
void CLevioso::Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
|
||||
Update_Event(fTimeDelta);
|
||||
|
||||
m_pLeviosoPJ_0->Get_Component<CTransform>()->Translation(m_vOwnerLook * 0.25f);
|
||||
m_pLeviosoPJ_1->Get_Component<CTransform>()->Translation(m_vOwnerLook * 0.25f);
|
||||
|
||||
|
||||
m_pTrail_PT_0->Get_Component<CTransform>()->Translation(m_vOwnerLook * 0.25f);
|
||||
|
||||
if (true == m_pGameInstance->SphereCast(0.125f, XMLoadFloat4(&m_vStartPos), m_vOwnerLook, XMVectorGetX(XMVector3Length(m_vOwnerLook * 1.f))
|
||||
, PSX::PxHitFlag::ePOSITION | PSX::PxHitFlag::eNORMAL, PSX::PxQueryFlag::eSTATIC, hitBuffer))
|
||||
{
|
||||
OnCollision();
|
||||
}
|
||||
|
||||
_matrix WorldMat = m_pTrail_PT_0->Get_Component<CTransform>()->Get_XMWorldMatrix();
|
||||
|
||||
m_pLeviosoTrail->Trail_Update(WorldMat, fTimeDelta);
|
||||
|
||||
}
|
||||
|
||||
void CLevioso::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
CPlayer* pPlayer = static_cast<CPlayer*>(m_pOwner);
|
||||
|
||||
if (pPlayer == nullptr)
|
||||
return;
|
||||
|
||||
_matrix WandWorld = pPlayer->Get_WandPos();
|
||||
|
||||
//m_pLeviosoTrail->Get_Component<CTrail>()->Fixed_Trail(WandWorld);
|
||||
|
||||
XMStoreFloat4(&m_vEndPos, m_pLeviosoPJ_0->Get_WorldPostion());
|
||||
|
||||
__super::Late_Update(fTimeDelta);
|
||||
|
||||
|
||||
}
|
||||
|
||||
HRESULT CLevioso::Pre_Setting(CGameObject* pObject)
|
||||
{
|
||||
if (pObject == nullptr)
|
||||
return E_FAIL;
|
||||
|
||||
m_pOwner = pObject;
|
||||
|
||||
|
||||
Reset_EffectParts();
|
||||
|
||||
__super::m_fAccTime = 0.f;
|
||||
m_fPreAccTime = 0.f;
|
||||
|
||||
m_fAccRotateTime = 0.f;
|
||||
|
||||
if (FAILED(Ready_Child()))
|
||||
return E_FAIL;
|
||||
|
||||
CPlayer* pPlayer = static_cast<CPlayer*>(m_pOwner);
|
||||
|
||||
if (pPlayer == nullptr)
|
||||
return E_FAIL;
|
||||
|
||||
_vector WandPos = pPlayer->Get_WandPos().r[3];
|
||||
|
||||
m_pLeviosoPJ_0->Get_Component<CTransform>()->Set_WorldMatrix(m_pOwner->Get_Component<CTransform>()->Get_XMWorldMatrix());
|
||||
m_pLeviosoPJ_1->Get_Component<CTransform>()->Set_WorldMatrix(m_pOwner->Get_Component<CTransform>()->Get_XMWorldMatrix());
|
||||
m_pTrail_PT_0->Get_Component<CTransform>()->Set_WorldMatrix(m_pOwner->Get_Component<CTransform>()->Get_XMWorldMatrix());
|
||||
|
||||
m_pLeviosoPJ_0->Get_Component<CTransform>()->Set_State(STATE::POSITION, WandPos);
|
||||
m_pLeviosoPJ_1->Get_Component<CTransform>()->Set_State(STATE::POSITION, WandPos);
|
||||
m_pTrail_PT_0->Get_Component<CTransform>()->Set_State(STATE::POSITION, WandPos);
|
||||
|
||||
|
||||
m_pLeviosoPJ_0 ->Set_Visible(true);
|
||||
m_pLeviosoPJ_1->Set_Visible(true);
|
||||
m_pTrail_PT_0->Set_Visible(true);
|
||||
|
||||
m_pLeviosoTrail->Set_Visible(true);
|
||||
m_pLeviosoTrail->Get_Component<CTrail>()->Reset_Trail();
|
||||
|
||||
m_vOwnerLook = XMVector3Normalize(m_pOwner->Get_Component<CTransform>()->Get_State(STATE::LOOK));
|
||||
|
||||
m_bVisible = true;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CLevioso::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Ready_Components(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CLevioso::Ready_Child()
|
||||
{
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CLevioso* CLevioso::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CLevioso* pInstance = new CLevioso(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CLevioso");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
|
||||
CGameObject* CLevioso::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CLevioso* pInstance = new CLevioso(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CLevioso");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CLevioso::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
{
|
||||
_vector vPos = XMVectorSet(hitBuffer.block.position.x, hitBuffer.block.position.y, hitBuffer.block.position.z, 1.f);
|
||||
|
||||
|
||||
for (auto& pPair : m_PartObjects)
|
||||
{
|
||||
pPair.second->Set_Visible(true);
|
||||
pPair.second->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
}
|
||||
|
||||
__super::m_fAccTime = 0.f;
|
||||
m_fDuration = 3.f; //적중하면 지속시간 3초
|
||||
|
||||
//CEditEffect* pLevioso_Hit = Get_PartObject<CEditEffect>("Levioso_Hit");
|
||||
//CEditEffect* pLevioso_Bottom_Wind = Get_PartObject<CEditEffect>("Levioso_Bottom_Wind");
|
||||
//CEditEffect* pLevioso_Rotate0 = Get_PartObject<CEditEffect>("Levioso_Rotate0");
|
||||
//CEditEffect* pLevioso_Rotate1 = Get_PartObject<CEditEffect>("Levioso_Rotate1");
|
||||
//CEditEffect* pLevioso_Tornado = Get_PartObject<CEditEffect>("Levioso_Tornado");
|
||||
|
||||
m_pLeviosoPJ_0->Set_Visible(false);
|
||||
m_pLeviosoPJ_1->Set_Visible(false);
|
||||
m_pTrail_PT_0->Set_Visible(false);
|
||||
m_pLeviosoTrail->Set_Visible(false);
|
||||
}
|
||||
|
||||
void CLevioso::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
|
||||
SAFE_RELEASE(m_pLeviosoPJ_0);
|
||||
SAFE_RELEASE(m_pLeviosoPJ_1);
|
||||
SAFE_RELEASE(m_pLeviosoTrail);
|
||||
SAFE_RELEASE(m_pTrail_PT_0);
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
|
||||
void CLevioso::Describe_Entity()
|
||||
{
|
||||
GUI::Begin("LEVIOSO");
|
||||
|
||||
GUI::DragFloat("TURN SPEED", &m_fTurnSpeed);
|
||||
GUI::DragFloat("RANGE", &m_fRange);
|
||||
GUI::End();
|
||||
|
||||
}
|
||||
|
||||
#endif // _DEBUG
|
||||
|
||||
HRESULT CLevioso::Bind_ShaderResources()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,196 @@
|
||||
#include "pch.h"
|
||||
#include "LeviosoSide.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
#include "EffectParts.h"
|
||||
#include "Player.h"
|
||||
#include "Wand.h"
|
||||
#include "TrailObject.h"
|
||||
|
||||
|
||||
CLeviosoSide::CLeviosoSide(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CEffect_Container{ pDevice, pContext }
|
||||
{
|
||||
}
|
||||
|
||||
CLeviosoSide::CLeviosoSide(const CLeviosoSide& rhs)
|
||||
: CEffect_Container(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CLeviosoSide::Initialize_Prototype()
|
||||
{
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
|
||||
HRESULT CLeviosoSide::Initialize(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Initialize(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/LeviosoSide")))
|
||||
return E_FAIL;
|
||||
|
||||
m_wstrEffectName = L"LeviosoSide";
|
||||
|
||||
|
||||
m_pWandLight = Get_PartObject<CEffectParts>("Wand_Light_P");
|
||||
m_pWandTrail = Get_PartObject<CTrailObject>();
|
||||
|
||||
SAFE_ADDREF(m_pWandLight);
|
||||
SAFE_ADDREF(m_pWandTrail);
|
||||
|
||||
m_fDuration = 1.f;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CLeviosoSide::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
|
||||
}
|
||||
|
||||
void CLeviosoSide::Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
|
||||
Update_Event(fTimeDelta);
|
||||
|
||||
|
||||
CWand* pWand = static_cast<CWand*>(m_pOwner);
|
||||
|
||||
if (pWand == nullptr)
|
||||
return;
|
||||
|
||||
m_pWandLight->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
|
||||
|
||||
m_pWandTrail->Get_Component<CTrail>()->Trail_Update(fTimeDelta, pWand->Get_WorldMatrix());
|
||||
|
||||
}
|
||||
|
||||
void CLeviosoSide::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Late_Update(fTimeDelta);
|
||||
|
||||
|
||||
}
|
||||
|
||||
HRESULT CLeviosoSide::Pre_Setting(CGameObject* pObject)
|
||||
{
|
||||
if (pObject == nullptr)
|
||||
return E_FAIL;
|
||||
|
||||
m_pOwner = pObject;
|
||||
|
||||
Reset_EffectParts();
|
||||
|
||||
m_fAccTime = 0.f;
|
||||
__super::m_fAccTime = 0.f;
|
||||
m_fPreAccTime = 0.f;
|
||||
|
||||
|
||||
CWand* pWand = static_cast<CWand*>(m_pOwner);
|
||||
|
||||
if (pWand == nullptr)
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
m_pWandLight->Set_Visible(true);
|
||||
|
||||
/*트레일 초기화 */
|
||||
m_pWandTrail->Set_Visible(true);
|
||||
m_pWandTrail->Get_Component<CTrail>()->Reset_Trail();
|
||||
|
||||
/*_vector pPos = pPlayer->Get_WandPos().r[3];*/
|
||||
|
||||
m_pWandLight->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
|
||||
|
||||
|
||||
m_bVisible = true;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CLeviosoSide::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Ready_Components(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CLeviosoSide::Ready_Child()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CLeviosoSide* CLeviosoSide::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CLeviosoSide* pInstance = new CLeviosoSide(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CNomalJapSide");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
|
||||
CGameObject* CLeviosoSide::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CLeviosoSide* pInstance = new CLeviosoSide(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CNomalJapSide");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CLeviosoSide::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
{
|
||||
ON_COLLISION_INFO* CollisionDesc = static_cast<ON_COLLISION_INFO*>(pDesc);
|
||||
|
||||
}
|
||||
|
||||
void CLeviosoSide::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
|
||||
Safe_Release(m_pWandLight);
|
||||
Safe_Release(m_pWandTrail);
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
|
||||
void CLeviosoSide::Describe_Entity()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
#endif // _DEBUG
|
||||
|
||||
HRESULT CLeviosoSide::Bind_ShaderResources()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -28,6 +28,8 @@
|
||||
|
||||
#pragma region UI
|
||||
|
||||
#include "UI_Manager.h"
|
||||
|
||||
#include "GamePlay_Canvas.h"
|
||||
#include "Loading_Panel.h"
|
||||
#include "LoadingWidget.h"
|
||||
@@ -85,11 +87,17 @@
|
||||
#include "NomalJap.h"
|
||||
#include "Protego.h"
|
||||
#include "Revelio.h"
|
||||
#include "NomalJapSide.h"
|
||||
#include "DecendoSide.h"
|
||||
#include "BombardSide.h"
|
||||
#include "LeviosoSide.h"
|
||||
|
||||
#include "TrailObject.h"
|
||||
#include "Instance_Model.h"
|
||||
#include "Trail.h"
|
||||
#include "EffectPool.h"
|
||||
#include "Levioso.h"
|
||||
#include "Lumos.h"
|
||||
|
||||
|
||||
|
||||
@@ -918,6 +926,25 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
}
|
||||
#pragma endregion
|
||||
|
||||
#pragma region EFFECT
|
||||
|
||||
Asset_FileLoad("../Bin/Resources/Textures/Effect/Trails", L"Prototype_Texture_", [&](_wstring wstrFileName, const _char* pFilePath) {
|
||||
|
||||
_string strFilePath = pFilePath;
|
||||
_wstring wstrFilePath = CMyTools::ToWstring(strFilePath);
|
||||
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::GAMEPLAY), wstrFileName,
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
Asset_FileLoad("../Bin/Resources/Textures/Effect/Noises", L"Prototype_Texture_", [&](_wstring wstrFileName, const _char* pFilePath) {
|
||||
|
||||
@@ -978,6 +1005,8 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
|
||||
});
|
||||
|
||||
#pragma endregion
|
||||
|
||||
m_strMessage = TEXT("셰이더를(을) 로딩 중 입니다.");
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_UIEDITOR,
|
||||
@@ -1217,6 +1246,30 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CNomalJapSide>(NEXT_LEVEL, CNomalJapSide::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CLevioso>(NEXT_LEVEL, CLevioso::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CLumos>(NEXT_LEVEL, CLumos::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CLeviosoSide>(NEXT_LEVEL, CLeviosoSide::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CBombardSide>(NEXT_LEVEL, CBombardSide::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CDecendoSide>(NEXT_LEVEL, CDecendoSide::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CEffectPool>(g_iStaticLevel, CEffectPool::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -1577,6 +1630,11 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
|
||||
m_strMessage = TEXT("객체원형를(을) 로딩 중 입니다.");
|
||||
|
||||
/* For.Prototype_GameObject_UI_Manager*/
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CUI_Manager>(g_iStaticLevel, CUI_Manager::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
/* For.Prototype_GameObject_GamePlay_Canvas*/
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CGamePlay_Canvas>(g_iStaticLevel, CGamePlay_Canvas::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
|
||||
@@ -0,0 +1,180 @@
|
||||
#include "pch.h"
|
||||
#include "Lumos.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
#include "EffectParts.h"
|
||||
#include "Wand.h"
|
||||
|
||||
CLumos::CLumos(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CEffect_Container{ pDevice, pContext }
|
||||
{
|
||||
}
|
||||
|
||||
CLumos::CLumos(const CLumos& rhs)
|
||||
: CEffect_Container(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CLumos::Initialize_Prototype()
|
||||
{
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
|
||||
HRESULT CLumos::Initialize(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Initialize(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Lumos")))
|
||||
return E_FAIL;
|
||||
|
||||
m_wstrEffectName = L"Lumos";
|
||||
|
||||
m_pLumos_Light = Get_PartObject<CEffectParts>("Lumos");
|
||||
|
||||
SAFE_ADDREF(m_pLumos_Light);
|
||||
|
||||
m_fDuration = 2.5f;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CLumos::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
|
||||
}
|
||||
|
||||
void CLumos::Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
|
||||
Update_Event(fTimeDelta);
|
||||
|
||||
|
||||
CWand* pWand = static_cast<CWand*>(m_pOwner);
|
||||
|
||||
if (pWand == nullptr)
|
||||
return;
|
||||
|
||||
m_pLumos_Light->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
|
||||
|
||||
}
|
||||
|
||||
void CLumos::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Late_Update(fTimeDelta);
|
||||
|
||||
|
||||
}
|
||||
|
||||
HRESULT CLumos::Pre_Setting(CGameObject* pObject)
|
||||
{
|
||||
if (pObject == nullptr)
|
||||
return E_FAIL;
|
||||
|
||||
m_pOwner = pObject;
|
||||
|
||||
Reset_EffectParts();
|
||||
|
||||
m_fAccTime = 0.f;
|
||||
__super::m_fAccTime = 0.f;
|
||||
m_fPreAccTime = 0.f;
|
||||
|
||||
CWand* pWand = static_cast<CWand*>(m_pOwner);
|
||||
|
||||
if (pWand == nullptr)
|
||||
return E_FAIL;
|
||||
|
||||
m_pLumos_Light->Set_Visible(true);
|
||||
m_pLumos_Light->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
|
||||
|
||||
m_bVisible = true;
|
||||
|
||||
m_isLoop = true;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CLumos::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Ready_Components(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CLumos::Ready_Child()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CLumos* CLumos::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CLumos* pInstance = new CLumos(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CLumos");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
|
||||
CGameObject* CLumos::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CLumos* pInstance = new CLumos(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CLumos");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CLumos::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
{
|
||||
//CTransform* pOtherTransform = p
|
||||
ON_COLLISION_INFO* CollisionDesc = static_cast<ON_COLLISION_INFO*>(pDesc);
|
||||
|
||||
}
|
||||
|
||||
void CLumos::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
Safe_Release(m_pLumos_Light);
|
||||
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
|
||||
void CLumos::Describe_Entity()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
#endif // _DEBUG
|
||||
|
||||
HRESULT CLumos::Bind_ShaderResources()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#include "pch.h"
|
||||
#include "MapContainer.h"
|
||||
#include "PartObject.h"
|
||||
#include "MapObject_Collision.h"
|
||||
|
||||
//#include "MapObject_LOD.h"
|
||||
|
||||
@@ -44,6 +45,10 @@ void CMapContainer::Priority_Update(_float fTimeDelta)
|
||||
|
||||
void CMapContainer::Update(_float fTimeDelta)
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
Describe_Entity();
|
||||
#endif // _DEBUG
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
}
|
||||
|
||||
@@ -57,7 +62,33 @@ HRESULT CMapContainer::Render()
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CMapContainer::ReadyForPhysX()
|
||||
{
|
||||
vector<class CPartObject*>::iterator iter = m_ColiisonPartObjects.begin();
|
||||
for (; iter != m_ColiisonPartObjects.end(); ++iter) {
|
||||
CMapObject_Collision* pObject = static_cast<CMapObject_Collision*>(*iter);
|
||||
pObject->ReadyForPhysX();
|
||||
}
|
||||
}
|
||||
|
||||
void CMapContainer::ConvertToPhysX()
|
||||
{
|
||||
vector<class CPartObject*>::iterator iter = m_ColiisonPartObjects.begin();
|
||||
for (; iter != m_ColiisonPartObjects.end(); ++iter) {
|
||||
CMapObject_Collision* pObject = static_cast<CMapObject_Collision*>(*iter);
|
||||
pObject->ConvertToPhysX();
|
||||
}
|
||||
}
|
||||
|
||||
void CMapContainer::Free()
|
||||
{
|
||||
__super::Free();
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
|
||||
void CMapContainer::Describe_Entity()
|
||||
{
|
||||
}
|
||||
|
||||
#endif // _DEBUG
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
#include "MapObject_Render.h"
|
||||
#include "MapObject_Collision.h"
|
||||
#include "MapElement_Light.h"
|
||||
#include "Layer.h"
|
||||
|
||||
CMapInfo::CMapInfo()
|
||||
{
|
||||
@@ -15,6 +16,41 @@ CMapInfo::CMapInfo()
|
||||
|
||||
void CMapInfo::Update(_float fTimeDelta)
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
Describe_Entity();
|
||||
#endif // _DEBUG
|
||||
|
||||
static _bool s_bConverted = { false };
|
||||
static _bool s_bReadyToCreate = { false };
|
||||
|
||||
if (true != s_bConverted || true != s_bReadyToCreate) {
|
||||
CLayer* pLayer = m_pGameInstance->Get_Layer(CURRENT_LEVEL, LAYER_BACKGROUND);
|
||||
if (nullptr == pLayer) {
|
||||
return;
|
||||
}
|
||||
const list<CGameObject*>* pObjects = pLayer->Get_Objects();
|
||||
|
||||
if (false == s_bReadyToCreate) {
|
||||
s_bReadyToCreate = true;
|
||||
list<CGameObject*>::const_iterator iter = pObjects->begin();
|
||||
for (; iter != pObjects->end(); ++iter) {
|
||||
CMapContainer* pContainer = dynamic_cast<CMapContainer*>(*iter);
|
||||
if (nullptr != pContainer) {
|
||||
pContainer->ReadyForPhysX();
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (false == s_bConverted) {
|
||||
s_bConverted = true;
|
||||
list<CGameObject*>::const_iterator iter = pObjects->begin();
|
||||
for (; iter != pObjects->end(); ++iter) {
|
||||
CMapContainer* pContainer = dynamic_cast<CMapContainer*>(*iter);
|
||||
if (nullptr != pContainer) {
|
||||
pContainer->ConvertToPhysX();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void CMapInfo::Change_Level()
|
||||
@@ -214,8 +250,9 @@ HRESULT CMapInfo::Load_MapRenderObjects(tinyxml2::XMLElement* Container, CMapCon
|
||||
Rotation->QueryFloatAttribute("y", &Desc.vRotation.y);
|
||||
Rotation->QueryFloatAttribute("z", &Desc.vRotation.z);
|
||||
|
||||
if (FAILED(pContainerObject->Add_Part<CMapObject_Render>(strKey, g_iStaticLevel, nullptr, &Desc)))
|
||||
if (FAILED(pContainerObject->Add_Part<CMapObject_Render>(strKey, g_iStaticLevel, nullptr, &Desc))){
|
||||
return E_FAIL;
|
||||
}
|
||||
#pragma endregion
|
||||
}
|
||||
|
||||
@@ -263,7 +300,6 @@ HRESULT CMapInfo::Load_MapCollisionObjects(tinyxml2::XMLElement* Container, CMap
|
||||
|
||||
pContainerObject->Add_Collision<CMapObject_Collision>(g_iStaticLevel, &Desc);
|
||||
#pragma endregion
|
||||
|
||||
}
|
||||
#pragma endregion
|
||||
|
||||
@@ -397,3 +433,49 @@ void CMapInfo::Free()
|
||||
SAFE_RELEASE(m_pContext);
|
||||
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
|
||||
void CMapInfo::Describe_Entity()
|
||||
{
|
||||
CLayer* pLayer = m_pGameInstance->Get_Layer(CURRENT_LEVEL, LAYER_BACKGROUND);
|
||||
if (nullptr == pLayer) {
|
||||
return;
|
||||
}
|
||||
static _bool s_bConverted = { false };
|
||||
static _bool s_bReadyToCreate = { false };
|
||||
|
||||
const list<CGameObject*>* pObjects = pLayer->Get_Objects();
|
||||
|
||||
GUI::Begin("MapInfoDesc");
|
||||
GUI::SetNextItemWidth(80.f);
|
||||
GUI::BeginChild("CollisonPartObjects");
|
||||
GUI::SetNextItemWidth(80.f);
|
||||
if (false == s_bReadyToCreate) {
|
||||
if (GUI::Button("Ready_StaticMeshesForPhyX_ALL")) {
|
||||
s_bReadyToCreate = true;
|
||||
list<CGameObject*>::const_iterator iter = pObjects->begin();
|
||||
for (; iter != pObjects->end(); ++iter) {
|
||||
CMapContainer* pContainer = dynamic_cast<CMapContainer*>(*iter);
|
||||
if (nullptr != pContainer) {
|
||||
pContainer->ReadyForPhysX();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (false == s_bConverted) {
|
||||
if (GUI::Button("Convert_StaticMeshesForPhyX_ALL")) {
|
||||
s_bConverted = true;
|
||||
list<CGameObject*>::const_iterator iter = pObjects->begin();
|
||||
for (; iter != pObjects->end(); ++iter) {
|
||||
CMapContainer* pContainer = dynamic_cast<CMapContainer*>(*iter);
|
||||
if (nullptr != pContainer) {
|
||||
pContainer->ConvertToPhysX();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
GUI::EndChild();
|
||||
GUI::End();
|
||||
}
|
||||
|
||||
#endif // _DEBUG
|
||||
|
||||
@@ -72,12 +72,59 @@ HRESULT CMapObject_Collision::Initialize(void* pArg)
|
||||
|
||||
_wstring CMapObject_Collision::Get_PrototypeTag(_uint iLodIndex)
|
||||
{
|
||||
if (m_iMaxLodLevel < iLodIndex)
|
||||
if (m_iMaxLodLevel < iLodIndex){
|
||||
return m_ModelPrototypeTags[0];
|
||||
}
|
||||
|
||||
return m_ModelPrototypeTags[iLodIndex];
|
||||
}
|
||||
|
||||
void CMapObject_Collision::ReadyForPhysX()
|
||||
{
|
||||
if (true == m_bConverted) {
|
||||
return;
|
||||
}
|
||||
m_bConverted = true;
|
||||
|
||||
for (_uint iIndexLOD = 0; iIndexLOD < m_iMaxLodLevel + 1; ++iIndexLOD)
|
||||
{
|
||||
CModel* pModel = m_pModelComs[iIndexLOD];
|
||||
|
||||
if (FAILED(pModel->Ready_PhysXMeshes(XMLoadFloat4x4(&m_CombinedWorldMatrix)))) {
|
||||
assert(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void CMapObject_Collision::ConvertToPhysX()
|
||||
{
|
||||
if (true == m_bReadyToCreatePhysX) {
|
||||
return;
|
||||
}
|
||||
m_bReadyToCreatePhysX = true;
|
||||
|
||||
m_RigidBodies.resize(m_iMaxLodLevel + 1);
|
||||
for (_uint iIndexLOD = 0; iIndexLOD < m_iMaxLodLevel + 1; ++iIndexLOD)
|
||||
{
|
||||
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();
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, wstrName, (CComponent**)&pRigidBody, &Desc))) {
|
||||
assert(false);
|
||||
}
|
||||
m_RigidBodies[iIndexLOD].push_back(pRigidBody);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
HRESULT CMapObject_Collision::Ready_Components()
|
||||
{
|
||||
__super::Ready_Components();
|
||||
@@ -93,19 +140,6 @@ HRESULT CMapObject_Collision::Ready_Components()
|
||||
}
|
||||
|
||||
m_pModelComs.push_back(pModel);
|
||||
|
||||
// _uint iMeshes = pModel->Get_NumMeshes();
|
||||
// for (_uint iIndex = 0; iIndex < iMeshes; ++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();
|
||||
// if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, wstrName, (CComponent**)&pRigidBody, &Desc))) {
|
||||
// return E_FAIL;
|
||||
// }
|
||||
// m_RigidBodies[iIndexLOD].push_back(pRigidBody);
|
||||
// }
|
||||
}
|
||||
|
||||
/* Com_Shader */
|
||||
|
||||
@@ -50,7 +50,7 @@ HRESULT CNomalJap::Initialize(void* pArg)
|
||||
SAFE_ADDREF(m_pProjectile);
|
||||
SAFE_ADDREF(m_pProjectile_Side);
|
||||
|
||||
m_fDuration = 1.f;
|
||||
m_fDuration = 1.7f;
|
||||
assert(m_fDuration > 0.f);
|
||||
return S_OK;
|
||||
}
|
||||
@@ -59,10 +59,6 @@ void CNomalJap::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
|
||||
if (nullptr != m_pPhysHitBox) {
|
||||
m_pPhysHitBox->Get_Component<CTransform>()->RewindMomentum();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void CNomalJap::Update(_float fTimeDelta)
|
||||
@@ -80,15 +76,24 @@ void CNomalJap::Update(_float fTimeDelta)
|
||||
|
||||
_vector vDirection = XMLoadFloat3(&m_vDirection);
|
||||
|
||||
//_vector vStartPos = Get_WorldPostion();
|
||||
//_float3 vfStartPos = {};
|
||||
//XMStoreFloat3(&vfStartPos, Get_WorldPostion());
|
||||
|
||||
// 선속도
|
||||
m_pProjectile_Side->Get_Component<CTransform>()->Translation(vDirection * m_fLinearSpeed * fTimeDelta);
|
||||
m_pProjectile->Get_Component<CTransform>()->Translation(vDirection * m_fLinearSpeed * fTimeDelta);
|
||||
|
||||
//_vector vEndPos = Get_WorldPostion();
|
||||
|
||||
//_float3 vfEndPos = {};
|
||||
//XMStoreFloat3(&vfEndPos, Get_WorldPostion());
|
||||
|
||||
//_float3 vDir = {};
|
||||
//XMStoreFloat3(&vDir, vEndPos - vStartPos);
|
||||
|
||||
//m_pGameInstance->SphereCast(0.125f, vfStartPos, vDir, XMVectorGetX(XMVector3Length(vEndPos - vStartPos)), )
|
||||
|
||||
if (nullptr != m_pPhysHitBox) {
|
||||
m_pPhysHitBox->Get_Component<CTransform>()->AccumulateMomentum(vDirection * m_fLinearSpeed * fTimeDelta);
|
||||
}
|
||||
|
||||
if (false == m_bTrailPulseEnded && m_fAccTime > m_fDuration * 0.3f) {
|
||||
m_bTrailPulseEnded = true;
|
||||
@@ -104,11 +109,10 @@ void CNomalJap::Update(_float fTimeDelta)
|
||||
SAFE_RELEASE(m_pTargetUnit);
|
||||
}
|
||||
|
||||
MoveHitBox(fTimeDelta);
|
||||
return;
|
||||
}
|
||||
if (true == m_bTrailPulseEnded) {
|
||||
MoveHitBox(fTimeDelta);
|
||||
|
||||
return;
|
||||
}
|
||||
_vector vRotateUp = XMLoadFloat3(&m_vRotateUp);
|
||||
@@ -117,24 +121,14 @@ void CNomalJap::Update(_float fTimeDelta)
|
||||
// 각속도
|
||||
m_pProjectile_Side->Get_Component<CTransform>()->Translation(vRotateUp * 0.6f * sinf(m_fAngularSpeed * m_fAccTime));
|
||||
m_pProjectile->Get_Component<CTransform>()->Translation(vRotateUp * 0.6f * sinf(m_fAngularSpeed * m_fAccTime));
|
||||
|
||||
if (nullptr != m_pPhysHitBox) {
|
||||
m_pPhysHitBox->Get_Component<CTransform>()->AccumulateMomentum(vRotateUp * 0.6f * sinf(m_fAngularSpeed * m_fAccTime));
|
||||
MoveHitBox(fTimeDelta);
|
||||
}
|
||||
}
|
||||
|
||||
void CNomalJap::MoveHitBox(Engine::_float fTimeDelta)
|
||||
{
|
||||
if (nullptr != m_pPhysHitBox) {
|
||||
m_pPhysHitBox->Get_Component<CCharacter_Controller>()->Move(fTimeDelta);
|
||||
}
|
||||
}
|
||||
|
||||
void CNomalJap::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
if (m_bVisible == false){
|
||||
return;
|
||||
}
|
||||
|
||||
Get_PartObject<CTrailObject>()->Trail_Update(m_pProjectile->Get_Component<CTransform>()->Get_XMWorldMatrix(), fTimeDelta);
|
||||
|
||||
@@ -182,6 +176,9 @@ HRESULT CNomalJap::Pre_Setting(CGameObject* pObject)
|
||||
_vector vUp = XMVectorSet(0.f, 1.f, 0.f, 0.f);
|
||||
XMStoreFloat3(&m_vDirection, vDirection);
|
||||
|
||||
//Get_PartObject<CEffectParts>("Circle_Particle_Red")->Set_Visible(true);
|
||||
//Get_PartObject<CEffectParts>("Circle_Particle_Red")->Get_Component<CTransform>()->Set_WorldMatrix(m_pOwner->Get_Component<CTransform>()->Get_XMWorldMatrix());
|
||||
|
||||
_vector vQuaternion = XMQuaternionRotationAxis(vDirection, m_pGameInstance->Random_Float(0.f, XM_PIDIV2));
|
||||
|
||||
{ /* 대상 위치 지정 */
|
||||
@@ -223,23 +220,7 @@ HRESULT CNomalJap::Ready_Components(void* pArg)
|
||||
|
||||
HRESULT CNomalJap::Ready_Child()
|
||||
{
|
||||
CPhysXEffectHitBox::PHYSXDUMMY_DESC Desc{};
|
||||
|
||||
m_pTransformCom->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
|
||||
|
||||
XMStoreFloat3(&Desc.vPos, m_pOwner->Get_WorldPostion() + XMVectorSet(0.f, 0.f, 1.f, 0.f));
|
||||
|
||||
Desc.vRotRPY = { 0.f, 0.f, 0.f };
|
||||
Desc.iSubKind = ENUM_CLASS(PXOBJECT::SKILL_NORMALJAP);
|
||||
Desc.vDeltaPos = _float3(0.f, 0.f, 0.f);
|
||||
Desc.vLifeTime = { 0.f, 1.f };
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CPhysXEffectHitBox>(g_iStaticLevel, CURRENT_LEVEL, LAYER_HITBOX, &Desc, this, &m_pPhysHitBox))) {
|
||||
assert(false);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
SAFE_ADDREF(m_pPhysHitBox);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -287,24 +268,17 @@ void CNomalJap::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
SAFE_RELEASE(m_pTargetUnit);
|
||||
m_pProjectile_Side->Set_Visible(false);
|
||||
m_pProjectile->Set_Visible(false);
|
||||
Get_PartObject<CEffectParts>("Circle_Particle_Red")->Set_Visible(false);
|
||||
|
||||
Get_PartObject<CTrailObject>()->Set_Visible(false);
|
||||
Get_PartObject<CTrailObject>()->Get_Component<CTransform>()->Set_State(STATE::POSITION, XMVectorSet(0.f, 0.f, 0.f, 1.f));
|
||||
|
||||
if (nullptr != m_pPhysHitBox) {
|
||||
m_pPhysHitBox->Set_Dead();
|
||||
SAFE_RELEASE(m_pPhysHitBox);
|
||||
}
|
||||
}
|
||||
|
||||
void CNomalJap::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
if (m_pPhysHitBox != nullptr){
|
||||
SAFE_RELEASE(m_pPhysHitBox);
|
||||
}
|
||||
|
||||
SAFE_RELEASE(m_pTargetUnit);
|
||||
Safe_Release(m_pProjectile);
|
||||
Safe_Release(m_pProjectile_Side);
|
||||
|
||||
@@ -0,0 +1,201 @@
|
||||
#include "pch.h"
|
||||
#include "NomalJapSide.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
#include "EffectParts.h"
|
||||
#include "Player.h"
|
||||
#include "Wand.h"
|
||||
#include "TrailObject.h"
|
||||
|
||||
|
||||
CNomalJapSide::CNomalJapSide(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CEffect_Container{ pDevice, pContext }
|
||||
{
|
||||
}
|
||||
|
||||
CNomalJapSide::CNomalJapSide(const CNomalJapSide& rhs)
|
||||
: CEffect_Container(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CNomalJapSide::Initialize_Prototype()
|
||||
{
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
|
||||
HRESULT CNomalJapSide::Initialize(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Initialize(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/JapsideEffect")))
|
||||
return E_FAIL;
|
||||
|
||||
m_wstrEffectName = L"JapSideEffect";
|
||||
|
||||
|
||||
m_pWandParticle = Get_PartObject<CEffectParts>("WandParticle1");
|
||||
m_pWandLight = Get_PartObject<CEffectParts>("Wand_Red_Long");
|
||||
m_pWandTrail = Get_PartObject<CTrailObject>();
|
||||
|
||||
SAFE_ADDREF(m_pWandLight);
|
||||
SAFE_ADDREF(m_pWandTrail);
|
||||
SAFE_ADDREF(m_pWandParticle);
|
||||
|
||||
m_fDuration = 1.f;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CNomalJapSide::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
|
||||
}
|
||||
|
||||
void CNomalJapSide::Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
|
||||
Update_Event(fTimeDelta);
|
||||
|
||||
|
||||
CWand* pWand = static_cast<CWand*>(m_pOwner);
|
||||
|
||||
if (pWand == nullptr)
|
||||
return;
|
||||
|
||||
m_pWandLight->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
|
||||
|
||||
m_pWandTrail->Get_Component<CTrail>()->Trail_Update(fTimeDelta, pWand->Get_WorldMatrix());
|
||||
m_pWandParticle->Get_Component<CTransform>()->Set_WorldMatrix(pWand->Get_WorldMatrix());
|
||||
|
||||
}
|
||||
|
||||
void CNomalJapSide::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Late_Update(fTimeDelta);
|
||||
|
||||
|
||||
}
|
||||
|
||||
HRESULT CNomalJapSide::Pre_Setting(CGameObject* pObject)
|
||||
{
|
||||
if (pObject == nullptr)
|
||||
return E_FAIL;
|
||||
|
||||
m_pOwner = pObject;
|
||||
|
||||
Reset_EffectParts();
|
||||
|
||||
m_fAccTime = 0.f;
|
||||
__super::m_fAccTime = 0.f;
|
||||
m_fPreAccTime = 0.f;
|
||||
|
||||
|
||||
CWand* pWand = static_cast<CWand*>(m_pOwner);
|
||||
|
||||
if (pWand == nullptr)
|
||||
return E_FAIL;
|
||||
|
||||
m_pWandParticle->Set_Visible(true);
|
||||
|
||||
m_pWandLight->Set_Visible(true);
|
||||
|
||||
/*트레일 초기화 */
|
||||
m_pWandTrail->Set_Visible(true);
|
||||
m_pWandTrail->Get_Component<CTrail>()->Reset_Trail();
|
||||
|
||||
/*_vector pPos = pPlayer->Get_WandPos().r[3];*/
|
||||
|
||||
m_pWandLight->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
|
||||
|
||||
|
||||
m_bVisible = true;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CNomalJapSide::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Ready_Components(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CNomalJapSide::Ready_Child()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CNomalJapSide* CNomalJapSide::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CNomalJapSide* pInstance = new CNomalJapSide(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CNomalJapSide");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
|
||||
CGameObject* CNomalJapSide::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CNomalJapSide* pInstance = new CNomalJapSide(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CNomalJapSide");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CNomalJapSide::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
{
|
||||
ON_COLLISION_INFO* CollisionDesc = static_cast<ON_COLLISION_INFO*>(pDesc);
|
||||
|
||||
}
|
||||
|
||||
void CNomalJapSide::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
|
||||
Safe_Release(m_pWandLight);
|
||||
Safe_Release(m_pWandTrail);
|
||||
Safe_Release(m_pWandParticle);
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
|
||||
void CNomalJapSide::Describe_Entity()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
#endif // _DEBUG
|
||||
|
||||
HRESULT CNomalJapSide::Bind_ShaderResources()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -392,22 +392,12 @@ void CPlayer::Update_CameraCoordinateSystem()
|
||||
|
||||
_matrix CPlayer::Get_WandPos()
|
||||
{
|
||||
CModel* pWand = Get_PartObject<CWand>()->Get_Component<CModel>();
|
||||
CWand* pWand = Get_PartObject<CWand>();
|
||||
|
||||
if (pWand == nullptr)
|
||||
return _matrix();
|
||||
|
||||
_matrix BoneMatrix = XMLoadFloat4x4(pWand->Get_BoneMatrixPtr("root"));
|
||||
|
||||
BoneMatrix = BoneMatrix * m_pTransformCom->Get_XMWorldMatrix();
|
||||
|
||||
_float3 vOffset = _float3(0.f, -0.27f, -0.32f);
|
||||
|
||||
BoneMatrix.r[3] += XMVector3Normalize(BoneMatrix.r[0]) * vOffset.x;
|
||||
BoneMatrix.r[3] += XMVector3Normalize(BoneMatrix.r[1]) * vOffset.y;
|
||||
BoneMatrix.r[3] += XMVector3Normalize(BoneMatrix.r[2]) * vOffset.z;
|
||||
|
||||
return BoneMatrix;
|
||||
return pWand->Get_WorldMatrix();
|
||||
}
|
||||
|
||||
void CPlayer::Play_Event()
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
#include "pch.h"
|
||||
#include "Player.h"
|
||||
|
||||
#include "InfoInstance.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
#include "CamPosition_Socket.h"
|
||||
#include "Camera_Gaze.h"
|
||||
@@ -56,6 +58,8 @@ void CPlayer::TestKeyInput(_float fTimeDelta)
|
||||
if (m_pGameInstance->Key_Down(DIK_F7))
|
||||
{
|
||||
m_eSpell = STATEANIM::LUMOS;
|
||||
|
||||
m_pEffectPool->Use_Skill(SKILL_TYPE::LUMOS, Get_PartObject<CWand>());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -74,6 +78,7 @@ HRESULT CPlayer::InputAction()
|
||||
|| m_pGameInstance->Key_Down(DIK_Z)
|
||||
|| m_pGameInstance->Key_Down(DIK_G)
|
||||
|| m_pGameInstance->Key_Down(DIK_B)
|
||||
|| m_pGameInstance->Key_Down(DIK_T)
|
||||
)
|
||||
{
|
||||
return S_OK;
|
||||
@@ -188,6 +193,9 @@ HRESULT CPlayer::Behavior_IdleExitCheck(_float fTimeDelta)
|
||||
else if (m_pGameInstance->Key_Down(DIK_B)) {
|
||||
m_pFSM->Change_State(FSMSTATE::BROOM_RIDE);
|
||||
}
|
||||
else if (m_pGameInstance->Key_Down(DIK_T)) {
|
||||
m_pInfoInstance->Change_Canvas();
|
||||
}
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -718,7 +726,10 @@ void CPlayer::Behavior_CombatEnter()
|
||||
else if (m_pGameInstance->Mouse_Up(DIM_LBUTTON)) {
|
||||
m_pFSM->Enable_State(FSMSTATE::LIGHT_ATTACK);
|
||||
pairAnimInfo = m_Animation[STATEANIM::LIGHT_ATTACK];
|
||||
|
||||
Add_Event(pairAnimInfo.first, [this]() { m_pEffectPool->Use_Skill(SKILL_TYPE::JAP, Get_PartObject<CWand>()); }, 0.1f);
|
||||
|
||||
Add_Event(pairAnimInfo.first, [this]() { m_pEffectPool->Use_Skill(SKILL_TYPE::JAP_SIDE, Get_PartObject<CWand>()); }, 0.0f);
|
||||
}
|
||||
else if (SUCCEEDED(InputSpell())) {
|
||||
m_pFSM->Enable_State(FSMSTATE::SPELL);
|
||||
@@ -726,13 +737,45 @@ void CPlayer::Behavior_CombatEnter()
|
||||
{
|
||||
switch (m_eSpell)
|
||||
{
|
||||
case STATEANIM::ACCIO:
|
||||
|
||||
pairAnimInfo = m_Animation[STATEANIM::SPELL];
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::BOMBARDA_SIDE, Get_PartObject<CWand>()); },
|
||||
0.f);
|
||||
|
||||
break;
|
||||
|
||||
case STATEANIM::DESCENDO:
|
||||
|
||||
pairAnimInfo = m_Animation[STATEANIM::SPELL];
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::DESCENDO_SIDE, Get_PartObject<CWand>()); },
|
||||
0.f);
|
||||
|
||||
break;
|
||||
case STATEANIM::DEPULSO:
|
||||
pairAnimInfo = m_Animation[STATEANIM::DEPULSO];
|
||||
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::LEVIOSO, this); },
|
||||
0.2f);
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::LEVIOSO_SIDE, Get_PartObject<CWand>()); },
|
||||
0.f);
|
||||
|
||||
m_eSpell = STATEANIM::END;
|
||||
|
||||
break;
|
||||
case STATEANIM::DIFFINDO:
|
||||
pairAnimInfo = m_Animation[STATEANIM::DIFFINDO];
|
||||
|
||||
|
||||
|
||||
m_eSpell = STATEANIM::END;
|
||||
break;
|
||||
case STATEANIM::DISILLUSION_ENTER:
|
||||
@@ -790,7 +833,12 @@ void CPlayer::Behavior_CombatEnter()
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
|
||||
|
||||
pairAnimInfo = m_Animation[STATEANIM::SPELL];
|
||||
}
|
||||
}
|
||||
else if (m_pGameInstance->Key_Down(DIK_V)) {
|
||||
m_pFSM->Enable_State(FSMSTATE::MAPHELP);
|
||||
@@ -916,9 +964,14 @@ HRESULT CPlayer::Behavior_CombatExitCheck()
|
||||
{
|
||||
pairAnimInfo = m_Animation[STATEANIM::ACCIO];
|
||||
Add_Event(pairAnimInfo.first,
|
||||
|
||||
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::BOMBARDA, this);},
|
||||
0.15f);
|
||||
|
||||
|
||||
|
||||
m_eSpell = STATEANIM::END;
|
||||
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
}
|
||||
break;
|
||||
@@ -928,10 +981,21 @@ HRESULT CPlayer::Behavior_CombatExitCheck()
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::DESCENDO, this);},
|
||||
0.1f);
|
||||
|
||||
m_eSpell = STATEANIM::END;
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
}
|
||||
break;
|
||||
|
||||
case STATEANIM::DEPULSO:
|
||||
{
|
||||
pairAnimInfo = m_Animation[STATEANIM::DEPULSO];
|
||||
|
||||
|
||||
m_eSpell = STATEANIM::END;
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -6,28 +6,34 @@
|
||||
|
||||
;
|
||||
|
||||
CSkill_Data::CSkill_Data(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
:CGameObject(pDevice, pContext)
|
||||
CSkill_Data::CSkill_Data()
|
||||
{
|
||||
}
|
||||
|
||||
CSkill_Data::CSkill_Data(const CSkill_Data& rhs)
|
||||
:CGameObject(rhs)
|
||||
HRESULT CSkill_Data::Initialize(ID3D11Device* pDevice, ID3D11DeviceContext* pContex)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CSkill_Data::Initialize_Prototype()
|
||||
{
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CSkill_Data::Initialize(void* pArg)
|
||||
const SPELL_INFO& CSkill_Data::Get_Info(_uint SpellID) const
|
||||
{
|
||||
auto* pInfo = static_cast<CUIObject::SPELLINFO*>(pArg);
|
||||
return SpellInfo[SpellID];
|
||||
}
|
||||
|
||||
void CSkill_Data::Update(_float fTimeDelta)
|
||||
{
|
||||
}
|
||||
|
||||
void CSkill_Data::Change_Level()
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CSkill_Data::Load_SpellInfo(const _char* pFilePath)
|
||||
{
|
||||
tinyxml2::XMLDocument doc;
|
||||
tinyxml2::XMLError Error = doc.LoadFile("../Bin/Resources/Data/UI/Spell/SpellInfo.xml");
|
||||
tinyxml2::XMLError Error = doc.LoadFile(pFilePath);
|
||||
if (Error != tinyxml2::XML_SUCCESS)
|
||||
return E_FAIL;
|
||||
|
||||
@@ -47,70 +53,32 @@ HRESULT CSkill_Data::Initialize(void* pArg)
|
||||
continue;
|
||||
}
|
||||
|
||||
pInfo[id].iSpell_ID = id;
|
||||
pInfo[id].pSpell_Name = CMyTools::ToWstring(pSpell->Attribute("Spell_Name"));
|
||||
pInfo[id].pImage_Name = CMyTools::ToWstring(pSpell->Attribute("Image_Name"));
|
||||
pSpell->QueryIntAttribute("Spell_Type", &pInfo[id].iSpell_Type);
|
||||
pSpell->QueryIntAttribute("Skill_Type", &pInfo[id].iSkill_Type);
|
||||
pSpell->QueryFloatAttribute("Spell_Cooltime", &pInfo[id].fSpell_CoolTime);
|
||||
pSpell->QueryFloatAttribute("Duration", &pInfo[id].fDuration);
|
||||
pSpell->QueryIntAttribute("AnimNum", &pInfo[id].iAnimNum);
|
||||
pInfo[id].pSpellInfo = CMyTools::ToWstring(pSpell->Attribute("SpellInfo"));
|
||||
SpellInfo[id].iSpell_ID = id;
|
||||
SpellInfo[id].pSpell_Name = CMyTools::ToWstring(pSpell->Attribute("Spell_Name"));
|
||||
SpellInfo[id].pImage_Name = CMyTools::ToWstring(pSpell->Attribute("Image_Name"));
|
||||
pSpell->QueryIntAttribute("Spell_Type", &SpellInfo[id].iSpell_Type);
|
||||
pSpell->QueryIntAttribute("Skill_Type", &SpellInfo[id].iSkill_Type);
|
||||
pSpell->QueryFloatAttribute("Spell_Cooltime", &SpellInfo[id].fSpell_CoolTime);
|
||||
pSpell->QueryFloatAttribute("Duration", &SpellInfo[id].fDuration);
|
||||
pSpell->QueryIntAttribute("AnimNum", &SpellInfo[id].iAnimNum);
|
||||
SpellInfo[id].pSpellInfo = CMyTools::ToWstring(pSpell->Attribute("SpellInfo"));
|
||||
int lock = 0, equip = 0;
|
||||
pSpell->QueryIntAttribute("Spell_Lock", &lock);
|
||||
pSpell->QueryIntAttribute("Equip_Spell", &equip);
|
||||
pInfo[id].bSpell_Lock = lock != 0;
|
||||
pInfo[id].bEquip_Spell = equip != 0;
|
||||
SpellInfo[id].bSpell_Lock = lock != 0;
|
||||
SpellInfo[id].bEquip_Spell = equip != 0;
|
||||
|
||||
pSpell = pSpell->NextSiblingElement("Spell");
|
||||
}
|
||||
|
||||
//pInfo = SpellInfo;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
//const CUIObject::SPELLINFO& CSkill_Data::Get_Info(_uint SpellID) const
|
||||
//{
|
||||
// return SpellInfo[SpellID];
|
||||
//}
|
||||
|
||||
void CSkill_Data::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
}
|
||||
|
||||
void CSkill_Data::Update(_float fTimeDelta)
|
||||
{
|
||||
}
|
||||
|
||||
void CSkill_Data::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CSkill_Data::Render()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
_vector CSkill_Data::Get_WorldPostion()
|
||||
{
|
||||
return _vector();
|
||||
}
|
||||
|
||||
HRESULT CSkill_Data::Bind_ShaderResources()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CSkill_Data::Ready_Components(void* pArg)
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CSkill_Data* CSkill_Data::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CSkill_Data* pInstance = new CSkill_Data(pDevice, pContext);
|
||||
CSkill_Data* pInstance = new CSkill_Data();
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
if (FAILED(pInstance->Initialize(pDevice, pContext)))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CSkill_Data");
|
||||
SAFE_RELEASE(pInstance);
|
||||
@@ -119,25 +87,8 @@ CSkill_Data* CSkill_Data::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pCo
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
CGameObject* CSkill_Data::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CSkill_Data* pInstance = new CSkill_Data(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CSkill_Data");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CSkill_Data::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
}
|
||||
|
||||
void CSkill_Data::Describe_Entity()
|
||||
{
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#include "pch.h"
|
||||
#include "Spell_Anim.h"
|
||||
#include "GameInstance.h"
|
||||
#include "InfoInstance.h"
|
||||
|
||||
CSpell_Anim::CSpell_Anim(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
:CElementObject(pDevice, pContext)
|
||||
@@ -8,7 +9,9 @@ CSpell_Anim::CSpell_Anim(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
}
|
||||
|
||||
CSpell_Anim::CSpell_Anim(const CSpell_Anim& rhs)
|
||||
:CElementObject(rhs)
|
||||
:CElementObject(rhs),
|
||||
m_pInfoInstance(CInfoInstance::GetInstance())
|
||||
|
||||
{
|
||||
}
|
||||
|
||||
@@ -48,6 +51,7 @@ HRESULT CSpell_Anim::Initialize(void* pArg)
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("Slot_Hover"), [this](void* p) {this->Set_SkillType(*reinterpret_cast<_int*>(p)); });
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("FadeIn"), [this](void* p) {this->Set_FadeIn(); });
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("FadeOut"), [this](void* p) {this->Set_FadeOut(); });
|
||||
m_bActive = true;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -160,8 +164,8 @@ void CSpell_Anim::Set_FadeIn()
|
||||
|
||||
void CSpell_Anim::Change_Image(_int SpellID)
|
||||
{
|
||||
_wstring pImageName = static_cast<CUIObject*>(m_pOwner)->Get_Info(SpellID).pImage_Name;
|
||||
m_iTotalFrames = static_cast<CUIObject*>(m_pOwner)->Get_Info(SpellID).iAnimNum;
|
||||
_wstring pImageName = m_pInfoInstance->Get_Spell_Info(SpellID).pImage_Name;
|
||||
m_iTotalFrames = m_pInfoInstance->Get_Spell_Info(SpellID).iAnimNum;
|
||||
if (m_pDiffuse_TextureCom)
|
||||
{
|
||||
Remove_Component<CTexture>();
|
||||
|
||||
@@ -46,6 +46,7 @@ HRESULT CSpell_Header::Initialize(void* pArg)
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("Slot_Hover"), [this](void* p) {this->Set_SkillType(*reinterpret_cast<_int*>(p)); });
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("FadeIn"), [this](void* p) {this->Set_FadeIn(); });
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("FadeOut"), [this](void* p) {this->Set_FadeOut(); });
|
||||
m_bActive = true;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -41,6 +41,7 @@ HRESULT CSpell_Header_Line::Initialize(void* pArg)
|
||||
m_fAlphaTime = 5.f;
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("FadeIn"), [this](void* p) {this->Set_FadeIn(); });
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("FadeOut"), [this](void* p) {this->Set_FadeOut(); });
|
||||
m_bActive = true;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -47,6 +47,7 @@ HRESULT CSpell_Hover::Initialize(void* pArg)
|
||||
m_pVIBufferCom->Set_Pos(-185.f, 375.f, m_fOffSetX, m_fOffSetY, m_iCols);
|
||||
m_pVIBufferCom->Set_Size(m_fSizeX, m_fSizeY);
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("Slot_Hover"), [this](void* p) {this->Set_SkillType(*reinterpret_cast<_int*>(p)); });
|
||||
m_bActive = true;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -48,6 +48,7 @@ HRESULT CSpell_Hover_Effect::Initialize(void* pArg)
|
||||
m_pVIBufferCom->Set_Pos(-185.f, 375.f, m_fOffSetX, m_fOffSetY, m_iCols);
|
||||
m_pVIBufferCom->Set_Size(m_fSizeX, m_fSizeY);
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("Slot_Hover"), [this](void* p) {this->Set_SkillType(*reinterpret_cast<_int*>(p)); });
|
||||
m_bActive = true;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -49,6 +49,7 @@ HRESULT CSpell_List::Initialize(void* pArg)
|
||||
m_fDelayTime = 0.5f;
|
||||
m_iPerSpell_Slot = -1;
|
||||
Color();
|
||||
m_bActive = true;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -48,6 +48,7 @@ HRESULT CSpell_List_Image::Initialize(void* pArg)
|
||||
m_pVIBufferCom->Set_Pos(-185.f, 375.f, m_fOffSetX, m_fOffSetY, m_iCols);
|
||||
m_pVIBufferCom->Set_Size(m_fSizeX, m_fSizeY);
|
||||
m_pVIBufferCom->Set_ImageUV(pUVDesc);
|
||||
m_bActive = true;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -14,8 +14,8 @@
|
||||
#include "Current_Slot_Number.h"
|
||||
#include "Spell_Header.h"
|
||||
#include "Spell_Header_Line.h"
|
||||
//#include "Spell_Data.h"
|
||||
#include "Spell_Anim.h"
|
||||
#include "InfoInstance.h"
|
||||
|
||||
CSpell_Panel::CSpell_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
:CPanelObject(pDevice, pContext)
|
||||
@@ -23,7 +23,8 @@ CSpell_Panel::CSpell_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
}
|
||||
|
||||
CSpell_Panel::CSpell_Panel(const CSpell_Panel& rhs)
|
||||
:CPanelObject(rhs)
|
||||
:CPanelObject(rhs),
|
||||
m_pInfoInstance(CInfoInstance::GetInstance())
|
||||
{
|
||||
}
|
||||
|
||||
@@ -58,7 +59,10 @@ HRESULT CSpell_Panel::Initialize(void* pArg)
|
||||
m_iSpellType = -1;
|
||||
m_iPendingSpell = -1;
|
||||
m_fDelayTime = 1.f;
|
||||
m_bActive = true;
|
||||
|
||||
Add_Function(TEXT("Hover"), [this](void* p) {this->Slot_Chack(p); });
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -132,11 +136,12 @@ _vector CSpell_Panel::Get_WorldPostion()
|
||||
return m_pTransformCom->Get_State(STATE::POSITION);
|
||||
}
|
||||
|
||||
const CUIObject::SPELLINFO CSpell_Panel::Get_Info(_int Index)
|
||||
const Client::SPELL_INFO CSpell_Panel::Get_SpellInfo(_int SkillID)
|
||||
{
|
||||
return m_Info[Index];
|
||||
return m_pInfoInstance->Get_Spell_Info(SkillID);
|
||||
}
|
||||
|
||||
|
||||
void CSpell_Panel::Slot_Chack(void* pArg)
|
||||
{
|
||||
CUIObject::HOVER_INFO* Info = static_cast<CUIObject::HOVER_INFO*>(pArg);
|
||||
|
||||
@@ -49,6 +49,7 @@ HRESULT CSpell_Preview::Initialize(void* pArg)
|
||||
m_fSortZ = 0.02f;
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("FadeIn"), [this](void* p) {this->Set_FadeIn(); });
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("FadeOut"), [this](void* p) {this->Set_FadeOut(); });
|
||||
m_bActive = true;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -46,6 +46,8 @@ HRESULT CSpell_State::Initialize(void* pArg)
|
||||
m_pVIBufferCom->Set_Cloned(true);
|
||||
m_pVIBufferCom->Set_Pos(-185.f, 375.f, m_fOffSetX, m_fOffSetY, m_iCols);
|
||||
m_pVIBufferCom->Set_Size(m_fSizeX, m_fSizeY);
|
||||
m_bActive = true;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -48,6 +48,8 @@ HRESULT CSpell_Vidio_Border::Initialize(void* pArg)
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("Slot_Hover"), [this](void* p) {this->Set_SkillType(*reinterpret_cast<_int*>(p)); });
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("FadeIn"), [this](void* p) {this->Set_FadeIn(); });
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("FadeOut"), [this](void* p) {this->Set_FadeOut(); });
|
||||
m_bActive = true;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -254,6 +254,9 @@ HRESULT CTrailObject::Render()
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_POSTEX::TRAIL))))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(m_pGameInstance->Bind_DepthStencil(m_pShaderCom, "g_DepthStencilTexture")))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(m_pTrailCom->Render()))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
@@ -57,7 +57,7 @@ HRESULT CTroll::Initialize(void* pArg)
|
||||
|
||||
|
||||
|
||||
m_pCharacter_Controller->Set_Position(XMVectorSet(30.f, 10.f, 30.f, 1.f));
|
||||
m_pCharacter_Controller->Set_Position(XMVectorSet(3.f, -5.f, -20.f, 1.f));
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,132 @@
|
||||
#include "pch.h"
|
||||
#include "UI_Manager.h"
|
||||
#include "GameInstance.h"
|
||||
#include "GamePlay_Canvas.h"
|
||||
#include "Spell_Canvas.h"
|
||||
|
||||
CUI_Manager::CUI_Manager(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
:CUIObject(pDevice, pContext)
|
||||
{
|
||||
}
|
||||
|
||||
CUI_Manager::CUI_Manager(const CUI_Manager& rhs)
|
||||
:CUIObject(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CUI_Manager::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CUI_Manager::Initialize(void* pArg)
|
||||
{
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
m_bCanvas_Change = false;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CUI_Manager::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
}
|
||||
|
||||
void CUI_Manager::Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_pGameInstance->Key_Down(DIK_T))
|
||||
{
|
||||
m_bCanvas_Change = !m_bCanvas_Change;
|
||||
}
|
||||
|
||||
if (m_bCanvas_Change == false)
|
||||
{
|
||||
static_cast<CCanvasObject*>(m_pGamePlay_Canves)->Visible(true);
|
||||
static_cast<CCanvasObject*>(m_pSpell_Panel)->Visible(false);
|
||||
}
|
||||
else
|
||||
{
|
||||
static_cast<CCanvasObject*>(m_pSpell_Panel)->Visible(true);
|
||||
static_cast<CCanvasObject*>(m_pGamePlay_Canves)->Visible(false);
|
||||
}
|
||||
}
|
||||
|
||||
void CUI_Manager::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CUI_Manager::Render()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
_vector CUI_Manager::Get_WorldPostion()
|
||||
{
|
||||
return m_pTransformCom->Get_State(STATE::POSITION);
|
||||
}
|
||||
|
||||
HRESULT CUI_Manager::Bind_ShaderResources()
|
||||
{
|
||||
if (FAILED(Add_Component<CVIBuffer_Rect>(g_iStaticLevel, &m_pVIBufferCom))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CUI_Manager::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CGamePlay_Canvas>(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast<CGamePlay_Canvas**>(&m_pGamePlay_Canves)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CSpell_Canvas>(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast<CSpell_Canvas**>(&m_pSpell_Panel)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CUI_Manager::Clear_Penel()
|
||||
{
|
||||
}
|
||||
|
||||
CUI_Manager* CUI_Manager::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CUI_Manager* pInstance = new CUI_Manager(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CUI_Manager");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
CGameObject* CUI_Manager::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CUI_Manager* pInstance = new CUI_Manager(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CUI_Manager");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CUI_Manager::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pVIBufferCom);
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
|
||||
void CUI_Manager::Describe_Entity()
|
||||
{
|
||||
}
|
||||
|
||||
#endif // _DEBUG
|
||||
@@ -98,8 +98,8 @@ HRESULT CWand::Render()
|
||||
}
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
m_pGripShape->Draw(m_pTransformCom->Get_XMWorldMatrix(), m_pGameInstance->Get_Transform_Matrix(D3DTS::VIEW), m_pGameInstance->Get_Transform_Matrix(D3DTS::PROJ), DirectX::Colors::Green, nullptr, true);
|
||||
m_pSubShape->Draw(XMLoadFloat4x4(&m_pWandTipMatrix), m_pGameInstance->Get_Transform_Matrix(D3DTS::VIEW), m_pGameInstance->Get_Transform_Matrix(D3DTS::PROJ), DirectX::Colors::Purple, nullptr, true);
|
||||
//m_pGripShape->Draw(m_pTransformCom->Get_XMWorldMatrix(), m_pGameInstance->Get_Transform_Matrix(D3DTS::VIEW), m_pGameInstance->Get_Transform_Matrix(D3DTS::PROJ), DirectX::Colors::Green, nullptr, true);
|
||||
//m_pSubShape->Draw(XMLoadFloat4x4(&m_pWandTipMatrix), m_pGameInstance->Get_Transform_Matrix(D3DTS::VIEW), m_pGameInstance->Get_Transform_Matrix(D3DTS::PROJ), DirectX::Colors::Purple, nullptr, true);
|
||||
#endif // _DEBUG
|
||||
|
||||
return S_OK;
|
||||
@@ -110,6 +110,11 @@ _vector CWand::Get_WorldPostion()
|
||||
return XMLoadFloat4((_float4*)&m_pWandTipMatrix.m[3][0]);
|
||||
}
|
||||
|
||||
_matrix CWand::Get_WorldMatrix()
|
||||
{
|
||||
return XMLoadFloat4x4(&m_pWandTipMatrix);
|
||||
}
|
||||
|
||||
|
||||
HRESULT CWand::Ready_Components()
|
||||
{
|
||||
|
||||
@@ -32,7 +32,8 @@ class CBombard final : public CEffect_Container
|
||||
virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override;
|
||||
private:
|
||||
_wstring m_wstrEffectName = {};
|
||||
class CPartObject* m_pLight_Projectile = {};
|
||||
class CEffectParts* m_pLight_Projectile = {};
|
||||
_vector m_vCameraLook = {};
|
||||
public:
|
||||
static CBombard* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual void Free() override;
|
||||
|
||||
@@ -0,0 +1,49 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "Effect_Container.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CBombardSide final : public CEffect_Container
|
||||
{
|
||||
private:
|
||||
CBombardSide(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CBombardSide(const CBombardSide& rhs);
|
||||
virtual ~CBombardSide() = 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) 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_pWandLight = { nullptr };
|
||||
class CTrailObject* m_pWandTrail = { nullptr };
|
||||
class CEffectParts* m_pWandParticle = { nullptr };
|
||||
|
||||
public:
|
||||
static CBombardSide* 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
|
||||
@@ -12,7 +12,7 @@ namespace Client
|
||||
enum class SHADER_PASS_NORTEX { DEFAULT, TERRAIN, ENV_TERRAIN_ANISO, END };
|
||||
enum class SHADER_PASS_PARTICLE { EXPLOSION, END };
|
||||
enum class SHADER_PASS_POSTEX { DEFAULT, SCISSOR, UI, UVMOVE, TRAIL, TRAIL_BLUR, TRAIL_BLOOM, END };
|
||||
enum class SHADER_PASS_INSTANCE_MODEL { DEFAULT, NON_NOMALMAP, BLUR, WEIGHTBLEND, NON_WORLD, NON_WORLD_BLUR, BLEND, BLEND_NOWORLD, BLOOM, BLOOM_NOWORLD, END };
|
||||
enum class SHADER_PASS_INSTANCE_MODEL { DEFAULT, NON_NOMALMAP, BLUR, WEIGHTBLEND, NON_WORLD, NON_WORLD_BLUR, BLEND, BLEND_NOWORLD, BLOOM, BLOOM_NOWORLD, BLUR_NO_EMMISVE, BLUR_NO_WORLD_NO_EMISSIVE, WEIGHTBLEND_FOR_BLEND, END };
|
||||
enum class SHADER_PASS_UIEDITOR { DEFAULT, ALPHABLEND, CLAMP, CURSOR, LODING, HOLD_ROTATION, MISSION, QUESTYPE, UVMULT, NINECLICE, ROTATION, SLOT, TYPE, HPBAR, MAGIC_METER, MAGIC_ICON, REMOVEUV, REVELIO, POTION, MAGIC_ITEM, SPELL_PREVIEW, SPELL_HEADER, SPELL_HEADER_LINE, END };
|
||||
enum class SHADER_PASS_UIINTANCE { DEFAULT, ALPHABLEND, MAGIC_METER, SPELL_LIST, EESSENTIAL_SPELL_SOLT, EESSENTIAL_SPELL, COLOR, SPELL_HOVER, SPELL_SLOT_EFFECT, END };
|
||||
|
||||
@@ -24,7 +24,10 @@ namespace Client
|
||||
BOMBARDA, INCENDIO, DISILLUSIONMENT, LUMOS, REPARO, WINGARDIUM_LEVIOSA,
|
||||
CONJURING_SPELL, ALTERING_SPELL, EVANESCO, AVADA_KEDAVRA, CRUCIO, IMPERIO,
|
||||
BEAST_PETTING_BRUSH, BEAST_FEED, NAB_SACK, JAP, REVELIO, PROTEGO, STUPEFY,
|
||||
ANCIENT_MAGIC_THROW, ANCIENT_MAGIC, ALOHOMORA, PETRIFICUS_TOTALUS, END
|
||||
|
||||
ANCIENT_MAGIC_THROW, ANCIENT_MAGIC, ALOHOMORA, PETRIFICUS_TOTALUS,
|
||||
JAP_SIDE, BOMBARDA_SIDE , DESCENDO_SIDE , LEVIOSO_SIDE
|
||||
,END
|
||||
};
|
||||
enum class BLOOM_TYPE { NONE, BASIC, MULTIPLY, END };
|
||||
}
|
||||
|
||||
@@ -18,15 +18,16 @@ namespace Client
|
||||
|
||||
typedef struct tagSpellInfo
|
||||
{
|
||||
_uint iSpell_ID{};
|
||||
_wstring pSpell_Name;
|
||||
_uint iSpell_Type{};
|
||||
_uint iSkill_Type{};
|
||||
_float fSpell_CoolTime{};
|
||||
_float fDuration{};
|
||||
_uint iAnimNum{};
|
||||
_wstring pSpellInfo;
|
||||
_bool bSpell_Lock = false;
|
||||
_bool bEquip_Spell = false;
|
||||
}SPELLINFO;
|
||||
_int iSpell_ID{};
|
||||
_wstring pSpell_Name;
|
||||
_wstring pImage_Name;
|
||||
_int iSpell_Type{};
|
||||
_int iSkill_Type{};
|
||||
_float fSpell_CoolTime{};
|
||||
_float fDuration{};
|
||||
_int iAnimNum{};
|
||||
_wstring pSpellInfo;
|
||||
_bool bSpell_Lock = false;
|
||||
_bool bEquip_Spell = false;
|
||||
}SPELL_INFO;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,48 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "Effect_Container.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CDecendoSide final : public CEffect_Container
|
||||
{
|
||||
private:
|
||||
CDecendoSide(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CDecendoSide(const CDecendoSide& rhs);
|
||||
virtual ~CDecendoSide() = 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) 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_pWandLight = { nullptr };
|
||||
class CTrailObject* m_pWandTrail = { nullptr };
|
||||
|
||||
public:
|
||||
static CDecendoSide* 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
|
||||
@@ -86,8 +86,9 @@ class CEffectObject abstract : public CPartObject
|
||||
|
||||
SHADER_PASS_INSTANCE_MODEL eShaderPass = { SHADER_PASS_INSTANCE_MODEL::NON_NOMALMAP };
|
||||
|
||||
_bool isDiffuseBlur = {};
|
||||
_bool isMaskBlur = {};
|
||||
_bool isBlurNoEmissive = {};
|
||||
|
||||
_bool isTexBlur = {};
|
||||
_bool isBlurDissolve = {};
|
||||
_bool isBlurReverseDissolve = {};
|
||||
|
||||
@@ -103,7 +104,6 @@ class CEffectObject abstract : public CPartObject
|
||||
|
||||
BLOOM_TYPE eBloomType = {};
|
||||
|
||||
|
||||
}EFFECT_INFO;
|
||||
|
||||
|
||||
|
||||
@@ -21,12 +21,16 @@ class CEffectParts final : public CEffectObject
|
||||
virtual void Priority_Update(_float fTimeDelta) override;
|
||||
virtual void Update(_float fTimeDelta) override;
|
||||
virtual void Late_Update(_float fTimeDelta) override;
|
||||
virtual _vector Get_WorldPostion() override;
|
||||
|
||||
|
||||
|
||||
private:
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
virtual HRESULT Ready_Components(void* pArg) override;
|
||||
|
||||
|
||||
public:
|
||||
static CEffectParts* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
|
||||
@@ -25,6 +25,8 @@ class CEffect_Container abstract : public CContainerObject
|
||||
virtual HRESULT Pre_Setting(CGameObject* pObject);
|
||||
HRESULT Load_Package(const _char* pPath);
|
||||
|
||||
public:
|
||||
|
||||
protected:
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
@@ -35,8 +37,9 @@ class CEffect_Container abstract : public CContainerObject
|
||||
void Update_Event(_float fTimeDelta);
|
||||
HRESULT Reset_EffectParts();
|
||||
protected:
|
||||
class CPhysXEffectHitBox* m_pPhysHitBox = {};
|
||||
|
||||
_float4 m_vStartPos = {};
|
||||
_float4 m_vEndPos = {};
|
||||
PSX::PxSweepBuffer hitBuffer = {};
|
||||
protected:
|
||||
_wstring m_wstrEffectName = {};
|
||||
|
||||
|
||||
@@ -44,9 +44,9 @@ class CInfoInstance final : public CBase
|
||||
#pragma endregion
|
||||
#pragma region Spell_INFO
|
||||
HRESULT Load_SpellInfo(const _char* pFilePath);
|
||||
SPELL_INFO Get_Spell_Info(_int Spell_Info);
|
||||
void Change_Canvas();
|
||||
#pragma endregion
|
||||
|
||||
|
||||
private:
|
||||
CGameInstance* m_pGameInstance = { nullptr };
|
||||
ID3D11Device* m_pDevice = { nullptr };
|
||||
@@ -55,6 +55,8 @@ class CInfoInstance final : public CBase
|
||||
class CPlayerInfo* m_pPlayerInfo = { nullptr };
|
||||
class CMonsterInfo* m_pMonsterInfo = { nullptr };
|
||||
class CMapInfo* m_pMapInfo = { nullptr };
|
||||
class CSkill_Data* m_pSkillInfo= { nullptr };
|
||||
|
||||
|
||||
#ifdef _DEBUG
|
||||
_string m_strLog = {};
|
||||
|
||||
@@ -0,0 +1,55 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "Effect_Container.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CLevioso final : public CEffect_Container
|
||||
{
|
||||
private:
|
||||
CLevioso(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CLevioso(const CLevioso& rhs);
|
||||
virtual ~CLevioso() = 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) 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 CPlayer* m_pPlayer = {};
|
||||
|
||||
class CEffectParts* m_pLeviosoPJ_0 = { nullptr };
|
||||
class CEffectParts* m_pLeviosoPJ_1 = { nullptr };
|
||||
class CTrailObject* m_pLeviosoTrail = { nullptr };
|
||||
class CEffectParts* m_pTrail_PT_0 = { nullptr };
|
||||
|
||||
_vector m_vOwnerLook = {};
|
||||
_float m_fAccRotateTime = {};
|
||||
_float m_fTurnSpeed = {};
|
||||
_float m_fRange = {};
|
||||
public:
|
||||
static CLevioso* 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
|
||||
@@ -0,0 +1,48 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "Effect_Container.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CLeviosoSide final : public CEffect_Container
|
||||
{
|
||||
private:
|
||||
CLeviosoSide(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CLeviosoSide(const CLeviosoSide& rhs);
|
||||
virtual ~CLeviosoSide() = 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) 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_pWandLight = { nullptr };
|
||||
class CTrailObject* m_pWandTrail = { nullptr };
|
||||
|
||||
public:
|
||||
static CLeviosoSide* 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
|
||||
@@ -0,0 +1,48 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "Effect_Container.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CLumos final : public CEffect_Container
|
||||
{
|
||||
private:
|
||||
CLumos(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CLumos(const CLumos& rhs);
|
||||
virtual ~CLumos() = 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) 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_pLumos_Light = {};
|
||||
|
||||
|
||||
public:
|
||||
static CLumos* 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
|
||||
@@ -26,6 +26,9 @@ class CMapContainer abstract : public CContainerObject
|
||||
virtual void Late_Update(_float fTimeDelta) override;
|
||||
virtual HRESULT Render() override;
|
||||
|
||||
void ReadyForPhysX();
|
||||
void ConvertToPhysX();
|
||||
|
||||
public:
|
||||
template<typename T>
|
||||
HRESULT Add_Part(const _string& strPartKey, _uint iPrototypeLevelIndex, T** ppOut, void* pArg = nullptr) {
|
||||
@@ -53,10 +56,14 @@ class CMapContainer abstract : public CContainerObject
|
||||
protected:
|
||||
_uint m_iMaxLodLevel = {};
|
||||
|
||||
vector<class CPartObject*> m_ColiisonPartObjects;
|
||||
vector<class CPartObject*> m_ColiisonPartObjects = {};
|
||||
|
||||
public:
|
||||
virtual void Free() override;
|
||||
#ifdef _DEBUG
|
||||
virtual void Describe_Entity() override;
|
||||
#endif // _DEBUG
|
||||
|
||||
};
|
||||
|
||||
NS_END
|
||||
|
||||
@@ -36,6 +36,10 @@ class CMapInfo final : public CBase
|
||||
public:
|
||||
static CMapInfo* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContex);
|
||||
virtual void Free() override;
|
||||
#ifdef _DEBUG
|
||||
virtual void Describe_Entity();
|
||||
#endif // _DEBUG
|
||||
|
||||
};
|
||||
|
||||
NS_END
|
||||
|
||||
@@ -20,13 +20,16 @@ class CMapObject_Collision final : public CMapPartObject // 충돌용 Mesh
|
||||
|
||||
public:
|
||||
virtual _wstring Get_PrototypeTag(_uint iLodIndex = 0);
|
||||
|
||||
void ReadyForPhysX();
|
||||
void ConvertToPhysX();
|
||||
private:
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
vector<vector<CRigidBody_Static*>> m_RigidBodies;
|
||||
vector<CModel*> m_pModelComs;
|
||||
|
||||
_uint m_iLodIndex = {};
|
||||
_bool m_bReadyToCreatePhysX = { false };
|
||||
_bool m_bConverted = { false };
|
||||
|
||||
vector<_wstring> m_ModelPrototypeTags;
|
||||
vector<_uint> m_ModelPathIndices = { };
|
||||
|
||||
@@ -18,7 +18,6 @@ class CNomalJap final : public CEffect_Container
|
||||
public:
|
||||
virtual void Priority_Update(_float fTimeDelta) override;
|
||||
virtual void Update(_float fTimeDelta) override;
|
||||
void MoveHitBox(Engine::_float fTimeDelta);
|
||||
virtual void Late_Update(_float fTimeDelta) override;
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,49 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "Effect_Container.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CNomalJapSide final : public CEffect_Container
|
||||
{
|
||||
private:
|
||||
CNomalJapSide(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CNomalJapSide(const CNomalJapSide& rhs);
|
||||
virtual ~CNomalJapSide() = 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) 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_pWandLight = { nullptr };
|
||||
class CTrailObject* m_pWandTrail = { nullptr };
|
||||
class CEffectParts* m_pWandParticle = { nullptr };
|
||||
|
||||
public:
|
||||
static CNomalJapSide* 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
|
||||
@@ -1,62 +1,44 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "GameObject.h"
|
||||
#include "Base.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
class CGameInstance;
|
||||
class CUIObject;
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CSkill_Data final : public CGameObject
|
||||
class CSkill_Data final : public CBase
|
||||
{
|
||||
public:
|
||||
typedef struct tagSpellInfo
|
||||
{
|
||||
_int iSpell_ID{};
|
||||
_string pSpell_Name;
|
||||
_string pImage_Name;
|
||||
_int iSpell_Type{};
|
||||
_int iSkill_Type{};
|
||||
_float fSpell_CoolTime{};
|
||||
_float fDuration{};
|
||||
_int iAnimNum{};
|
||||
_string pSpellInfo;
|
||||
_bool bSpell_Lock = false;
|
||||
_bool bEquip_Spell = false;
|
||||
}SPELLINFO;
|
||||
|
||||
private:
|
||||
CSkill_Data(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CSkill_Data(const CSkill_Data& rhs);
|
||||
virtual ~CSkill_Data() = default;
|
||||
CSkill_Data();
|
||||
~CSkill_Data() = default;
|
||||
|
||||
public:
|
||||
virtual void Priority_Update(_float fTimeDelta);
|
||||
virtual void Update(_float fTimeDelta);
|
||||
virtual void Late_Update(_float fTimeDelta);
|
||||
virtual HRESULT Render() override;
|
||||
virtual _vector Get_WorldPostion() override;
|
||||
void Update(_float fTimeDelta);
|
||||
void Change_Level();
|
||||
|
||||
private:
|
||||
virtual HRESULT Bind_ShaderResources() override;
|
||||
virtual HRESULT Ready_Components(void* pArg) override;
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
|
||||
public:
|
||||
//const SPELLINFO& Get_Info(_uint SpellID) const;
|
||||
HRESULT Load_SpellInfo(const _char* pFilePath);
|
||||
|
||||
public:
|
||||
const SPELL_INFO& Get_Info(_uint SpellID) const;
|
||||
|
||||
private:
|
||||
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
||||
CGameObject* m_pSpell_Panel = { nullptr };
|
||||
SPELL_INFO SpellInfo[34] = {};
|
||||
|
||||
private:
|
||||
HRESULT Initialize(ID3D11Device* pDevice, ID3D11DeviceContext* pContex);
|
||||
|
||||
|
||||
SPELLINFO SpellInfo = {};
|
||||
public:
|
||||
static CSkill_Data* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
virtual void Free() override;
|
||||
void Describe_Entity() override;
|
||||
};
|
||||
|
||||
NS_END
|
||||
|
||||
@@ -39,11 +39,15 @@ class CSpell_Anim final : public CElementObject
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
|
||||
private:
|
||||
CInfoInstance* m_pInfoInstance = { nullptr };
|
||||
|
||||
CTexture* m_pDiffuse_TextureCom = { nullptr };
|
||||
CTexture* m_pDesendo_TextureCom = { nullptr };
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
||||
|
||||
|
||||
|
||||
_int m_iTotalFrames{}; // 전체 프레임 수
|
||||
_float m_fFrameTime{}; // 한 프레임당 시간(초)
|
||||
_int m_iCurrentFrame{}; // 현재 보여줄 프레임
|
||||
|
||||
@@ -27,7 +27,7 @@ class CSpell_Panel final : public CPanelObject
|
||||
virtual _vector Get_WorldPostion() override;
|
||||
|
||||
public:
|
||||
virtual const SPELLINFO Get_Info(_int Index) override;
|
||||
const SPELL_INFO Get_SpellInfo(_int SkillID);
|
||||
|
||||
private:
|
||||
void Slot_Chack(void* pArg);
|
||||
@@ -41,6 +41,8 @@ class CSpell_Panel final : public CPanelObject
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
|
||||
private:
|
||||
CInfoInstance* m_pInfoInstance = { nullptr };
|
||||
|
||||
CTexture* m_pDiffuse_TextureCom = { nullptr };
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
||||
@@ -63,7 +65,6 @@ class CSpell_Panel final : public CPanelObject
|
||||
|
||||
_int m_iHoverSlot[2] = { -1,-1 };
|
||||
|
||||
SPELLINFO m_Info[34] = {};
|
||||
CUIObject::HOVER_INFO m_Hover;
|
||||
|
||||
_int m_iPendingSpell = -1;
|
||||
|
||||
@@ -0,0 +1,55 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "UIObject.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
class CTexture;
|
||||
class CShader;
|
||||
class CVIBuffer_Rect;
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CUI_Manager final : public CUIObject
|
||||
{
|
||||
private:
|
||||
CUI_Manager(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CUI_Manager(const CUI_Manager& rhs);
|
||||
virtual ~CUI_Manager() = default;
|
||||
|
||||
public:
|
||||
virtual void Priority_Update(_float fTimeDelta);
|
||||
virtual void Update(_float fTimeDelta);
|
||||
virtual void Late_Update(_float fTimeDelta);
|
||||
virtual HRESULT Render() override;
|
||||
virtual _vector Get_WorldPostion() override;
|
||||
|
||||
private:
|
||||
virtual HRESULT Bind_ShaderResources() override;
|
||||
virtual HRESULT Ready_Components(void* pArg) override;
|
||||
//virtual HRESULT Ready_Panel(void* pArg) override;
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
|
||||
public:
|
||||
void Clear_Penel();
|
||||
|
||||
private:
|
||||
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
||||
|
||||
CGameObject* m_pGamePlay_Canves= { nullptr };
|
||||
CGameObject* m_pSpell_Panel = { nullptr };
|
||||
_bool m_bCanvas_Change = { false };
|
||||
|
||||
public:
|
||||
static CUI_Manager* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
virtual void Free() override;
|
||||
#ifdef _DEBUG
|
||||
void Describe_Entity() override;
|
||||
#endif // _DEBUG
|
||||
|
||||
};
|
||||
|
||||
NS_END;
|
||||
@@ -25,6 +25,7 @@ class CWand final : public CPartObject
|
||||
virtual void Late_Update(_float fTimeDelta) override;
|
||||
virtual HRESULT Render() override;
|
||||
virtual _vector Get_WorldPostion() override;
|
||||
_matrix Get_WorldMatrix();
|
||||
public:
|
||||
|
||||
private:
|
||||
|
||||
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.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user