Merge branch 'Develope' into Effect

This commit is contained in:
GiJungSUk
2025-12-22 15:34:38 +09:00
316 changed files with 5898 additions and 204 deletions
@@ -69,7 +69,7 @@ HRESULT CEffectPool::Initialize(void* pArg)
// 디버그 모드일 때
#ifdef _DEBUG
#ifdef gimch
m_isActiveEffectCreate = false;
m_isActiveEffectCreate = true;
m_isActiveMonsterEffectCreate = false;
#endif // gimch
#ifdef Bin
@@ -331,6 +331,11 @@ HRESULT CInfoInstance::Deregist_ActiveInteractive(CMapElement_Interactable* pInt
return m_pInteractiveInfo->Deregist_ActiveInteractive(pInteractive);
}
HRESULT CInfoInstance::ActiveAt_Interactive(_fvector vPosition)
{
return m_pInteractiveInfo->ActiveAt_Interactive(vPosition);
}
#pragma endregion
LEVEL CInfoInstance::Get_RestartLevel()
{
@@ -386,6 +391,14 @@ HRESULT CInfoInstance::Initialize_Information(ID3D11Device* pDevice, ID3D11Devic
return S_OK;
}
HRESULT CInfoInstance::Late_Initialize()
{
if (FAILED(m_pInteractiveInfo->Ready_PoolingInteractive()))
return E_FAIL;
return S_OK;
}
HRESULT CInfoInstance::Stat_FileLoad(const _char* pDirectoryPath)
{
filesystem::path pathStatFile = pDirectoryPath;
@@ -14,6 +14,19 @@ CInteractiveInfo::CInteractiveInfo()
void CInteractiveInfo::Update(_float fTimeDelta)
{
Refresh_LockOnTarget();
auto iter = m_PoolingActiveInteractive.begin();
for (; iter != m_PoolingActiveInteractive.end();)
{
if (false == (*iter)->Get_Visible())
{
m_PoolingInteractive.push_back(*iter);
iter = m_PoolingActiveInteractive.erase(iter);
}
else
++iter;
}
}
void CInteractiveInfo::Change_Level()
{
@@ -110,6 +123,112 @@ HRESULT CInteractiveInfo::Refresh_LockOnTarget()
}
return S_OK;
}
HRESULT CInteractiveInfo::Ready_PoolingInteractive()
{
tinyxml2::XMLDocument xmlDoc;
string strPath = "../Bin/Resources/Data/Map/Interactable/E_INTER_EffectObejct.xml";
if ((tinyxml2::XML_SUCCESS != xmlDoc.LoadFile(strPath.c_str())))
return E_FAIL;
tinyxml2::XMLElement* root = xmlDoc.FirstChildElement("Element_Interactable");
if (nullptr == root)
{
MSG_BOX("Failed to Find root");
return S_OK;
}
for (auto* Object = root->FirstChildElement("Object"); Object; Object = Object->NextSiblingElement("Object"))
{
CMapElement_Interactable::ELEMENT_INTERACTABLE_DESC Desc = {};
/* Model Prototypes */
Desc.isPooled = true;
Object->QueryUnsignedAttribute("Lod_Level", &Desc.iMaxLodLevel);
Object->QueryUnsignedAttribute("ID", &Desc.iInteractableID);
string strTag = {};
for (auto* PrototypeTag = Object->FirstChildElement("PrototypeTag"); PrototypeTag; PrototypeTag = PrototypeTag->NextSiblingElement("PrototypeTag"))
{
strTag = PrototypeTag->GetText();
Desc.ModelPrototypeTags.push_back(CMyTools::ToWstring(strTag));
}
/* Transform */
auto* Position = Object->FirstChildElement("Position");
Position->QueryFloatAttribute("x", &Desc.vPosition.x);
Position->QueryFloatAttribute("y", &Desc.vPosition.y);
Position->QueryFloatAttribute("z", &Desc.vPosition.z);
auto* Scale = Object->FirstChildElement("Scale");
Scale->QueryFloatAttribute("x", &Desc.vScale.x);
Scale->QueryFloatAttribute("y", &Desc.vScale.y);
Scale->QueryFloatAttribute("z", &Desc.vScale.z);
auto* Rotation = Object->FirstChildElement("Rotation");
Rotation->QueryFloatAttribute("x", &Desc.vRotation.x);
Rotation->QueryFloatAttribute("y", &Desc.vRotation.y);
Rotation->QueryFloatAttribute("z", &Desc.vRotation.z);
auto* HalfGeometryInfo = Object->FirstChildElement("HalfGeometryInfo");
HalfGeometryInfo->QueryFloatAttribute("x", &Desc.vBoxSize.x);
HalfGeometryInfo->QueryFloatAttribute("y", &Desc.vBoxSize.y);
HalfGeometryInfo->QueryFloatAttribute("z", &Desc.vBoxSize.z);
auto* LocalTranslation = Object->FirstChildElement("LocalTranslation");
LocalTranslation->QueryFloatAttribute("x", &Desc.vBoxLocalPosition.x);
LocalTranslation->QueryFloatAttribute("y", &Desc.vBoxLocalPosition.y);
LocalTranslation->QueryFloatAttribute("z", &Desc.vBoxLocalPosition.z);
CMapElement_Interactable* pInteractable = { nullptr };
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CMapElement_Interactable>(g_iStaticLevel, NEXT_LEVEL, LAYER_INTERACTABLE, &Desc,nullptr, &pInteractable)))
return E_FAIL;
if (nullptr != pInteractable)
{
m_PoolingInteractive.push_back(pInteractable);
}
else
return E_FAIL;
}
return S_OK;
}
HRESULT CInteractiveInfo::ActiveAt_Interactive(_fvector vPosition)
{
_uint iSize = (_uint)m_PoolingInteractive.size();
_uint iRandomIndex = m_pGameInstance->Real_Random_Int(0, max(0, iSize - 1));
_uint iIndex = {};
auto iter = m_PoolingInteractive.begin();
for (; iter != m_PoolingInteractive.end();)
{
if (iIndex == iRandomIndex)
{
(*iter)->ActivateAt(vPosition);
m_PoolingActiveInteractive.push_back(*iter);
iter = m_PoolingInteractive.erase(iter);
break;
}
else
{
++iter;
++iIndex;
}
}
return S_OK;
}
HRESULT CInteractiveInfo::Initialize(ID3D11Device* pDevice, ID3D11DeviceContext* pContex)
{
m_pGameInstance = CGameInstance::GetInstance();
@@ -145,6 +264,15 @@ void CInteractiveInfo::Free()
SAFE_RELEASE(pInteractive);
} m_ActiveInteractive.clear();
for (CMapElement_Interactable* pInteractive : m_PoolingInteractive) {
SAFE_RELEASE(pInteractive);
} m_ActiveInteractive.clear();
for (CMapElement_Interactable* pInteractive : m_PoolingActiveInteractive) {
SAFE_RELEASE(pInteractive);
} m_ActiveInteractive.clear();
SAFE_RELEASE(m_pGameInstance);
SAFE_RELEASE(m_pInfoInstance);
SAFE_RELEASE(m_pDevice);
@@ -85,6 +85,8 @@ HRESULT CLevel_GamePlay::Initialize(void* pArg)
return E_FAIL;
}
if(FAILED(m_pInfoInstance->Late_Initialize()))
return E_FAIL;
return S_OK;
}
@@ -244,21 +246,33 @@ HRESULT CLevel_GamePlay::Ready_Background()
// 맵 로드할지 안할지 bool 설정
// ---------------------------------
_bool isReady_Background = { true };
_bool isReady_Hogsmeade = { true };
_bool isReady_Hogwart = { true };
#ifdef gimch
isReady_Background = true;
isReady_Hogsmeade = true;
isReady_Hogwart = false;
#endif // gimch
#ifdef Bin
isReady_Background = false;
isReady_Hogsmeade = false;
isReady_Hogwart = false;
#endif //
#ifdef 진우
isReady_Background = false;
isReady_Hogsmeade = false;
isReady_Hogwart = false;
#endif //
#ifdef 기무리
isReady_Background = true;
isReady_Hogsmeade = false;
isReady_Hogwart = false;
#endif //
#ifdef 인혁
isReady_Background = false;
isReady_Hogsmeade = false;
isReady_Hogwart = false;
#endif //
@@ -273,14 +287,17 @@ HRESULT CLevel_GamePlay::Ready_Background()
#if 진우
#else
if (FAILED(Ready_Layer_Hogsmeade()))
return E_FAIL;
if(isReady_Hogsmeade)
{
if (FAILED(Ready_Layer_Hogsmeade()))
return E_FAIL;
}
if (FAILED(Ready_Layer_Hogwart()))
return E_FAIL;
if (FAILED(Ready_Layer_Unified()))
return E_FAIL;
if(isReady_Hogwart)
{
if (FAILED(Ready_Layer_Hogwart()))
return E_FAIL;
}
/* 물 오브젝트 */
if (FAILED(CInfoInstance::GetInstance()->Load_WaterElemet("Element_Water_Info"))) {
@@ -316,36 +333,8 @@ HRESULT CLevel_GamePlay::Ready_Layer_Hogsmeade()
/* Chests */
CInfoInstance::GetInstance()->Load_ChestElemet("Element_Chest_Info", LAYER_HOGSMEADE);
return S_OK;
}
HRESULT CLevel_GamePlay::Ready_Layer_Hogwart()
{
CInfoInstance::GetInstance()->Load_MapObjects("Hogwart_MapContainer_Data", LAYER_HOGWART);
return S_OK;
}
HRESULT CLevel_GamePlay::Ready_Layer_Unified()
{
/* Hogwart Unified*/
CUnified::UNIFIED_DESC Desc = {};
/* Hogwart Unified*/
Desc.fLodSwitchDistnace = 400.f;
Desc.vUnifiedCenterPos = _float4(-250.2f, 17.2f, -500.7f, 1.f);
Desc.vPosition = _float3(-291.2f, 17.2f, -474.7f);
Desc.vRotation = _float3(0.f, 0.f, 0.f);
Desc.vScale = _float3(1.f, 1.f, 1.f);
Desc.srtLayerTag = LAYER_HOGWART;
Desc.srtModelPrototypeTags.push_back(TEXT("Prototype_GameObject_SM_HW_HogwartsShell_B"));
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CUnified>(g_iStaticLevel, NEXT_LEVEL, LAYER_UNIFIED, &Desc)))
return E_FAIL;
Desc.srtModelPrototypeTags.clear();
/* Hogwart Unified*/
Desc.fLodSwitchDistnace = 500.f;
Desc.vUnifiedCenterPos = _float4(62.f, 10.f, 93.f, 1.f);
Desc.vPosition = _float3(62.f, 10.f, 93.f);
@@ -364,6 +353,28 @@ HRESULT CLevel_GamePlay::Ready_Layer_Unified()
return S_OK;
}
HRESULT CLevel_GamePlay::Ready_Layer_Hogwart()
{
CInfoInstance::GetInstance()->Load_MapObjects("Hogwart_MapContainer_Data", LAYER_HOGWART);
CInfoInstance::GetInstance()->Load_MapObjects("HogwartMap1221", LAYER_HOGWART);
CUnified::UNIFIED_DESC Desc = {};
/* Hogwart Unified*/
Desc.fLodSwitchDistnace = 400.f;
Desc.vUnifiedCenterPos = _float4(-250.2f, 17.2f, -500.7f, 1.f);
Desc.vPosition = _float3(-291.2f, 17.2f, -474.7f);
Desc.vRotation = _float3(0.f, 0.f, 0.f);
Desc.vScale = _float3(1.f, 1.f, 1.f);
Desc.srtLayerTag = LAYER_HOGWART;
Desc.srtModelPrototypeTags.push_back(TEXT("Prototype_GameObject_SM_HW_HogwartsShell_B"));
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CUnified>(g_iStaticLevel, NEXT_LEVEL, LAYER_UNIFIED, &Desc)))
return E_FAIL;
return S_OK;
}
HRESULT CLevel_GamePlay::Ready_IntstanceProp()
{
CInstancedProp::INSTANCE_PROP_DESC Desc = {};
+296 -38
View File
@@ -336,21 +336,27 @@ HRESULT CLoader::Loading_For_GamePlay()
m_strMessage = TEXT("텍스쳐를(을) 로딩 중 입니다.");
_bool isLoad_Background = { true };
_bool isLoad_Hogwart = { false };
#ifdef gimch
isLoad_Background = true;
isLoad_Hogwart = false;
#endif // gimch
#ifdef Bin
isLoad_Background = false;
isLoad_Hogwart = false;
#endif //
#ifdef 진우
isLoad_Background = false;
isLoad_Hogwart = false;
#endif //
#ifdef 기무리
isLoad_Background = true;
isLoad_Hogwart = false;
#endif //
#ifdef 인혁
isLoad_Background = false;
isLoad_Hogwart = false;
#endif //
#pragma region MAP_MODELS
@@ -396,6 +402,33 @@ HRESULT CLoader::Loading_For_GamePlay()
".bin", false
));
}
/* Interactable */
{/* Barrel */
jobMapModels.emplace_back(Deferred_FolderLoad(
"../Bin/Resources/Models/MapMesh/Game/Environment/Objects/Meshes",
".bin", false
));
/* Box */
jobMapModels.emplace_back(Deferred_FolderLoad(
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Meshes/MiscProps",
".bin", false
));
/* TeaShop Table */
jobMapModels.emplace_back(Deferred_FolderLoad(
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Meshes/Tables",
".bin", false
));
/* TeaShop Chair*/
jobMapModels.emplace_back(Deferred_FolderLoad(
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Meshes/Chairs",
".bin", false
));
/* Object Interactables (Chest)*/
jobMapModels.emplace_back(Deferred_FolderLoad(
"../Bin/Resources/Models/MapMesh/Game/Environment/Objects/Interactables",
".bin", false
));
}
if (true == isLoad_Background)
{
@@ -627,44 +660,269 @@ HRESULT CLoader::Loading_For_GamePlay()
".bin", false
));
}
{/* Barrel */
jobMapModels.emplace_back(Deferred_FolderLoad(
"../Bin/Resources/Models/MapMesh/Game/Environment/Objects/Meshes",
".bin", false
));
/* Box */
jobMapModels.emplace_back(Deferred_FolderLoad(
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Meshes/MiscProps",
".bin", false
));
/* TeaShop Table */
jobMapModels.emplace_back(Deferred_FolderLoad(
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Meshes/Tables",
".bin", false
));
/* TeaShop Chair*/
jobMapModels.emplace_back(Deferred_FolderLoad(
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Meshes/Chairs",
".bin", false
));
/* Object Interactables (Chest)*/
jobMapModels.emplace_back(Deferred_FolderLoad(
"../Bin/Resources/Models/MapMesh/Game/Environment/Objects/Interactables",
".bin", false
));
}
/* ------------------------------------ HOGWART ------------------------------- */
{ /* QuidditchPitch */
/* */
jobMapModels.emplace_back(Deferred_FolderLoad(
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/SUB_QuidditchPitch/Static_Mesh/KIT_Ext",
".bin", false
));
jobMapModels.emplace_back(Deferred_FolderLoad(
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/SUB_QuidditchPitch/Static_Mesh/Collisions",
".bin", false
));
}
}
/* ------------------------------------ HOGWART ------------------------------- */
if(true == isLoad_Hogwart)
{
/* QuidditchPitch */
jobMapModels.emplace_back(Deferred_FolderLoad(
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/SUB_QuidditchPitch/Static_Mesh/KIT_Ext",
".bin", false
));
jobMapModels.emplace_back(Deferred_FolderLoad(
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/SUB_QuidditchPitch/Static_Mesh/Collisions",
".bin", false
));
/* Greenhouse */
jobMapModels.emplace_back(Deferred_FolderLoad(
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/SUB_Greenhouses/Static_Mesh/Kit_EXT",
".bin", false
));
jobMapModels.emplace_back(Deferred_FolderLoad(
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/SUB_Greenhouses/SUB_Greenhouses_EXTLOD/ProxyAssets",
".bin", false
));
/* ViaductEntrance */
jobMapModels.emplace_back(Deferred_FolderLoad(
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/SUB_ViaductEntrance/SUB_ViaductEntrance_EXTLOD/ProxyAssets",
".bin", false
));
jobMapModels.emplace_back(Deferred_FolderLoad(
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/SUB_ViaductEntrance/Static_Mesh/Kit_EXT",
".bin", false
));
/* CentralTower */
jobMapModels.emplace_back(Deferred_FolderLoad(
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/SUB_CentralTower/SUB_CentralTower_EXTLOD/ProxyAssets",
".bin", false
));
jobMapModels.emplace_back(Deferred_FolderLoad(
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/SUB_CentralTower/Static_Mesh/Kit_EXT",
".bin", false
));
/* Library */
jobMapModels.emplace_back(Deferred_FolderLoad(
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/SUB_Library/SUB_Library_EXTLOD/ProxyAssets",
".bin", false
));
jobMapModels.emplace_back(Deferred_FolderLoad(
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/SUB_Library/Static_Mesh/Kit_EXT",
".bin", false
));
/* BellTowers */
jobMapModels.emplace_back(Deferred_FolderLoad(
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/SUB_BellTowers/SUB_BellTowers_EXTLOD/ProxyAssets",
".bin", false
));
jobMapModels.emplace_back(Deferred_FolderLoad(
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/SUB_BellTowers/Static_Mesh/Kit_EXT",
".bin", false
));
/* GrandStaircaseTower */
jobMapModels.emplace_back(Deferred_FolderLoad(
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/SUB_GrandStaircaseTower/SUB_GrandStaircaseTower_EXTLOD/ProxyAssets",
".bin", false
));
jobMapModels.emplace_back(Deferred_FolderLoad(
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/SUB_GrandStaircase/SUB_GrandStaircase_EXTLOD/ProxyAssets",
".bin", false
));
jobMapModels.emplace_back(Deferred_FolderLoad(
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/SUB_GrandStaircaseTower/Static_Mesh/Kit_EXT",
".bin", false
));
/* ViaductCourtyard */
jobMapModels.emplace_back(Deferred_FolderLoad(
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/SUB_ViaductCourtyard/SUB_ViaductCourtyard_EXTLOD/ProxyAssets",
".bin", false
));
jobMapModels.emplace_back(Deferred_FolderLoad(
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/SUB_ViaductCourtyard/Static_Mesh",
".bin", false
));
/* ViaductBridge */
jobMapModels.emplace_back(Deferred_FolderLoad(
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/SUB_ViaductBridge/SUB_ViaductBridge_EXTLOD/ProxyAssets",
".bin", false
));
jobMapModels.emplace_back(Deferred_FolderLoad(
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/SUB_ViaductBridge/Static_Mesh",
".bin", false
));
/* Boathouse */
jobMapModels.emplace_back(Deferred_FolderLoad(
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/SUB_Boathouse/SUB_Boathouse_EXTLOD/ProxyAssets",
".bin", false
));
jobMapModels.emplace_back(Deferred_FolderLoad(
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/SUB_Boathouse/Static_Mesh",
".bin", false
));
/* BoathouseStairway */
jobMapModels.emplace_back(Deferred_FolderLoad(
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/SUB_BoathouseStairway/SUB_BoathouseStairway_EXTLOD/ProxyAssets",
".bin", false
));
jobMapModels.emplace_back(Deferred_FolderLoad(
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/SUB_BoathouseStairway/Static_Mesh",
".bin", false
));
/* EntranceHall */
jobMapModels.emplace_back(Deferred_FolderLoad(
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/SUB_EntranceHall/SUB_EntranceHall_EXTLOD/ProxyAssets",
".bin", false
));
jobMapModels.emplace_back(Deferred_FolderLoad(
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/SUB_EntranceHall/Static_Mesh/Kit_Ext",
".bin", false
));
jobMapModels.emplace_back(Deferred_FolderLoad(
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/SUB_EntranceHall/Static_Mesh",
".bin", false
));
/* GreatHall */
jobMapModels.emplace_back(Deferred_FolderLoad(
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/SUB_GreatHall/SUB_GreatHall_EXTLOD/ProxyAssets",
".bin", false
));
jobMapModels.emplace_back(Deferred_FolderLoad(
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/SUB_GreatHall/Static_Mesh/Kit_Ext",
".bin", false
));
/* Ravenclaw */
jobMapModels.emplace_back(Deferred_FolderLoad(
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/SUB_RavenclawTower/SUB_RavenclawTower_ExtLOD/ProxyAssets",
".bin", false
));
jobMapModels.emplace_back(Deferred_FolderLoad(
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/SUB_RavenclawTower/Static_Mesh/Kit_EXT",
".bin", false
));
/* QuadCourtyard */
jobMapModels.emplace_back(Deferred_FolderLoad(
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/SUB_QuadCourtyard/SUB_QuadCourtyard_EXTLOD/ProxyAssets",
".bin", false
));
jobMapModels.emplace_back(Deferred_FolderLoad(
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/SUB_QuadCourtyard/Static_Mesh",
".bin", false
));
/* HospitalWing */
jobMapModels.emplace_back(Deferred_FolderLoad(
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/SUB_HospitalWing/SUB_HospitalWing_EXTLOD/ProxyAssets",
".bin", false
));
jobMapModels.emplace_back(Deferred_FolderLoad(
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/SUB_HospitalWing/Static_Mesh",
".bin", false
));
/* GryffindorTower */
jobMapModels.emplace_back(Deferred_FolderLoad(
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/SUB_GryffindorTower/SUB_GryffindorTower_ExtLOD/ProxyAssets",
".bin", false
));
jobMapModels.emplace_back(Deferred_FolderLoad(
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/SUB_GryffindorTower/Static_Mesh/Kit_EXT",
".bin", false
));
/* FacultyTower */
jobMapModels.emplace_back(Deferred_FolderLoad(
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/SUB_FacultyTower/SUB_FacultyTower_ExtLOD/ProxyAssets",
".bin", false
));
jobMapModels.emplace_back(Deferred_FolderLoad(
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/SUB_FacultyTower/Static_Mesh/Kit_EXT",
".bin", false
));
/* NorthTower */
jobMapModels.emplace_back(Deferred_FolderLoad(
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/SUB_NorthTower/SUB_NorthTower_EXTLOD/ProxyAssets",
".bin", false
));
jobMapModels.emplace_back(Deferred_FolderLoad(
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/SUB_NorthTower/Static_Mesh/Kit_EXT",
".bin", false
));
/* NorthHall */
jobMapModels.emplace_back(Deferred_FolderLoad(
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/SUB_NorthHall/SUB_NorthHall_EXTLOD/ProxyAssets",
".bin", false
));
jobMapModels.emplace_back(Deferred_FolderLoad(
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/SUB_NorthHall/Static_Mesh/StaticMesh/Kit_EXT",
".bin", false
));
/* AstronomyTower */
jobMapModels.emplace_back(Deferred_FolderLoad(
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/SUB_AstronomyTower/SUB_AstronomyTower_EXTLOD/ProxyAssets",
".bin", false
));
jobMapModels.emplace_back(Deferred_FolderLoad(
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/SUB_AstronomyTower/Static_Mesh/EXT",
".bin", false
));
/* ClockTower */
jobMapModels.emplace_back(Deferred_FolderLoad(
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/SUB_ClockTower/SUB_ClockTower_EXTLOD/ProxyAssets",
".bin", false
));
jobMapModels.emplace_back(Deferred_FolderLoad(
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/SUB_ClockTower/Static_Mesh/Kit_EXT",
".bin", false
));
/* TransfigurationCourtyard */
jobMapModels.emplace_back(Deferred_FolderLoad(
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/SUB_TransfigurationCourtyard/SUB_TransfigurationCourtyard_EXTLOD/ProxyAssets",
".bin", false
));
jobMapModels.emplace_back(Deferred_FolderLoad(
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/SUB_TransfigurationCourtyard/Static_Mesh",
".bin", false
));
/* ClockTowerCourtyard */
jobMapModels.emplace_back(Deferred_FolderLoad(
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/SUB_ClockTowerCourtyard/SUB_ClockTowerCourtyard_EXTLOD/ProxyAssets",
".bin", false
));
jobMapModels.emplace_back(Deferred_FolderLoad(
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/SUB_ClockTowerCourtyard/Static_Mesh/Kit_EXT",
".bin", false
));
/* DADATower */
jobMapModels.emplace_back(Deferred_FolderLoad(
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/SUB_DADATower/SUB_DADATower_EXTLOD/ProxyAssets",
".bin", false
));
jobMapModels.emplace_back(Deferred_FolderLoad(
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/SUB_DADATower/StaticMesh/EXT",
".bin", false
));
}
}
@@ -33,25 +33,8 @@ HRESULT CMapElement_Interactable::Initialize(void* pArg)
m_ModelPrototypeTags.push_back(pDesc->ModelPrototypeTags[i]);
//m_ModelPathIndices.push_back((*pDesc->pModelPathIndices)[i]);
}
if (m_ModelPrototypeTags[0] == L"Prototype_GameObject_SM_Prop_Barrel_Breakable_B_Oppungo")
{
m_eInteractableID = ELEMENT_INTERACTABLE_ID::BARREL;
}
else if (m_ModelPrototypeTags[0] == L"Prototype_GameObject_SM_HM_OwlPost_Package_B")
{
m_eInteractableID = ELEMENT_INTERACTABLE_ID::BOX;
}
else if (m_ModelPrototypeTags[0] == L"Prototype_GameObject_SM_HM_TeaShop_Table_B")
{
m_eInteractableID = ELEMENT_INTERACTABLE_ID::TABLE;
}
else if (m_ModelPrototypeTags[0] == L"Prototype_GameObject_SM_HM_TeaShop_Chair_B")
{
m_eInteractableID = ELEMENT_INTERACTABLE_ID::TABLE;
}
m_isPooled = pDesc->isPooled;
m_eInteractableID = static_cast<ELEMENT_INTERACTABLE_ID>(pDesc->iInteractableID);
if (FAILED(__super::Initialize(pArg)))
return E_FAIL;
@@ -78,7 +61,16 @@ HRESULT CMapElement_Interactable::Initialize(void* pArg)
static_cast<CRigidBody_Dynamic*>(m_pRigidBody)->Move_LocalPos(_float4(0.f, 0.f, 0.f, 0.f), pDesc->vBoxLocalPosition);
//static_cast<CRigidBody_Dynamic*>(m_pRigidBody)->Set_Kinematic(false);
m_pInfoInstance->Regist_ActiveInteractive(this);
if (false == m_isPooled)
{
m_bVisible = true;
m_pInfoInstance->Regist_ActiveInteractive(this);
}
else
{
m_bVisible = false;
static_cast<CRigidBody_Dynamic*>(m_pRigidBody)->Set_Kinematic(true);
}
m_pEffectPool = m_pGameInstance->Get_Layer(NEXT_LEVEL, TEXT("Layer_EffectPool"))->Get_Object<CEffectPool>();
@@ -89,9 +81,12 @@ HRESULT CMapElement_Interactable::Initialize(void* pArg)
void CMapElement_Interactable::Priority_Update(_float fTimeDelta)
{
_float fRadius = m_pModelComs[0]->Get_Radius();
if(m_bVisible)
{
_float fRadius = m_pModelComs[0]->Get_Radius();
XMStoreFloat4(&m_vStartPos, Get_WorldPostion() + XMVectorSet(0.f , fRadius , 0.f , 0.f ));
XMStoreFloat4(&m_vStartPos, Get_WorldPostion() + XMVectorSet(0.f, fRadius, 0.f, 0.f));
}
}
@@ -102,23 +97,25 @@ void CMapElement_Interactable::Update(_float fTimeDelta)
void CMapElement_Interactable::Late_Update(_float fTimeDelta)
{
if (m_isGraped == true)
if (m_bVisible)
{
_float fRadius = m_pModelComs[0]->Get_Radius();
if (m_isGraped == true)
{
_float fRadius = m_pModelComs[0]->Get_Radius();
if (false == m_bHit) {
_vector vStartPos = XMLoadFloat4(&m_vStartPos);
_vector vEndPos = Get_WorldPostion() + XMVectorSet(0.f, fRadius, 0.f, 0.f);
ON_COLLISION_INFO CollisionInfo = CollisionCheck(vStartPos, vEndPos, 1.f);
if (false == m_bHit) {
_vector vStartPos = XMLoadFloat4(&m_vStartPos);
_vector vEndPos = Get_WorldPostion() + XMVectorSet(0.f, fRadius, 0.f, 0.f);
ON_COLLISION_INFO CollisionInfo = CollisionCheck(vStartPos, vEndPos, 1.f);
if (m_bHit == true)
OnCollision(this, &CollisionInfo);
if (m_bHit == true)
OnCollision(this, &CollisionInfo);
}
}
}
if (m_pGameInstance->IsIn_WorldFrustum(Get_WorldPostion(), m_pModelComs[0]->Get_Radius())) {
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
if (m_pGameInstance->IsIn_WorldFrustum(Get_WorldPostion(), m_pModelComs[0]->Get_Radius())) {
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
}
}
}
@@ -191,19 +188,26 @@ void CMapElement_Interactable::OnCollision(CGameObject* pOther, void* pDesc)
case Client::ELEMENT_INTERACTABLE_ID::TABLE:
m_pEffectPool->Use_Skill(SKILL_TYPE::CHAIL_SPLESH, this);
break;
case Client::ELEMENT_INTERACTABLE_ID::CHAIR:
m_pEffectPool->Use_Skill(SKILL_TYPE::CHAIL_SPLESH, this);
break;
case Client::ELEMENT_INTERACTABLE_ID::END:
break;
default:
break;
}
Set_Dead();
if (m_isPooled)
{
m_bVisible = false;
static_cast<CRigidBody_Dynamic*>(m_pRigidBody)->Set_Kinematic(true);
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(0.f, -999.f, 0.f, 1.f));
m_pInfoInstance->Deregist_ActiveInteractive(this);
}
else
Set_Dead();
}
HRESULT CMapElement_Interactable::Ready_Components(void* pArg)
{
if (FAILED(__super::Ready_Components(pArg))) {
@@ -328,6 +332,15 @@ void CMapElement_Interactable::Set_KinematicFlag(_bool bFlag)
m_pRigidBody->Set_Kinematic(bFlag);
}
void CMapElement_Interactable::ActivateAt(_fvector vPos)
{
m_bVisible = true;
m_pTransformCom->Set_State(STATE::POSITION, vPos);
m_pInfoInstance->Regist_ActiveInteractive(this);
m_pRigidBody->Set_Kinematic(false);
m_pRigidBody->Set_Position(vPos);
}
ON_COLLISION_INFO CMapElement_Interactable::CollisionCheck(_fvector StartPos, _fvector EndPos, _float fRadius)
{
@@ -392,8 +405,6 @@ ON_COLLISION_INFO CMapElement_Interactable::CollisionCheck(_fvector StartPos, _f
}
}
}
}
if (bHit == false)
+2 -1
View File
@@ -422,8 +422,9 @@ HRESULT CMapInfo::Load_InteractableElements(const _char* pFileName, const _wchar
CMapElement_Interactable::ELEMENT_INTERACTABLE_DESC Desc = {};
/* Model Prototypes */
Desc.isPooled = false;
Object->QueryUnsignedAttribute("Lod_Level", &Desc.iMaxLodLevel);
Object->QueryUnsignedAttribute("Lod_Level", &Desc.iInteractableID);
Object->QueryUnsignedAttribute("ID", &Desc.iInteractableID);
string strTag = {};
for (auto* PrototypeTag = Object->FirstChildElement("PrototypeTag"); PrototypeTag; PrototypeTag = PrototypeTag->NextSiblingElement("PrototypeTag"))
@@ -216,13 +216,12 @@ void CTransformation::OnCollision(CGameObject* pOther, void* pDesc)
XMStoreFloat4(&vCCTPos , pCCT->Get_Position());
//PSX::PxTransform pxTransform((_float)vCCTPos.x, (_float)vCCTPos.y + 100.f, (_float)vCCTPos.z);
//pCCT->Set_Position(XMLoadFloat3((_float3*)&pxTransform.p));
////m_pCharacter_Controller->Move(fTimeDelta);
//m_pCharacter_Controller->Move(fTimeDelta);
m_pInfoInstance->ActiveAt_Interactive(XMLoadFloat4(&vCCTPos));
//m_pTransformCom->Set_WorldMatrix(CollisionDesc.pObject->Get_Component<CRigidBody_Dynamic>()->Get_Actor()->getGlobalPose());
//pCCT->ConvertToDO(*CollisionDesc.pObject->Get_Component<CRigidBody_Dynamic>());
CEffectParts* pHit_Light = Get_PartObject<CEffectParts>("Hit_Light");
+1 -1
View File
@@ -83,7 +83,7 @@ namespace Client
END
};
enum class ELEMENT_INTERACTABLE_ID { BARREL, BOX, TABLE, END };
enum class ELEMENT_INTERACTABLE_ID { BARREL, BOX, TABLE, CHAIR, END };
}
@@ -22,6 +22,7 @@ DECLARE_SINGLETON(CInfoInstance)
virtual ~CInfoInstance() = default;
public:
HRESULT Initialize_Information(ID3D11Device* pDevice, ID3D11DeviceContext* pContex);
HRESULT Late_Initialize(); // GamePlay Initialize 할 때
void Release_Information();
LEVEL Get_RestartLevel();
public:
@@ -82,6 +83,8 @@ DECLARE_SINGLETON(CInfoInstance)
#pragma endregion
HRESULT Regist_ActiveInteractive(class CMapElement_Interactable* pInteractive);
HRESULT Deregist_ActiveInteractive(class CMapElement_Interactable* pInteractive);
HRESULT ActiveAt_Interactive(_fvector vPosition);
#pragma endregion
private:
CGameInstance* m_pGameInstance = { nullptr };
@@ -23,6 +23,9 @@ class CInteractiveInfo final : public CBase
HRESULT Regist_ActiveInteractive(class CMapElement_Interactable* pUnit);
HRESULT Deregist_ActiveInteractive(class CMapElement_Interactable* pUnit);
HRESULT Ready_PoolingInteractive(); // Ready Pooling
HRESULT ActiveAt_Interactive(_fvector vPosition); // Spawn Pooling Object
class CMapElement_Interactable* Get_LockOnUnit();
private:
CGameInstance* m_pGameInstance = { nullptr };
@@ -33,9 +36,13 @@ class CInteractiveInfo final : public CBase
class CMapElement_Interactable* m_pLockOnInteractive = { nullptr };
list<class CMapElement_Interactable*> m_ActiveInteractive = {};
list<class CMapElement_Interactable*> m_PoolingInteractive = {};
list<class CMapElement_Interactable*> m_PoolingActiveInteractive = {};
private:
HRESULT Initialize(ID3D11Device* pDevice, ID3D11DeviceContext* pContex);
HRESULT Refresh_LockOnTarget();
public:
static CInteractiveInfo* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContex);
virtual void Free() override;
@@ -26,7 +26,6 @@ class CLevel_GamePlay final : public CLevel
HRESULT Ready_Background();
HRESULT Ready_Layer_Hogsmeade();
HRESULT Ready_Layer_Hogwart();
HRESULT Ready_Layer_Unified();
HRESULT Ready_IntstanceProp();
HRESULT Ready_Markers();
HRESULT Ready_Layer_UI(const _wstring& strLayerTag);
@@ -10,6 +10,7 @@ class CMapElement_Interactable final : public CMapElement
public:
typedef struct tagElement_Interactable_Desc : MAPELEMENT_DESC
{
_bool isPooled = {};
_uint iInteractableID = {};
_uint iSubKind = {};
_float3 vBoxLocalPosition;
@@ -22,10 +23,10 @@ class CMapElement_Interactable final : public CMapElement
virtual ~CMapElement_Interactable() = default;
public:
virtual void Priority_Update(_float fTimeDelta) override;
virtual void Update(_float fTimeDelta) override;
virtual void Late_Update(_float fTimeDelta) override;
virtual HRESULT Render() override;
virtual void Priority_Update(_float fTimeDelta) override;
virtual void Update(_float fTimeDelta) override;
virtual void Late_Update(_float fTimeDelta) override;
virtual HRESULT Render() override;
virtual void GrapToPlayer(_fvector vPos, _float fRatio);
virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override;
ON_COLLISION_INFO CollisionCheck(_fvector StartPos, _fvector EndPos, _float fRadius);
@@ -33,7 +34,7 @@ class CMapElement_Interactable final : public CMapElement
virtual void Set_DrawOutLine();
virtual HRESULT Render_OutLine() override;
void Set_KinematicFlag(_bool bFlag);
void ActivateAt(_fvector vPos); // 풀링 꺼내기, 위치 지정
private:
ELEMENT_INTERACTABLE_ID m_eInteractableID = { ELEMENT_INTERACTABLE_ID::END };
@@ -41,6 +42,8 @@ class CMapElement_Interactable final : public CMapElement
class CRigidBody_Dynamic* m_pRigidBody = { nullptr };
PSX::PxRigidDynamic* m_pActor = { nullptr };
_bool m_isPooled = { false };
_bool m_bDrawOutLine = { false };
_float4 m_vOutLineColor = CMyTools::ColorRGBA_HEXtoFLOAT4(0xfefefe00);
_float m_fOutLineThickness = { 5.f };