Merge branch 'Develope' into Bloom

This commit is contained in:
kimnuri
2025-12-06 10:53:56 +09:00
217 changed files with 1809 additions and 595 deletions
@@ -174,6 +174,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\Potion.h" />
<ClInclude Include="..\Public\NomalJapSide.h" />
@@ -298,6 +299,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\Potion.cpp" />
<ClCompile Include="..\Private\NomalJapSide.cpp" />
@@ -367,6 +367,9 @@
<ClInclude Include="..\Public\Goblin_Dagger.h">
<Filter>02.GameObjects\Item\Goblin_Dagger</Filter>
</ClInclude>
<ClInclude Include="..\public\MapElement_Interactable.h">
<Filter>02.GameObjects\Environment\03.MapElement\Interactable</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<Image Include="Client.ico">
@@ -782,6 +785,9 @@
<Filter Include="01.Levels\01.Logo\02.GamePlay">
<UniqueIdentifier>{7e641382-9dfa-4da7-a8c8-a3ee06360e7a}</UniqueIdentifier>
</Filter>
<Filter Include="02.GameObjects\Environment\03.MapElement\Interactable">
<UniqueIdentifier>{17eaf081-6fbf-4965-b04d-10749e6032c6}</UniqueIdentifier>
</Filter>
</ItemGroup>
<ItemGroup>
<ClCompile Include="Client.cpp">
@@ -1142,6 +1148,10 @@
<Filter>02.GameObjects\UI\Spell_Canvas\Spell_Panel\Spell_Drag</Filter>
</ClCompile>
<ClCompile Include="..\private\MapContainer.cpp" />
<ClCompile Include="..\private\MapContainer.cpp" />
<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();
}
+3 -4
View File
@@ -57,9 +57,7 @@ HRESULT CGoblin::Initialize(void* pArg)
m_pCallBack_Behavior->Initialize(m_pCharacter_Controller, m_pRigidBody);
m_pCallBack_HitReport->Initialize(m_pCharacter_Controller, m_pRigidBody);
m_pCharacter_Controller->Set_Position(XMVectorSet(m_pGameInstance->Real_Random_Float(-20.f, 20.f), 0.f, m_pGameInstance->Real_Random_Float(-20.f, 20.f), 1.f));
m_pCharacter_Controller->Set_Position(XMVectorSet(m_pGameInstance->Random_Float(-20.f, 20.f), 0.f, m_pGameInstance->Random_Float(-20.f, 20.f), 1.f));
return S_OK;
}
@@ -206,7 +204,8 @@ void CGoblin::OnCollision(CGameObject* pOther, void* pDesc)
m_eHitSpell = STATEANIM::KNOCKDOWN_FWD;
break;
}
m_pFSM->Change_State(FSMSTATE::HIT);
if (!m_pFSM->IsEnable(FSMSTATE::BLINK))
m_pFSM->Change_State(FSMSTATE::HIT);
}
@@ -29,7 +29,7 @@ void CGoblin::Behavior_IdleEnter()
HRESULT CGoblin::Behavior_IdleExitCheck()
{
if (m_fTargetDistance <= 20.f /*&& m_fTargetDistance != 0.f*/)
if (m_fTargetDistance <= 20.f && m_fTargetDistance != 0.f)
m_pFSM->Change_State(FSMSTATE::MOVE);
return E_FAIL;
@@ -134,7 +134,7 @@ HRESULT CGoblin::Behavior_SwingExitCheck(_float fTimeDelta)
pair<_uint, _bool> pairAnimInfo = {};
if (m_pFSM->IsEnable(FSMSTATE::SWING) && m_bStep)
{
_float fDesiredRange = 0.5f;
_float fDesiredRange = 1.f;
_float dist = m_fTargetDistance;
if (dist > fDesiredRange)
@@ -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*/
+31
View File
@@ -124,6 +124,7 @@
#include "MapObject_Collision.h"
#include "InstancedProp.h"
#include "MapElement_Light.h"
#include "MapElement_Interactable.h"
#pragma endregion
@@ -493,6 +494,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
@@ -1201,6 +1223,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;
@@ -1976,6 +2003,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
+66 -1
View File
@@ -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;
}
@@ -159,7 +159,7 @@ void CPlayer::Behavior_IdleEnter() {
m_bSprintToggle = false;
m_bWalkToggle = false;
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second,1.f,true);
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second,0.5f,true);
}
// 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;
}
+14 -3
View File
@@ -3,14 +3,17 @@
#include "GameObject.h"
#include "UIObject.h"
#include "tinyxml2.h"
#include "InfoInstance.h"
CSkill_Data::CSkill_Data()
:m_pInfoInstance(CInfoInstance::GetInstance())
{
}
HRESULT CSkill_Data::Initialize(ID3D11Device* pDevice, ID3D11DeviceContext* pContex)
{
m_bNoCool = false;
m_pInfoInstance->Add_Event(TEXT("NoCooL"), [this](void* p) {this->NoCool(*reinterpret_cast<_bool*>(p)); });
return S_OK;
}
@@ -27,8 +30,11 @@ _int CSkill_Data::Update_Spell(_int SpellID)
if (SpellInfo[SpellID].bUse_Skill == false)
return -1;
SpellInfo[SpellID].bUse_Skill = false;
m_iSpell_CoolTime[SpellID] = 0.f;
if (m_bNoCool == false)
{
SpellInfo[SpellID].bUse_Skill = false;
m_iSpell_CoolTime[SpellID] = 0.f;
}
return SpellInfo[SpellID].iSkill_Type;
}
@@ -112,6 +118,11 @@ HRESULT CSkill_Data::Load_SpellInfo(const _char* pFilePath)
return S_OK;
}
void CSkill_Data::NoCool(_bool bNoCool)
{
m_bNoCool = bNoCool;
}
CSkill_Data* CSkill_Data::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
{
CSkill_Data* pInstance = new CSkill_Data();
@@ -407,8 +407,8 @@ void CSpell_Drag::Free()
SAFE_RELEASE(m_pShaderCom);
SAFE_RELEASE(m_pVIBufferCom);
}
#ifdef _DEBUG
#ifdef _DEBUG
void CSpell_Drag::Describe_Entity()
{
}
@@ -161,6 +161,8 @@ void CSpell_Overlay::Priority_Update(_float fTimeDelta)
void CSpell_Overlay::Update(_float fTimeDelta)
{
if (!__super::Chack_Visible())
{
return;
@@ -200,6 +202,17 @@ void CSpell_Overlay::Update(_float fTimeDelta)
}
if (m_pGameInstance->Key_Down(DIK_N))
{
Nocool = true;
m_pInfoInstance->Event_CallBack(TEXT("NoCooL"), &Nocool);
}
if (m_pGameInstance->Key_Down(DIK_M))
{
Nocool = false;
m_pInfoInstance->Event_CallBack(TEXT("NoCooL"), &Nocool);
}
m_vUVScale.y = m_fCoolTime;
m_fTime += fTimeDelta * m_fTimeMult;
@@ -339,6 +339,7 @@ void CTroll::Behavior_SwingEnter()
m_pFSM->Enable_State(FSMSTATE::SWING);
pairAnimInfo = m_Animation[STATEANIM::SWING_FWD];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true);
m_fSkillCoolTime[ENUM_CLASS(TROLL_SKILL::SWING)] = m_fMaxSkillCoolTime[ENUM_CLASS(TROLL_SKILL::SWING)];
Add_Event(pairAnimInfo.first,
[this]() {m_bLookAt = false; },
0.2f);
@@ -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")
+2 -4
View File
@@ -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
+1
View File
@@ -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 };
+20 -14
View File
@@ -15,33 +15,39 @@ class CSkill_Data final : public CBase
public:
private:
CSkill_Data();
~CSkill_Data() = default;
CSkill_Data();
~CSkill_Data() = default;
public:
void Update(_float fTimeDelta);
void Change_Level();
_float Get_CoolTime(_int SpellID);
void Update(_float fTimeDelta);
void Change_Level();
_float Get_CoolTime(_int SpellID);
public:
HRESULT Load_SpellInfo(const _char* pFilePath);
HRESULT Load_SpellInfo(const _char* pFilePath);
void NoCool(_bool bNoCool);
public:
const SPELL_INFO& Get_Info(_uint SpellID) const;
_int Update_Spell(_int SpellID);
const SPELL_INFO& Get_Info(_uint SpellID) const;
_int Update_Spell(_int SpellID);
private:
_int m_iSpell_Count{};
SPELL_INFO SpellInfo[34] = {};
_float m_iSpell_CoolTime[34] = {};
CInfoInstance* m_pInfoInstance = { nullptr };
_int m_iSpell_Count{};
SPELL_INFO SpellInfo[34] = {};
_float m_iSpell_CoolTime[34] = {};
_bool m_bNoCool = { false };
private:
HRESULT Initialize(ID3D11Device* pDevice, ID3D11DeviceContext* pContex);
HRESULT Initialize(ID3D11Device* pDevice, ID3D11DeviceContext* pContex);
public:
static CSkill_Data* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual void Free() override;
static CSkill_Data* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual void Free() override;
};
NS_END
@@ -64,6 +64,8 @@ class CSpell_Overlay final : public CElementObject
_bool m_bEquipped[4] = { false };
_bool m_bSpellUsed[4] = { false };
_bool Nocool = { false };
public:
static CSpell_Overlay* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
+1 -1
View File
@@ -63,7 +63,7 @@ class CTroll final : public CMonster
virtual void Set_Anim();
_float m_fSkillCoolTime[ENUM_CLASS(TROLL_SKILL::END)] = {};
_float m_fMaxSkillCoolTime[ENUM_CLASS(TROLL_SKILL::END)] = { 20.f,15.f, 10.f, 15.f ,15.f};
_float m_fMaxSkillCoolTime[ENUM_CLASS(TROLL_SKILL::END)] = { 20.f,20.f, 20.f, 20.f ,20.f };
_float m_fRushTime = {};

Some files were not shown because too many files have changed in this diff Show More