1208
commit
This commit is contained in:
@@ -44,9 +44,11 @@ HRESULT CEffectPool::Initialize(void* pArg)
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(Ready_Effect())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
//if (FAILED(Ready_Effect())) {
|
||||
// return E_FAIL;
|
||||
//}
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -791,6 +791,8 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
//#pragma region UI_ANI
|
||||
// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Altering_Spell"),
|
||||
// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Altering_Spell\\Altering_Spell%d.png"), 349))))
|
||||
@@ -1660,83 +1662,83 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#pragma region MAP_INSTANCE
|
||||
/* For.Prototype_Component_VIBuffer_Model_Instancel_SM_OakTree_MedA */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_SM_OakTree_MedA"),
|
||||
CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
|
||||
"../Bin/Resources/Models/InstanceProp/SM_OakTree_MedA.bin",
|
||||
"../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_Component_VIBuffer_Model_Instancel_SM_BearBerry_A */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_SM_BearBerry_A"),
|
||||
CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
|
||||
"../Bin/Resources/Models/InstanceProp/SM_BearBerry_A.bin",
|
||||
"../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_Component_VIBuffer_Model_Instancel_SM_HM_OwlPost_Window_A*/
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_SM_HM_OwlPost_Window_A"),
|
||||
CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
|
||||
"../Bin/Resources/Models/InstanceProp/SM_HM_OwlPost_Window_A.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_Component_VIBuffer_Model_Instancel_WA_Rectangle_Double_A*/
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_WA_Rectangle_Double_A"),
|
||||
CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
|
||||
"../Bin/Resources/Models/InstanceProp/SM_HM_WindowsStyleA_L_Rectangle_Double_A.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_Component_VIBuffer_Model_Instancel_WC_Retangle_Double_A*/
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_WC_Retangle_Double_A"),
|
||||
CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
|
||||
"../Bin/Resources/Models/InstanceProp/SM_HM_WindowsStyleC_Retangle_Double_A.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_Component_VIBuffer_Model_Instancel_WA_Square_Double_C*/
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_WA_Square_Double_C"),
|
||||
CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
|
||||
"../Bin/Resources/Models/InstanceProp/SM_HM_WindowsStyleA_L_Square_Double_C.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_Component_VIBuffer_Model_Instancel_Quid_Window_A*/
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_Quid_Window_A"),
|
||||
CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
|
||||
"../Bin/Resources/Models/InstanceProp/SM_HM_Quid_Window_A.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_Component_VIBuffer_Model_Instancel_Ollivanders_Box_Window*/
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_Ollivanders_Box_Window"),
|
||||
CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
|
||||
"../Bin/Resources/Models/InstanceProp/SM_HM_Ollivanders_Box_Window.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_Component_VIBuffer_Model_Instancel_WC_L_DoubleS_A*/
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_WC_L_DoubleS_A"),
|
||||
CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
|
||||
"../Bin/Resources/Models/InstanceProp/SM_HM_WindowsStyleC_L_Double_Single_A.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_Component_VIBuffer_Model_Instancel_WC_Round_Double_A*/
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_WC_Round_Double_A"),
|
||||
CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
|
||||
"../Bin/Resources/Models/InstanceProp/SM_HM_WindowsStyleC_Round_Double_A.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_Component_VIBuffer_Model_Instancel_SM_HM_Door1a*/
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_SM_HM_Door1a"),
|
||||
CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
|
||||
"../Bin/Resources/Models/InstanceProp/SM_HM_Door1a.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_Component_VIBuffer_Model_Instancel_SM_HM_Door2b*/
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_SM_HM_Door2b"),
|
||||
CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
|
||||
"../Bin/Resources/Models/InstanceProp/SM_HM_Door2b.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
|
||||
return E_FAIL;
|
||||
#pragma endregion
|
||||
|
||||
//
|
||||
//#pragma region MAP_INSTANCE
|
||||
// /* For.Prototype_Component_VIBuffer_Model_Instancel_SM_OakTree_MedA */
|
||||
// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_SM_OakTree_MedA"),
|
||||
// CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
|
||||
// "../Bin/Resources/Models/InstanceProp/SM_OakTree_MedA.bin",
|
||||
// "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
|
||||
// return E_FAIL;
|
||||
//
|
||||
// /* For.Prototype_Component_VIBuffer_Model_Instancel_SM_BearBerry_A */
|
||||
// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_SM_BearBerry_A"),
|
||||
// CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
|
||||
// "../Bin/Resources/Models/InstanceProp/SM_BearBerry_A.bin",
|
||||
// "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
|
||||
// return E_FAIL;
|
||||
//
|
||||
// /* For.Prototype_Component_VIBuffer_Model_Instancel_SM_HM_OwlPost_Window_A*/
|
||||
// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_SM_HM_OwlPost_Window_A"),
|
||||
// CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
|
||||
// "../Bin/Resources/Models/InstanceProp/SM_HM_OwlPost_Window_A.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
|
||||
// return E_FAIL;
|
||||
//
|
||||
// /* For.Prototype_Component_VIBuffer_Model_Instancel_WA_Rectangle_Double_A*/
|
||||
// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_WA_Rectangle_Double_A"),
|
||||
// CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
|
||||
// "../Bin/Resources/Models/InstanceProp/SM_HM_WindowsStyleA_L_Rectangle_Double_A.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
|
||||
// return E_FAIL;
|
||||
//
|
||||
// /* For.Prototype_Component_VIBuffer_Model_Instancel_WC_Retangle_Double_A*/
|
||||
// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_WC_Retangle_Double_A"),
|
||||
// CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
|
||||
// "../Bin/Resources/Models/InstanceProp/SM_HM_WindowsStyleC_Retangle_Double_A.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
|
||||
// return E_FAIL;
|
||||
//
|
||||
// /* For.Prototype_Component_VIBuffer_Model_Instancel_WA_Square_Double_C*/
|
||||
// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_WA_Square_Double_C"),
|
||||
// CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
|
||||
// "../Bin/Resources/Models/InstanceProp/SM_HM_WindowsStyleA_L_Square_Double_C.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
|
||||
// return E_FAIL;
|
||||
//
|
||||
// /* For.Prototype_Component_VIBuffer_Model_Instancel_Quid_Window_A*/
|
||||
// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_Quid_Window_A"),
|
||||
// CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
|
||||
// "../Bin/Resources/Models/InstanceProp/SM_HM_Quid_Window_A.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
|
||||
// return E_FAIL;
|
||||
//
|
||||
// /* For.Prototype_Component_VIBuffer_Model_Instancel_Ollivanders_Box_Window*/
|
||||
// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_Ollivanders_Box_Window"),
|
||||
// CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
|
||||
// "../Bin/Resources/Models/InstanceProp/SM_HM_Ollivanders_Box_Window.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
|
||||
// return E_FAIL;
|
||||
//
|
||||
// /* For.Prototype_Component_VIBuffer_Model_Instancel_WC_L_DoubleS_A*/
|
||||
// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_WC_L_DoubleS_A"),
|
||||
// CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
|
||||
// "../Bin/Resources/Models/InstanceProp/SM_HM_WindowsStyleC_L_Double_Single_A.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
|
||||
// return E_FAIL;
|
||||
//
|
||||
// /* For.Prototype_Component_VIBuffer_Model_Instancel_WC_Round_Double_A*/
|
||||
// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_WC_Round_Double_A"),
|
||||
// CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
|
||||
// "../Bin/Resources/Models/InstanceProp/SM_HM_WindowsStyleC_Round_Double_A.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
|
||||
// return E_FAIL;
|
||||
//
|
||||
// /* For.Prototype_Component_VIBuffer_Model_Instancel_SM_HM_Door1a*/
|
||||
// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_SM_HM_Door1a"),
|
||||
// CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
|
||||
// "../Bin/Resources/Models/InstanceProp/SM_HM_Door1a.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
|
||||
// return E_FAIL;
|
||||
//
|
||||
// /* For.Prototype_Component_VIBuffer_Model_Instancel_SM_HM_Door2b*/
|
||||
// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_SM_HM_Door2b"),
|
||||
// CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
|
||||
// "../Bin/Resources/Models/InstanceProp/SM_HM_Door2b.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
|
||||
// return E_FAIL;
|
||||
//#pragma endregion
|
||||
//
|
||||
|
||||
/* For.Prototype_Component_VIBuffer_Box */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Box"),
|
||||
|
||||
@@ -174,16 +174,16 @@ HRESULT CTroll::Render()
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
if (true == m_pCharacter_Controller->IsActive()) {
|
||||
if (FAILED(m_pCharacter_Controller->Render())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (FAILED(m_pRigidBody->Render())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
//if (true == m_pCharacter_Controller->IsActive()) {
|
||||
// if (FAILED(m_pCharacter_Controller->Render())) {
|
||||
// return E_FAIL;
|
||||
// }
|
||||
//}
|
||||
//else {
|
||||
// if (FAILED(m_pRigidBody->Render())) {
|
||||
// return E_FAIL;
|
||||
// }
|
||||
//}
|
||||
#endif
|
||||
|
||||
return S_OK;
|
||||
|
||||
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -420,7 +420,6 @@ void CEditEffect::Describe_Entity()
|
||||
{
|
||||
//여기서 모델, 텍스쳐, 선택할 수 있도록 함
|
||||
|
||||
|
||||
const char* pLerp[] = { "Linear" , "EaseInQuad", "EaseOutQuad", "EaseInCubic" , "EaseOutCubic" , "EaseInOutSin" , "EaseInBack" , "Expo" , "Circle" };
|
||||
const char* pRenderNames[] = { "PRIORITY" , "SHADOW", "NONBLEND", "DECAL", "BLUR" , "NONLIGHT" ,"EFFECT", "BLEND" ,"BLOOM" , "UI", "OCCLUSION" , "PRESHADOW"};
|
||||
const char* pEffectType[] = { "EFFECT" , "TRAIL" };
|
||||
@@ -432,6 +431,22 @@ void CEditEffect::Describe_Entity()
|
||||
_int iCurrentBloomType = static_cast<_int>(m_EffectInfo.eBloomType);
|
||||
_int iCurrentPass = static_cast<_int>(m_EffectInfo.eShaderPass);
|
||||
|
||||
|
||||
GUI::InputTextMultiline("BONE NAME", m_szBuffer, sizeof(m_szBuffer), ImVec2(250, 25));
|
||||
|
||||
m_strBoneName = m_szBuffer;
|
||||
|
||||
if(GUI::Button("Stick Bone"))
|
||||
{
|
||||
CModel* pModel = m_pOwner->Get_Component<CModel>();
|
||||
|
||||
if (pModel != nullptr)
|
||||
{
|
||||
FollowParants(pModel->Get_BoneMatrixPtr(m_strBoneName.c_str()));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if (ImGui::Combo("Render Order", &iCurrentItem, pRenderNames, ENUM_CLASS(RENDER::END)))
|
||||
{
|
||||
m_EffectInfo.eRenderOrder = static_cast<RENDER>(iCurrentItem);
|
||||
|
||||
@@ -715,9 +715,34 @@ HRESULT CEffectObject::LoadPre(const _char* pFilePath, LEVEL eLevel)
|
||||
}
|
||||
#endif // _DEBUG
|
||||
|
||||
void CEffectObject::FollowParants(const _float4x4* pParantsMat)
|
||||
{
|
||||
if (pParantsMat == nullptr)
|
||||
return;
|
||||
|
||||
|
||||
m_pPerentMatrix = pParantsMat;
|
||||
m_bVisible = true;
|
||||
}
|
||||
|
||||
|
||||
HRESULT CEffectObject::Bind_ShaderResources()
|
||||
{
|
||||
|
||||
if (m_pPerentMatrix != nullptr)
|
||||
{
|
||||
|
||||
_matrix socketMatrix = XMLoadFloat4x4(m_pPerentMatrix);
|
||||
|
||||
for (int i = 0; i < 3; ++i) {
|
||||
socketMatrix.r[i] = XMVector3Normalize(socketMatrix.r[i]);
|
||||
}
|
||||
socketMatrix = socketMatrix * m_pParentTransformCom->Get_XMWorldMatrix();
|
||||
|
||||
m_pTransformCom->Set_State(STATE::POSITION, socketMatrix.r[3]);
|
||||
}
|
||||
|
||||
|
||||
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
#include "Goblin.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
#include "EditEffect.h"
|
||||
|
||||
#pragma region STATE
|
||||
#include "State_Idle.h"
|
||||
@@ -36,6 +37,9 @@ HRESULT CGoblin::Initialize(void* pArg)
|
||||
if (FAILED(Ready_Components()))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(Ready_Parts()))
|
||||
return E_FAIL;
|
||||
|
||||
Add_FSM();
|
||||
|
||||
Set_Anim();
|
||||
@@ -61,11 +65,15 @@ HRESULT CGoblin::Initialize(void* pArg)
|
||||
|
||||
void CGoblin::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
|
||||
m_pTransformCom->RewindMomentum();
|
||||
}
|
||||
|
||||
void CGoblin::Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Update(fTimeDelta);
|
||||
|
||||
m_pFSM->Update_State(fTimeDelta);
|
||||
|
||||
m_pModelCom->Play_Animation(fTimeDelta, m_pTransformCom);
|
||||
@@ -169,6 +177,50 @@ HRESULT CGoblin::Ready_Components()
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CGoblin::Ready_Parts()
|
||||
{
|
||||
#pragma region EFFECT
|
||||
/* EFFECT */
|
||||
|
||||
CPartObject::PARTOBJECT_DESC PartsDesc{};
|
||||
|
||||
PartsDesc.pParentTransform = m_pTransformCom;
|
||||
|
||||
|
||||
|
||||
if (FAILED(Add_PartObject<CEditEffect>("Goblin_Particle", ENUM_CLASS(LEVEL::EFFECT), &m_pTroll_Particle, &PartsDesc)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pTroll_Particle->Load("../Bin/Resources/Data/Effect/Goblin/GoblinSide/Goblin_Particle", static_cast<LEVEL>(NEXT_LEVEL));
|
||||
m_pTroll_Particle->FollowParants(m_pModelCom->Get_BoneMatrixPtr("RightShoulder"));
|
||||
|
||||
|
||||
|
||||
if (FAILED(Add_PartObject<CEditEffect>("Goblin_Particle2", ENUM_CLASS(LEVEL::EFFECT), &m_pTroll_Particle2, &PartsDesc)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pTroll_Particle2->Load("../Bin/Resources/Data/Effect/Goblin/GoblinSide/Goblin_Particle2", static_cast<LEVEL>(NEXT_LEVEL));
|
||||
m_pTroll_Particle2->FollowParants(m_pModelCom->Get_BoneMatrixPtr("RightShoulder"));
|
||||
|
||||
|
||||
if (FAILED(Add_PartObject<CEditEffect>("Goblin_Smoke", ENUM_CLASS(LEVEL::EFFECT), &m_pRight_Smoke, &PartsDesc)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pRight_Smoke->Load("../Bin/Resources/Data/Effect/Goblin/GoblinSide/Goblin_Smoke", static_cast<LEVEL>(NEXT_LEVEL));
|
||||
m_pRight_Smoke->FollowParants(m_pModelCom->Get_BoneMatrixPtr("Spine2"));
|
||||
|
||||
|
||||
#pragma endregion
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
HRESULT CGoblin::Bind_ShaderResources()
|
||||
{
|
||||
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) {
|
||||
@@ -226,8 +278,37 @@ void CGoblin::Free()
|
||||
SAFE_RELEASE(m_pRigidBody);
|
||||
Safe_Delete(m_pCallBack_Behavior);
|
||||
Safe_Delete(m_pCallBack_HitReport);
|
||||
|
||||
SAFE_RELEASE(m_pTroll_Particle);
|
||||
SAFE_RELEASE(m_pTroll_Particle2);
|
||||
SAFE_RELEASE(m_pRight_Smoke);
|
||||
SAFE_RELEASE(m_pLeft_Smoke);
|
||||
}
|
||||
|
||||
void CGoblin::Describe_Entity()
|
||||
{
|
||||
for (auto& pComponent : m_Components)
|
||||
{
|
||||
if (GUI::TreeNode(typeid(*pComponent).name()))
|
||||
{
|
||||
pComponent->Describe_Entity();
|
||||
|
||||
GUI::TreePop();
|
||||
}
|
||||
}
|
||||
|
||||
_uint iIndex = {};
|
||||
|
||||
for (auto& pParts : m_PartObjects)
|
||||
{
|
||||
_string strName = to_string(iIndex++) + " : " + typeid(*pParts.second).name();
|
||||
|
||||
if (GUI::TreeNode(strName.c_str()))
|
||||
{
|
||||
pParts.second->Describe_Entity();
|
||||
|
||||
GUI::TreePop();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -32,16 +32,17 @@ HRESULT CMonster::Initialize(void* pArg)
|
||||
|
||||
void CMonster::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CMonster::Update(_float fTimeDelta)
|
||||
{
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CMonster::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Late_Update(fTimeDelta);
|
||||
//m_fTargetDistance = m_pTransformCom->TargetDis(m_pPlayerTransform->Get_State(STATE::POSITION));
|
||||
}
|
||||
|
||||
|
||||
@@ -34,6 +34,8 @@ class CEditEffect final : public CEffectObject
|
||||
virtual HRESULT Ready_Components(void* pArg) override;
|
||||
|
||||
private:
|
||||
_char m_szBuffer[MAX_PATH] = {};
|
||||
_string m_strBoneName = {};
|
||||
_int m_iSelectTextureNum = {};
|
||||
vector<_float> m_ValueVector = {};
|
||||
_float m_fInputValue = {};
|
||||
|
||||
@@ -249,6 +249,7 @@ class CEffectObject abstract : public CPartObject
|
||||
public:
|
||||
HRESULT Load(const _char* pFilePath, LEVEL eLevel);
|
||||
HRESULT Load();
|
||||
void FollowParants(const _float4x4* pParantsMat);
|
||||
public:
|
||||
#ifdef _DEBUG
|
||||
HRESULT LoadPre(const _char* pFilePath, LEVEL eLevel);
|
||||
@@ -274,7 +275,7 @@ class CEffectObject abstract : public CPartObject
|
||||
|
||||
CInstance_Model* m_pInstance_ModelCom = { nullptr };
|
||||
|
||||
|
||||
const _float4x4* m_pPerentMatrix = { nullptr };
|
||||
protected:
|
||||
EFFECT_INFO m_EffectInfo = {};
|
||||
_string m_strDiffuseName = {};
|
||||
|
||||
@@ -29,10 +29,15 @@ class CGoblin final : public CMonster
|
||||
CCharacter_Controller* m_pCharacter_Controller = { nullptr };
|
||||
CRigidBody_Dynamic* m_pRigidBody = { nullptr };
|
||||
|
||||
class CEditEffect* m_pRight_Smoke = { nullptr };
|
||||
class CEditEffect* m_pLeft_Smoke = { nullptr };
|
||||
class CEditEffect* m_pTroll_Particle = { nullptr };
|
||||
class CEditEffect* m_pTroll_Particle2 = { nullptr };
|
||||
|
||||
private:
|
||||
HRESULT Ready_Components();
|
||||
HRESULT Bind_ShaderResources();
|
||||
|
||||
HRESULT Ready_Parts();
|
||||
public:
|
||||
static CGoblin* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, CGameObject* pOwner = nullptr) override;
|
||||
|
||||
@@ -118,9 +118,24 @@ void CLayer::Describe_Entity()
|
||||
GUI::PushID(iter);
|
||||
if (GUI::SmallButton((to_string(iIndex) + " : " + typeid(*iter).name()).c_str())) {
|
||||
m_pGameInstance->Force_CamPosition(iter->Get_WorldPostion() - XMVectorSet(0.f, -1.f, 1.f, 0.f) * 10.f);
|
||||
|
||||
/* 클릭시 타겟으로 설정함 */
|
||||
m_pTargetObject = iter;
|
||||
|
||||
} iIndex++;
|
||||
GUI::PopID();
|
||||
}
|
||||
|
||||
/* 클릭한 객체의 컴포넌트 디스크립션을 부른다.*/
|
||||
if (m_pTargetObject != nullptr)
|
||||
{
|
||||
if(GUI::TreeNode(typeid(*m_pTargetObject).name()))
|
||||
{
|
||||
m_pTargetObject->Describe_Entity();
|
||||
|
||||
GUI::TreePop();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif // _DEBUG
|
||||
|
||||
@@ -36,6 +36,11 @@ class ENGINE_DLL CLayer final : public CBase
|
||||
private:
|
||||
class CGameInstance* m_pGameInstance = { nullptr };
|
||||
list<class CGameObject*> m_ObjectList;
|
||||
|
||||
#ifdef _DEBUG
|
||||
private:
|
||||
class CGameObject* m_pTargetObject = { nullptr };
|
||||
#endif
|
||||
private:
|
||||
HRESULT Initialize();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user