Merge branch 'Develope' into Bloom
This commit is contained in:
@@ -1526,8 +1526,11 @@ VS_OUT3D VS_MAIN3D(VS_IN3D In)
|
||||
|
||||
float3 vertexPos = worldCenter + dirRight + dirUp;
|
||||
|
||||
float2 TexCoord = In.vTexcoord;
|
||||
TexCoord.y = 1.f - TexCoord.y;
|
||||
|
||||
Out.vPosition = mul(float4(vertexPos, 1.f), matViewProj);
|
||||
Out.vTexcoord = 1.f - In.vTexcoord;
|
||||
Out.vTexcoord = TexCoord;
|
||||
return Out;
|
||||
}
|
||||
|
||||
|
||||
@@ -185,6 +185,7 @@ call Update_Resources.bat
|
||||
<ClInclude Include="..\Public\InteractiveInfo.h" />
|
||||
<ClInclude Include="..\Public\Intro_BG.h" />
|
||||
<ClInclude Include="..\Public\Intro_Image.h" />
|
||||
<ClInclude Include="..\Public\Item_Potion.h" />
|
||||
<ClInclude Include="..\public\Land.h" />
|
||||
<ClInclude Include="..\Public\Levioso.h" />
|
||||
<ClInclude Include="..\Public\Loding_Panel.h" />
|
||||
@@ -366,6 +367,7 @@ call Update_Resources.bat
|
||||
<ClCompile Include="..\Private\InteractiveInfo.cpp" />
|
||||
<ClCompile Include="..\Private\Intro_BG.cpp" />
|
||||
<ClCompile Include="..\Private\Intro_Image.cpp" />
|
||||
<ClCompile Include="..\Private\Item_Potion.cpp" />
|
||||
<ClCompile Include="..\private\Land.cpp" />
|
||||
<ClCompile Include="..\Private\Levioso.cpp" />
|
||||
<ClCompile Include="..\Private\Loding_Panel.cpp" />
|
||||
|
||||
@@ -532,7 +532,7 @@
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Barral_Splesh.h">
|
||||
<Filter>02.GameObjects\Effect\PropsEffect\Barral</Filter>
|
||||
</ClInclude>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\State_Broom_Hover.h">
|
||||
<Filter>04.Mechanic\State\Broom_Player\State_Broom_Hover</Filter>
|
||||
</ClInclude>
|
||||
@@ -554,6 +554,9 @@
|
||||
<ClInclude Include="..\public\MapElement_Door.h">
|
||||
<Filter>02.GameObjects\Environment\03.MapElement\Door</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Item_Potion.h">
|
||||
<Filter>02.GameObjects\Item\Potion</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Image Include="Client.ico">
|
||||
@@ -1148,7 +1151,7 @@
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Effect\PropsEffect\Chair">
|
||||
<UniqueIdentifier>{3103c6e1-60cb-438b-a3eb-844b919ccd43}</UniqueIdentifier>
|
||||
</Filter>
|
||||
</Filter>
|
||||
<Filter Include="04.Mechanic\State\Broom_Player\State_Broom_Hover">
|
||||
<UniqueIdentifier>{24f6903f-8f6b-46ff-a387-ecb44d673887}</UniqueIdentifier>
|
||||
</Filter>
|
||||
@@ -1170,6 +1173,9 @@
|
||||
<Filter Include="02.GameObjects\Environment\03.MapElement\Door">
|
||||
<UniqueIdentifier>{b09f9ada-6cf4-41a4-ad28-f00855509825}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Item\Potion">
|
||||
<UniqueIdentifier>{ace6c64f-901a-424e-99da-53f281413d77}</UniqueIdentifier>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="Client.cpp">
|
||||
@@ -1646,7 +1652,7 @@
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Chair_Splesh.cpp">
|
||||
<Filter>02.GameObjects\Effect\PropsEffect\Chair</Filter>
|
||||
</ClCompile>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\State_Broom_Hover.cpp">
|
||||
<Filter>04.Mechanic\State\Broom_Player\State_Broom_Hover</Filter>
|
||||
</ClCompile>
|
||||
@@ -1668,6 +1674,9 @@
|
||||
<ClCompile Include="..\private\MapElement_Door.cpp">
|
||||
<Filter>02.GameObjects\Environment\03.MapElement\Door</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Item_Potion.cpp">
|
||||
<Filter>02.GameObjects\Item\Potion</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\Private\Goblin_States.cpp">
|
||||
|
||||
@@ -18,6 +18,8 @@ CBarral_Splesh::CBarral_Splesh(const CBarral_Splesh& rhs)
|
||||
|
||||
HRESULT CBarral_Splesh::Initialize_Prototype()
|
||||
{
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Barral")))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
|
||||
@@ -31,11 +33,9 @@ HRESULT CBarral_Splesh::Initialize(void* pArg)
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Barral")))
|
||||
if (FAILED(Create_Effect()))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
m_wstrEffectName = L"Barral_Splesh";
|
||||
|
||||
|
||||
|
||||
@@ -21,6 +21,9 @@ CBombard::CBombard(const CBombard& rhs)
|
||||
HRESULT CBombard::Initialize_Prototype()
|
||||
{
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Bombard")))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
@@ -32,13 +35,11 @@ HRESULT CBombard::Initialize(void* pArg)
|
||||
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
m_iSkillType = ENUM_CLASS(SKILL_TYPE::BOMBARDA);
|
||||
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Bombard")))
|
||||
|
||||
if (FAILED(Create_Effect()))
|
||||
return E_FAIL;
|
||||
|
||||
m_iSkillType = ENUM_CLASS(SKILL_TYPE::BOMBARDA);
|
||||
|
||||
m_wstrEffectName = L"Bombard";
|
||||
|
||||
|
||||
@@ -21,6 +21,9 @@ CBombardSide::CBombardSide(const CBombardSide& rhs)
|
||||
HRESULT CBombardSide::Initialize_Prototype()
|
||||
{
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/BombardaSide")))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
@@ -33,8 +36,7 @@ HRESULT CBombardSide::Initialize(void* pArg)
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/BombardaSide")))
|
||||
if (FAILED(Create_Effect()))
|
||||
return E_FAIL;
|
||||
|
||||
m_wstrEffectName = L"BombardSide";
|
||||
|
||||
@@ -19,6 +19,9 @@ CBox_Splesh::CBox_Splesh(const CBox_Splesh& rhs)
|
||||
HRESULT CBox_Splesh::Initialize_Prototype()
|
||||
{
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Box")))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
@@ -31,8 +34,7 @@ HRESULT CBox_Splesh::Initialize(void* pArg)
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Box")))
|
||||
if (FAILED(Create_Effect()))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
|
||||
@@ -18,6 +18,8 @@ CChair_Splesh::CChair_Splesh(const CChair_Splesh& rhs)
|
||||
|
||||
HRESULT CChair_Splesh::Initialize_Prototype()
|
||||
{
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Chair")))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
|
||||
@@ -31,8 +33,7 @@ HRESULT CChair_Splesh::Initialize(void* pArg)
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Chair")))
|
||||
if (FAILED(Create_Effect()))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
|
||||
@@ -104,7 +104,7 @@ void CDamage_Font::Add_Damage(void* pArg)
|
||||
pInfo = *reinterpret_cast<DAMAGE_INFO*>(pArg);
|
||||
DAMAGE_FONT_INFO Desc{};
|
||||
|
||||
Desc.vTarget_Pos =pInfo.vTarget_Pos , XMVectorSet(m_pGameInstance->Real_Random_Float(2,5), 1.f, m_pGameInstance->Real_Random_Float(2, 5), 0.f);
|
||||
Desc.vTarget_Pos = pInfo.vTarget_Pos;
|
||||
Desc.pDamage = to_wstring(static_cast<_int>(pInfo.fDamage));
|
||||
if (pInfo.eType == DAMAGE_TYPE::NOMAL)
|
||||
{
|
||||
|
||||
@@ -25,6 +25,9 @@ CDecendo::CDecendo(const CDecendo& rhs)
|
||||
HRESULT CDecendo::Initialize_Prototype()
|
||||
{
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Decendo")))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
@@ -37,7 +40,7 @@ HRESULT CDecendo::Initialize(void* pArg)
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Decendo")))
|
||||
if (FAILED(Create_Effect()))
|
||||
return E_FAIL;
|
||||
|
||||
m_iSkillType = ENUM_CLASS(SKILL_TYPE::DESCENDO);
|
||||
|
||||
@@ -22,6 +22,9 @@ CDecendoSide::CDecendoSide(const CDecendoSide& rhs)
|
||||
HRESULT CDecendoSide::Initialize_Prototype()
|
||||
{
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/DecendoSide")))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
@@ -34,8 +37,7 @@ HRESULT CDecendoSide::Initialize(void* pArg)
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/DecendoSide")))
|
||||
if (FAILED(Create_Effect()))
|
||||
return E_FAIL;
|
||||
|
||||
m_wstrEffectName = L"DecendoSide";
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#include "pch.h"
|
||||
#include "EffectObject.h"
|
||||
#include "GameInstance.h"
|
||||
#include "Effect_Container.h"
|
||||
|
||||
CEffectObject::CEffectObject(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
:CPartObject(pDevice, pContext)
|
||||
@@ -220,6 +221,143 @@ HRESULT CEffectObject::Render_Bloom()
|
||||
|
||||
|
||||
|
||||
HRESULT CEffectObject::Load(CEffect_Container::EFFECT_SAVE_INFO EffectSaveInfo, LEVEL eLevel)
|
||||
{
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom);
|
||||
SAFE_RELEASE(m_pNoise_TextureCom);
|
||||
SAFE_RELEASE(m_pMasking_TextureCom);
|
||||
SAFE_RELEASE(m_pDissolve_TextureCom);
|
||||
SAFE_RELEASE(m_pEmissive_TextureCom);
|
||||
SAFE_RELEASE(m_pInstance_ModelCom);
|
||||
|
||||
if (m_pLightCom != nullptr)
|
||||
SAFE_RELEASE(m_pLightCom);
|
||||
|
||||
m_EffectInfo = EffectSaveInfo.EffectInfo;
|
||||
|
||||
m_EffectInfo.LightDesc.pPosition = m_pTransformCom->Get_StatePtr(STATE::POSITION);
|
||||
m_EffectInfo.LightDesc.iLevel = ENUM_CLASS(eLevel);
|
||||
|
||||
|
||||
if (m_EffectInfo.LightDesc.eType != LIGHT::DIRECTIONAL) // 0이 아닐때만 생성
|
||||
{
|
||||
if (FAILED(Add_Component<CLight>(g_iStaticLevel, &m_pLightCom, &m_EffectInfo.LightDesc)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pLightCom->Set_LightIntensity(m_EffectInfo.fLightIntensity);
|
||||
}
|
||||
|
||||
if (m_EffectInfo.isDiffuse)
|
||||
{
|
||||
|
||||
m_strDiffuseName = EffectSaveInfo.wstrDiffuseName;
|
||||
|
||||
if (m_strDiffuseName.length() > 0)
|
||||
{
|
||||
if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), m_strDiffuseName,
|
||||
reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if (m_EffectInfo.isNoise)
|
||||
{
|
||||
m_strNoiseName = EffectSaveInfo.wstrNoiseName;
|
||||
|
||||
if (m_strNoiseName.length() > 0)
|
||||
{
|
||||
if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), m_strNoiseName,
|
||||
reinterpret_cast<CComponent**>(&m_pNoise_TextureCom))))
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
if (m_EffectInfo.isMasking)
|
||||
{
|
||||
m_strMaskingName = EffectSaveInfo.wstrMaskingName;
|
||||
|
||||
if (m_strMaskingName.length() > 0)
|
||||
{
|
||||
if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), m_strMaskingName,
|
||||
reinterpret_cast<CComponent**>(&m_pMasking_TextureCom))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if (m_EffectInfo.isDissolve)
|
||||
{
|
||||
m_strDissolveName = EffectSaveInfo.wstrDissolveName;
|
||||
|
||||
if (m_strDissolveName.length() > 0)
|
||||
{
|
||||
if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), m_strDissolveName,
|
||||
reinterpret_cast<CComponent**>(&m_pDissolve_TextureCom))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
if (m_EffectInfo.isEmissive)
|
||||
{
|
||||
|
||||
m_strEmissiveName = EffectSaveInfo.wstrEmissiveName;
|
||||
|
||||
if (m_strEmissiveName.length() > 0)
|
||||
{
|
||||
if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), m_strEmissiveName,
|
||||
reinterpret_cast<CComponent**>(&m_pEmissive_TextureCom))))
|
||||
{
|
||||
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if (m_EffectInfo.isDistortion)
|
||||
{
|
||||
|
||||
m_strDistortionName = EffectSaveInfo.wstrDistortionName;;
|
||||
|
||||
if (m_strDistortionName.length() > 0)
|
||||
{
|
||||
if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), m_strDistortionName,
|
||||
reinterpret_cast<CComponent**>(&m_pDistortion_TextureCom))))
|
||||
{
|
||||
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
m_strModelName = EffectSaveInfo.wstrModelName;
|
||||
|
||||
if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), m_strModelName,
|
||||
reinterpret_cast<CComponent**>(&m_pInstance_ModelCom))))
|
||||
{
|
||||
return E_FAIL;;
|
||||
}
|
||||
|
||||
|
||||
m_pInstance_ModelCom->Load_InstanceModel(EffectSaveInfo.InstanceModelInfo);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
HRESULT CEffectObject::Load(const _char* pFilePath, LEVEL eLevel)
|
||||
{
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom);
|
||||
@@ -299,9 +437,9 @@ HRESULT CEffectObject::Load(const _char* pFilePath, LEVEL eLevel)
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_strDiffuseName = szName;
|
||||
m_strDiffuseName = CMyTools::ToWstring(szName);
|
||||
|
||||
if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strDiffuseName),
|
||||
if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), m_strDiffuseName,
|
||||
reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom))))
|
||||
{
|
||||
CloseHandle(hFile);
|
||||
@@ -332,9 +470,9 @@ HRESULT CEffectObject::Load(const _char* pFilePath, LEVEL eLevel)
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_strNoiseName = szName;
|
||||
m_strNoiseName = CMyTools::ToWstring(szName);;
|
||||
|
||||
if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strNoiseName),
|
||||
if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), m_strNoiseName,
|
||||
reinterpret_cast<CComponent**>(&m_pNoise_TextureCom))))
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -361,9 +499,9 @@ HRESULT CEffectObject::Load(const _char* pFilePath, LEVEL eLevel)
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_strMaskingName = szName;
|
||||
m_strMaskingName = CMyTools::ToWstring(szName);
|
||||
|
||||
if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strMaskingName),
|
||||
if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), m_strMaskingName,
|
||||
reinterpret_cast<CComponent**>(&m_pMasking_TextureCom))))
|
||||
{
|
||||
CloseHandle(hFile);
|
||||
@@ -392,9 +530,9 @@ HRESULT CEffectObject::Load(const _char* pFilePath, LEVEL eLevel)
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_strDissolveName = szName;
|
||||
m_strDissolveName = CMyTools::ToWstring(szName);
|
||||
|
||||
if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strDissolveName),
|
||||
if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel),m_strDissolveName,
|
||||
reinterpret_cast<CComponent**>(&m_pDissolve_TextureCom))))
|
||||
{
|
||||
CloseHandle(hFile);
|
||||
@@ -425,9 +563,9 @@ HRESULT CEffectObject::Load(const _char* pFilePath, LEVEL eLevel)
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_strEmissiveName = szName;
|
||||
m_strEmissiveName = CMyTools::ToWstring(szName);
|
||||
|
||||
if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strEmissiveName),
|
||||
if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), m_strEmissiveName,
|
||||
reinterpret_cast<CComponent**>(&m_pEmissive_TextureCom))))
|
||||
{
|
||||
CloseHandle(hFile);
|
||||
@@ -456,9 +594,9 @@ HRESULT CEffectObject::Load(const _char* pFilePath, LEVEL eLevel)
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_strDistortionName = szName;
|
||||
m_strDistortionName = CMyTools::ToWstring(szName);
|
||||
|
||||
if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strDistortionName),
|
||||
if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), m_strDistortionName,
|
||||
reinterpret_cast<CComponent**>(&m_pDistortion_TextureCom))))
|
||||
{
|
||||
CloseHandle(hFile);
|
||||
@@ -486,9 +624,9 @@ HRESULT CEffectObject::Load(const _char* pFilePath, LEVEL eLevel)
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_strModelName = szName;
|
||||
m_strModelName = CMyTools::ToWstring(szName);
|
||||
|
||||
if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strModelName),
|
||||
if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), m_strModelName,
|
||||
reinterpret_cast<CComponent**>(&m_pInstance_ModelCom))))
|
||||
{
|
||||
CloseHandle(hFile);
|
||||
@@ -507,8 +645,6 @@ HRESULT CEffectObject::Load(const _char* pFilePath, LEVEL eLevel)
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
|
||||
HRESULT CEffectObject::Bind_ShaderResources()
|
||||
{
|
||||
if (m_pParentMatrix != nullptr)
|
||||
|
||||
@@ -14,7 +14,9 @@ CEffect_Container::CEffect_Container(ID3D11Device* pDevice, ID3D11DeviceContext*
|
||||
}
|
||||
|
||||
CEffect_Container::CEffect_Container(const CEffect_Container& rhs)
|
||||
: CContainerObject(rhs)
|
||||
: CContainerObject(rhs),
|
||||
m_EffectsInfo(rhs.m_EffectsInfo),
|
||||
m_TrailsInfo(rhs.m_TrailsInfo)
|
||||
{
|
||||
|
||||
}
|
||||
@@ -150,72 +152,377 @@ HRESULT CEffect_Container::Load_Package(const _char* pPath)
|
||||
|
||||
if (!strcmp(strExt.c_str(), "trail"))
|
||||
{
|
||||
CTrailObject* pTrail = nullptr;
|
||||
|
||||
Load_Trail_Data(strEffectPath.c_str());
|
||||
|
||||
CPartObject::PARTOBJECT_DESC PartsDesc{};
|
||||
m_TrailsInfo.back().wstrTrailName = CMyTools::ToWstring(strEffectName);
|
||||
continue;
|
||||
}
|
||||
|
||||
PartsDesc.pParentTransform = m_pTransformCom;
|
||||
/////////////////////////////
|
||||
|
||||
_string strFilePath = strEffectPath;
|
||||
Load_Data(strFilePath.c_str());
|
||||
|
||||
m_EffectsInfo.back().wstrEffectName = CMyTools::ToWstring(strEffectName);
|
||||
}
|
||||
|
||||
if (FAILED(Add_PartObject<CTrailObject>(strEffectName, g_iStaticLevel, &pTrail, &PartsDesc))) {
|
||||
assert(false);
|
||||
CloseHandle(hFile);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CEffect_Container::Load_Data(const _char* pPath)
|
||||
{
|
||||
_string strPerfectFilePath = pPath;
|
||||
|
||||
HANDLE hFile = CreateFileW(
|
||||
CMyTools::ToWstring(strPerfectFilePath).c_str(), // 파일 이름
|
||||
GENERIC_READ, // 읽기 모드
|
||||
FILE_SHARE_READ, // 다른 프로세스도 읽기 가능
|
||||
NULL,
|
||||
OPEN_EXISTING, // 기존 파일 열기
|
||||
FILE_ATTRIBUTE_NORMAL,
|
||||
NULL
|
||||
);
|
||||
|
||||
|
||||
if (hFile == INVALID_HANDLE_VALUE) {
|
||||
MessageBox(NULL, L"오브젝트 읽기 실패", L"System Message", MB_OK);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
// 나중에 패키징할때 패스를 저장할거임
|
||||
|
||||
EFFECT_SAVE_INFO EffectSaveInfo = {};
|
||||
|
||||
DWORD dwByte(0);
|
||||
|
||||
if (!ReadFile(hFile, &EffectSaveInfo.EffectInfo, sizeof(EFFECT_INFO), &dwByte, nullptr)) {
|
||||
CloseHandle(hFile);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (EffectSaveInfo.EffectInfo.isDiffuse)
|
||||
{
|
||||
size_t iComponentLength = {};
|
||||
|
||||
if (!ReadFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) {
|
||||
CloseHandle(hFile);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (iComponentLength != 0)
|
||||
{
|
||||
_char szName[MAX_PATH] = {};
|
||||
|
||||
if (!ReadFile(hFile, &szName, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) {
|
||||
CloseHandle(hFile);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
EffectSaveInfo.wstrDiffuseName = CMyTools::ToWstring(szName);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
if (EffectSaveInfo.EffectInfo.isNoise)
|
||||
{
|
||||
size_t iComponentLength = {};
|
||||
|
||||
|
||||
if (!ReadFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) {
|
||||
CloseHandle(hFile);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (iComponentLength != 0)
|
||||
{
|
||||
_char szName[MAX_PATH] = {};
|
||||
|
||||
if (!ReadFile(hFile, &szName, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) {
|
||||
CloseHandle(hFile);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
EffectSaveInfo.wstrNoiseName = CMyTools::ToWstring(szName);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
if (EffectSaveInfo.EffectInfo.isMasking)
|
||||
{
|
||||
size_t iComponentLength = {};
|
||||
|
||||
|
||||
if (!ReadFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (iComponentLength != 0)
|
||||
{
|
||||
|
||||
_char szName[MAX_PATH] = {};
|
||||
|
||||
if (!ReadFile(hFile, &szName, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) {
|
||||
CloseHandle(hFile);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
/*이펙트 로드 로드*/
|
||||
size_t iPos = {};
|
||||
|
||||
while ((iPos = strEffectPath.find(".trail")) != std::string::npos) {
|
||||
strEffectPath.erase(iPos, 6);
|
||||
};
|
||||
|
||||
|
||||
if (FAILED(pTrail->Load_Trail(strEffectPath.c_str() , static_cast<LEVEL>(NEXT_LEVEL))))
|
||||
{
|
||||
Safe_Release(pTrail);
|
||||
continue;
|
||||
}
|
||||
|
||||
Safe_Release(pTrail);
|
||||
|
||||
continue;
|
||||
EffectSaveInfo.wstrMaskingName = CMyTools::ToWstring(szName);
|
||||
}
|
||||
|
||||
|
||||
/////////////////////////////
|
||||
}
|
||||
|
||||
CEffectParts* pEffectParts = nullptr;
|
||||
if (EffectSaveInfo.EffectInfo.isDissolve)
|
||||
{
|
||||
size_t iComponentLength = {};
|
||||
|
||||
CPartObject::PARTOBJECT_DESC PartsDesc{};
|
||||
|
||||
PartsDesc.pParentTransform = m_pTransformCom;
|
||||
|
||||
/*이펙트 껍데기 생성*/
|
||||
|
||||
if (FAILED(Add_PartObject<CEffectParts>(strEffectName, g_iStaticLevel, &pEffectParts, &PartsDesc))) {
|
||||
assert(false);
|
||||
if (!ReadFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) {
|
||||
CloseHandle(hFile);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
/*이펙트 로드 로드*/
|
||||
size_t iPosition = {};
|
||||
_string strFilePath = strEffectPath;
|
||||
|
||||
while ((iPosition = strFilePath.find(".bin")) != std::string::npos) {
|
||||
strFilePath.erase(iPosition, 4);
|
||||
};
|
||||
|
||||
|
||||
if (FAILED(pEffectParts->Load(strFilePath.c_str(), static_cast<LEVEL>(NEXT_LEVEL))))
|
||||
if (iComponentLength != 0)
|
||||
{
|
||||
Safe_Release(pEffectParts);
|
||||
continue;
|
||||
_char szName[MAX_PATH] = {};
|
||||
|
||||
if (!ReadFile(hFile, &szName, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) {
|
||||
CloseHandle(hFile);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
EffectSaveInfo.wstrDissolveName = CMyTools::ToWstring(szName);
|
||||
}
|
||||
|
||||
Safe_Release(pEffectParts);
|
||||
|
||||
}
|
||||
|
||||
if (EffectSaveInfo.EffectInfo.isEmissive)
|
||||
{
|
||||
size_t iComponentLength = {};
|
||||
|
||||
if (!ReadFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) {
|
||||
CloseHandle(hFile);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (iComponentLength != 0)
|
||||
{
|
||||
_char szName[MAX_PATH] = {};
|
||||
|
||||
if (!ReadFile(hFile, &szName, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) {
|
||||
CloseHandle(hFile);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
EffectSaveInfo.wstrEmissiveName = CMyTools::ToWstring(szName);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
if (EffectSaveInfo.EffectInfo.isDistortion)
|
||||
{
|
||||
size_t iComponentLength = {};
|
||||
|
||||
if (!ReadFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) {
|
||||
CloseHandle(hFile);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (iComponentLength != 0)
|
||||
{
|
||||
_char szName[MAX_PATH] = {};
|
||||
|
||||
if (!ReadFile(hFile, &szName, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) {
|
||||
CloseHandle(hFile);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
EffectSaveInfo.wstrDistortionName = CMyTools::ToWstring(szName);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
size_t iComponentLength = {};
|
||||
|
||||
|
||||
if (!ReadFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) {
|
||||
CloseHandle(hFile);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (iComponentLength != 0)
|
||||
{
|
||||
_char szName[MAX_PATH] = {};
|
||||
|
||||
if (!ReadFile(hFile, &szName, sizeof(_char) * ((DWORD)(DWORD)iComponentLength + 1), &dwByte, nullptr)) {
|
||||
CloseHandle(hFile);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
EffectSaveInfo.wstrModelName = CMyTools::ToWstring(szName);
|
||||
}
|
||||
|
||||
if (!ReadFile(hFile, &EffectSaveInfo.InstanceModelInfo, sizeof(CInstance_Model::INSTANCE_DESC), &dwByte, nullptr)) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
CloseHandle(hFile);
|
||||
|
||||
m_EffectsInfo.push_back(EffectSaveInfo);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CEffect_Container::Create_Effect()
|
||||
{
|
||||
CEffectParts* pEffectParts = nullptr;
|
||||
CTrailObject* pTrail = nullptr;
|
||||
|
||||
CPartObject::PARTOBJECT_DESC PartsDesc{};
|
||||
|
||||
PartsDesc.pParentTransform = m_pTransformCom;
|
||||
|
||||
/*이펙트 껍데기 생성*/
|
||||
|
||||
|
||||
|
||||
for (auto& EffectInfo : m_EffectsInfo)
|
||||
{
|
||||
|
||||
if (FAILED(Add_PartObject<CEffectParts>(CMyTools::ToString(EffectInfo.wstrEffectName), g_iStaticLevel, &pEffectParts, &PartsDesc))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
pEffectParts->Load(EffectInfo, static_cast<LEVEL>(NEXT_LEVEL));
|
||||
|
||||
Safe_Release(pEffectParts);
|
||||
}
|
||||
|
||||
for (auto& TrailInfo : m_TrailsInfo)
|
||||
{
|
||||
if (FAILED(Add_PartObject<CTrailObject>(CMyTools::ToString(TrailInfo.wstrTrailName), g_iStaticLevel, &pTrail, &PartsDesc))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
pTrail->Load_Trail(TrailInfo, static_cast<LEVEL>(NEXT_LEVEL));
|
||||
|
||||
Safe_Release(pTrail);
|
||||
}
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CEffect_Container::Load_Trail_Data(const _char* pPath)
|
||||
{
|
||||
_string strPerfectFilePath = pPath;
|
||||
|
||||
DWORD dwByte(0);
|
||||
|
||||
HANDLE hFile = CreateFileW(
|
||||
CMyTools::ToWstring(strPerfectFilePath).c_str(), // 파일 이름
|
||||
GENERIC_READ, // 읽기 모드
|
||||
FILE_SHARE_READ, // 다른 프로세스도 읽기 가능
|
||||
NULL,
|
||||
OPEN_EXISTING, // 기존 파일 열기
|
||||
FILE_ATTRIBUTE_NORMAL,
|
||||
NULL
|
||||
);
|
||||
|
||||
if (hFile == INVALID_HANDLE_VALUE) {
|
||||
MessageBox(NULL, L"오브젝트 읽기 실패", L"System Message", MB_OK);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
TRAIL_SAVE_INFO Trail_Save_Info = {};
|
||||
|
||||
|
||||
size_t iComponentLength = {};
|
||||
|
||||
if (!ReadFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (iComponentLength != 0)
|
||||
{
|
||||
_char szName[MAX_PATH] = {};
|
||||
|
||||
if (!ReadFile(hFile, &szName, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
Trail_Save_Info.wstrDiffuseName = CMyTools::ToWstring(szName);
|
||||
}
|
||||
|
||||
if (!ReadFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (iComponentLength != 0)
|
||||
{
|
||||
_char szName[MAX_PATH] = {};
|
||||
|
||||
if (!ReadFile(hFile, &szName, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
Trail_Save_Info.wstrNoiseName = CMyTools::ToWstring(szName);
|
||||
|
||||
}
|
||||
|
||||
if (!ReadFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (iComponentLength != 0)
|
||||
{
|
||||
_char szName[MAX_PATH] = {};
|
||||
|
||||
if (!ReadFile(hFile, &szName, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
Trail_Save_Info.wstrMaskingName = CMyTools::ToWstring(szName);
|
||||
}
|
||||
|
||||
|
||||
if (!ReadFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (iComponentLength != 0)
|
||||
{
|
||||
_char szName[MAX_PATH] = {};
|
||||
|
||||
if (!ReadFile(hFile, &szName, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
Trail_Save_Info.wstrDistortionName = CMyTools::ToWstring(szName);
|
||||
|
||||
}
|
||||
|
||||
if (!ReadFile(hFile, &Trail_Save_Info.TrailComponentDesc, sizeof(CTrail::TRAIL_DESC), &dwByte, nullptr)) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (!ReadFile(hFile, &Trail_Save_Info.TrailDesc, sizeof(TRAIL_INFO), &dwByte, nullptr)) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
m_TrailsInfo.push_back(Trail_Save_Info);
|
||||
|
||||
CloseHandle(hFile);
|
||||
|
||||
return S_OK;
|
||||
|
||||
@@ -252,8 +252,8 @@ void CGoblin::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
if (true == m_bDead) {
|
||||
return;
|
||||
}
|
||||
_vector Head = (XMLoadFloat4x4(Get_HeadMatrix()) * m_pTransformCom->Get_XMWorldMatrix()).r[3];
|
||||
m_DamageInfo.vTarget_Pos = XMVectorSet(Head.m128_f32[0], Head.m128_f32[1], Head.m128_f32[2], 1.f);
|
||||
m_DamageInfo.vTarget_Pos = m_pCharacter_Controller->Get_HeadPosition();
|
||||
|
||||
m_pGoblinSpector->Set_Visible(false);
|
||||
ON_COLLISION_INFO* CollisionDesc = static_cast<ON_COLLISION_INFO*>(pDesc);
|
||||
|
||||
|
||||
@@ -20,6 +20,9 @@ CGoblin_Attack::CGoblin_Attack(const CGoblin_Attack& rhs)
|
||||
HRESULT CGoblin_Attack::Initialize_Prototype()
|
||||
{
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/GoblinAttack")))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
@@ -32,11 +35,11 @@ HRESULT CGoblin_Attack::Initialize(void* pArg)
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/GoblinAttack")))
|
||||
if (FAILED(Create_Effect()))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
|
||||
m_wstrEffectName = L"GoblinAttack";
|
||||
|
||||
m_pPT1 = Get_PartObject<CEffectParts>("Goblin_Particle");
|
||||
|
||||
@@ -17,6 +17,8 @@ CGoblin_Protego::CGoblin_Protego(const CGoblin_Protego& rhs)
|
||||
|
||||
HRESULT CGoblin_Protego::Initialize_Prototype()
|
||||
{
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/GoblinProtego")))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
|
||||
@@ -30,7 +32,7 @@ HRESULT CGoblin_Protego::Initialize(void* pArg)
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/GoblinProtego")))
|
||||
if (FAILED(Create_Effect()))
|
||||
return E_FAIL;
|
||||
|
||||
m_pSphere = Get_PartObject<CEffectParts>("ProtegoSphere");
|
||||
|
||||
@@ -0,0 +1,200 @@
|
||||
#include "pch.h"
|
||||
#include "Item_Potion.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
|
||||
CItem_Potion::CItem_Potion(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CPartObject(pDevice, pContext)
|
||||
{
|
||||
}
|
||||
|
||||
CItem_Potion::CItem_Potion(const CItem_Potion& Prototype)
|
||||
: CPartObject(Prototype)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CItem_Potion::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CItem_Potion::Initialize(void* pArg)
|
||||
{
|
||||
POTION_DESC* pDesc = static_cast<POTION_DESC*> (pArg);
|
||||
m_pSocketMatrices = pDesc->pSocketMatrices;
|
||||
|
||||
if (FAILED(__super::Initialize(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
if (FAILED(Ready_Components())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CItem_Potion::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
|
||||
|
||||
#ifdef _DEBUG
|
||||
Describe_Entity();
|
||||
|
||||
#endif // _DEBUG
|
||||
}
|
||||
|
||||
void CItem_Potion::Update(_float fTimeDelta)
|
||||
{
|
||||
m_pModelCom->Combined_BoneMatrix();
|
||||
|
||||
}
|
||||
|
||||
void CItem_Potion::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible)
|
||||
{
|
||||
m_fTimer += fTimeDelta;
|
||||
if (m_fTimer >= 1.7f) {
|
||||
m_fTimer = 0.f;
|
||||
m_bVisible = false;
|
||||
}
|
||||
|
||||
}
|
||||
if (m_bAttach)
|
||||
{
|
||||
_matrix socketMatrix = {};
|
||||
|
||||
socketMatrix = XMLoadFloat4x4(m_pSocketMatrices);
|
||||
|
||||
for (int i = 0; i < 3; ++i) {
|
||||
socketMatrix.r[i] = XMVector3Normalize(socketMatrix.r[i]);
|
||||
}
|
||||
|
||||
m_pTransformCom->Set_WorldMatrix(socketMatrix * XMLoadFloat4x4(m_pParentTransformCom->Get_WorldMatrixPtr()));
|
||||
}
|
||||
|
||||
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
|
||||
}
|
||||
|
||||
HRESULT CItem_Potion::Render()
|
||||
{
|
||||
if (!m_pModelCom)
|
||||
return S_OK;
|
||||
|
||||
if (!m_bVisible)
|
||||
return S_OK;
|
||||
|
||||
if (FAILED(Bind_ShaderResources())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
_uint iNumMeshes = m_pModelCom->Get_NumMeshes();
|
||||
|
||||
for (_uint i = 0; i < iNumMeshes; i++)
|
||||
{
|
||||
if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_ANIM::DEFAULT)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pModelCom->Render(i))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CItem_Potion::Set_Attach(_bool Attach)
|
||||
{
|
||||
m_bAttach = Attach;
|
||||
}
|
||||
|
||||
|
||||
HRESULT CItem_Potion::Ready_Components()
|
||||
{
|
||||
__super::Ready_Components(nullptr);
|
||||
|
||||
|
||||
/* Com_Model */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_Potion_Model"),
|
||||
reinterpret_cast<CComponent**>(&m_pModelCom))))
|
||||
return E_FAIL;
|
||||
|
||||
/* Com_Shader */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_MESH,
|
||||
reinterpret_cast<CComponent**>(&m_pShaderCom))))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CItem_Potion::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;
|
||||
}
|
||||
|
||||
|
||||
CItem_Potion* CItem_Potion::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CItem_Potion* pInstance = new CItem_Potion(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CItem_Potion");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
CGameObject* CItem_Potion::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CItem_Potion* pInstance = new CItem_Potion(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CItem_Potion");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CItem_Potion::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pShaderCom);
|
||||
SAFE_RELEASE(m_pModelCom);
|
||||
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
|
||||
void CItem_Potion::Describe_Entity()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
#endif // _DEBUG
|
||||
@@ -23,8 +23,10 @@ CLevioso::CLevioso(const CLevioso& rhs)
|
||||
HRESULT CLevioso::Initialize_Prototype()
|
||||
{
|
||||
|
||||
return S_OK;
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Levioso")))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CLevioso::Initialize(void* pArg)
|
||||
@@ -35,12 +37,11 @@ HRESULT CLevioso::Initialize(void* pArg)
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
m_iSkillType = ENUM_CLASS(SKILL_TYPE::LEVIOSO);
|
||||
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Levioso")))
|
||||
if (FAILED(Create_Effect()))
|
||||
return E_FAIL;
|
||||
|
||||
m_iSkillType = ENUM_CLASS(SKILL_TYPE::LEVIOSO);
|
||||
|
||||
m_pLeviosoPJ_0 = Get_PartObject<CEffectParts>("Levioso_PJ0");
|
||||
m_pTrail_PT_0 = Get_PartObject<CEffectParts>("Trail_PT0");
|
||||
|
||||
|
||||
@@ -20,6 +20,8 @@ CLeviosoSide::CLeviosoSide(const CLeviosoSide& rhs)
|
||||
|
||||
HRESULT CLeviosoSide::Initialize_Prototype()
|
||||
{
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/LeviosoSide")))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
|
||||
@@ -33,8 +35,7 @@ HRESULT CLeviosoSide::Initialize(void* pArg)
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/LeviosoSide")))
|
||||
if (FAILED(Create_Effect()))
|
||||
return E_FAIL;
|
||||
|
||||
m_wstrEffectName = L"LeviosoSide";
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
#include "Troll_Rock.h"
|
||||
#include "Goblin_Dagger.h"
|
||||
#include "Wand.h"
|
||||
#include "Item_Potion.h"
|
||||
#include "Goblin_BattleAxe.h"
|
||||
|
||||
#pragma region ACTOR
|
||||
@@ -1503,6 +1504,11 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
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;
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Potion_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/Object/Potion/SM_Bottle_EmptyCapOff.bin", XMMatrixIdentity()))))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Broom_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Object/Broom/Broom.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity()))))
|
||||
return E_FAIL;
|
||||
@@ -2220,6 +2226,10 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CWand>(g_iStaticLevel, CWand::Create(m_pDevice, m_pContext))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_GameObject_Potion */
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CItem_Potion>(g_iStaticLevel, CItem_Potion::Create(m_pDevice, m_pContext))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_GameObject_Troll_Weapon */
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CTroll_Weapon>(g_iStaticLevel, CTroll_Weapon::Create(m_pDevice, m_pContext))))
|
||||
return E_FAIL;
|
||||
|
||||
@@ -61,7 +61,6 @@ void CLoding_Panel::Priority_Update(_float fTimeDelta)
|
||||
|
||||
void CLoding_Panel::Update(_float fTimeDelta)
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
if (m_pGameInstance->Key_Down(DIK_M))
|
||||
{
|
||||
human++;
|
||||
@@ -112,7 +111,6 @@ void CLoding_Panel::Update(_float fTimeDelta)
|
||||
JINWOO = true;
|
||||
break;
|
||||
}
|
||||
#endif // DEBUG
|
||||
__super::Update(fTimeDelta);
|
||||
}
|
||||
|
||||
@@ -139,15 +137,15 @@ HRESULT CLoding_Panel::Render()
|
||||
m_pGameInstance->Render_Text(TEXT("Font_size20"), TEXT("<- N M ->."), _float2(100.f, 750.f));
|
||||
|
||||
if (INHYUK == true)
|
||||
m_pGameInstance->Render_Text(TEXT("Font_size20"), TEXT("알고 계셨나요?\nUI의 생일은 28일 이랍니다."), _float2(100.f, 800.f));
|
||||
m_pGameInstance->Render_Text(TEXT("Font_size20"), TEXT("알고 계셨나요?\nF9를 눌러 브레이크포인트를 설정할 수 있습니다."), _float2(100.f, 800.f));
|
||||
if (JINHO == true)
|
||||
m_pGameInstance->Render_Text(TEXT("Font_size20"), TEXT("알고 계셨나요?\n우리팀 맵툴은 최강 입니다."), _float2(100.f, 800.f));
|
||||
m_pGameInstance->Render_Text(TEXT("Font_size20"), TEXT("알고 계셨나요?\nF12를 눌러 정의로 바로 이동할 수 있습니다!."), _float2(100.f, 800.f));
|
||||
if (HYUNBIN == true)
|
||||
m_pGameInstance->Render_Text(TEXT("Font_size20"), TEXT("알고 계셨나요?\n이제 막 범인에서 벗어 났습니다."), _float2(100.f, 800.f));
|
||||
m_pGameInstance->Render_Text(TEXT("Font_size20"), TEXT("알고 계셨나요?\n디버깅 중에도 핫 리로드로 코드를 수정할 수 있습니다."), _float2(100.f, 800.f));
|
||||
if (NURI == true)
|
||||
m_pGameInstance->Render_Text(TEXT("Font_size20"), TEXT("알고 계셨나요?\n이제 막 슬슬 범인 입니다."), _float2(100.f, 800.f));
|
||||
m_pGameInstance->Render_Text(TEXT("Font_size20"), TEXT("알고 계셨나요?\nCtrl + R, R로 변수 또는 함수 이름을 프로젝트 전체에서 일괄 변경할 수 있습니다."), _float2(100.f, 800.f));
|
||||
if (JINWOO == true)
|
||||
m_pGameInstance->Render_Text(TEXT("Font_size20"), TEXT("알고 계셨나요?\n그는 그림자의 군주입니다."), _float2(100.f, 800.f));
|
||||
m_pGameInstance->Render_Text(TEXT("Font_size20"), TEXT("알고 계셨나요?\n디버깅 중 변수에 마우스를 올리면 현재 값을 확인할 수 있습니다."), _float2(100.f, 800.f));
|
||||
#endif // DEBUG
|
||||
|
||||
return S_OK;
|
||||
|
||||
@@ -17,9 +17,11 @@ CLumos::CLumos(const CLumos& rhs)
|
||||
|
||||
HRESULT CLumos::Initialize_Prototype()
|
||||
{
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Lumos")))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
|
||||
HRESULT CLumos::Initialize(void* pArg)
|
||||
@@ -30,8 +32,7 @@ HRESULT CLumos::Initialize(void* pArg)
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Lumos")))
|
||||
if (FAILED(Create_Effect()))
|
||||
return E_FAIL;
|
||||
|
||||
m_wstrEffectName = L"Lumos";
|
||||
@@ -67,6 +68,12 @@ void CLumos::Update(_float fTimeDelta)
|
||||
__super::Update(fTimeDelta);
|
||||
|
||||
Update_Event(fTimeDelta);
|
||||
|
||||
if (910!= m_pOwner->Get_Owner()->Get_Component<CModel>()->Get_SecondAnimIndex())
|
||||
{
|
||||
_int iIndex = m_pOwner->Get_Owner()->Get_Component<CModel>()->Get_SecondAnimIndex();
|
||||
m_bVisible = false;
|
||||
}
|
||||
}
|
||||
|
||||
void CLumos::Late_Update(_float fTimeDelta)
|
||||
|
||||
@@ -20,6 +20,9 @@ CMageSide::CMageSide(const CMageSide& rhs)
|
||||
HRESULT CMageSide::Initialize_Prototype()
|
||||
{
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/GoblinMage/MageSide")))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
@@ -32,8 +35,7 @@ HRESULT CMageSide::Initialize(void* pArg)
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/GoblinMage/MageSide")))
|
||||
if (FAILED(Create_Effect()))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
|
||||
@@ -22,6 +22,9 @@ CMage_Down_Attack::CMage_Down_Attack(const CMage_Down_Attack& rhs)
|
||||
HRESULT CMage_Down_Attack::Initialize_Prototype()
|
||||
{
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/GoblinMage/DownAttack")))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
@@ -34,11 +37,9 @@ HRESULT CMage_Down_Attack::Initialize(void* pArg)
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/GoblinMage/DownAttack")))
|
||||
if (FAILED(Create_Effect()))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
m_wstrEffectName = L"DownAttack";
|
||||
|
||||
|
||||
|
||||
@@ -22,6 +22,10 @@ CMage_Nomal_Attack::CMage_Nomal_Attack(const CMage_Nomal_Attack& rhs)
|
||||
HRESULT CMage_Nomal_Attack::Initialize_Prototype()
|
||||
{
|
||||
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/GoblinMage/NomalAttack")))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
@@ -34,8 +38,7 @@ HRESULT CMage_Nomal_Attack::Initialize(void* pArg)
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/GoblinMage/NomalAttack")))
|
||||
if (FAILED(Create_Effect()))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
|
||||
@@ -22,6 +22,9 @@ CNomalJap::CNomalJap(const CNomalJap& rhs)
|
||||
|
||||
HRESULT CNomalJap::Initialize_Prototype()
|
||||
{
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Jap"))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
|
||||
@@ -35,14 +38,14 @@ HRESULT CNomalJap::Initialize(void* pArg)
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(Create_Effect()))
|
||||
return E_FAIL;
|
||||
|
||||
m_iSkillType = ENUM_CLASS(SKILL_TYPE::JAP);
|
||||
|
||||
|
||||
m_wstrEffectName = L"Nomal_Jap";
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Jap"))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
m_pProjectile_Side = Get_PartObject<CEffectParts>("JapProjSide");
|
||||
|
||||
@@ -20,9 +20,10 @@ CNomalJapSide::CNomalJapSide(const CNomalJapSide& rhs)
|
||||
|
||||
HRESULT CNomalJapSide::Initialize_Prototype()
|
||||
{
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/JapsideEffect")))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
|
||||
HRESULT CNomalJapSide::Initialize(void* pArg)
|
||||
@@ -34,7 +35,7 @@ HRESULT CNomalJapSide::Initialize(void* pArg)
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/JapsideEffect")))
|
||||
if (FAILED(Create_Effect()))
|
||||
return E_FAIL;
|
||||
|
||||
m_wstrEffectName = L"JapSideEffect";
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
#include "Camera_Gaze.h"
|
||||
#include "CamPosition_Arm.h"
|
||||
#include "Wand.h"
|
||||
#include "Item_Potion.h"
|
||||
#include "Character_Controller.h"
|
||||
#include "CallBack_Playable_Behavior.h"
|
||||
#include "CamPosition_Shoulder.h"
|
||||
@@ -463,6 +464,18 @@ HRESULT CPlayer::Ready_Parts()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
CItem_Potion::POTION_DESC PotionDesc{};
|
||||
|
||||
PotionDesc.pParentTransform = m_pTransformCom;
|
||||
PotionDesc.pSocketMatrices = m_pModelCom->Get_BoneMatrixPtr("SKT_LeftHand");
|
||||
|
||||
if (FAILED(Add_PartObject<CItem_Potion>("Potion", g_iStaticLevel, nullptr, &PotionDesc)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
Get_PartObject<CItem_Potion>()->Set_Visible(false);
|
||||
|
||||
{
|
||||
CCamPosition_Shoulder::CAMERA_SHOULDER_DESC Desc;
|
||||
Desc.pParentTransform = m_pTransformCom;
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
#include "Camera_Gaze.h"
|
||||
#include "CamPosition_Arm.h"
|
||||
#include "Wand.h"
|
||||
#include "Item_Potion.h"
|
||||
#include "Character_Controller.h"
|
||||
#include "MapElement_Interactable.h"
|
||||
#include "CallBack_Playable_Behavior.h"
|
||||
@@ -215,6 +216,7 @@ HRESULT CPlayer::Behavior_IdleExitCheck(_float fTimeDelta)
|
||||
m_pFSM->Change_State(FSMSTATE::COMBAT);
|
||||
}
|
||||
else if (m_pGameInstance->Key_Down(DIK_G)) {
|
||||
Get_PartObject<CItem_Potion>()->Set_Visible(true);
|
||||
m_pModelCom->Set_Second_AnimationIndex(ENUM_CLASS(BLEND_BONE::SHOULDER_NECK_L), m_Animation[STATEANIM::POTION].first, m_Animation[STATEANIM::POTION].second);
|
||||
}
|
||||
else if (m_pGameInstance->Key_Down(DIK_B)) {
|
||||
@@ -408,6 +410,7 @@ HRESULT CPlayer::Behavior_MoveExitCheck(_float fTimeDelta)
|
||||
m_pFSM->Change_State(FSMSTATE::COMBAT);
|
||||
}
|
||||
else if (m_pGameInstance->Key_Down(DIK_G)) {
|
||||
Get_PartObject<CItem_Potion>()->Set_Visible(true);
|
||||
m_pModelCom->Set_Second_AnimationIndex(ENUM_CLASS(BLEND_BONE::SHOULDER_NECK_L), m_Animation[STATEANIM::POTION].first, m_Animation[STATEANIM::POTION].second);
|
||||
}
|
||||
|
||||
@@ -640,6 +643,7 @@ HRESULT CPlayer::Behavior_MoveExitCheck(_float fTimeDelta)
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
if (m_pFSM->IsEnable(FSMSTATE::JOG | FSMSTATE::WALK | FSMSTATE::SPRINT) ||
|
||||
!SUCCEEDED(InputMove())) {
|
||||
if (!m_pFSM->IsEnable(FSMSTATE::STOP))
|
||||
@@ -844,6 +848,12 @@ void CPlayer::Behavior_CombatEnter()
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() { Throwing_Interactive(); },
|
||||
0.2f);
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() {
|
||||
m_pGameInstance->SlowMotion(0.1f, 0.35f);
|
||||
},
|
||||
0.1f);
|
||||
}
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
}
|
||||
|
||||
@@ -18,6 +18,9 @@ CProtego::CProtego(const CProtego& rhs)
|
||||
HRESULT CProtego::Initialize_Prototype()
|
||||
{
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Protego")))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
@@ -30,8 +33,7 @@ HRESULT CProtego::Initialize(void* pArg)
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Protego")))
|
||||
if (FAILED(Create_Effect()))
|
||||
return E_FAIL;
|
||||
|
||||
m_pSphere = Get_PartObject<CEffectParts>("ProtegoSphere");
|
||||
|
||||
@@ -19,6 +19,9 @@ CRevelio::CRevelio(const CRevelio& rhs)
|
||||
HRESULT CRevelio::Initialize_Prototype()
|
||||
{
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Revelio")))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
@@ -31,10 +34,10 @@ HRESULT CRevelio::Initialize(void* pArg)
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Revelio")))
|
||||
if (FAILED(Create_Effect()))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
m_pRevelioPT_Y = Get_PartObject<CEffectParts>("WandPT_Y");
|
||||
m_pRevelioPT_B = Get_PartObject<CEffectParts>("WandPT_B");
|
||||
m_pRevelioPT_R = Get_PartObject<CEffectParts>("WandPT_R");
|
||||
|
||||
@@ -19,6 +19,7 @@ HRESULT CSkill_Data::Initialize(ID3D11Device* pDevice, ID3D11DeviceContext* pCon
|
||||
Spell_UnLock(2);
|
||||
Spell_UnLock(6);
|
||||
Spell_UnLock(11);
|
||||
Spell_UnLock(14);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -19,6 +19,9 @@ CStunEffect::CStunEffect(const CStunEffect& rhs)
|
||||
HRESULT CStunEffect::Initialize_Prototype()
|
||||
{
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Stun")))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
@@ -31,8 +34,7 @@ HRESULT CStunEffect::Initialize(void* pArg)
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Stun")))
|
||||
if (FAILED(Create_Effect()))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
|
||||
#include "GameInstance.h"
|
||||
#include "Trail.h"
|
||||
#include "Effect_Container.h"
|
||||
|
||||
|
||||
CTrailObject::CTrailObject(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
@@ -96,6 +97,67 @@ void CTrailObject::Late_Update(_float fTimeDelta)
|
||||
|
||||
}
|
||||
|
||||
HRESULT CTrailObject::Load_Trail(CEffect_Container::TRAIL_SAVE_INFO Trail_Save_Info, LEVEL eLevel)
|
||||
{
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom);
|
||||
SAFE_RELEASE(m_pMasking_TextureCom);
|
||||
SAFE_RELEASE(m_pNoise_TextureCom);
|
||||
SAFE_RELEASE(m_pDistortion_TextureCom);
|
||||
|
||||
|
||||
if (Trail_Save_Info.wstrDiffuseName.length() != 0)
|
||||
{
|
||||
|
||||
m_strTrailDiffuseName = Trail_Save_Info.wstrDiffuseName;
|
||||
|
||||
if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), m_strTrailDiffuseName,
|
||||
reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom))))
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (Trail_Save_Info.wstrNoiseName.length() != 0)
|
||||
{
|
||||
|
||||
m_strTrailNoiseName = Trail_Save_Info.wstrNoiseName;
|
||||
|
||||
if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), m_strTrailNoiseName,
|
||||
reinterpret_cast<CComponent**>(&m_pNoise_TextureCom))))
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
if (Trail_Save_Info.wstrMaskingName.length() != 0)
|
||||
{
|
||||
|
||||
m_strTrailMaskingName = Trail_Save_Info.wstrMaskingName;
|
||||
|
||||
if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), m_strTrailMaskingName,
|
||||
reinterpret_cast<CComponent**>(&m_pMasking_TextureCom))))
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
if (Trail_Save_Info.wstrDistortionName.length() != 0)
|
||||
{
|
||||
|
||||
m_strTrailDistortionName = Trail_Save_Info.wstrDistortionName;
|
||||
|
||||
if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), m_strTrailDistortionName,
|
||||
reinterpret_cast<CComponent**>(&m_pDistortion_TextureCom))))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
}
|
||||
|
||||
m_pTrailCom->Load_Trail(Trail_Save_Info.TrailComponentDesc);
|
||||
|
||||
m_TrailInfo = Trail_Save_Info.TrailDesc;
|
||||
|
||||
m_pTrailCom->ReStructVB(m_TrailInfo.iNumVertex);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CTrailObject::Load_Trail(const _char* pPath, LEVEL eLevel)
|
||||
{
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom);
|
||||
@@ -140,9 +202,9 @@ HRESULT CTrailObject::Load_Trail(const _char* pPath, LEVEL eLevel)
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_strTrailDiffuseName = szName;
|
||||
m_strTrailDiffuseName = CMyTools::ToWstring(szName);
|
||||
|
||||
if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strTrailDiffuseName),
|
||||
if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), m_strTrailDiffuseName,
|
||||
reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom))))
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -159,9 +221,9 @@ HRESULT CTrailObject::Load_Trail(const _char* pPath, LEVEL eLevel)
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_strTrailNoiseName = szName;
|
||||
m_strTrailNoiseName = CMyTools::ToWstring(szName);
|
||||
|
||||
if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strTrailNoiseName),
|
||||
if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), m_strTrailNoiseName,
|
||||
reinterpret_cast<CComponent**>(&m_pNoise_TextureCom))))
|
||||
return E_FAIL;
|
||||
|
||||
@@ -179,9 +241,9 @@ HRESULT CTrailObject::Load_Trail(const _char* pPath, LEVEL eLevel)
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_strTrailMaskingName = szName;
|
||||
m_strTrailMaskingName = CMyTools::ToWstring(szName);
|
||||
|
||||
if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strTrailMaskingName),
|
||||
if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), m_strTrailMaskingName,
|
||||
reinterpret_cast<CComponent**>(&m_pMasking_TextureCom))))
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -199,9 +261,9 @@ HRESULT CTrailObject::Load_Trail(const _char* pPath, LEVEL eLevel)
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_strTrailDistortionName = szName;
|
||||
m_strTrailDistortionName = CMyTools::ToWstring(szName);
|
||||
|
||||
if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strTrailDistortionName),
|
||||
if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), m_strTrailDistortionName ,
|
||||
reinterpret_cast<CComponent**>(&m_pDistortion_TextureCom))))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
@@ -123,7 +123,7 @@ void CTroll::Update(_float fTimeDelta)
|
||||
for (_uint i = 0; i < ENUM_CLASS(TROLL_SKILL::END); i++)
|
||||
m_fSkillCoolTime[i] = max(0.f, m_fSkillCoolTime[i] - fTimeDelta);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#pragma region TRAIL_UPDATE
|
||||
@@ -182,7 +182,7 @@ void CTroll::Late_Update(_float fTimeDelta)
|
||||
m_fCross = XMVectorGetY(XMVector3Cross(vLook, vDir));
|
||||
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
|
||||
// m_pGameInstance->Add_RenderGroup(RENDER::SHADOW, this);
|
||||
// m_pGameInstance->Add_RenderGroup(RENDER::SHADOW, this);
|
||||
}
|
||||
|
||||
HRESULT CTroll::Render()
|
||||
@@ -337,8 +337,7 @@ void CTroll::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
ON_COLLISION_INFO* CollisionDesc = static_cast<ON_COLLISION_INFO*>(pDesc);
|
||||
|
||||
|
||||
_vector Head = (XMLoadFloat4x4(Get_HeadMatrix()), m_pTransformCom->Get_XMWorldMatrix()).r[3];
|
||||
m_DamageInfo.vTarget_Pos = XMVectorSet(Head.m128_f32[0], Head.m128_f32[1], Head.m128_f32[2], 1.f);
|
||||
m_DamageInfo.vTarget_Pos = m_pCharacter_Controller->Get_HeadPosition();
|
||||
|
||||
CEffect_Container* pEffect_Container = dynamic_cast<CEffect_Container*>(pOther);
|
||||
|
||||
@@ -368,6 +367,10 @@ void CTroll::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
break;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
damagePair = Get_Damage(m_pInfoInstance->Get_Spell_Damage(ENUM_CLASS(SKILL_TYPE::ANCIENT_MAGIC_THROW)));
|
||||
}
|
||||
|
||||
CMapElement_Interactable* pProps = dynamic_cast<CMapElement_Interactable*>(pOther);
|
||||
|
||||
@@ -383,6 +386,8 @@ void CTroll::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
return;
|
||||
}
|
||||
m_pFSM->Change_State(FSMSTATE::HIT);
|
||||
|
||||
|
||||
}
|
||||
|
||||
void CTroll::OnHit(CGameObject* pOther, CGameObject* pCaller)
|
||||
|
||||
@@ -22,6 +22,9 @@ CTrollSwing::CTrollSwing(const CTrollSwing& rhs)
|
||||
HRESULT CTrollSwing::Initialize_Prototype()
|
||||
{
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/TrollSwing")))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
@@ -34,8 +37,7 @@ HRESULT CTrollSwing::Initialize(void* pArg)
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/TrollSwing")))
|
||||
if (FAILED(Create_Effect()))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
|
||||
@@ -19,6 +19,9 @@ CTroll_Nomal_Smoke::CTroll_Nomal_Smoke(const CTroll_Nomal_Smoke& rhs)
|
||||
HRESULT CTroll_Nomal_Smoke::Initialize_Prototype()
|
||||
{
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/TrollNomalSmoke")))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
@@ -31,8 +34,7 @@ HRESULT CTroll_Nomal_Smoke::Initialize(void* pArg)
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/TrollNomalSmoke")))
|
||||
if (FAILED(Create_Effect()))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
|
||||
@@ -22,6 +22,9 @@ CTroll_Rush_Hit::CTroll_Rush_Hit(const CTroll_Rush_Hit& rhs)
|
||||
HRESULT CTroll_Rush_Hit::Initialize_Prototype()
|
||||
{
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/TrollRush")))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
@@ -34,11 +37,9 @@ HRESULT CTroll_Rush_Hit::Initialize(void* pArg)
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/TrollRush")))
|
||||
if (FAILED(Create_Effect()))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
m_wstrEffectName = L"Troll_Nomal_Smoke";
|
||||
|
||||
|
||||
|
||||
@@ -579,7 +579,7 @@ HRESULT CTroll::Behavior_BackHandSwingExitCheck(_float fTimeDelta)
|
||||
m_pFSM->Change_State(FSMSTATE::COMBAT);
|
||||
return E_FAIL;
|
||||
}
|
||||
return E_FAIL;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CTroll::Behavior_BackHandSwingExit()
|
||||
@@ -912,7 +912,7 @@ void CTroll::CheckHammerHits(_uint& iHitCount, vector<PSX::PxSweepHit>& pxHits)
|
||||
|
||||
_bool bCollision = false;
|
||||
m_SweepBufferHammer = {};
|
||||
bCollision = m_pGameInstance->SphereCast(1.2f, vStartPos, vDir, fDistance, PSX::PxHitFlag::eDEFAULT, PSX::PxQueryFlag::eDYNAMIC, m_SweepBufferHammer);
|
||||
bCollision = m_pGameInstance->SphereCast(1.5f, vStartPos, vDir, fDistance, PSX::PxHitFlag::eDEFAULT, PSX::PxQueryFlag::eDYNAMIC, m_SweepBufferHammer);
|
||||
if (true == bCollision) {
|
||||
iHitCount += m_SweepBufferHammer.getNbTouches() + m_SweepBufferHammer.hasBlock;
|
||||
auto touches = m_SweepBufferHammer.getTouches();
|
||||
@@ -933,7 +933,7 @@ void CTroll::CheckHammerHits(_uint& iHitCount, vector<PSX::PxSweepHit>& pxHits)
|
||||
|
||||
_bool bCollision = false;
|
||||
m_SweepBufferGrip = {};
|
||||
bCollision = m_pGameInstance->SphereCast(1.2f, vStartPos, vDir, fDistance, PSX::PxHitFlag::eDEFAULT, PSX::PxQueryFlag::eDYNAMIC, m_SweepBufferGrip);
|
||||
bCollision = m_pGameInstance->SphereCast(1.5f, vStartPos, vDir, fDistance, PSX::PxHitFlag::eDEFAULT, PSX::PxQueryFlag::eDYNAMIC, m_SweepBufferGrip);
|
||||
if (true == bCollision) {
|
||||
iHitCount += m_SweepBufferGrip.getNbTouches() + m_SweepBufferGrip.hasBlock;
|
||||
auto touches = m_SweepBufferGrip.getTouches();
|
||||
|
||||
@@ -17,6 +17,8 @@ CWandEnd::CWandEnd(const CWandEnd& rhs)
|
||||
|
||||
HRESULT CWandEnd::Initialize_Prototype()
|
||||
{
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/WandEnd")))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
|
||||
@@ -30,10 +32,10 @@ HRESULT CWandEnd::Initialize(void* pArg)
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/WandEnd")))
|
||||
if (FAILED(Create_Effect()))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
m_wstrEffectName = L"Lumos";
|
||||
|
||||
m_pWandPt = Get_PartObject<CEffectParts>("WandParticle_R");
|
||||
|
||||
@@ -65,4 +65,195 @@ namespace Client
|
||||
_float fDamage{};
|
||||
DAMAGE_TYPE eType = DAMAGE_TYPE::NOMAL;
|
||||
}DAMAGE_INFO;
|
||||
|
||||
|
||||
typedef struct tagEffectInfo
|
||||
{
|
||||
_float4 vColor = { 0.f ,0.f ,0.f ,1.f };
|
||||
|
||||
_float2 vDiffuseUVGainAmount = {};
|
||||
_float2 vMaskingUVGainAmount = {};
|
||||
_float2 vNoiseUVGainAmount = {};
|
||||
|
||||
_float2 vDistortionTime = {};
|
||||
_float2 vMaskDistortionUVGainAmount = {};
|
||||
|
||||
_float2 vUVCutting = { 1.f ,1.f };
|
||||
_float2 vUVMaskCutting = { 1.f ,1.f };
|
||||
|
||||
_int iMaskMoveLerpOption = { 0 };
|
||||
_int iDiffuseMoveLerpOption = { 0 };
|
||||
_int iNoiseMoveLerpOption = { 0 };
|
||||
|
||||
_int iMaskDistortionMoveLerpOption = { 0 };
|
||||
_int iDiffuseDistortionMoveLerpOption = { 0 };
|
||||
|
||||
_int iBlurWeight = { 0 };
|
||||
|
||||
|
||||
_bool isDiffuse = {};
|
||||
_bool isMasking = {};
|
||||
_bool isDissolve = {};
|
||||
_bool isNoise = {};
|
||||
_bool isEmissive = {};
|
||||
_bool isDistortion = {};
|
||||
_bool isDiffuseUVMove = {};
|
||||
_bool isNoiseUVMove = {};
|
||||
_bool isMaskUVMove = {};
|
||||
_bool isBlur = {};
|
||||
_bool isBillboard = {};
|
||||
|
||||
_float4 vEmissive = { 0.f ,0.f ,0.f ,0.f };
|
||||
_float fDiffuseAlpha = { 1.f };
|
||||
_float fBlurIntensity = {};
|
||||
_float fNoiseDistortionIntensity = {};
|
||||
_float fEmissiveStrength = { 0.f };
|
||||
|
||||
LIGHT_DESC LightDesc = {};
|
||||
RENDER eRenderOrder = { RENDER::EFFECT };
|
||||
|
||||
_bool isReverseDissolve = {};
|
||||
|
||||
EFFECT_TYPE eEffectType = { EFFECT_TYPE::EFFECT };
|
||||
|
||||
_bool isEmissiveDissolve = { false };
|
||||
|
||||
_bool isMaskClampSample = { false };
|
||||
_bool isNoiseColor = { false };
|
||||
_bool isNoiseAlpha = { false };
|
||||
_bool isNomalDissolve = {};
|
||||
|
||||
_float fSoftenExp = { 1.31429f };
|
||||
_float fSoftStrength = {};
|
||||
_float fCoreBoost = {};
|
||||
_float fRadius = {};
|
||||
|
||||
_float fSoftMaskEdge = {};
|
||||
_float fSoftMask = {};
|
||||
|
||||
_bool isEmissiveDissolveReverse = { false };
|
||||
_bool isOnlyBlur = { false };
|
||||
|
||||
SHADER_PASS_INSTANCE_MODEL eShaderPass = { SHADER_PASS_INSTANCE_MODEL::NON_NOMALMAP };
|
||||
|
||||
_bool isBlurNoEmissive = {};
|
||||
_bool isTexBlur = {};
|
||||
_bool isBlurDissolve = {};
|
||||
_bool isBlurReverseDissolve = {};
|
||||
|
||||
_float fBluringStrength = { 0.01f };
|
||||
|
||||
_bool isBloom = {};
|
||||
_bool isBloomDissolve = {};
|
||||
_bool isBloomReverseDissolve = {};
|
||||
_float fBloomStrength = {};
|
||||
BLOOM_TYPE eBloomType = {};
|
||||
|
||||
|
||||
_float fDissolveDelay = {};
|
||||
_float fReverseDissolveDelay = {};
|
||||
_float2 vDissolveUVGainAmount = {};
|
||||
_bool isDissolveMove = {};
|
||||
|
||||
_float3 vDissolveValue = {};
|
||||
|
||||
|
||||
_float2 vPadding0 = {};
|
||||
|
||||
_float fLightDeley = {};
|
||||
_float fLightIntensity = {};
|
||||
_float isLightTime = { 0.f };
|
||||
_bool isLightDissolve = {};
|
||||
|
||||
_bool isPadding0 = {};
|
||||
|
||||
_float4 vDissolveColor = {};
|
||||
_float2 vDissolveColorCut = {};
|
||||
|
||||
_float fEmissiveColorCut = {};
|
||||
|
||||
_float2 vPadding1 = {};
|
||||
_float4 vNoiseColor = {};
|
||||
_float4 vPadding3 = {};
|
||||
_float4 vPadding4 = {};
|
||||
_float4 vPadding5 = {};
|
||||
|
||||
_bool isPadding1 = {};
|
||||
_bool isPadding2 = {};
|
||||
_bool isPadding3 = {};
|
||||
_bool isPadding4 = {};
|
||||
}EFFECT_INFO;
|
||||
|
||||
typedef struct tagTrailInfo
|
||||
{
|
||||
EFFECT_TYPE eEffectType = { EFFECT_TYPE::TRAIL };
|
||||
/* 디퓨즈 */
|
||||
_bool isDiffuse = {};
|
||||
_float fDiffuseAlpha = { 1.f };
|
||||
_float4 vColor = { 0.f ,0.f ,0.f ,1.f };
|
||||
|
||||
/* 마스크 */
|
||||
_bool isMask = {};
|
||||
_float fSoftMaskEdge = {};
|
||||
_float fSoftMask = {};
|
||||
|
||||
/* 노이즈 */
|
||||
_bool isNoise = {};
|
||||
_bool isNoiseColor = { false };
|
||||
_bool isNoiseAlpha = { false };
|
||||
_float fNoiseStrength = {};
|
||||
|
||||
/* 디스 토션 */
|
||||
_bool isDistortion = {};
|
||||
_float2 vDistortionTime = {};
|
||||
_float2 vDiffuseDistortioUVAmount = {};
|
||||
_float2 vMaskDistortionUVAmount = {};
|
||||
_float fDistortionIntensity = {};
|
||||
|
||||
/* 이미시브 */
|
||||
_float4 vEmissive = { 0.f ,0.f ,0.f ,0.f };
|
||||
|
||||
_float fEmissiveStrength = { 0.f };
|
||||
_float fSoftenExp = { 1.31429f };
|
||||
_float fSoftStrength = {};
|
||||
_float fCoreBoost = {};
|
||||
_float fRadius = {};
|
||||
|
||||
|
||||
/* 블러 */
|
||||
_bool isBlur = {};
|
||||
_bool isOnlyBlur = { false };
|
||||
_float fBlurIntensity = {};
|
||||
_int iBlurWeight = {};
|
||||
|
||||
/* 블룸 */
|
||||
_bool isBloom = {};
|
||||
|
||||
_bool isBloomDissolve = {};
|
||||
_bool isBloomReverseDissolve = {};
|
||||
|
||||
_float fBloomStrength = {};
|
||||
|
||||
BLOOM_TYPE eBloomType = {};
|
||||
_float2 vBloomTime = {};
|
||||
|
||||
_int iNumVertex = {};
|
||||
|
||||
|
||||
RENDER eRenderOrder = { RENDER::EFFECT };
|
||||
SHADER_PASS_POSTEX eShaderPass = { SHADER_PASS_POSTEX::TRAIL };
|
||||
|
||||
_float3 vPadding0 = {};
|
||||
_float3 vPadding1 = {};
|
||||
_float3 vPadding2 = {};
|
||||
|
||||
_float fPadding0 = {};
|
||||
_float fPadding1 = {};
|
||||
_float fPadding2 = {};
|
||||
|
||||
_bool isPadding0 = {};
|
||||
_bool isPadding1 = {};
|
||||
_bool isPadding2 = {};
|
||||
|
||||
}TRAIL_INFO;
|
||||
};
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "PartObject.h"
|
||||
#include "Effect_Container.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
class CInstance_Model;
|
||||
@@ -15,125 +16,6 @@ NS_BEGIN(Client)
|
||||
|
||||
class CEffectObject abstract : public CPartObject
|
||||
{
|
||||
public:
|
||||
typedef struct tagEffectInfo
|
||||
{
|
||||
_float4 vColor = { 0.f ,0.f ,0.f ,1.f };
|
||||
|
||||
_float2 vDiffuseUVGainAmount = {};
|
||||
_float2 vMaskingUVGainAmount = {};
|
||||
_float2 vNoiseUVGainAmount = {};
|
||||
|
||||
_float2 vDistortionTime = {};
|
||||
_float2 vMaskDistortionUVGainAmount = {};
|
||||
|
||||
_float2 vUVCutting = { 1.f ,1.f };
|
||||
_float2 vUVMaskCutting = { 1.f ,1.f };
|
||||
|
||||
_int iMaskMoveLerpOption = { 0 };
|
||||
_int iDiffuseMoveLerpOption = { 0 };
|
||||
_int iNoiseMoveLerpOption = { 0 };
|
||||
|
||||
_int iMaskDistortionMoveLerpOption = { 0 };
|
||||
_int iDiffuseDistortionMoveLerpOption = { 0 };
|
||||
|
||||
_int iBlurWeight = { 0 };
|
||||
|
||||
|
||||
_bool isDiffuse = {};
|
||||
_bool isMasking = {};
|
||||
_bool isDissolve = {};
|
||||
_bool isNoise = {};
|
||||
_bool isEmissive = {};
|
||||
_bool isDistortion = {};
|
||||
_bool isDiffuseUVMove = {};
|
||||
_bool isNoiseUVMove = {};
|
||||
_bool isMaskUVMove = {};
|
||||
_bool isBlur = {};
|
||||
_bool isBillboard = {};
|
||||
|
||||
_float4 vEmissive = { 0.f ,0.f ,0.f ,0.f };
|
||||
_float fDiffuseAlpha = { 1.f };
|
||||
_float fBlurIntensity = {};
|
||||
_float fNoiseDistortionIntensity = {};
|
||||
_float fEmissiveStrength = { 0.f };
|
||||
|
||||
LIGHT_DESC LightDesc = {};
|
||||
RENDER eRenderOrder = { RENDER::EFFECT };
|
||||
|
||||
_bool isReverseDissolve = {};
|
||||
|
||||
EFFECT_TYPE eEffectType = { EFFECT_TYPE::EFFECT };
|
||||
|
||||
_bool isEmissiveDissolve = { false };
|
||||
|
||||
_bool isMaskClampSample = { false };
|
||||
_bool isNoiseColor = { false };
|
||||
_bool isNoiseAlpha = { false };
|
||||
_bool isNomalDissolve = {};
|
||||
|
||||
_float fSoftenExp = { 1.31429f };
|
||||
_float fSoftStrength = {};
|
||||
_float fCoreBoost = {};
|
||||
_float fRadius = {};
|
||||
|
||||
_float fSoftMaskEdge = {};
|
||||
_float fSoftMask = {};
|
||||
|
||||
_bool isEmissiveDissolveReverse = { false };
|
||||
_bool isOnlyBlur = { false };
|
||||
|
||||
SHADER_PASS_INSTANCE_MODEL eShaderPass = { SHADER_PASS_INSTANCE_MODEL::NON_NOMALMAP };
|
||||
|
||||
_bool isBlurNoEmissive = {};
|
||||
_bool isTexBlur = {};
|
||||
_bool isBlurDissolve = {};
|
||||
_bool isBlurReverseDissolve = {};
|
||||
|
||||
_float fBluringStrength = { 0.01f };
|
||||
|
||||
_bool isBloom = {};
|
||||
_bool isBloomDissolve = {};
|
||||
_bool isBloomReverseDissolve = {};
|
||||
_float fBloomStrength = {};
|
||||
BLOOM_TYPE eBloomType = {};
|
||||
|
||||
|
||||
_float fDissolveDelay = {};
|
||||
_float fReverseDissolveDelay = {};
|
||||
_float2 vDissolveUVGainAmount = {};
|
||||
_bool isDissolveMove = {};
|
||||
|
||||
_float3 vDissolveValue = {};
|
||||
|
||||
|
||||
_float2 vPadding0 = {};
|
||||
|
||||
_float fLightDeley = {};
|
||||
_float fLightIntensity = {};
|
||||
_float isLightTime = { 0.f };
|
||||
_bool isLightDissolve = {};
|
||||
|
||||
_bool isPadding0 = {};
|
||||
|
||||
_float4 vDissolveColor = {};
|
||||
_float2 vDissolveColorCut = {};
|
||||
|
||||
_float fEmissiveColorCut = {};
|
||||
|
||||
_float2 vPadding1 = {};
|
||||
_float4 vNoiseColor = {};
|
||||
_float4 vPadding3 = {};
|
||||
_float4 vPadding4 = {};
|
||||
_float4 vPadding5 = {};
|
||||
|
||||
_bool isPadding1 = {};
|
||||
_bool isPadding2 = {};
|
||||
_bool isPadding3 = {};
|
||||
_bool isPadding4 = {};
|
||||
}EFFECT_INFO;
|
||||
|
||||
|
||||
protected:
|
||||
CEffectObject(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CEffectObject(const CEffectObject& rhs);
|
||||
@@ -147,8 +29,8 @@ class CEffectObject abstract : public CPartObject
|
||||
virtual HRESULT Render_Blur() override;
|
||||
virtual HRESULT Render_Bloom() override;
|
||||
public:
|
||||
HRESULT Load(CEffect_Container::EFFECT_SAVE_INFO EffectSaveInfo, LEVEL eLevel);
|
||||
HRESULT Load(const _char* pFilePath, LEVEL eLevel);
|
||||
|
||||
void Disable_Light();
|
||||
void Add_Light();
|
||||
void FollowParents(const _float4x4* pParentsMat, const _float4x4* pOffsetMat = nullptr);
|
||||
@@ -175,14 +57,14 @@ class CEffectObject abstract : public CPartObject
|
||||
_float4x4 m_FinalParentMatrix;
|
||||
|
||||
protected:
|
||||
EFFECT_INFO m_EffectInfo = {};
|
||||
_string m_strDiffuseName = {};
|
||||
_string m_strNoiseName = {};
|
||||
_string m_strMaskingName = {};
|
||||
_string m_strDissolveName = {};
|
||||
_string m_strModelName = {};
|
||||
_string m_strEmissiveName = {};
|
||||
_string m_strDistortionName = {};
|
||||
EFFECT_INFO m_EffectInfo = {};
|
||||
_wstring m_strDiffuseName = {};
|
||||
_wstring m_strNoiseName = {};
|
||||
_wstring m_strMaskingName = {};
|
||||
_wstring m_strDissolveName = {};
|
||||
_wstring m_strModelName = {};
|
||||
_wstring m_strEmissiveName = {};
|
||||
_wstring m_strDistortionName = {};
|
||||
|
||||
public:
|
||||
virtual void Free() override;
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
#include "Client_Define.h"
|
||||
#include "EffectObject.h"
|
||||
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
class CModel;
|
||||
class CShader;
|
||||
|
||||
@@ -2,14 +2,49 @@
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "ContainerObject.h"
|
||||
#include "Trail.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
class CInstance_Model;
|
||||
class CTrail;
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CEffect_Container abstract : public CContainerObject
|
||||
{
|
||||
public:
|
||||
typedef struct tagEffectSaveInfo
|
||||
{
|
||||
EFFECT_INFO EffectInfo = {};
|
||||
LIGHT_DESC LightInfo = {};
|
||||
|
||||
_wstring wstrDiffuseName = {};
|
||||
_wstring wstrNoiseName = {};
|
||||
_wstring wstrMaskingName = {};
|
||||
_wstring wstrDissolveName = {};
|
||||
_wstring wstrEmissiveName = {};
|
||||
_wstring wstrDistortionName = {};
|
||||
_wstring wstrModelName = {};
|
||||
|
||||
_wstring wstrEffectName = {};
|
||||
|
||||
CInstance_Model::INSTANCE_DESC InstanceModelInfo = {};
|
||||
}EFFECT_SAVE_INFO;
|
||||
|
||||
typedef struct tagTrailSaveInfo
|
||||
{
|
||||
_wstring wstrDiffuseName = {};
|
||||
_wstring wstrNoiseName = {};
|
||||
_wstring wstrMaskingName = {};
|
||||
_wstring wstrDistortionName = {};
|
||||
|
||||
_wstring wstrTrailName = {};
|
||||
|
||||
CTrail::TRAIL_DESC TrailComponentDesc = {};
|
||||
TRAIL_INFO TrailDesc = {};
|
||||
}TRAIL_SAVE_INFO;
|
||||
|
||||
protected:
|
||||
CEffect_Container(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CEffect_Container(const CEffect_Container& rhs);
|
||||
@@ -24,6 +59,9 @@ class CEffect_Container abstract : public CContainerObject
|
||||
HRESULT Load_Directory(const _char* pPath);
|
||||
virtual HRESULT Pre_Setting(CGameObject* pObject, void* pArg = nullptr);
|
||||
HRESULT Load_Package(const _char* pPath);
|
||||
HRESULT Load_Data(const _char* pPath);
|
||||
HRESULT Create_Effect();
|
||||
HRESULT Load_Trail_Data(const _char* pPath);
|
||||
_uint Get_SkillType() const { return m_iSkillType; }
|
||||
void Reset_Light();
|
||||
|
||||
@@ -60,6 +98,9 @@ class CEffect_Container abstract : public CContainerObject
|
||||
_uint m_iSkillType = ENUM_CLASS(SKILL_TYPE::END);
|
||||
_bool m_bHasDamage = { false };
|
||||
LOCKON_INFO m_Info = {};
|
||||
private:
|
||||
vector<EFFECT_SAVE_INFO> m_EffectsInfo = {};
|
||||
vector<TRAIL_SAVE_INFO> m_TrailsInfo = {};
|
||||
public:
|
||||
virtual void Free() override;
|
||||
};
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
#include "Monster.h"
|
||||
#include "CallBack_Monster_Behavior.h"
|
||||
#include "CallBack_Monster_HitReport.h"
|
||||
#include "Enemy_Detection.h"
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
@@ -36,6 +37,7 @@ class CGoblin_Mage final : public CMonster
|
||||
private:
|
||||
CCallBack_Monster_Behavior* m_pCallBack_Behavior = { nullptr };
|
||||
CCallBack_Monster_HitReport* m_pCallBack_HitReport = { nullptr };
|
||||
CEnemy_Detection* m_pDetection = { nullptr };
|
||||
|
||||
CCharacter_Controller* m_pCharacter_Controller = { nullptr };
|
||||
CRigidBody_Dynamic* m_pRigidBody = { nullptr };
|
||||
@@ -74,6 +76,8 @@ class CGoblin_Mage final : public CMonster
|
||||
private:
|
||||
class CEffectPool* m_pEffectPool = { nullptr };
|
||||
|
||||
_bool m_bDetection = { false };
|
||||
|
||||
_float m_fSkillCoolTime[ENUM_CLASS(GOBLIN_SKILL::END)] = {};
|
||||
_float m_fMaxSkillCoolTime[ENUM_CLASS(GOBLIN_SKILL::END)] = { 20.f,5.f,30.f,15.f };
|
||||
|
||||
|
||||
@@ -0,0 +1,54 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "PartObject.h"
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CItem_Potion final : public CPartObject
|
||||
{
|
||||
public:
|
||||
typedef struct tagPotion : public CPartObject::PARTOBJECT_DESC
|
||||
{
|
||||
const _float4x4* pSocketMatrices = { };
|
||||
}POTION_DESC;
|
||||
private:
|
||||
CItem_Potion(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CItem_Potion(const CItem_Potion& Prototype);
|
||||
virtual ~CItem_Potion() = default;
|
||||
|
||||
public:
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) 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;
|
||||
void Set_Attach(_bool Attach);
|
||||
public:
|
||||
|
||||
private:
|
||||
const _float4x4* m_pSocketMatrices = { };
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
CModel* m_pModelCom = { nullptr };
|
||||
|
||||
_float4x4 m_pWandTipMatrix = {};
|
||||
_float3 m_Offset = {};
|
||||
_bool m_bAttach = { true };
|
||||
_float m_fTimer = {};
|
||||
|
||||
private:
|
||||
HRESULT Ready_Components();
|
||||
HRESULT Bind_ShaderResources();
|
||||
|
||||
public:
|
||||
static CItem_Potion* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, CGameObject* pOwner = nullptr)override;
|
||||
virtual void Free() override;
|
||||
|
||||
#ifdef _DEBUG
|
||||
void Describe_Entity() override;
|
||||
#endif // _DEBUG
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -34,10 +34,10 @@ class CNomalJap final : public CEffect_Container
|
||||
class CInfoInstance* m_pInfoInstance = { nullptr };
|
||||
_wstring m_wstrEffectName = {};
|
||||
|
||||
_float4 m_vJapData[4] = { _float4(65.f , 330.f , 35.f , 20.f)
|
||||
, _float4(55.f , 100.f , 55.f , 200.f)
|
||||
, _float4(55.f , 0.f , 0.f , 0.f)
|
||||
, _float4(65.f , 250.f , 35.f , 60.f) };
|
||||
_float4 m_vJapData[4] = { _float4(105.f , 330.f , 35.f , 20.f)
|
||||
, _float4(95.f , 100.f , 55.f , 200.f)
|
||||
, _float4(95.f , 0.f , 0.f , 0.f)
|
||||
, _float4(105.f , 250.f , 35.f , 60.f) };
|
||||
|
||||
class CPartObject* m_pProjectile = {};
|
||||
class CPartObject* m_pProjectile_Side = {};
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "EffectObject.h"
|
||||
#include "Effect_Container.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
class CShader;
|
||||
@@ -14,78 +15,7 @@ NS_BEGIN(Client)
|
||||
class CTrailObject final : public CPartObject
|
||||
{
|
||||
public:
|
||||
typedef struct tagTrailInfo
|
||||
{
|
||||
EFFECT_TYPE eEffectType = { EFFECT_TYPE::TRAIL };
|
||||
/* 디퓨즈 */
|
||||
_bool isDiffuse = {};
|
||||
_float fDiffuseAlpha = { 1.f };
|
||||
_float4 vColor = { 0.f ,0.f ,0.f ,1.f };
|
||||
|
||||
/* 마스크 */
|
||||
_bool isMask = {};
|
||||
_float fSoftMaskEdge = {};
|
||||
_float fSoftMask = {};
|
||||
|
||||
/* 노이즈 */
|
||||
_bool isNoise = {};
|
||||
_bool isNoiseColor = { false };
|
||||
_bool isNoiseAlpha = { false };
|
||||
_float fNoiseStrength = {};
|
||||
|
||||
/* 디스 토션 */
|
||||
_bool isDistortion = {};
|
||||
_float2 vDistortionTime = {};
|
||||
_float2 vDiffuseDistortioUVAmount = {};
|
||||
_float2 vMaskDistortionUVAmount = {};
|
||||
_float fDistortionIntensity = {};
|
||||
|
||||
/* 이미시브 */
|
||||
_float4 vEmissive = { 0.f ,0.f ,0.f ,0.f };
|
||||
|
||||
_float fEmissiveStrength = { 0.f };
|
||||
_float fSoftenExp = { 1.31429f };
|
||||
_float fSoftStrength = {};
|
||||
_float fCoreBoost = {};
|
||||
_float fRadius = {};
|
||||
|
||||
|
||||
/* 블러 */
|
||||
_bool isBlur = {};
|
||||
_bool isOnlyBlur = { false };
|
||||
_float fBlurIntensity = {};
|
||||
_int iBlurWeight = {};
|
||||
|
||||
/* 블룸 */
|
||||
_bool isBloom = {};
|
||||
|
||||
_bool isBloomDissolve = {};
|
||||
_bool isBloomReverseDissolve = {};
|
||||
|
||||
_float fBloomStrength = {};
|
||||
|
||||
BLOOM_TYPE eBloomType = {};
|
||||
_float2 vBloomTime = {};
|
||||
|
||||
_int iNumVertex = {};
|
||||
|
||||
|
||||
RENDER eRenderOrder = { RENDER::EFFECT };
|
||||
SHADER_PASS_POSTEX eShaderPass = { SHADER_PASS_POSTEX::TRAIL };
|
||||
|
||||
_float3 vPadding0 = {};
|
||||
_float3 vPadding1 = {};
|
||||
_float3 vPadding2 = {};
|
||||
|
||||
_float fPadding0 = {};
|
||||
_float fPadding1 = {};
|
||||
_float fPadding2 = {};
|
||||
|
||||
_bool isPadding0 = {};
|
||||
_bool isPadding1 = {};
|
||||
_bool isPadding2 = {};
|
||||
|
||||
}TRAIL_INFO;
|
||||
private:
|
||||
CTrailObject(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CTrailObject(const CTrailObject& rhs);
|
||||
@@ -98,9 +28,9 @@ class CTrailObject final : public CPartObject
|
||||
|
||||
public:
|
||||
void Trail_Update(_fmatrix WorldMat, _float fTimeDelta);
|
||||
HRESULT Load_Trail(CEffect_Container::TRAIL_SAVE_INFO Trail_Save_Info, LEVEL eLevel);
|
||||
HRESULT Load_Trail(const _char* pPath, LEVEL eLevel);
|
||||
|
||||
|
||||
private:
|
||||
HRESULT Bind_ShaderResources() override;
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
@@ -128,10 +58,10 @@ class CTrailObject final : public CPartObject
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
CTrail* m_pTrailCom = { nullptr };
|
||||
|
||||
_string m_strTrailDiffuseName = {};
|
||||
_string m_strTrailNoiseName = {};
|
||||
_string m_strTrailMaskingName = {};
|
||||
_string m_strTrailDistortionName = {};
|
||||
_wstring m_strTrailDiffuseName = {};
|
||||
_wstring m_strTrailNoiseName = {};
|
||||
_wstring m_strTrailMaskingName = {};
|
||||
_wstring m_strTrailDistortionName = {};
|
||||
|
||||
_string m_strPath = {};
|
||||
_string m_strName = {};
|
||||
|
||||
BIN
Binary file not shown.
@@ -1526,8 +1526,11 @@ VS_OUT3D VS_MAIN3D(VS_IN3D In)
|
||||
|
||||
float3 vertexPos = worldCenter + dirRight + dirUp;
|
||||
|
||||
float2 TexCoord = In.vTexcoord;
|
||||
TexCoord.y = 1.f - TexCoord.y;
|
||||
|
||||
Out.vPosition = mul(float4(vertexPos, 1.f), matViewProj);
|
||||
Out.vTexcoord = 1.f - In.vTexcoord;
|
||||
Out.vTexcoord = TexCoord;
|
||||
return Out;
|
||||
}
|
||||
|
||||
|
||||
@@ -2130,6 +2130,12 @@ HRESULT CLoader::Loading_For_ObjectViewer()
|
||||
vector<future<pair<_wstring, CModel*>*>> futures = {};
|
||||
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_SM_Bottle_EmptyCapOff_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM_LOCAL, "C:/MeshTable\\Game\\Cinematics\\Props\\SM_Bottle_EmptyCapOff.fbx", XMMatrixIdentity())))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
#pragma region BODY
|
||||
|
||||
futures.emplace_back(Deferred_ModelLoad(
|
||||
|
||||
@@ -288,6 +288,14 @@ _vector CCharacter_Controller::Get_FootPosition()
|
||||
return XMVectorSet((_float)pxLVecfootPos.x, (_float)pxLVecfootPos.y, (_float)pxLVecfootPos.z, 1.f );
|
||||
}
|
||||
|
||||
_vector CCharacter_Controller::Get_HeadPosition()
|
||||
{
|
||||
PSX::PxExtendedVec3 pxLVecfootPos = m_pController->getFootPosition();
|
||||
PSX::PxExtendedVec3 pxVPos = m_pController->getPosition();
|
||||
_float pxVecDiff = (_float)(pxVPos - pxLVecfootPos).y;
|
||||
return XMVectorSet((_float)pxVPos.x, (_float)pxVPos.y + pxVecDiff, (_float)pxVPos.z, 1.f);
|
||||
}
|
||||
|
||||
HRESULT CCharacter_Controller::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
|
||||
@@ -336,6 +336,16 @@ HRESULT CInstance_Model::Save_InstanceModel(HANDLE hFile)
|
||||
|
||||
#endif
|
||||
|
||||
HRESULT CInstance_Model::Load_InstanceModel(INSTANCE_DESC InstanceDesc)
|
||||
{
|
||||
|
||||
m_InstanceDesc = InstanceDesc;
|
||||
|
||||
Change_NumInstance();
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CInstance_Model::Load_InstanceModel(HANDLE hFile)
|
||||
{
|
||||
DWORD dwByte = {};
|
||||
|
||||
@@ -181,6 +181,27 @@ _float3 CRigidBody_Dynamic::Get_FootPosition()
|
||||
return vOut;
|
||||
}
|
||||
|
||||
_float3 CRigidBody_Dynamic::Get_HeadPosition()
|
||||
{
|
||||
PSX::PxTransform pxTransform = m_pRigidBody->getGlobalPose();
|
||||
switch (m_eActorType)
|
||||
{
|
||||
case Engine::ACTOR::BOX:
|
||||
pxTransform.p.y += m_vhalfGeometryInfo.y;
|
||||
break;
|
||||
case Engine::ACTOR::CAPSULE:
|
||||
pxTransform.p.y += m_vhalfGeometryInfo.y * 0.5f + m_vhalfGeometryInfo.x;
|
||||
break;
|
||||
case Engine::ACTOR::SPHERE:
|
||||
pxTransform.p.y += m_vhalfGeometryInfo.x;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
_float3 vOut = { pxTransform.p.x , pxTransform.p.y , pxTransform.p.z };
|
||||
return vOut;
|
||||
}
|
||||
|
||||
PSX::PxTransform CRigidBody_Dynamic::Get_FootPositionPxTransform()
|
||||
{
|
||||
PSX::PxTransform pxTransform = m_pRigidBody->getGlobalPose();
|
||||
|
||||
@@ -272,6 +272,12 @@ HRESULT CTrail::Save_Trail(HANDLE hFile)
|
||||
}
|
||||
#endif
|
||||
|
||||
HRESULT CTrail::Load_Trail(TRAIL_DESC TrailDesc)
|
||||
{
|
||||
m_TrailDesc = TrailDesc;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CTrail::Load_Trail(HANDLE hFile)
|
||||
{
|
||||
DWORD dwByte(0);
|
||||
|
||||
@@ -58,6 +58,7 @@ class ENGINE_DLL CCharacter_Controller final :
|
||||
void Set_Position(_fvector vNewPos); // 순간이동
|
||||
_vector Get_Position();
|
||||
_vector Get_FootPosition(); // ContactOffset이 고려된 발바닥 위치( 실제보다 바닥 위치가 더 아래에 위치한다는 뜻 )
|
||||
_vector Get_HeadPosition();
|
||||
|
||||
PSX::PxControllerCollisionFlags Get_CollisionFlags();
|
||||
void Resize_Volume(_float fHeight); // 높이를 수정하고 바닥에 붙임
|
||||
|
||||
@@ -255,6 +255,7 @@ class ENGINE_DLL CInstance_Model final : public CComponent
|
||||
//HRESULT Bind_Value_Buffer(class CShader* pShader, const _char* pConstantName);
|
||||
HRESULT Bind_OutPut_SRV_VS(_uint Index, _uint iBufferIndex);
|
||||
INSTANCE_DESC Get_EffectValue() { return m_InstanceDesc; }
|
||||
HRESULT Load_InstanceModel(INSTANCE_DESC InstanceDesc);
|
||||
HRESULT Load_InstanceModel(HANDLE hFile);
|
||||
HRESULT Bind_CS_Output(_uint Index, _uint iBufferIndex);
|
||||
private:
|
||||
|
||||
@@ -50,6 +50,7 @@ class ENGINE_DLL CRigidBody_Dynamic : public CRigidBody
|
||||
|
||||
_vector Get_Position();
|
||||
_float3 Get_FootPosition();
|
||||
_float3 Get_HeadPosition();
|
||||
PSX::PxTransform Get_FootPositionPxTransform();
|
||||
private:
|
||||
PSX::PxRigidDynamic* m_pRigidBody = { nullptr }; // 실제 시뮬레이션을 도는 본체
|
||||
|
||||
@@ -25,6 +25,7 @@ class ENGINE_DLL CTrail final :
|
||||
#ifdef _DEBUG
|
||||
HRESULT Save_Trail(HANDLE hFile);
|
||||
#endif
|
||||
HRESULT Load_Trail(TRAIL_DESC TrailDesc);
|
||||
HRESULT Load_Trail(HANDLE hFile);
|
||||
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user