Merge branch 'Develope' into Shader
This commit is contained in:
@@ -168,6 +168,7 @@ call Update_Resources.bat
|
||||
<ClInclude Include="..\Public\CallBack_Ranrok_HitReport.h" />
|
||||
<ClInclude Include="..\Public\Camera_Model.h" />
|
||||
<ClInclude Include="..\Public\Goblin_Assassin.h" />
|
||||
<ClInclude Include="..\Public\Goblin_Assassin_Spector.h" />
|
||||
<ClInclude Include="..\Public\Goblin_Sword.h" />
|
||||
<ClInclude Include="..\Public\Ranrok_Breath.h" />
|
||||
<ClInclude Include="..\Public\Ranrok_FireBall.h" />
|
||||
@@ -416,6 +417,7 @@ call Update_Resources.bat
|
||||
<ClCompile Include="..\Private\CallBack_Ranrok_HitReport.cpp" />
|
||||
<ClCompile Include="..\Private\Camera_Model.cpp" />
|
||||
<ClCompile Include="..\Private\Goblin_Assassin.cpp" />
|
||||
<ClCompile Include="..\Private\Goblin_Assassin_Spector.cpp" />
|
||||
<ClCompile Include="..\Private\Goblin_Assassin_States.cpp" />
|
||||
<ClCompile Include="..\Private\Goblin_Sword.cpp" />
|
||||
<ClCompile Include="..\Private\Ranrok_Breath.cpp" />
|
||||
|
||||
@@ -404,9 +404,6 @@
|
||||
<ClInclude Include="..\Public\Goblin_Spector.h">
|
||||
<Filter>02.GameObjects\NPC\Hostile\Monster\Goblin\Goblin_Spector</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Goblin_Spector.h">
|
||||
<Filter>02.GameObjects\NPC\Hostile\Monster\Goblin\Goblin_Spector</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Goblin.h">
|
||||
<Filter>02.GameObjects\NPC\Hostile\Monster\Goblin\Goblin_Warrior</Filter>
|
||||
</ClInclude>
|
||||
@@ -764,6 +761,12 @@
|
||||
<ClInclude Include="..\Public\State_Dash.h">
|
||||
<Filter>04.Mechanic\State\Movement\Dash</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Goblin_Spector.h">
|
||||
<Filter>02.GameObjects\NPC\Hostile\Monster\Goblin\Goblin_Spector\Goblin_Warrior_Spector</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Goblin_Assassin_Spector.h">
|
||||
<Filter>02.GameObjects\NPC\Hostile\Monster\Goblin\Goblin_Spector\Goblin_Assassin_Spector</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Image Include="Client.ico">
|
||||
@@ -1590,6 +1593,12 @@
|
||||
<Filter Include="04.Mechanic\State\Movement\Dash">
|
||||
<UniqueIdentifier>{6d1f0862-40a4-4c0b-9921-87fe6af2008b}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\NPC\Hostile\Monster\Goblin\Goblin_Spector\Goblin_Warrior_Spector">
|
||||
<UniqueIdentifier>{0c62f4f7-a0e6-4ff2-a4dd-25e3dd79709e}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\NPC\Hostile\Monster\Goblin\Goblin_Spector\Goblin_Assassin_Spector">
|
||||
<UniqueIdentifier>{bf7cf91b-742f-4913-8af2-39ed94d19e23}</UniqueIdentifier>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="Client.cpp">
|
||||
@@ -1988,9 +1997,6 @@
|
||||
<ClCompile Include="..\Private\Enemy_Panel.cpp">
|
||||
<Filter>02.GameObjects\UI\GamePlay_Canvas\Enemy_Penel</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Goblin_Spector.cpp">
|
||||
<Filter>02.GameObjects\NPC\Hostile\Monster\Goblin\Goblin_Spector</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Goblin.cpp">
|
||||
<Filter>02.GameObjects\NPC\Hostile\Monster\Goblin\Goblin_Warrior</Filter>
|
||||
</ClCompile>
|
||||
@@ -2301,6 +2307,12 @@
|
||||
<ClCompile Include="..\Private\PlayerRobe.cpp">
|
||||
<Filter>02.GameObjects\Player\Robe</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Goblin_Spector.cpp">
|
||||
<Filter>02.GameObjects\NPC\Hostile\Monster\Goblin\Goblin_Spector\Goblin_Warrior_Spector</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Goblin_Assassin_Spector.cpp">
|
||||
<Filter>02.GameObjects\NPC\Hostile\Monster\Goblin\Goblin_Spector\Goblin_Assassin_Spector</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\Private\Goblin_States.cpp">
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
#include "Layer.h"
|
||||
#include "Player.h"
|
||||
#include "Goblin_Sword.h"
|
||||
#include "Goblin_Spector.h"
|
||||
#include "Goblin_Assassin_Spector.h"
|
||||
#include "Effect_Container.h"
|
||||
#include "EffectPool.h"
|
||||
#include "MapElement_Interactable.h"
|
||||
@@ -498,6 +498,7 @@ HRESULT CGoblin_Assassin::Ready_Parts()
|
||||
|
||||
Goblin_SwordDesc.pParentTransform = m_pTransformCom;
|
||||
Goblin_SwordDesc.pSocketMatrices = m_pModelCom->Get_BoneMatrixPtr("SKT_LeftHand");
|
||||
Goblin_SwordDesc.iIndex = 0;
|
||||
|
||||
if (FAILED(Add_PartObject<CGoblin_Sword>("Goblin_Sword_L", g_iStaticLevel, nullptr, &Goblin_SwordDesc)))
|
||||
{
|
||||
@@ -510,6 +511,7 @@ HRESULT CGoblin_Assassin::Ready_Parts()
|
||||
|
||||
Goblin_SwordDesc.pParentTransform = m_pTransformCom;
|
||||
Goblin_SwordDesc.pSocketMatrices = m_pModelCom->Get_BoneMatrixPtr("SKT_RightHand");
|
||||
Goblin_SwordDesc.iIndex = 1;
|
||||
|
||||
if (FAILED(Add_PartObject<CGoblin_Sword>("Goblin_Sword_R", g_iStaticLevel, nullptr, &Goblin_SwordDesc)))
|
||||
{
|
||||
@@ -518,13 +520,13 @@ HRESULT CGoblin_Assassin::Ready_Parts()
|
||||
}
|
||||
|
||||
|
||||
//CGoblin_Spector::GOBLIN_SPECTOR_DESC Goblin_SpectorDesc{};
|
||||
CGoblin_Assassin_Spector::GOBLIN_SPECTOR_DESC Goblin_SpectorDesc{};
|
||||
|
||||
//Goblin_SpectorDesc.pParentTransform = m_pTransformCom;
|
||||
Goblin_SpectorDesc.pParentTransform = m_pTransformCom;
|
||||
|
||||
//if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CGoblin_Spector>(g_iStaticLevel, NEXT_LEVEL, LAYER_MONSTER, &Goblin_SpectorDesc, this, &m_pGoblinSpector))) {
|
||||
// return E_FAIL;
|
||||
//}
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CGoblin_Assassin_Spector>(g_iStaticLevel, NEXT_LEVEL, LAYER_MONSTER, &Goblin_SpectorDesc, this, &m_pGoblinSpector))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
#pragma region EFFECT
|
||||
/* EFFECT */
|
||||
|
||||
@@ -0,0 +1,367 @@
|
||||
#include "pch.h"
|
||||
#include "Goblin_Assassin_Spector.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
#include "InfoInstance.h"
|
||||
#include "Goblin_Assassin.h"
|
||||
#include "Effect_Container.h"
|
||||
#include "Goblin_Sword.h"
|
||||
|
||||
#include "EffectParts.h"
|
||||
#include "TrailObject.h"
|
||||
|
||||
|
||||
CGoblin_Assassin_Spector::CGoblin_Assassin_Spector(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CMonster(pDevice, pContext)
|
||||
{
|
||||
}
|
||||
|
||||
CGoblin_Assassin_Spector::CGoblin_Assassin_Spector(const CGoblin_Assassin_Spector& Prototype)
|
||||
: CMonster(Prototype)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CGoblin_Assassin_Spector::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CGoblin_Assassin_Spector::Initialize(void* pArg)
|
||||
{
|
||||
GOBLIN_SPECTOR_DESC* pDesc = static_cast<GOBLIN_SPECTOR_DESC*> (pArg);
|
||||
m_pParentTransformCom = pDesc->pParentTransform;
|
||||
if (FAILED(__super::Initialize(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(Ready_Components()))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(Ready_Parts()))
|
||||
return E_FAIL;
|
||||
|
||||
m_pInfoInstance->Deregist_ActiveMonster(this);
|
||||
|
||||
m_pGoblin = dynamic_cast<CGoblin_Assassin*>(m_pOwner);
|
||||
SAFE_ADDREF(m_pGoblin);
|
||||
|
||||
m_vOriginScale = m_pTransformCom->Get_Scale();
|
||||
|
||||
m_pLeftHand_BoneMat = m_pModelCom->Get_BoneMatrixPtr("SKT_LeftHand");
|
||||
m_pRightHand_BoneMat = m_pModelCom->Get_BoneMatrixPtr("SKT_RightHand");
|
||||
|
||||
m_pModelCom->Set_AnimationIndex(5);
|
||||
m_pModelCom->Play_Animation(0, m_pTransformCom);
|
||||
|
||||
|
||||
m_bVisible = false;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CGoblin_Assassin_Spector::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CGoblin_Assassin_Spector::Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Update(fTimeDelta);
|
||||
|
||||
m_Offset = _float3(0.f, 0.3f, 0.f);
|
||||
|
||||
_matrix Offset = XMMatrixTranslation(m_Offset.x,
|
||||
m_Offset.y, m_Offset.z);
|
||||
|
||||
m_pTransformCom->Set_WorldMatrix(Offset * XMLoadFloat4x4(m_pParentTransformCom->Get_WorldMatrixPtr()));
|
||||
|
||||
if (m_bVisible)
|
||||
{
|
||||
if (m_vScale.x <= 2.f)
|
||||
{
|
||||
m_vScale.x += fTimeDelta;
|
||||
m_vScale.y += fTimeDelta;
|
||||
m_vScale.z += fTimeDelta;
|
||||
}
|
||||
m_pTransformCom->Set_Scale(m_vScale);
|
||||
m_pModelCom->Set_AnimationIndex(m_pGoblin->Get_Component<CModel>()->Get_AnimIndex());
|
||||
m_pModelCom->Set_CurrentTrackPosition(m_pGoblin->Get_Component<CModel>()->Get_CurrentTrackPosition());
|
||||
Get_PartObject<CGoblin_Sword>("Goblin_Sword_L")->Set_Visible(true);
|
||||
Get_PartObject<CGoblin_Sword>("Goblin_Sword_R")->Set_Visible(true);
|
||||
m_pModelCom->Play_Animation(fTimeDelta, m_pTransformCom);
|
||||
}
|
||||
else {
|
||||
Get_PartObject<CGoblin_Sword>("Goblin_Sword_L")->Set_Visible(false);
|
||||
Get_PartObject<CGoblin_Sword>("Goblin_Sword_R")->Set_Visible(false);
|
||||
m_vScale = { 1.f,1.f,1.f };
|
||||
m_pTransformCom->Set_Scale(m_vOriginScale);
|
||||
m_pModelCom->Set_AnimationIndex(5);
|
||||
}
|
||||
|
||||
if (m_bDisolve) {
|
||||
Get_PartObject<CGoblin_Sword>("Goblin_Sword_L")->Set_Disolve(true);
|
||||
Get_PartObject<CGoblin_Sword>("Goblin_Sword_R")->Set_Disolve(true);
|
||||
m_fDisolveTime += fTimeDelta;
|
||||
if (m_fDisolveTime >= 1.f)
|
||||
{
|
||||
m_fDisolveTime = 0.f;
|
||||
m_bDisolve = false;
|
||||
m_bVisible = false;
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
Describe_Entity();
|
||||
#endif // _DEBUG
|
||||
|
||||
#pragma region TRAIL_UPDATE
|
||||
|
||||
_matrix WorldMat = m_pTransformCom->Get_XMWorldMatrix();
|
||||
|
||||
_matrix LeftHandMatrix = {};
|
||||
_matrix RightHandMatrix = {};
|
||||
_matrix WeaponMatrix = {};
|
||||
|
||||
LeftHandMatrix = XMLoadFloat4x4(m_pLeftHand_BoneMat);
|
||||
RightHandMatrix = XMLoadFloat4x4(m_pRightHand_BoneMat);
|
||||
|
||||
|
||||
for (int i = 0; i < 3; ++i) {
|
||||
LeftHandMatrix.r[i] = XMVector3Normalize(LeftHandMatrix.r[i]);
|
||||
RightHandMatrix.r[i] = XMVector3Normalize(RightHandMatrix.r[i]);
|
||||
WeaponMatrix.r[i] = XMVector3Normalize(WeaponMatrix.r[i]);
|
||||
}
|
||||
|
||||
_matrix WeaponSoket = WeaponMatrix * Get_Component<CTransform>()->Get_XMWorldMatrix();
|
||||
|
||||
m_pLeft_Trail->Trail_Update(LeftHandMatrix * WorldMat, fTimeDelta);
|
||||
m_pRight_Trail->Trail_Update(RightHandMatrix * WorldMat, fTimeDelta);
|
||||
|
||||
#pragma endregion
|
||||
|
||||
}
|
||||
|
||||
void CGoblin_Assassin_Spector::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Late_Update(fTimeDelta);
|
||||
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
|
||||
}
|
||||
|
||||
HRESULT CGoblin_Assassin_Spector::Render()
|
||||
{
|
||||
if (!m_bVisible)
|
||||
return S_OK;
|
||||
if (FAILED(Bind_ShaderResources())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
_uint iNumMeshes = m_pModelCom->Get_NumMeshes();
|
||||
_uint iShaderPass = ENUM_CLASS(SHADER_PASS_ANIM::SPECTOR);
|
||||
|
||||
if (FAILED(Render_Disolve())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
for (_uint i = 0; i < iNumMeshes; i++)
|
||||
{
|
||||
if (FAILED(m_pShaderCom->Bind_Matrices(
|
||||
"g_OffsetMatrix",
|
||||
m_pModelCom->Get_OffsetMatrix(i).data(),
|
||||
(_int)m_pModelCom->Get_OffsetMatrix(i).size()
|
||||
)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Begin(iShaderPass))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pModelCom->Bind_OutPut_SRV_VS(31, 0);
|
||||
m_pModelCom->Bind_OutPut_SRV_VS_Prev(32, 0);
|
||||
|
||||
if (FAILED(m_pModelCom->Render(i))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
_bool bDisolve = false;
|
||||
_float zero = 0.f;
|
||||
m_pShaderCom->Bind_RawValue("g_bDisolve", &bDisolve, sizeof(_bool));
|
||||
m_pShaderCom->Bind_RawValue("g_fDisolveRatio", &zero, sizeof(_float));
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CGoblin_Assassin_Spector::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void CGoblin_Assassin_Spector::OnHit(CGameObject* pOther, CGameObject* pCaller)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CGoblin_Assassin_Spector::Ready_Components()
|
||||
{
|
||||
CTransform::TRANSFORM_DESC Desc = {};
|
||||
|
||||
Desc.fSpeedPerSec = 10.f;
|
||||
Desc.fRotationPerSec = XMConvertToRadians(180.0f);
|
||||
Desc.fRadius = 10.f;
|
||||
|
||||
__super::Ready_Components(&Desc);
|
||||
|
||||
m_strModelPrototypeTag = TEXT("Prototype_Component_Goblin_Spector_Model");
|
||||
|
||||
/* Com_Model */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, m_strModelPrototypeTag,
|
||||
reinterpret_cast<CComponent**>(&m_pModelCom)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CGoblin_Assassin_Spector::Spector_Trail_Visible(_bool isTrailVisible)
|
||||
{
|
||||
m_pLeft_Trail->Set_Visible(isTrailVisible);
|
||||
m_pRight_Trail->Set_Visible(isTrailVisible);
|
||||
|
||||
m_pLeft_Trail->Get_Component<CTrail>()->Reset_Trail();
|
||||
m_pRight_Trail->Get_Component<CTrail>()->Reset_Trail();
|
||||
}
|
||||
|
||||
HRESULT CGoblin_Assassin_Spector::Ready_Parts()
|
||||
{
|
||||
|
||||
{
|
||||
CGoblin_Sword::GOBLIN_SWORD_DESC Goblin_SwordDesc{};
|
||||
|
||||
Goblin_SwordDesc.pParentTransform = m_pTransformCom;
|
||||
Goblin_SwordDesc.pSocketMatrices = m_pModelCom->Get_BoneMatrixPtr("SKT_LeftHand");
|
||||
Goblin_SwordDesc.iIndex = 0;
|
||||
|
||||
if (FAILED(Add_PartObject<CGoblin_Sword>("Goblin_Sword_L", g_iStaticLevel, nullptr, &Goblin_SwordDesc)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
CGoblin_Sword::GOBLIN_SWORD_DESC Goblin_SwordDesc{};
|
||||
|
||||
Goblin_SwordDesc.pParentTransform = m_pTransformCom;
|
||||
Goblin_SwordDesc.pSocketMatrices = m_pModelCom->Get_BoneMatrixPtr("SKT_RightHand");
|
||||
Goblin_SwordDesc.iIndex = 1;
|
||||
|
||||
if (FAILED(Add_PartObject<CGoblin_Sword>("Goblin_Sword_R", g_iStaticLevel, nullptr, &Goblin_SwordDesc)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
|
||||
CPartObject::PARTOBJECT_DESC PartsDesc{};
|
||||
|
||||
PartsDesc.pParentTransform = m_pTransformCom;
|
||||
|
||||
if (FAILED(Add_PartObject<CTrailObject>("Left_Trail", g_iStaticLevel, &m_pLeft_Trail, &PartsDesc))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pLeft_Trail->Load_Trail("../Bin/Resources/Data/Effect/Goblin/GoblinSide/Goblin_Trail_R", static_cast<LEVEL>(g_iStaticLevel));
|
||||
m_pLeft_Trail->Set_Visible(false);
|
||||
|
||||
if (FAILED(Add_PartObject<CTrailObject>("Right_Trail", g_iStaticLevel, &m_pRight_Trail, &PartsDesc))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pRight_Trail->Load_Trail("../Bin/Resources/Data/Effect/Goblin/GoblinSide/Goblin_Trail_R", static_cast<LEVEL>(g_iStaticLevel));
|
||||
m_pRight_Trail->Set_Visible(false);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CGoblin_Assassin_Spector::Bind_ShaderResources()
|
||||
{
|
||||
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_PrevWorldMatrix", m_pTransformCom->Get_PrevWorldMatrixPtr()))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevViewMatrix", D3DTS::VIEW))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevProjMatrix", D3DTS::PROJ))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CGoblin_Assassin_Spector* CGoblin_Assassin_Spector::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CGoblin_Assassin_Spector* pInstance = new CGoblin_Assassin_Spector(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CGoblin_Assassin_Spector");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
CGameObject* CGoblin_Assassin_Spector::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CGoblin_Assassin_Spector* pInstance = new CGoblin_Assassin_Spector(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CGoblin_Assassin_Spector");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CGoblin_Assassin_Spector::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
|
||||
SAFE_RELEASE(m_pGoblin);
|
||||
SAFE_RELEASE(m_pLeft_Trail);
|
||||
SAFE_RELEASE(m_pRight_Trail);
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
|
||||
void CGoblin_Assassin_Spector::Describe_Entity()
|
||||
{
|
||||
GUI::Begin("UNIT", 0, IMGUI_GLOBAL_BEGIN_FLAG);
|
||||
GUI::PushItemWidth(80);
|
||||
if (GUI::CollapsingHeader("GoblinSpector")) {
|
||||
_float3 vScale = m_pTransformCom->Get_Scale();
|
||||
GUI::DragFloat3("Scale", (_float*)&vScale);
|
||||
}
|
||||
GUI::End();
|
||||
}
|
||||
|
||||
#endif // _DEBUG
|
||||
@@ -3,12 +3,11 @@
|
||||
#include "InfoInstance.h"
|
||||
#include "GameInstance.h"
|
||||
#include "Player.h"
|
||||
#include "Goblin_Dagger.h"
|
||||
#include "Goblin_Spector.h"
|
||||
#include "Goblin_Assassin_Spector.h"
|
||||
#include "EffectParts.h"
|
||||
|
||||
#include "EffectPool.h"
|
||||
#include "Goblin_BattleAxe.h"
|
||||
#include "Goblin_Sword.h"
|
||||
|
||||
#pragma region STATE
|
||||
#include "State_Idle.h"
|
||||
@@ -252,8 +251,31 @@ void CGoblin_Assassin::Behavior_SlashEnter()
|
||||
m_pFSM->Enable_State(FSMSTATE::SLASH);
|
||||
|
||||
pairAnimInfo = m_Animation[STATEANIM::SLASH];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second,1.5f);
|
||||
m_fSkillCoolTime[ENUM_CLASS(GOBLIN_ASSASSIN_SKILL::SLASH)] = m_fMaxSkillCoolTime[ENUM_CLASS(GOBLIN_ASSASSIN_SKILL::SLASH)];
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() {
|
||||
m_pGoblinSpector->Set_Visible(true);
|
||||
m_pGoblinSpector->Spector_Trail_Visible(true);
|
||||
|
||||
m_pEffectPool->Use_Skill(SKILL_TYPE::GOBLIN_ATTACK, m_pGoblinSpector->Get_PartObject<CGoblin_Sword>(), (void*)&m_pGoblinSpector->Get_PartObject<CGoblin_Sword>()->Get_SwordMatrix());
|
||||
},
|
||||
0.05f);
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() {
|
||||
m_pGoblinSpector->Set_Disolve(true); },
|
||||
0.28f);
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() {
|
||||
m_bLookAt = false; },
|
||||
0.3f);
|
||||
|
||||
Set_Easing(pairAnimInfo.first, 0.01f, 0.15f, 0.8f);
|
||||
|
||||
Set_Easing(pairAnimInfo.first, 0.15f, 0.4f, 1.4f);
|
||||
}
|
||||
|
||||
HRESULT CGoblin_Assassin::Behavior_SlashExitCheck(_float fTimeDelta)
|
||||
@@ -270,6 +292,7 @@ HRESULT CGoblin_Assassin::Behavior_SlashExitCheck(_float fTimeDelta)
|
||||
void CGoblin_Assassin::Behavior_SlashExit()
|
||||
{
|
||||
m_pFSM->Disable_State(FSMSTATE::SLASH);
|
||||
m_bLookAt = true;
|
||||
}
|
||||
|
||||
void CGoblin_Assassin::Behavior_DashEnter()
|
||||
|
||||
@@ -66,12 +66,8 @@ void CGoblin_Attack::Update(_float fTimeDelta)
|
||||
Update_Event(fTimeDelta);
|
||||
|
||||
|
||||
CGoblin_BattleAxe* pAxe = static_cast<CGoblin_BattleAxe*>(m_pOwner);
|
||||
|
||||
_float4x4 AxeMat = pAxe->Get_AxeMatrix();
|
||||
|
||||
m_pPT1->Get_Component<CTransform>()->Set_WorldMatrix(XMLoadFloat4x4(&AxeMat));
|
||||
m_pPT2->Get_Component<CTransform>()->Set_WorldMatrix(XMLoadFloat4x4(&AxeMat));
|
||||
m_pPT1->Get_Component<CTransform>()->Set_WorldMatrix(XMLoadFloat4x4(&m_vMat));
|
||||
m_pPT2->Get_Component<CTransform>()->Set_WorldMatrix(XMLoadFloat4x4(&m_vMat));
|
||||
|
||||
|
||||
}
|
||||
@@ -90,13 +86,18 @@ HRESULT CGoblin_Attack::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Pre_Setting(pObject, nullptr)))
|
||||
return E_FAIL;
|
||||
|
||||
CGoblin_BattleAxe* pAxe = static_cast<CGoblin_BattleAxe*>(m_pOwner);
|
||||
|
||||
_float4x4 AxeMat = pAxe->Get_AxeMatrix();
|
||||
//
|
||||
//CGoblin_BattleAxe* pAxe = static_cast<CGoblin_BattleAxe*>(m_pOwner);
|
||||
//
|
||||
//_float4x4 AxeMat = pAxe->Get_AxeMatrix();
|
||||
|
||||
m_pPT1->Get_Component<CTransform>()->Set_WorldMatrix(XMLoadFloat4x4(&AxeMat));
|
||||
m_pPT2->Get_Component<CTransform>()->Set_WorldMatrix(XMLoadFloat4x4(&AxeMat));
|
||||
m_vMat = *static_cast<_float4x4*>(pArg);
|
||||
|
||||
//m_pPT1->Get_Component<CTransform>()->Set_WorldMatrix(XMLoadFloat4x4(&AxeMat));
|
||||
//m_pPT2->Get_Component<CTransform>()->Set_WorldMatrix(XMLoadFloat4x4(&AxeMat));
|
||||
|
||||
m_pPT1->Get_Component<CTransform>()->Set_WorldMatrix(XMLoadFloat4x4(&m_vMat));
|
||||
m_pPT2->Get_Component<CTransform>()->Set_WorldMatrix(XMLoadFloat4x4(&m_vMat));
|
||||
|
||||
m_pPT1->Set_Visible(true);
|
||||
m_pPT2->Set_Visible(true);
|
||||
|
||||
@@ -265,7 +265,7 @@ void CGoblin::Behavior_SwingEnter()
|
||||
m_pGoblinSpector->Set_Visible(true);
|
||||
m_pGoblinSpector->Spector_Trail_Visible(true);
|
||||
|
||||
m_pEffectPool->Use_Skill(SKILL_TYPE::GOBLIN_ATTACK, m_pGoblinSpector->Get_PartObject<CGoblin_BattleAxe>());
|
||||
m_pEffectPool->Use_Skill(SKILL_TYPE::GOBLIN_ATTACK, m_pGoblinSpector->Get_PartObject<CGoblin_BattleAxe>(), (void*)&m_pGoblinSpector->Get_PartObject<CGoblin_BattleAxe>()->Get_AxeMatrix());
|
||||
},
|
||||
0.05f);
|
||||
|
||||
|
||||
@@ -23,6 +23,7 @@ HRESULT CGoblin_Sword::Initialize(void* pArg)
|
||||
{
|
||||
GOBLIN_SWORD_DESC* pDesc = static_cast<GOBLIN_SWORD_DESC*> (pArg);
|
||||
m_pSocketMatrices = pDesc->pSocketMatrices;
|
||||
m_iIndex = pDesc->iIndex;
|
||||
|
||||
if (FAILED(__super::Initialize(pArg))) {
|
||||
return E_FAIL;
|
||||
@@ -49,11 +50,19 @@ void CGoblin_Sword::Priority_Update(_float fTimeDelta)
|
||||
|
||||
void CGoblin_Sword::Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bDisolve) {
|
||||
m_fDisolveTime += fTimeDelta;
|
||||
if (m_fDisolveTime >= 1.f)
|
||||
{
|
||||
m_fDisolveTime = 0.f;
|
||||
m_bDisolve = false;
|
||||
m_bVisible = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void CGoblin_Sword::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
m_pModelCom->Combined_BoneMatrix();
|
||||
XMStoreFloat4(&m_vStartPos, m_pTransformCom->Get_State(STATE::POSITION));
|
||||
|
||||
_matrix socketMatrix = {};
|
||||
@@ -65,7 +74,14 @@ void CGoblin_Sword::Late_Update(_float fTimeDelta)
|
||||
}
|
||||
|
||||
m_pTransformCom->Set_WorldMatrix(socketMatrix * XMLoadFloat4x4(m_pParentTransformCom->Get_WorldMatrixPtr()));
|
||||
Sword_Hit();
|
||||
XMStoreFloat4x4(&m_vSwordMat, XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("Bone")) * m_pTransformCom->Get_XMWorldMatrix());
|
||||
if (m_bCanTakeDamage)
|
||||
{
|
||||
Sword_Hit();
|
||||
}
|
||||
else {
|
||||
m_bHit = false;
|
||||
}
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
|
||||
}
|
||||
|
||||
@@ -81,6 +97,10 @@ HRESULT CGoblin_Sword::Render()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(Render_Disolve())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
_uint iNumMeshes = m_pModelCom->Get_NumMeshes();
|
||||
|
||||
for (_uint i = 0; i < iNumMeshes; i++)
|
||||
@@ -89,7 +109,7 @@ HRESULT CGoblin_Sword::Render()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_ANIM::DEFAULT)))) {
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_MESH::SPECTOR_WEAPON)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -98,6 +118,43 @@ HRESULT CGoblin_Sword::Render()
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
_bool bDisolve = false;
|
||||
_float zero = 0.f;
|
||||
m_pShaderCom->Bind_RawValue("g_bDisolve", &bDisolve, sizeof(_bool));
|
||||
m_pShaderCom->Bind_RawValue("g_fDisolveRatio", &zero, sizeof(_float));
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CGoblin_Sword::Render_Disolve()
|
||||
{
|
||||
if (FLT_EPSILON3 * 10 < m_fDisolveTime)
|
||||
{
|
||||
_bool bDisolve = true;
|
||||
_float fDisolveAmount = 0.1f;
|
||||
_float fDisolveEdgeWidth = 0.1f;
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_bDisolve", &bDisolve, sizeof(_bool)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fDisolveRatio", &m_fDisolveTime, sizeof(_float)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fDisolveAmount", &fDisolveAmount, sizeof(_float)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fDisolveEdgeWidth", &fDisolveEdgeWidth, sizeof(_float)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Bind_GlobalSRV(m_pShaderCom, TEXT("GLOBAL_DISOLVE_NOISE_05"), "g_DeadDisolveTexture"))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Bind_GlobalSRV(m_pShaderCom, TEXT("GLOBAL_DISOLVE_BURN_VERTICAL"), "g_DisolveTexture"))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -113,8 +170,16 @@ HRESULT CGoblin_Sword::Ready_Components()
|
||||
__super::Ready_Components(&Desc);
|
||||
|
||||
|
||||
if (m_iIndex == 0)
|
||||
{
|
||||
m_strModelPrototypeTag = TEXT("Prototype_Component_Goblin_Sword_L_Model");
|
||||
}
|
||||
else {
|
||||
m_strModelPrototypeTag = TEXT("Prototype_Component_Goblin_Sword_R_Model");
|
||||
}
|
||||
|
||||
/* Com_Model */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_Goblin_Sword_Model"),
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, m_strModelPrototypeTag,
|
||||
reinterpret_cast<CComponent**>(&m_pModelCom))))
|
||||
return E_FAIL;
|
||||
|
||||
@@ -203,6 +268,8 @@ void CGoblin_Sword::Sword_Hit()
|
||||
case Engine::PXOBJECT::PLAYER:
|
||||
{
|
||||
pUserData->pOwner->OnCollision(this, &tagCollInfo);
|
||||
m_bHit = true;
|
||||
m_bCanTakeDamage = false;
|
||||
}
|
||||
break;
|
||||
case Engine::PXOBJECT::ALLY_HITBOX:
|
||||
|
||||
@@ -762,6 +762,13 @@ HRESULT CLevel_GamePlay::Ready_Layer_Monster()
|
||||
}
|
||||
}
|
||||
|
||||
for (_uint i = 0; i < 1; ++i)
|
||||
{
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CGoblin_Assassin>(g_iStaticLevel, NEXT_LEVEL, LAYER_MONSTER))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CTroll>(g_iStaticLevel, NEXT_LEVEL, LAYER_MONSTER))) {
|
||||
return E_FAIL;
|
||||
|
||||
@@ -34,6 +34,7 @@
|
||||
#include "Goblin_Mage.h"
|
||||
#include "Goblin_Assassin.h"
|
||||
#include "Goblin_Spector.h"
|
||||
#include "Goblin_Assassin_Spector.h"
|
||||
#include "Troll.h"
|
||||
#include "NPC_Ollivander.h"
|
||||
#include "NPC_EleazarFig.h"
|
||||
@@ -1923,8 +1924,12 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Object/Goblin_Dagger/SK_WPN_GOB_SmallSword.bin", XMMatrixIdentity()))))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Goblin_Sword_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/Object/Goblin_Sword/SK_WPN_GOB_SmallSword.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixIdentity()))))
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Goblin_Sword_L_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Object/Goblin_Sword/SK_WPN_GOB_SmallSword_L.bin", XMMatrixIdentity()))))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Goblin_Sword_R_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Object/Goblin_Sword/SK_WPN_GOB_SmallSword_R.bin", XMMatrixIdentity()))))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Goblin_BattleAxe_Model"),
|
||||
@@ -2818,6 +2823,10 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CGoblin_Spector>(g_iStaticLevel, CGoblin_Spector::Create(m_pDevice, m_pContext))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_GameObject_Goblin_Assassin_Spector */
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CGoblin_Assassin_Spector>(g_iStaticLevel, CGoblin_Assassin_Spector::Create(m_pDevice, m_pContext))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_GameObject_Troll */
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CTroll>(g_iStaticLevel, CTroll::Create(m_pDevice, m_pContext))))
|
||||
return E_FAIL;
|
||||
|
||||
@@ -53,7 +53,7 @@ class CGoblin_Assassin final : public CMonster
|
||||
class CEffectParts* m_pSmoke = { nullptr };
|
||||
class CEffectParts* m_pGoblin_Particle = { nullptr };
|
||||
class CEffectParts* m_pGoblin_Particle2 = { nullptr };
|
||||
class CGoblin_Spector* m_pGoblinSpector = { nullptr };
|
||||
class CGoblin_Assassin_Spector* m_pGoblinSpector = { nullptr };
|
||||
private:
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
|
||||
@@ -0,0 +1,79 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "Monster.h"
|
||||
#include "CallBack_Monster_Behavior.h"
|
||||
#include "CallBack_Monster_HitReport.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
class CTransform;
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CGoblin_Assassin_Spector final : public CMonster
|
||||
{
|
||||
public:
|
||||
typedef struct tagSpector
|
||||
{
|
||||
CTransform* pParentTransform = { nullptr };
|
||||
}GOBLIN_SPECTOR_DESC;
|
||||
private:
|
||||
CGoblin_Assassin_Spector(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CGoblin_Assassin_Spector(const CGoblin_Assassin_Spector& Prototype);
|
||||
virtual ~CGoblin_Assassin_Spector() = default;
|
||||
|
||||
public:
|
||||
virtual void Priority_Update(_float fTimeDelta) override;
|
||||
virtual void Update(_float fTimeDelta) override;
|
||||
virtual void Late_Update(_float fTimeDelta) override;
|
||||
virtual HRESULT Render() override;
|
||||
virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr)override;
|
||||
virtual void OnHit(CGameObject* pOther, CGameObject* pCaller = nullptr)override;
|
||||
|
||||
public:
|
||||
void Spector_Trail_Visible(_bool isTrailVisible);
|
||||
void Set_Disolve(_bool bDisolve) { m_bDisolve = bDisolve; }
|
||||
|
||||
|
||||
private:
|
||||
class CGoblin_Assassin* m_pGoblin = { nullptr };
|
||||
CTransform* m_pParentTransformCom = { nullptr };
|
||||
_uint iIndex;
|
||||
_float3 m_Offset = {};
|
||||
_float3 m_vOriginScale = {};
|
||||
_float3 m_vScale = { 1.f, 1.f, 1.f };
|
||||
|
||||
|
||||
class CTrailObject* m_pLeft_Trail = { nullptr };
|
||||
class CTrailObject* m_pRight_Trail = { nullptr };
|
||||
|
||||
const _float4x4* m_pLeftHand_BoneMat = { nullptr };
|
||||
const _float4x4* m_pRightHand_BoneMat = { nullptr };
|
||||
|
||||
private:
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
HRESULT Ready_Components();
|
||||
HRESULT Ready_Parts();
|
||||
HRESULT Bind_ShaderResources();
|
||||
|
||||
public:
|
||||
static CGoblin_Assassin_Spector* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, CGameObject* pOwner = nullptr) override;
|
||||
virtual void Free() override;
|
||||
#ifdef _DEBUG
|
||||
virtual void Describe_Entity() override;
|
||||
|
||||
#endif // _DEBUG
|
||||
|
||||
|
||||
_bool m_bStep = { false };
|
||||
_float m_fTpTime = {};
|
||||
_float m_fAirTime = {};
|
||||
_vector m_vOriginPos = {};
|
||||
_float m_fLength = {};
|
||||
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -34,6 +34,7 @@ class CGoblin_Attack final : public CEffect_Container
|
||||
_wstring m_wstrEffectName = {};
|
||||
class CEffectParts* m_pPT1 = { nullptr };
|
||||
class CEffectParts* m_pPT2 = { nullptr };
|
||||
_float4x4 m_vMat = {};
|
||||
public:
|
||||
static CGoblin_Attack* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual void Free() override;
|
||||
|
||||
@@ -24,7 +24,7 @@ class CGoblin_BattleAxe final : public CPartObject
|
||||
virtual HRESULT Render() override;
|
||||
HRESULT Render_Disolve();
|
||||
void Set_Disolve(_bool bDisolve) { m_bDisolve = bDisolve; }
|
||||
const _float4x4 Get_AxeMatrix() { return m_vAxeMat; };
|
||||
const _float4x4& Get_AxeMatrix() { return m_vAxeMat; };
|
||||
|
||||
private:
|
||||
const _float4x4* m_pSocketMatrices = { };
|
||||
|
||||
@@ -11,6 +11,7 @@ class CGoblin_Sword final : public CPartObject
|
||||
typedef struct tagSword : public CPartObject::PARTOBJECT_DESC
|
||||
{
|
||||
const _float4x4* pSocketMatrices = { };
|
||||
_int iIndex = {};
|
||||
}GOBLIN_SWORD_DESC;
|
||||
private:
|
||||
CGoblin_Sword(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
@@ -24,14 +25,25 @@ class CGoblin_Sword final : public CPartObject
|
||||
virtual void Update(_float fTimeDelta) override;
|
||||
virtual void Late_Update(_float fTimeDelta) override;
|
||||
virtual HRESULT Render() override;
|
||||
HRESULT Render_Disolve();
|
||||
void Set_Disolve(_bool bDisolve) { m_bDisolve = bDisolve; }
|
||||
void Set_CanTakeDamage(_bool bCanTake) { m_bCanTakeDamage = bCanTake; }
|
||||
const _float4x4& Get_SwordMatrix() { return m_vSwordMat; };
|
||||
public:
|
||||
|
||||
private:
|
||||
const _float4x4* m_pSocketMatrices = { };
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
CModel* m_pModelCom = { nullptr };
|
||||
const _float4x4* m_pSocketMatrices = { };
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
CModel* m_pModelCom = { nullptr };
|
||||
_int m_iIndex = {};
|
||||
_wstring m_strModelPrototypeTag;
|
||||
_bool m_bCanTakeDamage = { false };
|
||||
_bool m_bHit = { false };
|
||||
_bool m_bDisolve = { false };
|
||||
_float m_fDisolveTime = { 0.f };
|
||||
_float4x4 m_vSwordMat = {};
|
||||
|
||||
_float4 m_vStartPos = {};
|
||||
_float4 m_vStartPos = {};
|
||||
PSX::PxSweepBufferN<12> m_SweepBuffer = {};
|
||||
|
||||
private:
|
||||
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
@@ -12,6 +12,7 @@
|
||||
#include "Land.h"
|
||||
#include "InstancedProp.h"
|
||||
#include "Player.h"
|
||||
#include "Ranrok.h"
|
||||
#include "Unified.h"
|
||||
#include "MapElement_Lake.h"
|
||||
#include "MapElement_Door.h"
|
||||
@@ -48,6 +49,12 @@ HRESULT CLevel_MapViewer::Initialize()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(Ready_Layer_Player_And_Ranrok())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
|
||||
//if (FAILED(Ready_Layer_Terrain(TEXT("Layer_Terrain")))) {
|
||||
// return E_FAIL;
|
||||
//}
|
||||
@@ -524,6 +531,19 @@ HRESULT CLevel_MapViewer::Ready_Layer_MapObjectManager(const _wstring& strLayerT
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CLevel_MapViewer::Ready_Layer_Player_And_Ranrok()
|
||||
{
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CPlayer>(g_iStaticLevel, NEXT_LEVEL, LAYER_PLAYER))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CRanrok>(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Monster"))))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CLevel_MapViewer* CLevel_MapViewer::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID)
|
||||
{
|
||||
CLevel_MapViewer* pInstance = new CLevel_MapViewer(pDevice, pContext, eLevelID);
|
||||
|
||||
@@ -2385,7 +2385,7 @@ HRESULT CLoader::Loading_For_ObjectViewer()
|
||||
vector<future<pair<_wstring, CModel*>*>> futures = {};
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_GoblinSpector_Anim_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM_LOCAL, "C:/MeshTable\\Game\\RiggedObjects\\Props\\Weapons\\Goblins\\SK_WPN_GOB_SmallSword.fbx", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity()))))
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::ANIM_LOCAL, "C:/MeshTable\\Game\\RiggedObjects\\Props\\Weapons\\Goblins\\SK_WPN_GOB_SmallSword.fbx", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity()))))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
@@ -2668,6 +2668,31 @@ HRESULT CLoader::Loading_For_ObjectViewer()
|
||||
|
||||
HRESULT CLoader::Loading_For_MapViewer()
|
||||
{
|
||||
#pragma region PLAYER_AND_RANROK
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Ranrok_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/ConjuredDragon/ConjuredDragon.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Playable_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable.bin", XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CRanrok>(g_iStaticLevel, CRanrok::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CFSM>(g_iStaticLevel, CFSM::Create(m_pDevice, m_pContext))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_GameObject_Player */
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CPlayer>(g_iStaticLevel, CPlayer::Create(m_pDevice, m_pContext))))
|
||||
return E_FAIL;
|
||||
#pragma endregion
|
||||
|
||||
|
||||
|
||||
m_strMessage = TEXT("텍스쳐를(을) 로딩 중 입니다.");
|
||||
#pragma region TEXTURES
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("TerrainTest"),
|
||||
@@ -2858,6 +2883,8 @@ HRESULT CLoader::Loading_For_MapViewer()
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Hogsmead_NorthLakeShallow"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/River/NorthLake/HDA_SM_LakeA_Collision_Shallow.bin", XMMatrixIdentity()))))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
#pragma endregion
|
||||
|
||||
vector<_wstring> ModelPrototypeTags = {};
|
||||
|
||||
@@ -28,6 +28,7 @@ class CLevel_MapViewer final : public CLevel
|
||||
HRESULT Ready_Layer_Door(const _wstring& strLayerTag);
|
||||
HRESULT Ready_Layer_Chest(const _wstring& strLayerTag);
|
||||
HRESULT Ready_Layer_MapObjectManager(const _wstring& strLayerTag);
|
||||
HRESULT Ready_Layer_Player_And_Ranrok();
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user