@@ -164,6 +164,7 @@ call Update_Resources.bat
|
|||||||
<ClInclude Include="..\Public\Avadakedavra.h" />
|
<ClInclude Include="..\Public\Avadakedavra.h" />
|
||||||
<ClInclude Include="..\Public\AvadakedavraSide.h" />
|
<ClInclude Include="..\Public\AvadakedavraSide.h" />
|
||||||
<ClInclude Include="..\Public\Elf.h" />
|
<ClInclude Include="..\Public\Elf.h" />
|
||||||
|
<ClInclude Include="..\public\MapElement_Cave.h" />
|
||||||
<ClInclude Include="..\Public\StupefySide.h" />
|
<ClInclude Include="..\Public\StupefySide.h" />
|
||||||
<ClInclude Include="..\Public\Broom_Circle.h" />
|
<ClInclude Include="..\Public\Broom_Circle.h" />
|
||||||
<ClInclude Include="..\Public\Broom_Exit.h" />
|
<ClInclude Include="..\Public\Broom_Exit.h" />
|
||||||
@@ -472,6 +473,7 @@ call Update_Resources.bat
|
|||||||
<ClCompile Include="..\Private\Avadakedavra.cpp" />
|
<ClCompile Include="..\Private\Avadakedavra.cpp" />
|
||||||
<ClCompile Include="..\Private\AvadakedavraSide.cpp" />
|
<ClCompile Include="..\Private\AvadakedavraSide.cpp" />
|
||||||
<ClCompile Include="..\Private\Elf.cpp" />
|
<ClCompile Include="..\Private\Elf.cpp" />
|
||||||
|
<ClCompile Include="..\private\MapElement_Cave.cpp" />
|
||||||
<ClCompile Include="..\Private\StupefySide.cpp" />
|
<ClCompile Include="..\Private\StupefySide.cpp" />
|
||||||
<ClCompile Include="..\Private\Broom_Circle.cpp" />
|
<ClCompile Include="..\Private\Broom_Circle.cpp" />
|
||||||
<ClCompile Include="..\Private\Broom_Exit.cpp" />
|
<ClCompile Include="..\Private\Broom_Exit.cpp" />
|
||||||
|
|||||||
@@ -947,6 +947,9 @@
|
|||||||
<ClInclude Include="..\Public\Elf.h">
|
<ClInclude Include="..\Public\Elf.h">
|
||||||
<Filter>02.GameObjects\NPC\Ally\Elf</Filter>
|
<Filter>02.GameObjects\NPC\Ally\Elf</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\public\MapElement_Cave.h">
|
||||||
|
<Filter>02.GameObjects\Environment\03.MapElement\Cave</Filter>
|
||||||
|
</ClInclude>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Image Include="Client.ico">
|
<Image Include="Client.ico">
|
||||||
@@ -1953,6 +1956,12 @@
|
|||||||
<Filter Include="02.GameObjects\NPC\Ally\Elf">
|
<Filter Include="02.GameObjects\NPC\Ally\Elf">
|
||||||
<UniqueIdentifier>{9263815e-9651-4ba2-813f-c2a7f207522d}</UniqueIdentifier>
|
<UniqueIdentifier>{9263815e-9651-4ba2-813f-c2a7f207522d}</UniqueIdentifier>
|
||||||
</Filter>
|
</Filter>
|
||||||
|
<Filter Include="03.InfoInstance\NewFilter1">
|
||||||
|
<UniqueIdentifier>{44a8eee1-6b7f-4c9a-bf92-21f6b90e84c3}</UniqueIdentifier>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="02.GameObjects\Environment\03.MapElement\Cave">
|
||||||
|
<UniqueIdentifier>{5599bbbd-12f7-4b40-8e3d-24f869cce464}</UniqueIdentifier>
|
||||||
|
</Filter>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ClCompile Include="Client.cpp">
|
<ClCompile Include="Client.cpp">
|
||||||
@@ -2820,6 +2829,9 @@
|
|||||||
<ClCompile Include="..\Private\StupefySide.cpp">
|
<ClCompile Include="..\Private\StupefySide.cpp">
|
||||||
<Filter>02.GameObjects\Effect\Effects\Stupefy\StupefySide</Filter>
|
<Filter>02.GameObjects\Effect\Effects\Stupefy\StupefySide</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\private\MapElement_Cave.cpp">
|
||||||
|
<Filter>02.GameObjects\Environment\03.MapElement\Cave</Filter>
|
||||||
|
</ClCompile>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ClCompile Include="..\Private\State_Parry.cpp">
|
<ClCompile Include="..\Private\State_Parry.cpp">
|
||||||
|
|||||||
@@ -172,6 +172,10 @@ HRESULT CInfoInstance::Load_EffectParts(const _char* pFileName, const _char* pEf
|
|||||||
{
|
{
|
||||||
return m_pMapInfo->Load_EffectParts(pFileName, pEffectrFilePath);
|
return m_pMapInfo->Load_EffectParts(pFileName, pEffectrFilePath);
|
||||||
}
|
}
|
||||||
|
HRESULT CInfoInstance::Load_ReparoObjects(const _char* pFileName)
|
||||||
|
{
|
||||||
|
return m_pMapInfo->Load_ReparoObjects(pFileName);
|
||||||
|
}
|
||||||
HRESULT CInfoInstance::Load_DADA_INT()
|
HRESULT CInfoInstance::Load_DADA_INT()
|
||||||
{
|
{
|
||||||
return m_pMapInfo->Load_DADA_INT();
|
return m_pMapInfo->Load_DADA_INT();
|
||||||
|
|||||||
@@ -98,6 +98,13 @@ HRESULT CLand::Initialize(void* pArg)
|
|||||||
|
|
||||||
m_fRaduis = 350.f;
|
m_fRaduis = 350.f;
|
||||||
|
|
||||||
|
LAND_DESC* pDesc = static_cast<LAND_DESC*>(pArg);
|
||||||
|
|
||||||
|
string RigidBodyTag = CMyTools::ToString(pDesc->strModelComTag) + "_RigidBody";
|
||||||
|
|
||||||
|
ReadyForPhysX(RigidBodyTag.c_str());
|
||||||
|
ConvertToPhysX(RigidBodyTag.c_str());
|
||||||
|
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -166,12 +173,15 @@ HRESULT CLand::Bind_ShaderResources()
|
|||||||
if (FAILED(m_pDiffuseTextureCom->Bind_ShaderResources(m_pShaderCom, "g_DiffuseTextures", 0, m_pDiffuseTextureCom->Get_Size()))) {
|
if (FAILED(m_pDiffuseTextureCom->Bind_ShaderResources(m_pShaderCom, "g_DiffuseTextures", 0, m_pDiffuseTextureCom->Get_Size()))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (FAILED(m_pNormalTextureCom->Bind_ShaderResources(m_pShaderCom, "g_NormalTextures", 0, m_pNormalTextureCom->Get_Size()))) {
|
if (FAILED(m_pNormalTextureCom->Bind_ShaderResources(m_pShaderCom, "g_NormalTextures", 0, m_pNormalTextureCom->Get_Size()))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (FAILED(m_pMROTextureCom->Bind_ShaderResources(m_pShaderCom, "g_SurfaceParamsTextures", 0, m_pMROTextureCom->Get_Size()))) {
|
if (FAILED(m_pMROTextureCom->Bind_ShaderResources(m_pShaderCom, "g_SurfaceParamsTextures", 0, m_pMROTextureCom->Get_Size()))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (FAILED(m_pShaderCom->Bind_SRV("g_MaskTexture", m_pMaskTextureCom->Get_SRV(0)))) {
|
if (FAILED(m_pShaderCom->Bind_SRV("g_MaskTexture", m_pMaskTextureCom->Get_SRV(0)))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
@@ -182,6 +192,28 @@ HRESULT CLand::Bind_ShaderResources()
|
|||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CLand::ReadyForPhysX(const _char* pName)
|
||||||
|
{
|
||||||
|
_uint iLevel = NEXT_LEVEL;
|
||||||
|
|
||||||
|
if (FAILED(m_pModelCom->Ready_PhysXMeshes(XMMatrixIdentity(), iLevel, pName))) {
|
||||||
|
assert(false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void CLand::ConvertToPhysX(const _char* pName)
|
||||||
|
{
|
||||||
|
_wstring wstrName = CMyTools::ToWstring(pName);
|
||||||
|
|
||||||
|
CRigidBody_Static::RIGIDBODY_STATIC_DESC Desc = {};
|
||||||
|
Desc.iSubKind = ENUM_CLASS(PXOBJECT::TERRAIN);
|
||||||
|
Desc.pMeshName = wstrName.c_str();
|
||||||
|
Desc.pWorldMatrix = m_pTransformCom->Get_WorldMatrixPtr();
|
||||||
|
if (FAILED(__super::Add_Asset_Component(NEXT_LEVEL, wstrName, (CComponent**)&m_RigidBody, &Desc))) {
|
||||||
|
assert(false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
CLand* CLand::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
CLand* CLand::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||||
{
|
{
|
||||||
CLand* pInstance = new CLand(pDevice, pContext);
|
CLand* pInstance = new CLand(pDevice, pContext);
|
||||||
@@ -217,6 +249,7 @@ void CLand::Free()
|
|||||||
SAFE_RELEASE(m_pMaskTextureCom);
|
SAFE_RELEASE(m_pMaskTextureCom);
|
||||||
|
|
||||||
SAFE_RELEASE(m_pShaderCom);
|
SAFE_RELEASE(m_pShaderCom);
|
||||||
|
SAFE_RELEASE(m_RigidBody);
|
||||||
SAFE_RELEASE(m_pModelCom);
|
SAFE_RELEASE(m_pModelCom);
|
||||||
|
|
||||||
for (auto& pInstanceProp : m_InstanceProps)
|
for (auto& pInstanceProp : m_InstanceProps)
|
||||||
|
|||||||
@@ -329,6 +329,7 @@ HRESULT CLevel_GamePlay::Ready_Background()
|
|||||||
isReady_Background = true;
|
isReady_Background = true;
|
||||||
isReady_Hogsmeade = true;
|
isReady_Hogsmeade = true;
|
||||||
isReady_Hogwart = false;
|
isReady_Hogwart = false;
|
||||||
|
m_pInfoInstance->Load_ReparoObjects("Reparo_Data");
|
||||||
#endif // gimch
|
#endif // gimch
|
||||||
#ifdef Bin
|
#ifdef Bin
|
||||||
isReady_Background = false;
|
isReady_Background = false;
|
||||||
@@ -565,6 +566,7 @@ HRESULT CLevel_GamePlay::Ready_Layer_Hogwart()
|
|||||||
{
|
{
|
||||||
CInfoInstance::GetInstance()->Load_MapObjects("Hogwart_MapContainer_Data", LAYER_HOGWART);
|
CInfoInstance::GetInstance()->Load_MapObjects("Hogwart_MapContainer_Data", LAYER_HOGWART);
|
||||||
CInfoInstance::GetInstance()->Load_MapObjects("HogwartMap1221", LAYER_HOGWART);
|
CInfoInstance::GetInstance()->Load_MapObjects("HogwartMap1221", LAYER_HOGWART);
|
||||||
|
CInfoInstance::GetInstance()->Load_MapObjects("CaveData", LAYER_HOGWART);
|
||||||
|
|
||||||
CUnified::UNIFIED_DESC Desc = {};
|
CUnified::UNIFIED_DESC Desc = {};
|
||||||
|
|
||||||
@@ -986,11 +988,11 @@ HRESULT CLevel_GamePlay::Ready_Layer_Item(const _wstring& strLayerTag)
|
|||||||
|
|
||||||
HRESULT CLevel_GamePlay::Ready_Layer_ReparoObject(const _wstring& strLayerTag)
|
HRESULT CLevel_GamePlay::Ready_Layer_ReparoObject(const _wstring& strLayerTag)
|
||||||
{
|
{
|
||||||
for (_uint i = 0; i < 1; ++i) {
|
//for (_uint i = 0; i < 1; ++i) {
|
||||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CReparoObject>(g_iStaticLevel, NEXT_LEVEL, strLayerTag))) {
|
// if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CReparoObject>(g_iStaticLevel, NEXT_LEVEL, strLayerTag))) {
|
||||||
return E_FAIL;
|
// return E_FAIL;
|
||||||
}
|
// }
|
||||||
}
|
//}
|
||||||
|
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -274,6 +274,7 @@
|
|||||||
#include "WorldDecal.h"
|
#include "WorldDecal.h"
|
||||||
#include "PointLight.h"
|
#include "PointLight.h"
|
||||||
#include "MapElement_Balloon.h"
|
#include "MapElement_Balloon.h"
|
||||||
|
#include "MapElement_Cave.h"
|
||||||
|
|
||||||
#pragma endregion
|
#pragma endregion
|
||||||
|
|
||||||
@@ -1101,6 +1102,10 @@ HRESULT CLoader::Loading_For_GamePlay()
|
|||||||
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/SUB_DADATower/StaticMesh/EXT",
|
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/SUB_DADATower/StaticMesh/EXT",
|
||||||
".bin", false
|
".bin", false
|
||||||
));
|
));
|
||||||
|
jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||||
|
"../Bin/Resources/Models/MapMesh/Game/Environment/Overland_Common/Meshes",
|
||||||
|
".bin", false
|
||||||
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (true == isLoad_DataClassroom)
|
if (true == isLoad_DataClassroom)
|
||||||
@@ -1316,10 +1321,6 @@ HRESULT CLoader::Loading_For_GamePlay()
|
|||||||
MODEL::ANIM, "../Bin/Resources/Models/Object/Reparo_Object/VFX_SK_OLI_TrollFight_BlockerA.bin", XMMatrixIdentity(),
|
MODEL::ANIM, "../Bin/Resources/Models/Object/Reparo_Object/VFX_SK_OLI_TrollFight_BlockerA.bin", XMMatrixIdentity(),
|
||||||
TEXT("Prototype_Component_VFX_SK_OLI_TrollFight_BlockerA_Model")
|
TEXT("Prototype_Component_VFX_SK_OLI_TrollFight_BlockerA_Model")
|
||||||
));
|
));
|
||||||
jobCharacterModels.emplace_back(Deferred_ModelLoad(
|
|
||||||
MODEL::ANIM, "../Bin/Resources/Models/Object/Reparo_Object/VFX_SK_OLI_TrollFight_BlockerA.bin", XMMatrixIdentity(),
|
|
||||||
TEXT("Prototype_Component_VFX_SK_OLI_TrollFight_BlockerA_Model")
|
|
||||||
));
|
|
||||||
jobCharacterModels.emplace_back(Deferred_ModelLoad(
|
jobCharacterModels.emplace_back(Deferred_ModelLoad(
|
||||||
MODEL::ANIM, "../Bin/Resources/Models/Object/Reparo_Object/VFX_SK_OLI_TrollFight_BlockerB.bin", XMMatrixIdentity(),
|
MODEL::ANIM, "../Bin/Resources/Models/Object/Reparo_Object/VFX_SK_OLI_TrollFight_BlockerB.bin", XMMatrixIdentity(),
|
||||||
TEXT("Prototype_Component_VFX_SK_OLI_TrollFight_BlockerB_Model")
|
TEXT("Prototype_Component_VFX_SK_OLI_TrollFight_BlockerB_Model")
|
||||||
@@ -1388,123 +1389,141 @@ HRESULT CLoader::Loading_For_GamePlay()
|
|||||||
|
|
||||||
/* LAND_MODEL */
|
/* LAND_MODEL */
|
||||||
{
|
{
|
||||||
|
CRigidBody_Static::RIGIDBODY_STATIC_PROTOTYPEDESC Desc{}; //
|
||||||
|
{
|
||||||
|
Desc.eType = ACTOR::TRIANGLEMESH;
|
||||||
|
Desc.ePxRigidBodyFlags = {};
|
||||||
|
Desc.ePxShapeFlags = { PSX::PxShapeFlag::eVISUALIZATION | PSX::PxShapeFlag::eSCENE_QUERY_SHAPE | PSX::PxShapeFlag::eSIMULATION_SHAPE };
|
||||||
|
Desc.ePxMaterialTypes = PXMATERIAL::DEFAULT;
|
||||||
|
Desc.vMatInfo = _float3(0.5f, 0.5f, 0.6f);
|
||||||
|
Desc.fContactOffset = 0.001f;
|
||||||
|
}
|
||||||
|
|
||||||
/* For.Prototype_Component_South_Hogwart_Land_LOD1 */
|
/* For.Prototype_Component_South_Hogwart_Land_LOD1 */
|
||||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_South_Hogwart_Land_LOD1"),
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_South_Hogwart_Land_LOD1"),
|
||||||
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_BCLOD/SM_LandscapeStreamingProxy_0_LOD1.bin"))))
|
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_BCLOD/SM_LandscapeStreamingProxy_0_LOD1.bin"))))
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
|
CRigidBody_Static* pRigid = CRigidBody_Static::Create(m_pDevice, m_pContext, Desc);
|
||||||
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_South_Hogwart_Land_LOD1_RigidBody"), pRigid))) {
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
|
|
||||||
/* For.Prototype_Component_North_Hogwart_Land_LOD1 */
|
/* For.Prototype_Component_North_Hogwart_Land_LOD1 */
|
||||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_North_Hogwart_Land_LOD1"),
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_North_Hogwart_Land_LOD1"),
|
||||||
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_AVLOD/SM_LandscapeStreamingProxy_0_LOD1.bin"))))
|
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_AVLOD/SM_LandscapeStreamingProxy_0_LOD1.bin"))))
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
|
pRigid = CRigidBody_Static::Create(m_pDevice, m_pContext, Desc);
|
||||||
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_North_Hogwart_Land_LOD1_RigidBody"), pRigid))) {
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
|
|
||||||
/* For.Prototype_Component_North_Hogwart2_Land_LOD1 */
|
/* For.Prototype_Component_North_Hogwart2_Land_LOD1 */
|
||||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_North_Hogwart2_Land_LOD1"),
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_North_Hogwart2_Land_LOD1"),
|
||||||
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_AULOD/SM_LandscapeStreamingProxy_0_LOD1.bin"))))
|
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_AULOD/SM_LandscapeStreamingProxy_0_LOD1.bin"))))
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
|
pRigid = CRigidBody_Static::Create(m_pDevice, m_pContext, Desc);
|
||||||
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_North_Hogwart2_Land_LOD1_RigidBody"), pRigid))) {
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
|
|
||||||
/* For.Prototype_Component_West_Hogwart_Land_LOD1 */
|
/* For.Prototype_Component_West_Hogwart_Land_LOD1 */
|
||||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_West_Hogwart_Land_LOD1"),
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_West_Hogwart_Land_LOD1"),
|
||||||
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_AZLOD/SM_LandscapeStreamingProxy_0_LOD1.bin"))))
|
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_AZLOD/SM_LandscapeStreamingProxy_0_LOD1.bin"))))
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
|
pRigid = CRigidBody_Static::Create(m_pDevice, m_pContext, Desc);
|
||||||
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_West_Hogwart_Land_LOD1_RigidBody"), pRigid))) {
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
|
|
||||||
/* For.Prototype_Component_East_Hogwart_Land_LOD1 */
|
/* For.Prototype_Component_East_Hogwart_Land_LOD1 */
|
||||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_East_Hogsmeade_Land_LOD1"),
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_East_Hogsmeade_Land_LOD1"),
|
||||||
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_AYLOD/SM_LandscapeStreamingProxy_0_LOD1.bin"))))
|
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_AYLOD/SM_LandscapeStreamingProxy_0_LOD1.bin"))))
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
|
pRigid = CRigidBody_Static::Create(m_pDevice, m_pContext, Desc);
|
||||||
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_East_Hogsmeade_Land_LOD1_RigidBody"), pRigid))) {
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
|
|
||||||
// -----------------
|
|
||||||
/* For.Prototype_Component_Land_HN_BA */
|
/* For.Prototype_Component_Land_HN_BA */
|
||||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BA"),
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BA"),
|
||||||
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_BALOD/SM_LandscapeStreamingProxy_0_LOD1.bin"))))
|
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_BALOD/SM_LandscapeStreamingProxy_0_LOD1.bin"))))
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
|
pRigid = CRigidBody_Static::Create(m_pDevice, m_pContext, Desc);
|
||||||
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_Land_HN_BA_RigidBody"), pRigid))) {
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
|
|
||||||
/* For.Prototype_Component_Land_HN_BD */
|
/* For.Prototype_Component_Land_HN_BD */
|
||||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BD"),
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BD"),
|
||||||
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_BDLOD/SM_LandscapeStreamingProxy_0_LOD1.bin"))))
|
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_BDLOD/SM_LandscapeStreamingProxy_0_LOD1.bin"))))
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
|
pRigid = CRigidBody_Static::Create(m_pDevice, m_pContext, Desc);
|
||||||
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_Land_HN_BD_RigidBody"), pRigid))) {
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
|
|
||||||
/* For.Prototype_Component_Land_HN_BE */
|
/* For.Prototype_Component_Land_HN_BE */
|
||||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BE"),
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BE"),
|
||||||
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_BELOD/SM_LandscapeStreamingProxy_0_LOD1.bin"))))
|
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_BELOD/SM_LandscapeStreamingProxy_0_LOD1.bin"))))
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
|
pRigid = CRigidBody_Static::Create(m_pDevice, m_pContext, Desc);
|
||||||
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_Land_HN_BE_RigidBody"), pRigid))) {
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
|
|
||||||
/* For.Prototype_Component_Land_HN_BF */
|
/* For.Prototype_Component_Land_HN_BF */
|
||||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BF"),
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BF"),
|
||||||
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_BFLOD/SM_LandscapeStreamingProxy_0_LOD1.bin"))))
|
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_BFLOD/SM_LandscapeStreamingProxy_0_LOD1.bin"))))
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
|
pRigid = CRigidBody_Static::Create(m_pDevice, m_pContext, Desc);
|
||||||
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_Land_HN_BF_RigidBody"), pRigid))) {
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
|
|
||||||
/* For.Prototype_Component_Land_HN_BG */
|
/* For.Prototype_Component_Land_HN_BG */
|
||||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BG"),
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BG"),
|
||||||
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_BGLOD/SM_LandscapeStreamingProxy_1_LOD1.bin"))))
|
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_BGLOD/SM_LandscapeStreamingProxy_1_LOD1.bin"))))
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
|
pRigid = CRigidBody_Static::Create(m_pDevice, m_pContext, Desc);
|
||||||
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_Land_HN_BG_RigidBody"), pRigid))) {
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
|
|
||||||
/* For.Prototype_Component_Land_HN_BH */
|
/* For.Prototype_Component_Land_HN_BH */
|
||||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BH"),
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BH"),
|
||||||
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_BHLOD/SM_LandscapeStreamingProxy_0_LOD1.bin"))))
|
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_BHLOD/SM_LandscapeStreamingProxy_0_LOD1.bin"))))
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
|
pRigid = CRigidBody_Static::Create(m_pDevice, m_pContext, Desc);
|
||||||
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_Land_HN_BH_RigidBody"), pRigid))) {
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
|
|
||||||
/* For.Prototype_Component_Land_HN_BI */
|
/* For.Prototype_Component_Land_HN_BI */
|
||||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BI"),
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BI"),
|
||||||
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_BILOD/SM_LandscapeStreamingProxy_0_LOD1.bin"))))
|
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_BILOD/SM_LandscapeStreamingProxy_0_LOD1.bin"))))
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
|
pRigid = CRigidBody_Static::Create(m_pDevice, m_pContext, Desc);
|
||||||
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_Land_HN_BI_RigidBody"), pRigid))) {
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
|
|
||||||
/* For.Prototype_Component_Land_HN_BJ */
|
/* For.Prototype_Component_Land_HN_BJ */
|
||||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BJ"),
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BJ"),
|
||||||
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_BJLOD/SM_LandscapeStreamingProxy_0_LOD1.bin"))))
|
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_BJLOD/SM_LandscapeStreamingProxy_0_LOD1.bin"))))
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
|
pRigid = CRigidBody_Static::Create(m_pDevice, m_pContext, Desc);
|
||||||
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_Land_HN_BJ_RigidBody"), pRigid))) {
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
|
|
||||||
/* For.Prototype_Component_Land_TU_BB */
|
/* For.Prototype_Component_Land_TU_BB */
|
||||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_TU_BB"),
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_TU_BB"),
|
||||||
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/TU_BBLOD/SM_LandscapeStreamingProxy_0_LOD1.bin"))))
|
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/TU_BBLOD/SM_LandscapeStreamingProxy_0_LOD1.bin"))))
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
|
pRigid = CRigidBody_Static::Create(m_pDevice, m_pContext, Desc);
|
||||||
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_Land_TU_BB_RigidBody"), pRigid))) {
|
||||||
///* For.Prototype_Component_Land_HN_BA */
|
return E_FAIL;
|
||||||
//if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BA"),
|
}
|
||||||
// CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "C:/MeshTable/Game/Levels/Overland/HOG/HN_BALOD/SM_LandscapeStreamingProxy_0_LOD1.bin"))))
|
|
||||||
// return E_FAIL;
|
|
||||||
|
|
||||||
///* For.Prototype_Component_Land_HN_BD */
|
|
||||||
//if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BD"),
|
|
||||||
// CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "C:/MeshTable/Game/Levels/Overland/HOG/HN_BDLOD/SM_LandscapeStreamingProxy_0_LOD1.bin"))))
|
|
||||||
// return E_FAIL;
|
|
||||||
|
|
||||||
///* For.Prototype_Component_Land_HN_BG */
|
|
||||||
//if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BG"),
|
|
||||||
// CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "C:/MeshTable/Game/Levels/Overland/HOG/HN_BGLOD/SM_LandscapeStreamingProxy_1_LOD1.bin"))))
|
|
||||||
// return E_FAIL;
|
|
||||||
|
|
||||||
///* For.Prototype_Component_Land_HN_BH */
|
|
||||||
//if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BH"),
|
|
||||||
// CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "C:/MeshTable/Game/Levels/Overland/HOG/HN_BHLOD/SM_LandscapeStreamingProxy_0_LOD1.bin"))))
|
|
||||||
// return E_FAIL;
|
|
||||||
|
|
||||||
|
|
||||||
///* For.Prototype_Component_Land_HN_BE */
|
|
||||||
//if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BE"),
|
|
||||||
// CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "C:/MeshTable/Game/Levels/Overland/HOG/HN_BELOD/SM_LandscapeStreamingProxy_0_LOD1.bin"))))
|
|
||||||
// return E_FAIL;
|
|
||||||
|
|
||||||
///* For.Prototype_Component_Land_HN_BF */
|
|
||||||
//if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BF"),
|
|
||||||
// CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "C:/MeshTable/Game/Levels/Overland/HOG/HN_BFLOD/SM_LandscapeStreamingProxy_0_LOD1.bin"))))
|
|
||||||
// return E_FAIL;
|
|
||||||
|
|
||||||
///* For.Prototype_Component_Land_HN_BI */
|
|
||||||
//if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BI"),
|
|
||||||
// CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "C:/MeshTable/Game/Levels/Overland/HOG/HN_BILOD/SM_LandscapeStreamingProxy_0_LOD1.bin"))))
|
|
||||||
// return E_FAIL;
|
|
||||||
|
|
||||||
///* For.Prototype_Component_Land_HN_BJ */
|
|
||||||
//if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BJ"),
|
|
||||||
// CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "C:/MeshTable/Game/Levels/Overland/HOG/HN_BJLOD/SM_LandscapeStreamingProxy_0_LOD1.bin"))))
|
|
||||||
// return E_FAIL;
|
|
||||||
|
|
||||||
///* For.Prototype_Component_Land_TU_BB */
|
|
||||||
//if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_TU_BB"),
|
|
||||||
// CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "C:/MeshTable/Game/Levels/Overland/HOG/TU_BBLOD/SM_LandscapeStreamingProxy_0_LOD1.bin"))))
|
|
||||||
// return E_FAIL;
|
|
||||||
}
|
}
|
||||||
#pragma endregion
|
#pragma endregion
|
||||||
#pragma region UI
|
#pragma region UI
|
||||||
@@ -3715,6 +3734,10 @@ HRESULT CLoader::Loading_For_GamePlay()
|
|||||||
if (FAILED(m_pGameInstance->Add_Prototype<CMapElement_Lake>(g_iStaticLevel, CMapElement_Lake::Create(m_pDevice, m_pContext))))
|
if (FAILED(m_pGameInstance->Add_Prototype<CMapElement_Lake>(g_iStaticLevel, CMapElement_Lake::Create(m_pDevice, m_pContext))))
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
|
|
||||||
|
/* For.Prototype_GameObject_Cave */
|
||||||
|
if (FAILED(m_pGameInstance->Add_Prototype<CMapElement_Cave>(g_iStaticLevel, CMapElement_Cave::Create(m_pDevice, m_pContext))))
|
||||||
|
return E_FAIL;
|
||||||
|
|
||||||
/* For.Prototype_GameObject_Land */
|
/* For.Prototype_GameObject_Land */
|
||||||
if (FAILED(m_pGameInstance->Add_Prototype<CLand>(g_iStaticLevel, CLand::Create(m_pDevice, m_pContext)))) {
|
if (FAILED(m_pGameInstance->Add_Prototype<CLand>(g_iStaticLevel, CLand::Create(m_pDevice, m_pContext)))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
|
|||||||
@@ -0,0 +1,267 @@
|
|||||||
|
#include "pch.h"
|
||||||
|
#include "MapElement_Cave.h"
|
||||||
|
#include "GameInstance.h"
|
||||||
|
|
||||||
|
#include "Layer.h"
|
||||||
|
#include "TriggerBox.h"
|
||||||
|
|
||||||
|
CMapElement_Cave::CMapElement_Cave(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||||
|
: CMapElement{ pDevice, pContext }
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
CMapElement_Cave::CMapElement_Cave(const CMapElement_Cave& rhs)
|
||||||
|
: CMapElement(rhs)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
HRESULT CMapElement_Cave::Initialize_Prototype()
|
||||||
|
{
|
||||||
|
return S_OK;
|
||||||
|
}
|
||||||
|
|
||||||
|
HRESULT CMapElement_Cave::Initialize(void* pArg)
|
||||||
|
{
|
||||||
|
MAPELEMENT_DESC* pDesc = static_cast<MAPELEMENT_DESC*>(pArg);
|
||||||
|
|
||||||
|
m_bVisible = pDesc->bVisible;
|
||||||
|
m_iMaxLodLevel = pDesc->iMaxLodLevel;
|
||||||
|
|
||||||
|
for (_uint i = 0; i < m_iMaxLodLevel + 1; i++)
|
||||||
|
{
|
||||||
|
m_ModelPrototypeTags.push_back(pDesc->ModelPrototypeTags[i]);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (FAILED(__super::Initialize(pArg)))
|
||||||
|
return E_FAIL;
|
||||||
|
|
||||||
|
if (FAILED(Ready_Components(pArg)))
|
||||||
|
return E_FAIL;
|
||||||
|
|
||||||
|
m_pTransformCom->Set_Scale(pDesc->vScale);
|
||||||
|
m_pTransformCom->Rotation(XMConvertToRadians(pDesc->vRotation.x), XMConvertToRadians(pDesc->vRotation.y), XMConvertToRadians(pDesc->vRotation.z));
|
||||||
|
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&pDesc->vPosition), 1.f));
|
||||||
|
|
||||||
|
_float fMaxScale = max(max(pDesc->vScale.x, pDesc->vScale.y), pDesc->vScale.z);
|
||||||
|
|
||||||
|
m_fRadius = m_pModelComs[0]->Get_Radius() * fMaxScale;
|
||||||
|
|
||||||
|
_float3 vOffset = m_pModelComs[0]->Get_RadiusOffset();
|
||||||
|
XMStoreFloat3(&m_vWorldCenterPosition, XMVector3TransformCoord(XMLoadFloat3(&vOffset), m_pTransformCom->Get_XMWorldMatrix()));
|
||||||
|
|
||||||
|
ReadyForPhysX();
|
||||||
|
ConvertToPhysX();
|
||||||
|
|
||||||
|
if (FAILED(Ready_TriggerBox()))
|
||||||
|
return E_FAIL;
|
||||||
|
|
||||||
|
return S_OK;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CMapElement_Cave::Priority_Update(_float fTimeDelta)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void CMapElement_Cave::Update(_float fTimeDelta)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void CMapElement_Cave::Late_Update(_float fTimeDelta)
|
||||||
|
{
|
||||||
|
if (m_pGameInstance->IsIn_WorldFrustum(XMVectorSetW(XMLoadFloat3(&m_vWorldCenterPosition), 1.f), m_fRadius)) {
|
||||||
|
if (m_bVisible)
|
||||||
|
{
|
||||||
|
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
|
||||||
|
#ifdef _DEBUG
|
||||||
|
m_pGameInstance->Add_RenderGroup(RENDER::NONLIGHT, m_pTriggerBox);
|
||||||
|
#endif // _DEBUG
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if (SUCCEEDED(m_pTriggerBox->TryScanArea(fTimeDelta)))
|
||||||
|
{
|
||||||
|
Enter_Cave();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
HRESULT CMapElement_Cave::Render()
|
||||||
|
{
|
||||||
|
if (FAILED(Bind_ShaderResources()))
|
||||||
|
return E_FAIL;
|
||||||
|
|
||||||
|
_uint iNumMeshes = m_pModelComs[m_iLodIndex]->Get_NumMeshes();
|
||||||
|
|
||||||
|
for (_uint i = 0; i < iNumMeshes; i++)
|
||||||
|
{
|
||||||
|
if (FAILED(m_pModelComs[0]->Bind_Material(i, m_pShaderCom))) {
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_MESH::DEFAULT)))) {
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (FAILED(m_pModelComs[m_iLodIndex]->Render(i))) {
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return S_OK;
|
||||||
|
}
|
||||||
|
|
||||||
|
HRESULT CMapElement_Cave::Ready_Components(void* pArg)
|
||||||
|
{
|
||||||
|
if (FAILED(__super::Ready_Components(pArg))) {
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
|
|
||||||
|
for (_uint i = 0; i < m_iMaxLodLevel + 1; ++i)
|
||||||
|
{
|
||||||
|
CModel* pModel = { nullptr };
|
||||||
|
|
||||||
|
/* Com_Model */
|
||||||
|
if (FAILED(__super::Add_Asset_Component(NEXT_LEVEL, m_ModelPrototypeTags[i],
|
||||||
|
reinterpret_cast<CComponent**>(&pModel))))
|
||||||
|
return E_FAIL;
|
||||||
|
|
||||||
|
m_pModelComs.push_back(pModel);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Com_Shader */
|
||||||
|
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_MESH,
|
||||||
|
reinterpret_cast<CComponent**>(&m_pShaderCom))))
|
||||||
|
return E_FAIL;
|
||||||
|
|
||||||
|
return S_OK;
|
||||||
|
}
|
||||||
|
|
||||||
|
HRESULT CMapElement_Cave::Bind_ShaderResources()
|
||||||
|
{
|
||||||
|
if (FAILED(m_pShaderCom->Bind_Matrix("g_WorldMatrix", m_pTransformCom->Get_WorldMatrixPtr()))) {
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
|
||||||
|
HRESULT CMapElement_Cave::Ready_TriggerBox()
|
||||||
|
{
|
||||||
|
CTriggerBox::TRIGGERBOX_DESC Desc = {};
|
||||||
|
|
||||||
|
XMStoreFloat4(&Desc.vPosition_Radius, m_pTransformCom->Get_State(STATE::POSITION));
|
||||||
|
Desc.vPosition_Radius.w = 10.f;
|
||||||
|
|
||||||
|
m_pTriggerBox = CTriggerBox::Create(m_pDevice, m_pContext, &Desc);
|
||||||
|
|
||||||
|
#ifdef _DEBUG
|
||||||
|
|
||||||
|
#endif // _DEBUG
|
||||||
|
|
||||||
|
return S_OK;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CMapElement_Cave::ReadyForPhysX()
|
||||||
|
{
|
||||||
|
if (true == m_bConverted) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
m_bConverted = true;
|
||||||
|
_uint iLevel = NEXT_LEVEL;
|
||||||
|
|
||||||
|
CModel* pModel = m_pModelComs[0];
|
||||||
|
|
||||||
|
if (FAILED(pModel->Ready_PhysXMeshes(XMMatrixIdentity(), iLevel))) {
|
||||||
|
assert(false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void CMapElement_Cave::ConvertToPhysX()
|
||||||
|
{
|
||||||
|
if (true == m_bReadyToCreatePhysX) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
m_bReadyToCreatePhysX = true;
|
||||||
|
|
||||||
|
CModel* pModel = m_pModelComs[0];
|
||||||
|
|
||||||
|
_uint iNumMeshes = pModel->Get_NumMeshes();
|
||||||
|
|
||||||
|
for (_uint iIndex = 0; iIndex < iNumMeshes; ++iIndex)
|
||||||
|
{
|
||||||
|
_wstring wstrName = CMyTools::ToWstring(pModel->Get_MeshName(iIndex)) + to_wstring(iIndex);
|
||||||
|
CRigidBody_Static* pRigidBody = { nullptr };
|
||||||
|
CRigidBody_Static::RIGIDBODY_STATIC_DESC Desc = {};
|
||||||
|
Desc.iSubKind = ENUM_CLASS(PXOBJECT::TERRAIN);
|
||||||
|
Desc.pMeshName = wstrName.c_str();
|
||||||
|
Desc.pWorldMatrix = m_pTransformCom->Get_WorldMatrixPtr();
|
||||||
|
if (FAILED(__super::Add_Asset_Component(NEXT_LEVEL, wstrName, (CComponent**)&pRigidBody, &Desc))) {
|
||||||
|
assert(false);
|
||||||
|
}
|
||||||
|
m_RigidBodies.push_back(pRigidBody);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void CMapElement_Cave::Enter_Cave()
|
||||||
|
{
|
||||||
|
m_pGameInstance->Set_LevelToChange();
|
||||||
|
}
|
||||||
|
|
||||||
|
CMapElement_Cave* CMapElement_Cave::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||||
|
{
|
||||||
|
CMapElement_Cave* pInstance = new CMapElement_Cave(pDevice, pContext);
|
||||||
|
|
||||||
|
if (FAILED(pInstance->Initialize_Prototype()))
|
||||||
|
{
|
||||||
|
MSG_BOX("Failed to Created : CMapElement_Cave");
|
||||||
|
SAFE_RELEASE(pInstance);
|
||||||
|
}
|
||||||
|
|
||||||
|
return pInstance;
|
||||||
|
}
|
||||||
|
|
||||||
|
CGameObject* CMapElement_Cave::Clone(void* pArg, CGameObject* pOwner)
|
||||||
|
{
|
||||||
|
CMapElement_Cave* pInstance = new CMapElement_Cave(*this);
|
||||||
|
pInstance->m_pOwner = pOwner;
|
||||||
|
if (FAILED(pInstance->Initialize(pArg)))
|
||||||
|
{
|
||||||
|
MSG_BOX("Failed to Cloned : CMapElement_Cave");
|
||||||
|
SAFE_RELEASE(pInstance);
|
||||||
|
}
|
||||||
|
|
||||||
|
return pInstance;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CMapElement_Cave::Free()
|
||||||
|
{
|
||||||
|
__super::Free();
|
||||||
|
|
||||||
|
SAFE_RELEASE(m_pShaderCom);
|
||||||
|
|
||||||
|
for (_uint i = 0; i < m_RigidBodies.size(); ++i) {
|
||||||
|
SAFE_RELEASE(m_RigidBodies[i]);
|
||||||
|
} m_RigidBodies.clear();
|
||||||
|
|
||||||
|
for (auto& pModel : m_pModelComs)
|
||||||
|
SAFE_RELEASE(pModel);
|
||||||
|
}
|
||||||
|
|
||||||
|
#ifdef _DEBUG
|
||||||
|
void CMapElement_Cave::Describe_Entity()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
#endif // _DEBUG
|
||||||
@@ -30,7 +30,6 @@ HRESULT CMapElement_Static::Initialize(void* pArg)
|
|||||||
for (_uint i = 0; i < m_iMaxLodLevel + 1; i++)
|
for (_uint i = 0; i < m_iMaxLodLevel + 1; i++)
|
||||||
{
|
{
|
||||||
m_ModelPrototypeTags.push_back(pDesc->ModelPrototypeTags[i]);
|
m_ModelPrototypeTags.push_back(pDesc->ModelPrototypeTags[i]);
|
||||||
//m_ModelPathIndices.push_back((*pDesc->pModelPathIndices)[i]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (FAILED(__super::Initialize(pArg)))
|
if (FAILED(__super::Initialize(pArg)))
|
||||||
|
|||||||
@@ -19,6 +19,8 @@
|
|||||||
#include "Layer.h"
|
#include "Layer.h"
|
||||||
#include "EffectParts.h"
|
#include "EffectParts.h"
|
||||||
#include "RandomNpc.h"
|
#include "RandomNpc.h"
|
||||||
|
#include "MapElement_Cave.h"
|
||||||
|
#include "ReparoObject.h"
|
||||||
|
|
||||||
CMapInfo::CMapInfo()
|
CMapInfo::CMapInfo()
|
||||||
{
|
{
|
||||||
@@ -156,6 +158,10 @@ HRESULT CMapInfo::Load_MapObjects(const _char* pFileName, const _wchar* pLayerTa
|
|||||||
Desc.bVisible = false;
|
Desc.bVisible = false;
|
||||||
m_pGameInstance->Add_GameObject_ToLayer<CMapElement_Static>(g_iStaticLevel, NEXT_LEVEL, pLayerTag, &Desc);
|
m_pGameInstance->Add_GameObject_ToLayer<CMapElement_Static>(g_iStaticLevel, NEXT_LEVEL, pLayerTag, &Desc);
|
||||||
}
|
}
|
||||||
|
else if (MAPOBJECT_TYPE::ELEMENT_CAVE == eType)
|
||||||
|
{
|
||||||
|
m_pGameInstance->Add_GameObject_ToLayer<CMapElement_Cave>(g_iStaticLevel, NEXT_LEVEL, pLayerTag, &Desc);
|
||||||
|
}
|
||||||
/*else if (MAPOBJECT_TYPE::ELEMENT_INTERACT == eType)
|
/*else if (MAPOBJECT_TYPE::ELEMENT_INTERACT == eType)
|
||||||
m_pGameInstance->Add_GameObject_ToLayer<CMapElement_Interactable>(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Element_Interact"), &Desc);*/
|
m_pGameInstance->Add_GameObject_ToLayer<CMapElement_Interactable>(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Element_Interact"), &Desc);*/
|
||||||
}
|
}
|
||||||
@@ -830,6 +836,48 @@ HRESULT CMapInfo::Load_EffectParts(const _char* pFileName, const _char* pEffectr
|
|||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
HRESULT CMapInfo::Load_ReparoObjects(const _char* pFileName)
|
||||||
|
{
|
||||||
|
tinyxml2::XMLDocument xmlDoc;
|
||||||
|
|
||||||
|
string strPath = "../Bin/Resources/Data/Map/Reparo/" + string(pFileName) + ".xml";
|
||||||
|
|
||||||
|
if ((tinyxml2::XML_SUCCESS != xmlDoc.LoadFile(strPath.c_str())))
|
||||||
|
return E_FAIL;
|
||||||
|
|
||||||
|
tinyxml2::XMLElement* root = xmlDoc.FirstChildElement("Reparo");
|
||||||
|
|
||||||
|
if (nullptr == root)
|
||||||
|
{
|
||||||
|
MSG_BOX("Failed to Find root");
|
||||||
|
return S_OK;
|
||||||
|
}
|
||||||
|
|
||||||
|
for (auto* Object = root->FirstChildElement("Object"); Object; Object = Object->NextSiblingElement("Object"))
|
||||||
|
{
|
||||||
|
CReparoObject::REPARO_OBJECT_DESC Desc = {};
|
||||||
|
|
||||||
|
Object->QueryUnsignedAttribute("Type", &Desc.iModelID);
|
||||||
|
Object->QueryFloatAttribute("Radius", &Desc.fRadius);
|
||||||
|
|
||||||
|
/* Transform */
|
||||||
|
auto* Rotation = Object->FirstChildElement("Rotation");
|
||||||
|
Rotation->QueryFloatAttribute("x", &Desc.vRotation.x);
|
||||||
|
Rotation->QueryFloatAttribute("y", &Desc.vRotation.y);
|
||||||
|
Rotation->QueryFloatAttribute("z", &Desc.vRotation.z);
|
||||||
|
|
||||||
|
auto* Position = Object->FirstChildElement("Position");
|
||||||
|
Position->QueryFloatAttribute("x", &Desc.vPosition.x);
|
||||||
|
Position->QueryFloatAttribute("y", &Desc.vPosition.y);
|
||||||
|
Position->QueryFloatAttribute("z", &Desc.vPosition.z);
|
||||||
|
|
||||||
|
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CReparoObject>(g_iStaticLevel, NEXT_LEVEL, LAYER_REPARO, &Desc)))
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
|
|
||||||
|
return S_OK;
|
||||||
|
}
|
||||||
|
|
||||||
HRESULT CMapInfo::Load_DADA_INT()
|
HRESULT CMapInfo::Load_DADA_INT()
|
||||||
{
|
{
|
||||||
if (FAILED(Load_MapObjects("DATA_INT_Data", LAYER_DADA_INT)))
|
if (FAILED(Load_MapObjects("DATA_INT_Data", LAYER_DADA_INT)))
|
||||||
|
|||||||
@@ -21,6 +21,7 @@
|
|||||||
#include "Effect_Container.h"
|
#include "Effect_Container.h"
|
||||||
#include "ThestralCarriage.h"
|
#include "ThestralCarriage.h"
|
||||||
#include "MapElement_Chest.h"
|
#include "MapElement_Chest.h"
|
||||||
|
#include "ReparoObject.h"
|
||||||
|
|
||||||
CPlayer::CPlayer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
CPlayer::CPlayer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||||
: CUnit(pDevice, pContext)
|
: CUnit(pDevice, pContext)
|
||||||
@@ -887,6 +888,24 @@ void CPlayer::Find_HiddenObjects()
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CPlayer::Check_Reparoobejcts()
|
||||||
|
{
|
||||||
|
CLayer* pLayer = m_pGameInstance->Get_Layer(NEXT_LEVEL, LAYER_REPARO);
|
||||||
|
|
||||||
|
if (nullptr == pLayer)
|
||||||
|
return;
|
||||||
|
|
||||||
|
const list<class CGameObject*>* pReparoObjects = pLayer->Get_Objects();
|
||||||
|
|
||||||
|
for (auto& pObject : *pReparoObjects)
|
||||||
|
{
|
||||||
|
CReparoObject* pReparoObject = dynamic_cast<CReparoObject*>(pObject);
|
||||||
|
if (nullptr != pReparoObject)
|
||||||
|
if (pReparoObject->IsRepairable(false))
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void CPlayer::Update_CameraCoordinateSystem(_float fTimeDelta)
|
void CPlayer::Update_CameraCoordinateSystem(_float fTimeDelta)
|
||||||
{
|
{
|
||||||
_vector xmvCameraLook = XMVector3Normalize(XMVectorSetY(m_pGameInstance->Get_CameraLook(), 0.f));
|
_vector xmvCameraLook = XMVector3Normalize(XMVectorSetY(m_pGameInstance->Get_CameraLook(), 0.f));
|
||||||
|
|||||||
@@ -1468,6 +1468,8 @@ void CPlayer::Behavior_SpellEnter()
|
|||||||
0.01f);
|
0.01f);
|
||||||
}
|
}
|
||||||
Add_SpellEvent(pairAnimInfo.first, fRatio);
|
Add_SpellEvent(pairAnimInfo.first, fRatio);
|
||||||
|
if(ENUM_CLASS(SKILL_TYPE::REPARO) == m_eSpell)
|
||||||
|
Check_Reparoobejcts();
|
||||||
if (!m_bStartSpellAnim)
|
if (!m_bStartSpellAnim)
|
||||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true, fAnimSpeed);
|
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true, fAnimSpeed);
|
||||||
|
|
||||||
|
|||||||
@@ -28,16 +28,20 @@ HRESULT CReparoObject::Initialize(void* pArg)
|
|||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (FAILED(Ready_Components())) {
|
if (FAILED(Ready_Components())) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(0.f, 0.f, 0.f, 1.f));
|
REPARO_OBJECT_DESC* pDesc = static_cast<REPARO_OBJECT_DESC*>(pArg);
|
||||||
|
m_iModelID = pDesc->iModelID;
|
||||||
m_pModelCom->Set_AnimationIndex(0);
|
m_fRadius = pDesc->fRadius;
|
||||||
|
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&pDesc->vPosition), 1.f));
|
||||||
|
m_pTransformCom->Rotation(XMConvertToRadians(pDesc->vRotation.x), XMConvertToRadians(pDesc->vRotation.y), XMConvertToRadians(pDesc->vRotation.z));
|
||||||
|
|
||||||
|
// 되돌리기 전 Before
|
||||||
|
m_ePreState = m_eCurState = REPARO_OBJECT_STATE::SLEEP;
|
||||||
|
m_pModelCom->Set_AnimationIndex(2);
|
||||||
|
m_pInfoInstance->Deregist_PlayerAlly(this);
|
||||||
|
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
@@ -51,20 +55,41 @@ void CReparoObject::Update(_float fTimeDelta)
|
|||||||
{
|
{
|
||||||
__super::Update(fTimeDelta);
|
__super::Update(fTimeDelta);
|
||||||
|
|
||||||
|
Change_State();
|
||||||
|
|
||||||
|
switch (m_eCurState)
|
||||||
|
{
|
||||||
|
case Client::CReparoObject::REPARO_OBJECT_STATE::SLEEP:
|
||||||
|
break;
|
||||||
|
case Client::CReparoObject::REPARO_OBJECT_STATE::BEFORE:
|
||||||
|
break;
|
||||||
|
case Client::CReparoObject::REPARO_OBJECT_STATE::PLAYANIM:
|
||||||
|
if (true == m_pModelCom->IsFinishedAnim())
|
||||||
|
m_eCurState = REPARO_OBJECT_STATE::AFTER;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case Client::CReparoObject::REPARO_OBJECT_STATE::AFTER:
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
m_pModelCom->Play_Animation(fTimeDelta, m_pTransformCom);
|
m_pModelCom->Play_Animation(fTimeDelta, m_pTransformCom);
|
||||||
|
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
Describe_Entity();
|
Describe_Entity();
|
||||||
#endif // _DEBUG
|
#endif // _DEBUG
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void CReparoObject::Late_Update(_float fTimeDelta)
|
void CReparoObject::Late_Update(_float fTimeDelta)
|
||||||
{
|
{
|
||||||
__super::Late_Update(fTimeDelta);
|
__super::Late_Update(fTimeDelta);
|
||||||
|
|
||||||
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
|
if(m_pGameInstance->IsIn_WorldFrustum(m_pTransformCom->Get_State(STATE::POSITION), m_fRadius))
|
||||||
|
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -118,6 +143,25 @@ HRESULT CReparoObject::Render()
|
|||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_bool CReparoObject::IsRepairable(_bool isAwake)
|
||||||
|
{
|
||||||
|
if (isAwake && REPARO_OBJECT_STATE::SLEEP == m_eCurState)
|
||||||
|
{
|
||||||
|
m_eCurState = REPARO_OBJECT_STATE::BEFORE;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
LOCKON_INFO info = {};
|
||||||
|
m_pInfoInstance->Get_LockOnInfo(info);
|
||||||
|
|
||||||
|
if (info.pUnit == this && REPARO_OBJECT_STATE::BEFORE == m_eCurState)
|
||||||
|
{
|
||||||
|
m_eCurState = REPARO_OBJECT_STATE::PLAYANIM;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
HRESULT CReparoObject::Render_OutLine()
|
HRESULT CReparoObject::Render_OutLine()
|
||||||
{
|
{
|
||||||
m_bDrawOutLine = false;
|
m_bDrawOutLine = false;
|
||||||
@@ -186,6 +230,36 @@ HRESULT CReparoObject::Render_OutLine()
|
|||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CReparoObject::Change_State()
|
||||||
|
{
|
||||||
|
if (m_eCurState != m_ePreState)
|
||||||
|
{
|
||||||
|
switch (m_eCurState)
|
||||||
|
{
|
||||||
|
case Client::CReparoObject::REPARO_OBJECT_STATE::SLEEP:
|
||||||
|
break;
|
||||||
|
|
||||||
|
case Client::CReparoObject::REPARO_OBJECT_STATE::BEFORE:
|
||||||
|
m_pInfoInstance->Regist_PlayerAlly(this);
|
||||||
|
break;
|
||||||
|
|
||||||
|
case Client::CReparoObject::REPARO_OBJECT_STATE::PLAYANIM:
|
||||||
|
m_pModelCom->Set_AnimationIndex(0, false);
|
||||||
|
break;
|
||||||
|
|
||||||
|
case Client::CReparoObject::REPARO_OBJECT_STATE::AFTER:
|
||||||
|
m_pModelCom->Set_AnimationIndex(1);
|
||||||
|
m_pInfoInstance->Deregist_PlayerAlly(this);
|
||||||
|
break;
|
||||||
|
|
||||||
|
case Client::CReparoObject::REPARO_OBJECT_STATE::END:
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
m_ePreState = m_eCurState;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
HRESULT CReparoObject::Ready_Components()
|
HRESULT CReparoObject::Ready_Components()
|
||||||
{
|
{
|
||||||
CTransform::TRANSFORM_DESC Desc = {};
|
CTransform::TRANSFORM_DESC Desc = {};
|
||||||
@@ -198,10 +272,21 @@ HRESULT CReparoObject::Ready_Components()
|
|||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Com_Model */
|
if(0 == m_iModelID)
|
||||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_VFX_SK_OLI_TrollFight_BlockerA_Model"),
|
{
|
||||||
reinterpret_cast<CComponent**>(&m_pModelCom)))) {
|
/* Com_Model */
|
||||||
return E_FAIL;
|
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_VFX_SK_OLI_TrollFight_BlockerA_Model"),
|
||||||
|
reinterpret_cast<CComponent**>(&m_pModelCom)))) {
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
/* Com_Model */
|
||||||
|
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_VFX_SK_OLI_TrollFight_BlockerB_Model"),
|
||||||
|
reinterpret_cast<CComponent**>(&m_pModelCom)))) {
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Com_Shader */
|
/* Com_Shader */
|
||||||
|
|||||||
@@ -11,6 +11,7 @@
|
|||||||
#include "Troll_Weapon.h"
|
#include "Troll_Weapon.h"
|
||||||
#include "Effect_Container.h"
|
#include "Effect_Container.h"
|
||||||
#include "EffectParts.h"
|
#include "EffectParts.h"
|
||||||
|
#include "ReparoObject.h"
|
||||||
|
|
||||||
#pragma region STATE
|
#pragma region STATE
|
||||||
#include "State_Idle.h"
|
#include "State_Idle.h"
|
||||||
@@ -966,6 +967,19 @@ void CTroll::Add_FSM()
|
|||||||
Desc.funcLateUpdate = [this](_float fDeadRatio) {
|
Desc.funcLateUpdate = [this](_float fDeadRatio) {
|
||||||
m_fDeadRatio = fDeadRatio;
|
m_fDeadRatio = fDeadRatio;
|
||||||
if (m_fDeadRatio > 1.f) {
|
if (m_fDeadRatio > 1.f) {
|
||||||
|
CLayer* pLayer = m_pGameInstance->Get_Layer(NEXT_LEVEL, LAYER_REPARO);
|
||||||
|
|
||||||
|
if (nullptr != pLayer)
|
||||||
|
{
|
||||||
|
const list<class CGameObject*>* pReparoObjects = pLayer->Get_Objects();
|
||||||
|
|
||||||
|
for (auto& pObject : *pReparoObjects)
|
||||||
|
{
|
||||||
|
CReparoObject* pReparoObject = dynamic_cast<CReparoObject*>(pObject);
|
||||||
|
if (nullptr != pReparoObject)
|
||||||
|
pReparoObject->IsRepairable(true);
|
||||||
|
}
|
||||||
|
}
|
||||||
m_bDead = true;
|
m_bDead = true;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
namespace Client
|
namespace Client
|
||||||
{
|
{
|
||||||
enum class LEVEL { STATIC, LOADING, LOGO, INTRO, GAMEPLAY, FIELD, RESTART, END };
|
enum class LEVEL { STATIC, LOADING, LOGO, INTRO, GAMEPLAY, FIELD, RESTART, END };
|
||||||
enum class MAPOBJECT_TYPE { CONTAINER, ELEMENT_STATIC, ELEMENT_INTERACT, ELEMENT_COLLIDER };
|
enum class MAPOBJECT_TYPE { CONTAINER, ELEMENT_STATIC, ELEMENT_INTERACT, ELEMENT_COLLIDER, ELEMENT_CAVE };
|
||||||
enum class MAPOBJECT_RENDER_TYPE { NORMAL, DECAL, GLASS };
|
enum class MAPOBJECT_RENDER_TYPE { NORMAL, DECAL, GLASS };
|
||||||
|
|
||||||
enum class SHADER_PASS_ANIM { DEFAULT, SHADOW, CAPTURE, BLUR, HAIR, EYELASH, OUTLINE_WRITE, OUTLINE_READ, SPECTOR, END };
|
enum class SHADER_PASS_ANIM { DEFAULT, SHADOW, CAPTURE, BLUR, HAIR, EYELASH, OUTLINE_WRITE, OUTLINE_READ, SPECTOR, END };
|
||||||
|
|||||||
@@ -71,6 +71,7 @@ namespace Client {
|
|||||||
#define LAYER_DADA_INT TEXT("Layer_DADA_INT")
|
#define LAYER_DADA_INT TEXT("Layer_DADA_INT")
|
||||||
#define LAYER_DUELIST TEXT("Layer_Duelist")
|
#define LAYER_DUELIST TEXT("Layer_Duelist")
|
||||||
#define LAYER_NPC TEXT("Layer_Npc")
|
#define LAYER_NPC TEXT("Layer_Npc")
|
||||||
|
#define LAYER_REPARO TEXT("Layer_Reparo")
|
||||||
|
|
||||||
|
|
||||||
#define LAYER_MAPOBJECTMANAGER TEXT("Layer_MapObjectManager")
|
#define LAYER_MAPOBJECTMANAGER TEXT("Layer_MapObjectManager")
|
||||||
|
|||||||
@@ -63,6 +63,7 @@ DECLARE_SINGLETON(CInfoInstance)
|
|||||||
HRESULT Load_WorldDecal(const _char* pFileName, const _wchar* pLayerTag);
|
HRESULT Load_WorldDecal(const _char* pFileName, const _wchar* pLayerTag);
|
||||||
HRESULT Load_PointLights(const _char* pFileName, const _wchar* pLayerTag);
|
HRESULT Load_PointLights(const _char* pFileName, const _wchar* pLayerTag);
|
||||||
HRESULT Load_EffectParts(const _char* pFileName, const _char* pEffectrFilePath);
|
HRESULT Load_EffectParts(const _char* pFileName, const _char* pEffectrFilePath);
|
||||||
|
HRESULT Load_ReparoObjects(const _char* pFileName);
|
||||||
HRESULT Load_DADA_INT();
|
HRESULT Load_DADA_INT();
|
||||||
HRESULT Load_Npc();
|
HRESULT Load_Npc();
|
||||||
#pragma endregion
|
#pragma endregion
|
||||||
|
|||||||
@@ -34,24 +34,29 @@ class CLand final : public CGameObject
|
|||||||
|
|
||||||
void Add_InstanceProp(CInstancedProp* pIntanceProp);
|
void Add_InstanceProp(CInstancedProp* pIntanceProp);
|
||||||
private:
|
private:
|
||||||
_float m_fRaduis = {};
|
_float m_fRaduis = {};
|
||||||
_float m_fUsingSurfaceParams = {};
|
_float m_fUsingSurfaceParams = {};
|
||||||
|
|
||||||
CShader* m_pShaderCom = { nullptr };
|
CShader* m_pShaderCom = { nullptr };
|
||||||
CModel* m_pModelCom = { nullptr };
|
CModel* m_pModelCom = { nullptr };
|
||||||
|
|
||||||
CTexture* m_pDiffuseTextureCom = { nullptr };
|
CTexture* m_pDiffuseTextureCom = { nullptr };
|
||||||
CTexture* m_pNormalTextureCom = { nullptr };
|
CTexture* m_pNormalTextureCom = { nullptr };
|
||||||
CTexture* m_pMROTextureCom = { nullptr };
|
CTexture* m_pMROTextureCom = { nullptr };
|
||||||
CTexture* m_pMaskTextureCom = { nullptr };
|
CTexture* m_pMaskTextureCom = { nullptr };
|
||||||
|
|
||||||
|
list<class CInstancedProp*> m_InstanceProps = {};
|
||||||
|
CRigidBody_Static* m_RigidBody = { nullptr };
|
||||||
|
|
||||||
list<class CInstancedProp*> m_InstanceProps = {};
|
|
||||||
private:
|
private:
|
||||||
virtual HRESULT Initialize_Prototype() override;
|
virtual HRESULT Initialize_Prototype() override;
|
||||||
virtual HRESULT Initialize(void* pArg) override;
|
virtual HRESULT Initialize(void* pArg) override;
|
||||||
virtual HRESULT Ready_Components(void* pArg) override;
|
virtual HRESULT Ready_Components(void* pArg) override;
|
||||||
virtual HRESULT Bind_ShaderResources() override;
|
virtual HRESULT Bind_ShaderResources() override;
|
||||||
|
|
||||||
|
void ReadyForPhysX(const _char* pName);
|
||||||
|
void ConvertToPhysX(const _char* pName);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
static CLand* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
static CLand* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||||
|
|||||||
@@ -0,0 +1,52 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "Client_Define.h"
|
||||||
|
#include "MapElement.h"
|
||||||
|
|
||||||
|
NS_BEGIN(Client)
|
||||||
|
|
||||||
|
class CMapElement_Cave : public CMapElement
|
||||||
|
{
|
||||||
|
private:
|
||||||
|
CMapElement_Cave(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||||
|
CMapElement_Cave(const CMapElement_Cave& rhs);
|
||||||
|
virtual ~CMapElement_Cave() = 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;
|
||||||
|
|
||||||
|
private:
|
||||||
|
_bool m_bReadyToCreatePhysX = { false };
|
||||||
|
_bool m_bConverted = { false };
|
||||||
|
_float m_fRadius = {};
|
||||||
|
_float3 m_vWorldCenterPosition = {};
|
||||||
|
|
||||||
|
class CTriggerBox* m_pTriggerBox = { nullptr };
|
||||||
|
|
||||||
|
vector<CRigidBody_Static*> m_RigidBodies;
|
||||||
|
|
||||||
|
private:
|
||||||
|
virtual HRESULT Initialize_Prototype() override;
|
||||||
|
virtual HRESULT Initialize(void* pArg) override;
|
||||||
|
virtual HRESULT Ready_Components(void* pArg) override;
|
||||||
|
virtual HRESULT Bind_ShaderResources() override;
|
||||||
|
|
||||||
|
HRESULT Ready_TriggerBox();
|
||||||
|
void ReadyForPhysX();
|
||||||
|
void ConvertToPhysX();
|
||||||
|
|
||||||
|
void Enter_Cave();
|
||||||
|
public:
|
||||||
|
static CMapElement_Cave* 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
|
||||||
|
|
||||||
@@ -30,6 +30,7 @@ class CMapInfo final : public CBase
|
|||||||
HRESULT Load_WorldDecal(const _char* pFileName, const _wchar* pLayerTag);
|
HRESULT Load_WorldDecal(const _char* pFileName, const _wchar* pLayerTag);
|
||||||
HRESULT Load_PointLights(const _char* pFilePath, const _wchar* pLayerTag);
|
HRESULT Load_PointLights(const _char* pFilePath, const _wchar* pLayerTag);
|
||||||
HRESULT Load_EffectParts(const _char* pFileName, const _char* pEffectrFilePath);
|
HRESULT Load_EffectParts(const _char* pFileName, const _char* pEffectrFilePath);
|
||||||
|
HRESULT Load_ReparoObjects(const _char* pFileName);
|
||||||
|
|
||||||
HRESULT Load_DADA_INT();
|
HRESULT Load_DADA_INT();
|
||||||
HRESULT Load_Npc();
|
HRESULT Load_Npc();
|
||||||
|
|||||||
@@ -124,6 +124,7 @@ class CPlayer final : public CUnit
|
|||||||
void Play_SpellHitAnim();
|
void Play_SpellHitAnim();
|
||||||
void Player_PixRot();
|
void Player_PixRot();
|
||||||
void Find_HiddenObjects();
|
void Find_HiddenObjects();
|
||||||
|
void Check_Reparoobejcts();
|
||||||
|
|
||||||
void Update_CameraCoordinateSystem(_float fTimeDelta);
|
void Update_CameraCoordinateSystem(_float fTimeDelta);
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
|
|||||||
@@ -7,6 +7,17 @@ NS_BEGIN(Client)
|
|||||||
|
|
||||||
class CReparoObject final : public CMonster
|
class CReparoObject final : public CMonster
|
||||||
{
|
{
|
||||||
|
// 되돌리기 전 Before
|
||||||
|
enum class REPARO_OBJECT_STATE { SLEEP, BEFORE, PLAYANIM, AFTER, END };
|
||||||
|
public:
|
||||||
|
typedef struct tagReparoObjectDesc
|
||||||
|
{
|
||||||
|
_uint iModelID = {};
|
||||||
|
_float fRadius = {};
|
||||||
|
_float3 vPosition = {};
|
||||||
|
_float3 vRotation = {};
|
||||||
|
}REPARO_OBJECT_DESC;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
CReparoObject(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
CReparoObject(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||||
CReparoObject(const CReparoObject& Prototype);
|
CReparoObject(const CReparoObject& Prototype);
|
||||||
@@ -20,11 +31,21 @@ class CReparoObject final : public CMonster
|
|||||||
virtual void Late_Update(_float fTimeDelta) override;
|
virtual void Late_Update(_float fTimeDelta) override;
|
||||||
virtual HRESULT Render() override;
|
virtual HRESULT Render() override;
|
||||||
|
|
||||||
|
_bool IsRepairable(_bool isAwake);
|
||||||
|
private:
|
||||||
|
REPARO_OBJECT_STATE m_ePreState = { REPARO_OBJECT_STATE::END };
|
||||||
|
REPARO_OBJECT_STATE m_eCurState = { REPARO_OBJECT_STATE::END };
|
||||||
|
|
||||||
|
_uint m_iModelID = {};
|
||||||
|
_float m_fRadius = {};
|
||||||
|
|
||||||
private:
|
private:
|
||||||
HRESULT Ready_Components();
|
HRESULT Ready_Components();
|
||||||
HRESULT Bind_ShaderResources();
|
HRESULT Bind_ShaderResources();
|
||||||
HRESULT Render_OutLine();
|
HRESULT Render_OutLine();
|
||||||
|
|
||||||
|
void Change_State();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
static CReparoObject* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
static CReparoObject* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||||
virtual CGameObject* Clone(void* pArg, CGameObject* pOwner = nullptr) override;
|
virtual CGameObject* Clone(void* pArg, CGameObject* pOwner = nullptr) override;
|
||||||
|
|||||||
@@ -0,0 +1,12 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<Land>
|
||||||
|
<Object Type="4" Lod_Level="3">
|
||||||
|
<PrototypeTag>Prototype_GameObject_SM_LLA_Cave</PrototypeTag>
|
||||||
|
<PrototypeTag>Prototype_GameObject_SM_LLA_Cave_Lod1</PrototypeTag>
|
||||||
|
<PrototypeTag>Prototype_GameObject_SM_LLA_Cave_Lod2</PrototypeTag>
|
||||||
|
<PrototypeTag>Prototype_GameObject_SM_LLA_Cave_Lod3</PrototypeTag>
|
||||||
|
<Position x="-637.9436" y="-27.070477" z="-295.71112"/>
|
||||||
|
<Scale x="1" y="1" z="1"/>
|
||||||
|
<Rotation x="0" y="298" z="0"/>
|
||||||
|
</Object>
|
||||||
|
</Land>
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<Reparo>
|
||||||
|
<Object Type="0" Radius="10">
|
||||||
|
<Position x="91.9" y="15.1" z="125.6"/>
|
||||||
|
<Rotation x="0" y="-74" z="0"/>
|
||||||
|
</Object>
|
||||||
|
<Object Type="0" Radius="10">
|
||||||
|
<Position x="123.4" y="16.1" z="144.3"/>
|
||||||
|
<Rotation x="0" y="-8" z="0"/>
|
||||||
|
</Object>
|
||||||
|
<Object Type="1" Radius="15">
|
||||||
|
<Position x="93.46" y="15.6" z="138.2"/>
|
||||||
|
<Rotation x="0" y="135" z="0"/>
|
||||||
|
</Object>
|
||||||
|
<Object Type="1" Radius="15">
|
||||||
|
<Position x="129.3" y="15.5" z="112.9"/>
|
||||||
|
<Rotation x="2" y="168" z="-3"/>
|
||||||
|
</Object>
|
||||||
|
</Reparo>
|
||||||
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
@@ -2870,6 +2870,15 @@ HRESULT CLoader::Loading_For_MapViewer()
|
|||||||
CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Object/Wand/Wand.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationX(XMConvertToRadians(-90.f)) * XMMatrixIdentity()))))
|
CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Object/Wand/Wand.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationX(XMConvertToRadians(-90.f)) * XMMatrixIdentity()))))
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
|
|
||||||
|
/* For. Prototype_Component_VFX_SK_OLI_TrollFight_BlockerA_Model*/
|
||||||
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_VFX_SK_OLI_TrollFight_BlockerA_Model"),
|
||||||
|
CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Object/Reparo_Object/VFX_SK_OLI_TrollFight_BlockerA.bin", XMMatrixIdentity()))))
|
||||||
|
return E_FAIL;
|
||||||
|
/* For. Prototype_Component_VFX_SK_OLI_TrollFight_BlockerB_Model*/
|
||||||
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_VFX_SK_OLI_TrollFight_BlockerB_Model"),
|
||||||
|
CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Object/Reparo_Object/VFX_SK_OLI_TrollFight_BlockerB.bin", XMMatrixIdentity()))))
|
||||||
|
return E_FAIL;
|
||||||
|
|
||||||
/* For.Prototype_GameObject_Camera_Gaze */
|
/* For.Prototype_GameObject_Camera_Gaze */
|
||||||
if (FAILED(m_pGameInstance->Add_Prototype<CCamera_Gaze>(g_iStaticLevel, CCamera_Gaze::Create(m_pDevice, m_pContext))))
|
if (FAILED(m_pGameInstance->Add_Prototype<CCamera_Gaze>(g_iStaticLevel, CCamera_Gaze::Create(m_pDevice, m_pContext))))
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
@@ -3792,6 +3801,13 @@ if (bLoad_DADATower_INT)
|
|||||||
|
|
||||||
#pragma endregion
|
#pragma endregion
|
||||||
|
|
||||||
|
#pragma region CAVE
|
||||||
|
if (FAILED(MapFolderLoad("../Bin/Resources/Models/MapMesh/Game/Environment/Overland_Common/Meshes",
|
||||||
|
".bin", true, ModelPrototypeTags, ModelPrototypePath)))
|
||||||
|
return E_FAIL;
|
||||||
|
#pragma endregion
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef gimch
|
#ifdef gimch
|
||||||
|
|||||||
@@ -2860,6 +2860,7 @@ void CMapObject_Manager::Update_DummyNpc()
|
|||||||
GUI::End();
|
GUI::End();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void CMapObject_Manager::Create_PartObject(_wstring& strPrototypeTag)
|
void CMapObject_Manager::Create_PartObject(_wstring& strPrototypeTag)
|
||||||
{
|
{
|
||||||
vector<_uint> LodModelIndices;
|
vector<_uint> LodModelIndices;
|
||||||
|
|||||||
@@ -44,6 +44,8 @@ HRESULT CReparoObject::Initialize(void* pArg)
|
|||||||
void CReparoObject::Priority_Update(_float fTimeDelta)
|
void CReparoObject::Priority_Update(_float fTimeDelta)
|
||||||
{
|
{
|
||||||
__super::Priority_Update(fTimeDelta);
|
__super::Priority_Update(fTimeDelta);
|
||||||
|
|
||||||
|
Describe_Entity();
|
||||||
}
|
}
|
||||||
|
|
||||||
void CReparoObject::Update(_float fTimeDelta)
|
void CReparoObject::Update(_float fTimeDelta)
|
||||||
@@ -51,12 +53,6 @@ void CReparoObject::Update(_float fTimeDelta)
|
|||||||
__super::Update(fTimeDelta);
|
__super::Update(fTimeDelta);
|
||||||
|
|
||||||
m_pModelCom->Play_Animation(fTimeDelta, m_pTransformCom);
|
m_pModelCom->Play_Animation(fTimeDelta, m_pTransformCom);
|
||||||
|
|
||||||
#ifdef _DEBUG
|
|
||||||
Describe_Entity();
|
|
||||||
#endif // _DEBUG
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void CReparoObject::Late_Update(_float fTimeDelta)
|
void CReparoObject::Late_Update(_float fTimeDelta)
|
||||||
@@ -197,8 +193,14 @@ HRESULT CReparoObject::Ready_Components()
|
|||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
///* Com_Model */
|
||||||
|
//if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_VFX_SK_OLI_TrollFight_BlockerA_Model"),
|
||||||
|
// reinterpret_cast<CComponent**>(&m_pModelCom)))) {
|
||||||
|
// return E_FAIL;
|
||||||
|
//}
|
||||||
|
|
||||||
/* Com_Model */
|
/* Com_Model */
|
||||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_VFX_SK_OLI_TrollFight_BlockerA_Model"),
|
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_VFX_SK_OLI_TrollFight_BlockerB_Model"),
|
||||||
reinterpret_cast<CComponent**>(&m_pModelCom)))) {
|
reinterpret_cast<CComponent**>(&m_pModelCom)))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
@@ -280,6 +282,16 @@ void CReparoObject::Describe_Entity()
|
|||||||
if (m_pModelCom->Get_AnimSize() <= 0)
|
if (m_pModelCom->Get_AnimSize() <= 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
m_pTransformCom->Describe_Entity();
|
||||||
|
if (m_pGameInstance->Mouse_Down(DIM_LBUTTON) && m_pGameInstance->Key_Pressing(DIK_LSHIFT))
|
||||||
|
{
|
||||||
|
_float3 vPosition = {};
|
||||||
|
if (m_pGameInstance->isPicking(&vPosition))
|
||||||
|
{
|
||||||
|
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&vPosition), 1.f));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (GUI::BeginTabBar("Anim_List"))
|
if (GUI::BeginTabBar("Anim_List"))
|
||||||
{
|
{
|
||||||
if (GUI::BeginTabItem("ReparoObject"))
|
if (GUI::BeginTabItem("ReparoObject"))
|
||||||
|
|||||||
@@ -31,7 +31,6 @@ class CReparoObject final : public CMonster
|
|||||||
HRESULT Bind_ShaderResources();
|
HRESULT Bind_ShaderResources();
|
||||||
HRESULT Render_OutLine();
|
HRESULT Render_OutLine();
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
static CReparoObject* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
static CReparoObject* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||||
virtual CGameObject* Clone(void* pArg, CGameObject* pOwner = nullptr) override;
|
virtual CGameObject* Clone(void* pArg, CGameObject* pOwner = nullptr) override;
|
||||||
|
|||||||
@@ -923,6 +923,19 @@ HRESULT CModel::Ready_PhysXMeshes(_fmatrix& PreTransformMatrix, _uint iLevel)
|
|||||||
}
|
}
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
HRESULT CModel::Ready_PhysXMeshes(_fmatrix& PreTransformMatrix, _uint iLevel, const _char* pName)
|
||||||
|
{
|
||||||
|
m_iNumPhysXMeshes = m_iNumMeshes;
|
||||||
|
|
||||||
|
m_TriMeshes.reserve(m_iNumMeshes);
|
||||||
|
|
||||||
|
m_pGameInstance->ConvertToTriMeshes(m_Meshes, m_TriMeshes, PreTransformMatrix);
|
||||||
|
|
||||||
|
for (_uint i = 0; i < m_iNumMeshes; ++i) {
|
||||||
|
m_pGameInstance->RegistTriMesh(pName, m_TriMeshes[i], iLevel);
|
||||||
|
}
|
||||||
|
return S_OK;
|
||||||
|
}
|
||||||
#ifdef EDITOR_PROJECT
|
#ifdef EDITOR_PROJECT
|
||||||
|
|
||||||
HRESULT CModel::Ready_Meshes(MODEL eType, const aiScene* pAIScene, _fmatrix& PreTransformMatrix)
|
HRESULT CModel::Ready_Meshes(MODEL eType, const aiScene* pAIScene, _fmatrix& PreTransformMatrix)
|
||||||
|
|||||||
@@ -162,6 +162,8 @@ class ENGINE_DLL CModel final : public CComponent
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
HRESULT Ready_PhysXMeshes(_fmatrix& PreTransformMatrix, _uint iLevel);
|
HRESULT Ready_PhysXMeshes(_fmatrix& PreTransformMatrix, _uint iLevel);
|
||||||
|
HRESULT Ready_PhysXMeshes(_fmatrix& PreTransformMatrix, _uint iLevel, const _char* pName);
|
||||||
|
|
||||||
#ifdef EDITOR_PROJECT
|
#ifdef EDITOR_PROJECT
|
||||||
HRESULT Assimp_Model_Load(const _char* pModelFilePath, MODEL eType, _fmatrix& PreTransformMatrix, _uint iRootBoneIndex);
|
HRESULT Assimp_Model_Load(const _char* pModelFilePath, MODEL eType, _fmatrix& PreTransformMatrix, _uint iRootBoneIndex);
|
||||||
HRESULT Ready_Meshes(MODEL eType, const aiScene* pAIScene, _fmatrix& PreTransformMatrix);
|
HRESULT Ready_Meshes(MODEL eType, const aiScene* pAIScene, _fmatrix& PreTransformMatrix);
|
||||||
|
|||||||
Reference in New Issue
Block a user