[Modify] 병합
This commit is contained in:
@@ -177,6 +177,7 @@ call Update_Resources.bat
|
||||
<ClInclude Include="..\Public\BombardSide.h" />
|
||||
<ClInclude Include="..\Public\LeviosoSide.h" />
|
||||
<ClInclude Include="..\public\MapElement.h" />
|
||||
<ClInclude Include="..\public\MapElement_Interactable.h" />
|
||||
<ClInclude Include="..\public\MapElement_Light.h" />
|
||||
<ClInclude Include="..\Public\Mouse_Cursor.h" />
|
||||
<ClInclude Include="..\Public\Potion.h" />
|
||||
@@ -305,6 +306,7 @@ call Update_Resources.bat
|
||||
<ClCompile Include="..\Private\BombardSide.cpp" />
|
||||
<ClCompile Include="..\Private\LeviosoSide.cpp" />
|
||||
<ClCompile Include="..\private\MapElement.cpp" />
|
||||
<ClCompile Include="..\private\MapElement_Interactable.cpp" />
|
||||
<ClCompile Include="..\private\MapElement_Light.cpp" />
|
||||
<ClCompile Include="..\Private\Mouse_Cursor.cpp" />
|
||||
<ClCompile Include="..\Private\Potion.cpp" />
|
||||
|
||||
@@ -379,6 +379,9 @@
|
||||
<ClInclude Include="..\Public\Loding_Canvas.h">
|
||||
<Filter>02.GameObjects\UI\Loding_Canvas</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\public\MapElement_Interactable.h">
|
||||
<Filter>02.GameObjects\Environment\03.MapElement\Interactable</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Image Include="Client.ico">
|
||||
@@ -803,6 +806,9 @@
|
||||
<Filter Include="02.GameObjects\UI\Loding_Canvas\Loding_Panel">
|
||||
<UniqueIdentifier>{b4b5d9a6-152d-43fc-b746-49a3666d31a4}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Environment\03.MapElement\Interactable">
|
||||
<UniqueIdentifier>{17eaf081-6fbf-4965-b04d-10749e6032c6}</UniqueIdentifier>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="Client.cpp">
|
||||
@@ -1177,6 +1183,10 @@
|
||||
<ClCompile Include="..\Private\Loding_Panel.cpp">
|
||||
<Filter>02.GameObjects\UI\Loding_Canvas\Loding_Panel</Filter>
|
||||
</ClCompile>
|
||||
|
||||
<ClCompile Include="..\private\MapElement_Interactable.cpp">
|
||||
<Filter>02.GameObjects\Environment\03.MapElement\Interactable</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ResourceCompile Include="Client.rc">
|
||||
|
||||
@@ -125,6 +125,25 @@ HRESULT CEffectObject::Render_Blur()
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CEffectObject::Disable_Light()
|
||||
{
|
||||
|
||||
if (m_pLightCom == nullptr)
|
||||
return;
|
||||
|
||||
m_pGameInstance->Delete_Light(CURRENT_LEVEL, m_pLightCom);
|
||||
|
||||
}
|
||||
|
||||
void CEffectObject::Add_Light()
|
||||
{
|
||||
if (m_pLightCom == nullptr)
|
||||
return;
|
||||
|
||||
m_pGameInstance->Add_Light(CURRENT_LEVEL, m_pLightCom);
|
||||
}
|
||||
|
||||
|
||||
HRESULT CEffectObject::Render_Bloom()
|
||||
{
|
||||
if (FAILED(Bind_ShaderResources()))
|
||||
|
||||
@@ -214,6 +214,8 @@ HRESULT CEffect_Container::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
m_pOwner = pObject;
|
||||
|
||||
|
||||
//Add_Chlid_Light();
|
||||
|
||||
Reset_EffectParts();
|
||||
|
||||
m_fAccTime = 0.f;
|
||||
@@ -364,6 +366,8 @@ void CEffect_Container::Update_Event(_float fTimeDelta)
|
||||
pPart.second->Set_Visible(false);
|
||||
}
|
||||
}
|
||||
|
||||
//Delete_Chlid_Light();
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -88,6 +88,10 @@ HRESULT CInfoInstance::Load_LightElements(const _char* pFilePath)
|
||||
{
|
||||
return m_pMapInfo->Load_LightElements(pFilePath);
|
||||
}
|
||||
HRESULT CInfoInstance::Load_InteractableElements(const _char* pFileName)
|
||||
{
|
||||
return m_pMapInfo->Load_InteractableElements(pFileName);
|
||||
}
|
||||
#pragma endregion
|
||||
|
||||
#pragma region SPELL_INFO
|
||||
|
||||
@@ -168,7 +168,13 @@ HRESULT CLevel_GamePlay::Ready_Background()
|
||||
/* 조명 오브젝트 */
|
||||
CInfoInstance::GetInstance()->Load_LightElements("LightElement");
|
||||
|
||||
|
||||
/* 상호작용 오브젝트 */
|
||||
CInfoInstance::GetInstance()->Load_InteractableElements("E_INTER_Barrel");
|
||||
CInfoInstance::GetInstance()->Load_InteractableElements("E_INTER_PostPackage_B");
|
||||
CInfoInstance::GetInstance()->Load_InteractableElements("E_INTER_PostPackage_F");
|
||||
CInfoInstance::GetInstance()->Load_InteractableElements("E_INTER_TeaShopTable");
|
||||
CInfoInstance::GetInstance()->Load_InteractableElements("E_INTER_TeaShopChair");
|
||||
|
||||
CInstancedProp::INSTANCE_PROP_DESC Desc = {};
|
||||
|
||||
/* InstanceProp Oak_Tree*/
|
||||
|
||||
@@ -130,6 +130,7 @@
|
||||
#include "MapObject_Collision.h"
|
||||
#include "InstancedProp.h"
|
||||
#include "MapElement_Light.h"
|
||||
#include "MapElement_Interactable.h"
|
||||
|
||||
#pragma endregion
|
||||
|
||||
@@ -499,6 +500,27 @@ 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
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
#pragma endregion
|
||||
@@ -1228,6 +1250,11 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
Desc.ePxRigidBodyFlags = { PSX::PxRigidBodyFlag::eKINEMATIC };
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_BOX_KIN"), CRigidBody_Dynamic::Create(m_pDevice, m_pContext, Desc)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Box"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/Box/Box.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixIdentity())))) {
|
||||
return E_FAIL;
|
||||
@@ -2043,6 +2070,10 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CMapElement_Light>(g_iStaticLevel, CMapElement_Light::Create(m_pDevice, m_pContext))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_GameObject_MapElement_Interactable */
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CMapElement_Interactable>(g_iStaticLevel, CMapElement_Interactable::Create(m_pDevice, m_pContext))))
|
||||
return E_FAIL;
|
||||
|
||||
#pragma endregion // MAP PROTOTYPE
|
||||
|
||||
#pragma region ACTOR PROTOTYPE
|
||||
|
||||
@@ -0,0 +1,201 @@
|
||||
#include "pch.h"
|
||||
#include "MapElement_Interactable.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
|
||||
CMapElement_Interactable::CMapElement_Interactable(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CMapElement{ pDevice, pContext }
|
||||
{
|
||||
}
|
||||
|
||||
CMapElement_Interactable::CMapElement_Interactable(const CMapElement_Interactable& rhs)
|
||||
: CMapElement(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CMapElement_Interactable::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CMapElement_Interactable::Initialize(void* pArg)
|
||||
{
|
||||
ELEMENT_INTERACTABLE_DESC* pDesc = static_cast<ELEMENT_INTERACTABLE_DESC*>(pArg);
|
||||
|
||||
m_iMaxLodLevel = pDesc->iMaxLodLevel;
|
||||
|
||||
for (_uint i = 0; i < m_iMaxLodLevel + 1; i++)
|
||||
{
|
||||
m_ModelPrototypeTags.push_back(pDesc->ModelPrototypeTags[i]);
|
||||
//m_ModelPathIndices.push_back((*pDesc->pModelPathIndices)[i]);
|
||||
}
|
||||
|
||||
if (FAILED(__super::Initialize(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&pDesc->vPosition), 1.f));
|
||||
m_pTransformCom->Set_Scale(pDesc->vScale);
|
||||
m_pTransformCom->Rotation(XMConvertToRadians(pDesc->vRotation.x), XMConvertToRadians(pDesc->vRotation.y), XMConvertToRadians(pDesc->vRotation.z));
|
||||
|
||||
m_pActor = static_cast<PSX::PxRigidDynamic*>(m_pRigidBody->Get_Actor());
|
||||
|
||||
static_cast<CRigidBody_Dynamic*>(m_pRigidBody)->Set_HalfGeometryInfo(pDesc->vBoxSize);
|
||||
static_cast<CRigidBody_Dynamic*>(m_pRigidBody)->Move_LocalPos(_float4(0.f, 0.f, 0.f, 0.f), pDesc->vBoxLocalPosition);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CMapElement_Interactable::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
}
|
||||
|
||||
void CMapElement_Interactable::Update(_float fTimeDelta)
|
||||
{
|
||||
}
|
||||
|
||||
void CMapElement_Interactable::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
|
||||
if (m_pGameInstance->isIn_WorldFrustum(Get_WorldPostion(), m_pModelComs[0]->Get_Radius())) {
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
|
||||
}
|
||||
}
|
||||
|
||||
HRESULT CMapElement_Interactable::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;
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
if (FAILED(m_pRigidBody->Render())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
#endif // _DEBUG
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CMapElement_Interactable::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(g_iStaticLevel, 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;
|
||||
|
||||
|
||||
ELEMENT_INTERACTABLE_DESC* pPhysXDummyDesc = static_cast<ELEMENT_INTERACTABLE_DESC*>(pArg);
|
||||
|
||||
// RIGID_BODY
|
||||
CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc{};
|
||||
Desc.iSubKind = ENUM_CLASS(PXOBJECT::BOX);//pPhysXDummyDesc->iSubKind;
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_BOX_KIN"), (CComponent**)&m_pRigidBody, &Desc))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CMapElement_Interactable::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;
|
||||
}
|
||||
|
||||
CMapElement_Interactable* CMapElement_Interactable::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CMapElement_Interactable* pInstance = new CMapElement_Interactable(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CMapElement_Interactable");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
CGameObject* CMapElement_Interactable::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CMapElement_Interactable* pInstance = new CMapElement_Interactable(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CMapElement_Interactable");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CMapElement_Interactable::Free()
|
||||
{
|
||||
if (nullptr != m_pRigidBody) {
|
||||
m_pGameInstance->Release_Actor(*m_pRigidBody->Get_Actor());
|
||||
}
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pRigidBody);
|
||||
SAFE_RELEASE(m_pShaderCom);
|
||||
|
||||
for (auto& pModel : m_pModelComs)
|
||||
SAFE_RELEASE(pModel);
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
void CMapElement_Interactable::Describe_Entity()
|
||||
{
|
||||
|
||||
}
|
||||
#endif // _DEBUG
|
||||
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
#include "MapObject_Render.h"
|
||||
#include "MapObject_Collision.h"
|
||||
#include "MapElement_Light.h"
|
||||
#include "MapElement_Interactable.h"
|
||||
#include "Layer.h"
|
||||
|
||||
CMapInfo::CMapInfo()
|
||||
@@ -392,8 +393,72 @@ HRESULT CMapInfo::Load_LightElements(const _char* pFileName)
|
||||
MSG_BOX("Successed to Load File");
|
||||
#endif
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CMapInfo::Load_InteractableElements(const _char* pFileName)
|
||||
{
|
||||
tinyxml2::XMLDocument xmlDoc;
|
||||
|
||||
string strPath = "../Bin/Resources/Data/Map/" + string(pFileName) + ".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 */
|
||||
Object->QueryUnsignedAttribute("Lod_Level", &Desc.iMaxLodLevel);
|
||||
Object->QueryUnsignedAttribute("Lod_Level", &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);
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CMapElement_Interactable>(g_iStaticLevel, NEXT_LEVEL, LAYER_INTERACTABLE, &Desc)))
|
||||
return E_FAIL;
|
||||
}
|
||||
//MSG_BOX("Successed to Create Interactalbe Element");
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -45,13 +45,7 @@ HRESULT CProtego::Initialize(void* pArg)
|
||||
m_wstrEffectName = L"Protego";
|
||||
|
||||
|
||||
m_Events.emplace(1.3f, [&]() {
|
||||
|
||||
m_pSphere->Set_Dissolve(true);
|
||||
m_pBottom->Set_Dissolve(true);
|
||||
m_pCircle->Set_Dissolve(true);
|
||||
|
||||
});
|
||||
|
||||
|
||||
m_fAmountSize = 0.1f;
|
||||
@@ -127,9 +121,6 @@ HRESULT CProtego::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
|
||||
m_fSizeAccTime = 0.f;
|
||||
|
||||
m_pSphere->Set_Dissolve(false);
|
||||
m_pBottom->Set_Dissolve(false);
|
||||
m_pCircle->Set_Dissolve(false);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -41,6 +41,7 @@ namespace Client
|
||||
INPUT_TAB,
|
||||
END
|
||||
};
|
||||
enum class ELEMENT_INTERACTABLE_ID { BARREL, BOX, TABLE, END };
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -58,6 +58,7 @@ namespace Client {
|
||||
#define LAYER_ITEM TEXT("Layer_Item")
|
||||
#define LAYER_EFFECTPOOL TEXT("Layer_EffectPool")
|
||||
#define LAYER_LIGHT TEXT("Layer_Light")
|
||||
#define LAYER_INTERACTABLE TEXT("Layer_Interactable")
|
||||
|
||||
#define LAYER_MAPOBJECTMANAGER TEXT("Layer_MapObjectManager")
|
||||
|
||||
|
||||
@@ -134,10 +134,8 @@ class CEffectObject abstract : public CPartObject
|
||||
public:
|
||||
HRESULT Load(const _char* pFilePath, LEVEL eLevel);
|
||||
|
||||
void Set_Dissolve(_bool isDissolve)
|
||||
{
|
||||
m_EffectInfo.isDissolve = isDissolve;
|
||||
}
|
||||
void Disable_Light();
|
||||
void Add_Light();
|
||||
protected:
|
||||
virtual HRESULT Bind_ShaderResources() override;
|
||||
virtual HRESULT Ready_Components(void* pArg) override;
|
||||
|
||||
@@ -25,7 +25,7 @@ class CEffect_Container abstract : public CContainerObject
|
||||
virtual HRESULT Pre_Setting(CGameObject* pObject, void* pArg = nullptr);
|
||||
HRESULT Load_Package(const _char* pPath);
|
||||
_uint Get_SkillType() const { return m_iSkillType; }
|
||||
public:
|
||||
|
||||
|
||||
protected:
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
|
||||
@@ -41,6 +41,7 @@ DECLARE_SINGLETON(CInfoInstance)
|
||||
#pragma region MAP_INFO
|
||||
HRESULT Load_MapObjects(const _char* pFilePath);
|
||||
HRESULT Load_LightElements(const _char* pFilePath);
|
||||
HRESULT Load_InteractableElements(const _char* pFileName);
|
||||
#pragma endregion
|
||||
#pragma region Spell_INFO
|
||||
HRESULT Load_SpellInfo(const _char* pFilePath);
|
||||
|
||||
@@ -0,0 +1,52 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "MapElement.h"
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CMapElement_Interactable final : public CMapElement
|
||||
{
|
||||
public:
|
||||
typedef struct tagElement_Interactable_Desc : MAPELEMENT_DESC
|
||||
{
|
||||
_uint iInteractableID = {};
|
||||
_uint iSubKind = {};
|
||||
_float3 vBoxLocalPosition;
|
||||
_float3 vBoxSize;
|
||||
}ELEMENT_INTERACTABLE_DESC;
|
||||
|
||||
private:
|
||||
CMapElement_Interactable(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CMapElement_Interactable(const CMapElement_Interactable& rhs);
|
||||
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;
|
||||
|
||||
private:
|
||||
ELEMENT_INTERACTABLE_ID m_eInteractableID = { ELEMENT_INTERACTABLE_ID::END };
|
||||
|
||||
class CRigidBody* m_pRigidBody = { nullptr };
|
||||
PSX::PxRigidDynamic* m_pActor = { nullptr };
|
||||
|
||||
|
||||
private:
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
virtual HRESULT Ready_Components(void* pArg) override;
|
||||
virtual HRESULT Bind_ShaderResources() override;
|
||||
|
||||
public:
|
||||
static CMapElement_Interactable* 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
|
||||
@@ -23,6 +23,7 @@ class CMapInfo final : public CBase
|
||||
HRESULT Load_MapRenderObjects(tinyxml2::XMLElement* Container, class CMapContainer* pContainerObject);
|
||||
HRESULT Load_MapCollisionObjects(tinyxml2::XMLElement* Container, class CMapContainer* pContainerObject);
|
||||
HRESULT Load_LightElements(const _char* pFileName);
|
||||
HRESULT Load_InteractableElements(const _char* pFileName);
|
||||
|
||||
private:
|
||||
CGameInstance* m_pGameInstance = { nullptr };
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user