@@ -296,7 +296,7 @@ HRESULT CLevel_GamePlay::Ready_Background()
|
||||
|
||||
#ifdef gimch
|
||||
isReady_Background = true;
|
||||
isReady_Hogsmeade = false;
|
||||
isReady_Hogsmeade = true;
|
||||
isReady_Hogwart = false;
|
||||
#endif // gimch
|
||||
#ifdef Bin
|
||||
@@ -708,9 +708,9 @@ HRESULT CLevel_GamePlay::Ready_IntstanceProp()
|
||||
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/ScotsPine_LargeA_HN_BB.bin";
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc)))
|
||||
return E_FAIL;
|
||||
/*Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/ScotsPine_LargeA_HN_BB_2.bin";
|
||||
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/ScotsPine_LargeA_HN_BB_2.bin";
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc)))
|
||||
return E_FAIL;*/
|
||||
return E_FAIL;
|
||||
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/ScotsPine_LargeA_HN_AZ.bin";
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc)))
|
||||
return E_FAIL;
|
||||
@@ -891,7 +891,8 @@ HRESULT CLevel_GamePlay::Ready_Layer_Player(const _wstring& strLayerTag)
|
||||
_bool isLoad_RandomNPC = { true };
|
||||
#ifdef _DEBUG
|
||||
#ifdef gimch
|
||||
isLoad_RandomNPC = true;
|
||||
isLoad_NPC = false;
|
||||
isLoad_RandomNPC = false;
|
||||
#endif // gimch
|
||||
#ifdef 진우
|
||||
isLoad_RandomNPC = false;
|
||||
|
||||
@@ -410,10 +410,10 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
|
||||
#ifdef _DEBUG
|
||||
#ifdef gimch
|
||||
isLoad_Background = false;
|
||||
isLoad_Background = true;
|
||||
isLoad_Hogwart = false;
|
||||
isLoad_UI_SEQUANTIAL = false;
|
||||
isLoad_NPC = true;
|
||||
isLoad_NPC = false;
|
||||
isLoad_DataClassroom = true;
|
||||
#endif // gimch
|
||||
#ifdef 진우
|
||||
|
||||
@@ -60,6 +60,10 @@ HRESULT CMapObject_Render::Initialize(void* pArg)
|
||||
_matrix ColliderMatrix = XMMatrixTranslation(vOffset.x, vOffset.y, vOffset.z) * XMLoadFloat4x4(&m_CombinedWorldMatrix);
|
||||
XMStoreFloat4(&m_vExtentPosition, ColliderMatrix.r[3]);
|
||||
|
||||
|
||||
ReadyForPhysX();
|
||||
ConvertToPhysX();
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -168,6 +172,7 @@ void CMapObject_Render::ReadyForPhysX()
|
||||
|
||||
void CMapObject_Render::ConvertToPhysX()
|
||||
{
|
||||
XMStoreFloat4x4(&m_IdentityMatrix, XMMatrixIdentity());
|
||||
if (true == m_bReadyToCreatePhysX) {
|
||||
return;
|
||||
}
|
||||
@@ -179,7 +184,7 @@ void CMapObject_Render::ConvertToPhysX()
|
||||
CModel* pModel = m_pModelComs[iIndexLOD];
|
||||
|
||||
_uint iNumMeshes = pModel->Get_NumMeshes();
|
||||
|
||||
|
||||
for (_uint iIndex = 0; iIndex < iNumMeshes; ++iIndex)
|
||||
{
|
||||
_wstring wstrName = CMyTools::ToWstring(pModel->Get_MeshName(iIndex)) + to_wstring(iIndex);
|
||||
@@ -187,7 +192,7 @@ void CMapObject_Render::ConvertToPhysX()
|
||||
CRigidBody_Static::RIGIDBODY_STATIC_DESC Desc = {};
|
||||
Desc.iSubKind = ENUM_CLASS(PXOBJECT::TERRAIN);
|
||||
Desc.pMeshName = wstrName.c_str();
|
||||
Desc.pWorldMatrix = m_pTransformCom->Get_WorldMatrixPtr();
|
||||
Desc.pWorldMatrix = &m_IdentityMatrix;
|
||||
if (FAILED(__super::Add_Asset_Component(NEXT_LEVEL, wstrName, (CComponent**)&pRigidBody, &Desc))) {
|
||||
assert(false);
|
||||
}
|
||||
|
||||
@@ -14,6 +14,8 @@
|
||||
#include "Interaction_Key.h"
|
||||
#include "NPCInteraction.h"
|
||||
#include "Broom_TargetGate.h"
|
||||
#include "Player.h"
|
||||
#include "Layer.h"
|
||||
|
||||
CUI_Manager::CUI_Manager(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
:CUIObject(pDevice, pContext)
|
||||
@@ -302,6 +304,11 @@ void CUI_Manager::Update(_float fTimeDelta)
|
||||
}
|
||||
}
|
||||
|
||||
if (m_pGameInstance->Key_Down(DIK_I))
|
||||
{
|
||||
Change_Map();
|
||||
}
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
}
|
||||
|
||||
@@ -485,6 +492,23 @@ void CUI_Manager::Set_Fade()
|
||||
m_bCgangede = true;
|
||||
}
|
||||
|
||||
void CUI_Manager::Change_Map()
|
||||
{
|
||||
m_pInfoInstance->Load_DADA_INT();
|
||||
m_pGameInstance->Setting_Volumetirc(
|
||||
3.f,
|
||||
0.01f,
|
||||
0.11f,
|
||||
1.0f,
|
||||
0.f
|
||||
);
|
||||
CLayer* pLayer = m_pGameInstance->Get_Layer(CURRENT_LEVEL, LAYER_PLAYER);
|
||||
if (nullptr != pLayer) {
|
||||
CPlayer* pPlayer = pLayer->Get_Object<CPlayer>();
|
||||
pPlayer->Get_Component<CCharacter_Controller>()->Set_Position(XMVectorSet(1003.f, 5.f, 1005.f, 1.f));
|
||||
}
|
||||
}
|
||||
|
||||
CUI_Manager* CUI_Manager::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CUI_Manager* pInstance = new CUI_Manager(pDevice, pContext);
|
||||
@@ -527,7 +551,9 @@ void CUI_Manager::Describe_Entity()
|
||||
GUI::Begin("실내맵 전환");
|
||||
|
||||
if (GUI::Button("Load_DADA_INT"))
|
||||
m_pInfoInstance->Load_DADA_INT();
|
||||
{
|
||||
Change_Map();
|
||||
}
|
||||
|
||||
GUI::End();
|
||||
}
|
||||
|
||||
@@ -53,6 +53,8 @@ class CMapObject_Render final : public CMapPartObject // Render PartObject
|
||||
vector<_wstring> m_ModelPrototypeTags;
|
||||
vector<_uint> m_ModelPathIndices = {};
|
||||
|
||||
_float4x4 m_IdentityMatrix = {};
|
||||
|
||||
private:
|
||||
HRESULT Ready_Components();
|
||||
HRESULT Bind_ShaderResources();
|
||||
|
||||
@@ -41,6 +41,7 @@ class CUI_Manager final : public CUIObject
|
||||
|
||||
void Add_Manager_Event(_wstring Name, function<void(void*)> Event);
|
||||
void Event_Callback(_wstring Name, void* pArg = nullptr);
|
||||
|
||||
private:
|
||||
void Add_Canvas(_wstring Name, class CGameObject* pCanvas);
|
||||
CGameObject* Find_Canvas(const _wstring& Name);
|
||||
@@ -48,7 +49,7 @@ class CUI_Manager final : public CUIObject
|
||||
void NpcInteract(_bool bInteract);
|
||||
|
||||
void Set_Fade();
|
||||
|
||||
void Change_Map();
|
||||
private:
|
||||
CInfoInstance* m_pInfoInstance = { nullptr };
|
||||
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -537,18 +537,17 @@ HRESULT CLevel_MapViewer::Ready_Layer_InstanceProp(const _wstring& strLayerTag)
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Desc)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/ScotsPine_LargeA_HN_BB_2.bin";
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Desc)))
|
||||
return E_FAIL;
|
||||
|
||||
/*Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/ScotsPine_LargeA_HN_AZ.bin";
|
||||
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/ScotsPine_LargeA_HN_AZ.bin";
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Desc)))
|
||||
return E_FAIL;
|
||||
|
||||
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/ScotsPine_LargeA_HN_AV.bin";
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Desc)))
|
||||
return E_FAIL;*/
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
/* StratifiedCliff_A1 */
|
||||
|
||||
Reference in New Issue
Block a user