Merge branch 'Develope' into Bloom
This commit is contained in:
@@ -178,6 +178,7 @@
|
||||
<ClInclude Include="..\Public\Client_Macro.h" />
|
||||
<ClInclude Include="..\Public\Client_Struct.h" />
|
||||
<ClInclude Include="..\Public\Goblin.h" />
|
||||
<ClInclude Include="..\public\InstancedProp.h" />
|
||||
<ClInclude Include="..\public\MapContainer.h" />
|
||||
<ClInclude Include="..\public\MapObject_Collision.h" />
|
||||
<ClInclude Include="..\public\MapObject_Render.h" />
|
||||
@@ -235,6 +236,7 @@
|
||||
<ClCompile Include="..\Private\CamPosition_Arm.cpp" />
|
||||
<ClCompile Include="..\Private\Goblin.cpp" />
|
||||
<ClCompile Include="..\Private\Goblin_States.cpp" />
|
||||
<ClCompile Include="..\private\InstancedProp.cpp" />
|
||||
<ClCompile Include="..\private\MapContainer.cpp" />
|
||||
<ClCompile Include="..\private\MapObject_Collision.cpp" />
|
||||
<ClCompile Include="..\private\MapObject_Render.cpp" />
|
||||
|
||||
@@ -184,6 +184,9 @@
|
||||
<ClInclude Include="..\public\Terrain.h">
|
||||
<Filter>02.GameObjects\Environment\Terrain</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\public\InstancedProp.h">
|
||||
<Filter>02.GameObjects\Environment\02.InstancedProp</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Image Include="Client.ico">
|
||||
@@ -440,6 +443,9 @@
|
||||
<Filter Include="02.GameObjects\Environment\Terrain">
|
||||
<UniqueIdentifier>{7db61780-d774-4a91-a429-2fb7634e43b3}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Environment\02.InstancedProp">
|
||||
<UniqueIdentifier>{4ef15d06-4520-4d55-ab49-1ae7179f145b}</UniqueIdentifier>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="Client.cpp">
|
||||
@@ -613,6 +619,9 @@
|
||||
<ClCompile Include="..\private\Terrain.cpp">
|
||||
<Filter>02.GameObjects\Environment\Terrain</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\private\InstancedProp.cpp">
|
||||
<Filter>02.GameObjects\Environment\02.InstancedProp</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ResourceCompile Include="Client.rc">
|
||||
|
||||
@@ -0,0 +1,184 @@
|
||||
#include "pch.h"
|
||||
#include "InstancedProp.h"
|
||||
#include "VIBuffer_Model_Instance.h"
|
||||
|
||||
CInstancedProp::CInstancedProp(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CGameObject(pDevice, pContext)
|
||||
{
|
||||
}
|
||||
|
||||
CInstancedProp::CInstancedProp(const CInstancedProp& rhs)
|
||||
:CGameObject(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
void CInstancedProp::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
}
|
||||
|
||||
void CInstancedProp::Update(_float fTimeDelta)
|
||||
{
|
||||
}
|
||||
|
||||
void CInstancedProp::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
|
||||
}
|
||||
|
||||
HRESULT CInstancedProp::Render()
|
||||
{
|
||||
if (FAILED(Bind_ShaderResources()))
|
||||
return E_FAIL;
|
||||
|
||||
for (_uint i = 0; i < m_iNumMesh; i++)
|
||||
{
|
||||
if (FAILED(m_pVIBufferInstanceCom->Bind_Matrial(m_pShaderCom, i)))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(m_pShaderCom->Begin(0)))
|
||||
return E_FAIL;
|
||||
|
||||
m_pVIBufferInstanceCom->Render(i);
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CInstancedProp::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CInstancedProp::Initialize(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Initialize(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
m_iNumMesh = m_pVIBufferInstanceCom->Get_NumMesh();
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CInstancedProp::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
INSTANCE_PROP_DESC* pDesc = static_cast<INSTANCE_PROP_DESC*>(pArg);
|
||||
|
||||
/* Com_VIBuffer_Instance_Model */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, pDesc->strPrototypeTag,
|
||||
reinterpret_cast<CComponent**>(&m_pVIBufferInstanceCom))))
|
||||
return E_FAIL;
|
||||
|
||||
/* Laod Instance Data */
|
||||
if(FAILED(Load_InstancedProp(pDesc->strInstanceDataPath.c_str())))
|
||||
return E_FAIL;
|
||||
|
||||
/* Com_Shader */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_INSTANCE_PROP_MODEL,
|
||||
reinterpret_cast<CComponent**>(&m_pShaderCom))))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CInstancedProp::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;
|
||||
}
|
||||
|
||||
HRESULT CInstancedProp::Load_InstancedProp(const _char* pFilePath)
|
||||
{
|
||||
ifstream FileIn(pFilePath, ios::binary);
|
||||
|
||||
if (!FileIn.is_open())
|
||||
{
|
||||
MSG_BOX("Failed to Load InstancedProp File");
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
vector<_float4x4> WorldMatrices = {};
|
||||
|
||||
_uint iNumWorldMatrix = 0;
|
||||
|
||||
FileIn.read(reinterpret_cast<char*>(&iNumWorldMatrix), sizeof(_uint));
|
||||
WorldMatrices.reserve(iNumWorldMatrix);
|
||||
|
||||
_float4x4 WorldMatrix = {};
|
||||
FileIn.read(reinterpret_cast<char*>(&WorldMatrix), sizeof(_float4x4));
|
||||
|
||||
for (_uint i = 1; i < iNumWorldMatrix; ++i)
|
||||
{
|
||||
FileIn.read(reinterpret_cast<char*>(&WorldMatrix), sizeof(_float4x4));
|
||||
|
||||
WorldMatrices.push_back(WorldMatrix);
|
||||
}
|
||||
FileIn.close();
|
||||
|
||||
if (FAILED(m_pVIBufferInstanceCom->Load_WorldData(WorldMatrices)))
|
||||
{
|
||||
MSG_BOX("Failed to Load World Matrices to VIBuffer Instance");
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CInstancedProp* CInstancedProp::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CInstancedProp* pInstance = new CInstancedProp(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CInstancedProp");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
CGameObject* CInstancedProp::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CInstancedProp* pInstance = new CInstancedProp(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CInstancedProp");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CInstancedProp::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pShaderCom);
|
||||
SAFE_RELEASE(m_pVIBufferInstanceCom);
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
void CInstancedProp::Describe_Entity()
|
||||
{
|
||||
}
|
||||
#endif // _DEBUG
|
||||
@@ -14,6 +14,7 @@
|
||||
#include "Dummy_PhysXPlayable.h"
|
||||
#include "Goblin.h"
|
||||
#include "Terrain.h"
|
||||
#include "InstancedProp.h"
|
||||
|
||||
CLevel_GamePlay::CLevel_GamePlay(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID)
|
||||
: CLevel{ pDevice, pContext, ENUM_CLASS(eLevelID) }
|
||||
@@ -100,7 +101,26 @@ HRESULT CLevel_GamePlay::Ready_Background()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
/* Map Containters */
|
||||
/* 테스트용 맵 */
|
||||
CInfoInstance::GetInstance()->Load_MapObjects("ClientTest");
|
||||
/* 전체 맵 */
|
||||
// CInfoInstance::GetInstance()->Load_MapObjects("Map1124");
|
||||
|
||||
|
||||
CInstancedProp::INSTANCE_PROP_DESC Desc = {};
|
||||
|
||||
/* InstanceProp Oak_Tree*/
|
||||
Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_SM_OakTree_MedA";
|
||||
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/OakTree_MedA.bin";
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc)))
|
||||
return E_FAIL;
|
||||
|
||||
/* BearBerry */
|
||||
Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_SM_BearBerry_A";
|
||||
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/BearBerry_A.bin";
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc)))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -43,9 +43,11 @@
|
||||
|
||||
#include "Terrain.h"
|
||||
#include "VIBuffer_Terrain.h"
|
||||
#include "VIBuffer_Model_Instance.h"
|
||||
#include "BuildingContainer.h"
|
||||
#include "MapObject_Render.h"
|
||||
#include "MapObject_Collision.h"
|
||||
#include "InstancedProp.h"
|
||||
|
||||
#pragma endregion
|
||||
|
||||
@@ -284,6 +286,12 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_INSTANCE_PROP_MODEL,
|
||||
CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_VtxWorldModelInstance.hlsl"),
|
||||
VTX_MODEL_INSTANCE_MODEL::Elements, VTX_MODEL_INSTANCE_MODEL::iNumElements)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
// Heavy Wall
|
||||
CRigidBody_Dynamic::RIGIDBODY_PROTOTYPE_DYNAMIC_DESC Desc{};
|
||||
{
|
||||
@@ -402,7 +410,7 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
|
||||
_uint iLoadCount = 5;
|
||||
vector<vector<FOLDER_LOAD*>*> Contents(iLoadCount);
|
||||
|
||||
{
|
||||
{ /* Terrain */
|
||||
jobFutures.emplace_back(Deferred_FolderLoad(
|
||||
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Collision/Terrain",
|
||||
@@ -436,6 +444,255 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
&Contents[jobFutures.size()]
|
||||
));
|
||||
}
|
||||
//{ /* TScrolls */
|
||||
// jobFutures.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_TScrolls/Meshes",
|
||||
// ".bin", false,
|
||||
// &Contents[jobFutures.size()]
|
||||
// ));
|
||||
// jobFutures.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_TScrolls/Collisions",
|
||||
// ".bin", false,
|
||||
// &Contents[jobFutures.size()]
|
||||
// ));
|
||||
//}
|
||||
//{ /* 3BroomStick*/
|
||||
// jobFutures.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_ThreeBroomsticks/Meshes",
|
||||
// ".bin", false,
|
||||
// &Contents[jobFutures.size()]
|
||||
// ));
|
||||
// jobFutures.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_ThreeBroomsticks/Collision",
|
||||
// ".bin", false,
|
||||
// &Contents[jobFutures.size()]
|
||||
// ));
|
||||
// jobFutures.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_ThreeBroomsticks/Meshes/3Broom_Kit",
|
||||
// ".bin", false,
|
||||
// &Contents[jobFutures.size()]
|
||||
// ));
|
||||
//}
|
||||
|
||||
|
||||
//{ /* BLDG_QuidditchShop */
|
||||
// jobFutures.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_QuidditchShop/Meshes",
|
||||
// ".bin", false,
|
||||
// &Contents[jobFutures.size()]
|
||||
// ));
|
||||
// jobFutures.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_QuidditchShop/Collision",
|
||||
// ".bin", false,
|
||||
// &Contents[jobFutures.size()]
|
||||
// ));
|
||||
//}
|
||||
//{ /* BLDG_HogsheadInn */
|
||||
// jobFutures.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_HogsheadInn/Meshes",
|
||||
// ".bin", false,
|
||||
// &Contents[jobFutures.size()]
|
||||
// ));
|
||||
// jobFutures.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_HogsheadInn/Collision",
|
||||
// ".bin", false,
|
||||
// &Contents[jobFutures.size()]
|
||||
// ));
|
||||
//}
|
||||
//{ /* BLDG_Honeydukes */
|
||||
// jobFutures.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Honeydukes/Meshes",
|
||||
// ".bin", false,
|
||||
// &Contents[jobFutures.size()]
|
||||
// ));
|
||||
// jobFutures.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Honeydukes/Collision",
|
||||
// ".bin", false,
|
||||
// &Contents[jobFutures.size()]
|
||||
// ));
|
||||
//}
|
||||
//{ /* BLDG_OwlPost */
|
||||
// jobFutures.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_OwlPost/Meshes",
|
||||
// ".bin", false,
|
||||
// &Contents[jobFutures.size()]
|
||||
// ));
|
||||
// jobFutures.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_OwlPost/Collision",
|
||||
// ".bin", false,
|
||||
// &Contents[jobFutures.size()]
|
||||
// ));
|
||||
//}
|
||||
//{ /* BLDG_TeaShop */
|
||||
// jobFutures.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_TeaShop/Meshes",
|
||||
// ".bin", false,
|
||||
// &Contents[jobFutures.size()]
|
||||
// ));
|
||||
// jobFutures.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_TeaShop/Collision",
|
||||
// ".bin", false,
|
||||
// &Contents[jobFutures.size()]
|
||||
// ));
|
||||
//}
|
||||
//{ /* BLDG_Zonkos */
|
||||
// jobFutures.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Zonkos/Meshes",
|
||||
// ".bin", false,
|
||||
// &Contents[jobFutures.size()]
|
||||
// ));
|
||||
// jobFutures.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Zonkos/Collision",
|
||||
// ".bin", false,
|
||||
// &Contents[jobFutures.size()]
|
||||
// ));
|
||||
//}
|
||||
//{ /* BLDG_DB_GR */
|
||||
// jobFutures.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_DB_GR/Meshes",
|
||||
// ".bin", false,
|
||||
// &Contents[jobFutures.size()]
|
||||
// ));
|
||||
// jobFutures.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_DB_GR/Collision",
|
||||
// ".bin", false,
|
||||
// &Contents[jobFutures.size()]
|
||||
// ));
|
||||
//}
|
||||
//{ /* BLDG_Potions */
|
||||
// jobFutures.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Potions/Meshes",
|
||||
// ".bin", false,
|
||||
// &Contents[jobFutures.size()]
|
||||
// ));
|
||||
// jobFutures.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Potions/Collisions",
|
||||
// ".bin", false,
|
||||
// &Contents[jobFutures.size()]
|
||||
// ));
|
||||
//}
|
||||
//{ /* BLDG_Salon */
|
||||
// jobFutures.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Salon/Meshes",
|
||||
// ".bin", false,
|
||||
// &Contents[jobFutures.size()]
|
||||
// ));
|
||||
// jobFutures.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Salon/Collision",
|
||||
// ".bin", false,
|
||||
// &Contents[jobFutures.size()]
|
||||
// ));
|
||||
//}
|
||||
//{ /* Hengist_Tree */
|
||||
// jobFutures.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Meshes/Vegetation/Hengist_Tree",
|
||||
// ".bin", false,
|
||||
// &Contents[jobFutures.size()]
|
||||
// ));
|
||||
// jobFutures.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Collision/Vegetation",
|
||||
// ".bin", false,
|
||||
// &Contents[jobFutures.size()]
|
||||
// ));
|
||||
//}
|
||||
//{ /* GEN A*/
|
||||
// jobFutures.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_A/Meshes",
|
||||
// ".bin", false,
|
||||
// &Contents[jobFutures.size()]
|
||||
// ));
|
||||
// jobFutures.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_A/Collision",
|
||||
// ".bin", false,
|
||||
// &Contents[jobFutures.size()]
|
||||
// ));
|
||||
//}
|
||||
//{ /* GEN B*/
|
||||
// jobFutures.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_B/Meshes",
|
||||
// ".bin", false,
|
||||
// &Contents[jobFutures.size()]
|
||||
// ));
|
||||
// jobFutures.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_B/Collision",
|
||||
// ".bin", false,
|
||||
// &Contents[jobFutures.size()]
|
||||
// ));
|
||||
//}
|
||||
//{ /* GEN C*/
|
||||
// jobFutures.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_C/Meshes",
|
||||
// ".bin", false,
|
||||
// &Contents[jobFutures.size()]
|
||||
// ));
|
||||
// jobFutures.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_C/Collision",
|
||||
// ".bin", false,
|
||||
// &Contents[jobFutures.size()]
|
||||
// ));
|
||||
//}
|
||||
//{ /* GEN E*/
|
||||
// jobFutures.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_E/Meshes",
|
||||
// ".bin", false,
|
||||
// &Contents[jobFutures.size()]
|
||||
// ));
|
||||
// jobFutures.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_E/Collision",
|
||||
// ".bin", false,
|
||||
// &Contents[jobFutures.size()]
|
||||
// ));
|
||||
//}
|
||||
//{ /* GEN F*/
|
||||
// jobFutures.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_F/Meshes",
|
||||
// ".bin", false,
|
||||
// &Contents[jobFutures.size()]
|
||||
// ));
|
||||
// jobFutures.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_F/Collision",
|
||||
// ".bin", false,
|
||||
// &Contents[jobFutures.size()]
|
||||
// ));
|
||||
//}
|
||||
//{ /* GEN G*/
|
||||
// jobFutures.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_G/Meshes",
|
||||
// ".bin", false,
|
||||
// &Contents[jobFutures.size()]
|
||||
// ));
|
||||
// jobFutures.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_G/Collision",
|
||||
// ".bin", false,
|
||||
// &Contents[jobFutures.size()]
|
||||
// ));
|
||||
//}
|
||||
//{ /* GEN H*/
|
||||
// jobFutures.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_H/Meshes",
|
||||
// ".bin", false,
|
||||
// &Contents[jobFutures.size()]
|
||||
// ));
|
||||
// jobFutures.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_H/Collision",
|
||||
// ".bin", false,
|
||||
// &Contents[jobFutures.size()]
|
||||
// ));
|
||||
//}
|
||||
//{ /* GEN J*/
|
||||
// jobFutures.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_J/Meshes",
|
||||
// ".bin", false,
|
||||
// &Contents[jobFutures.size()]
|
||||
// ));
|
||||
// jobFutures.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_J/Collision",
|
||||
// ".bin", false,
|
||||
// &Contents[jobFutures.size()]
|
||||
// ));
|
||||
//}
|
||||
}
|
||||
|
||||
|
||||
for (auto& jobFuture : jobFutures)
|
||||
{
|
||||
@@ -484,11 +741,26 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CSkyBox>(g_iStaticLevel, CSkyBox::Create(m_pDevice, m_pContext))))
|
||||
return E_FAIL;
|
||||
|
||||
#pragma region MAP PROTOTYPE
|
||||
/* For.Prototype_Component_VIBuffer_Terrain */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Terrain"),
|
||||
CVIBuffer_Terrain::Create(m_pDevice, m_pContext, "Hogsmeade_HeightMap.bin", 512, 512))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_Component_VIBuffer_Model_Instancel_SM_OakTree_MedA */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_SM_OakTree_MedA"),
|
||||
CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
|
||||
"../Bin/Resources/Models/InstanceProp/SM_OakTree_MedA.bin",
|
||||
"../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_Component_VIBuffer_Model_Instancel_SM_BearBerry_A */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_SM_BearBerry_A"),
|
||||
CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
|
||||
"../Bin/Resources/Models/InstanceProp/SM_BearBerry_A.bin",
|
||||
"../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_GameObject_Terrain */
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CTerrain>(g_iStaticLevel, CTerrain::Create(m_pDevice, m_pContext))))
|
||||
return E_FAIL;
|
||||
@@ -505,6 +777,11 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CMapObject_Collision>(g_iStaticLevel, CMapObject_Collision::Create(m_pDevice, m_pContext))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_GameObject_CInstancedProp */
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CInstancedProp>(g_iStaticLevel, CInstancedProp::Create(m_pDevice, m_pContext))))
|
||||
return E_FAIL;
|
||||
#pragma endregion // MAP PROTOTYPE
|
||||
|
||||
/* For.Prototype_Component_FSM */
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CFSM>(g_iStaticLevel, CFSM::Create(m_pDevice, m_pContext))))
|
||||
return E_FAIL;
|
||||
@@ -641,6 +918,11 @@ void APIENTRY Deferred_FolderLoad_Main(ID3D11Device* pDevice, ID3D11DeviceContex
|
||||
return;
|
||||
}
|
||||
|
||||
if (!filesystem::exists(pDirectoryPath)) {
|
||||
MSG_BOX(" 경로 이상해 ");
|
||||
return;
|
||||
}
|
||||
|
||||
*OutContents = new vector<FOLDER_LOAD*>;
|
||||
for (const auto& file : filesystem::directory_iterator(pDirectoryPath))
|
||||
{
|
||||
@@ -648,7 +930,7 @@ void APIENTRY Deferred_FolderLoad_Main(ID3D11Device* pDevice, ID3D11DeviceContex
|
||||
if (strcmp(file.path().extension().string().c_str(), pFileExt)) { continue; }
|
||||
|
||||
FOLDER_LOAD* pContents = new FOLDER_LOAD;
|
||||
pContents->bLoadTags = bUseTag;
|
||||
|
||||
{ // FOLDER_LOAD
|
||||
_char szFilePath[MAX_PATH] = {};
|
||||
strcpy_s(szFilePath, MAX_PATH, file.path().string().c_str());
|
||||
|
||||
@@ -22,6 +22,20 @@
|
||||
|
||||
#include "Bombard.h"
|
||||
|
||||
template<typename T>
|
||||
void CPlayer::Spawn_Effect()
|
||||
{
|
||||
CPartObject::PARTOBJECT_DESC PartsDesc{};
|
||||
|
||||
PartsDesc.pParentTransform = m_pTransformCom;
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<T>(NEXT_LEVEL, NEXT_LEVEL, TEXT("Layer_Effect"), &PartsDesc, this, nullptr))) {
|
||||
assert(false);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#pragma region States
|
||||
void CPlayer::TestKeyInput(_float fTimeDelta)
|
||||
{
|
||||
@@ -64,6 +78,7 @@ HRESULT CPlayer::InputAction()
|
||||
|| m_pGameInstance->Key_Down(DIK_LSHIFT)
|
||||
|| m_pGameInstance->Key_Down(DIK_C)
|
||||
|| m_pGameInstance->Key_Down(DIK_V)
|
||||
|| m_pGameInstance->Key_Down(DIK_Z)
|
||||
)
|
||||
{
|
||||
return S_OK;
|
||||
@@ -203,10 +218,12 @@ HRESULT CPlayer::Behavior_IdleExitCheck(_float fTimeDelta)
|
||||
}
|
||||
else if (absDir < XMConvertToRadians(135.f))
|
||||
{
|
||||
if (cross > 0.f)
|
||||
if (cross > 0.f) {
|
||||
pairAnimInfo = m_Animation[STATEANIM::IDLE_TURN_L];
|
||||
else
|
||||
pairAnimInfo = m_Animation[STATEANIM::IDLE_TURN_R];
|
||||
}
|
||||
else {
|
||||
pairAnimInfo = m_Animation[STATEANIM::IDLE_TURN_R];
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -214,7 +231,7 @@ HRESULT CPlayer::Behavior_IdleExitCheck(_float fTimeDelta)
|
||||
}
|
||||
|
||||
m_pFSM->Enable_State(FSMSTATE::IDLE_TURN);
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second,m_fAmount);
|
||||
}
|
||||
|
||||
return E_FAIL;
|
||||
@@ -291,18 +308,12 @@ void CPlayer::Behavior_MoveEnter()
|
||||
m_pFSM->Enable_State(FSMSTATE::JOG);
|
||||
m_bSprintToggle = false;
|
||||
m_bWalkToggle = false;
|
||||
if (bFoward)
|
||||
{
|
||||
pairAnimInfo = m_Animation[STATEANIM::JOG_FWD];
|
||||
}
|
||||
else if (bBackward)
|
||||
{
|
||||
pairAnimInfo = m_Animation[STATEANIM::JOG_BWD];
|
||||
}
|
||||
pairAnimInfo = m_Animation[STATEANIM::JOG_FWD];
|
||||
m_bRatio = true;
|
||||
}
|
||||
}
|
||||
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, m_fAmount);
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, m_fAmount, m_bRatio);
|
||||
m_fAmount = 1.f;
|
||||
}
|
||||
|
||||
@@ -335,6 +346,9 @@ HRESULT CPlayer::Behavior_MoveExitCheck()
|
||||
else if (m_pGameInstance->Key_Down(DIK_V)) {
|
||||
m_pFSM->Change_State(FSMSTATE::COMBAT);
|
||||
}
|
||||
else if (m_pGameInstance->Key_Down(DIK_Z)) {
|
||||
m_pFSM->Change_State(FSMSTATE::COMBAT);
|
||||
}
|
||||
else if (m_pGameInstance->Key_Down(DIK_LSHIFT)) {
|
||||
m_bSprintToggle = !m_bSprintToggle;
|
||||
m_bWalkToggle = false;
|
||||
@@ -418,20 +432,27 @@ HRESULT CPlayer::Behavior_MoveExitCheck()
|
||||
if (absDir <= XMConvertToRadians(80.f)) {
|
||||
pairAnimInfo = m_Animation[STATEANIM::JOG_FWD];
|
||||
}
|
||||
else if (absDir < XMConvertToRadians(170.f)) {
|
||||
else if (absDir < XMConvertToRadians(160.f)) {
|
||||
if (cross > 0)
|
||||
{
|
||||
pairAnimInfo = m_Animation[STATEANIM::JOG_LEFT];
|
||||
m_fAmount = 0.2f;
|
||||
m_bRatio = true;
|
||||
}
|
||||
else
|
||||
else {
|
||||
pairAnimInfo = m_Animation[STATEANIM::JOG_RIGHT];
|
||||
|
||||
m_fAmount = 0.2f;
|
||||
m_bRatio = true;
|
||||
}
|
||||
}
|
||||
else {
|
||||
pairAnimInfo = m_Animation[STATEANIM::JOG_BWD];
|
||||
m_fAmount = 0.2f;
|
||||
m_bRatio = true;
|
||||
}
|
||||
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second,m_fAmount, m_bRatio);
|
||||
m_fAmount = 1.f;
|
||||
}
|
||||
}
|
||||
return S_OK;
|
||||
@@ -615,7 +636,10 @@ void CPlayer::Behavior_CombatEnter()
|
||||
else if (m_pGameInstance->Key_Down(DIK_V)) {
|
||||
m_pFSM->Enable_State(FSMSTATE::MAPHELP);
|
||||
pairAnimInfo = m_Animation[STATEANIM::MAPHELP];
|
||||
|
||||
}
|
||||
else if (m_pGameInstance->Key_Down(DIK_Z)) {
|
||||
m_pFSM->Enable_State(FSMSTATE::ANCIENT_THROW);
|
||||
pairAnimInfo = m_Animation[STATEANIM::ANCIENT_THROW];
|
||||
}
|
||||
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
@@ -667,6 +691,11 @@ HRESULT CPlayer::Behavior_CombatExitCheck()
|
||||
pairAnimInfo = m_Animation[STATEANIM::MAPHELP];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
}
|
||||
else if (m_pGameInstance->Key_Down(DIK_Z)) {
|
||||
m_pFSM->Enable_State(FSMSTATE::ANCIENT_THROW);
|
||||
pairAnimInfo = m_Animation[STATEANIM::ANCIENT_THROW];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
}
|
||||
}
|
||||
|
||||
if (m_pFSM->IsEnable(FSMSTATE::SPELL) && IsCurrentKeyFrame("Combat"))
|
||||
@@ -679,16 +708,7 @@ HRESULT CPlayer::Behavior_CombatExitCheck()
|
||||
{
|
||||
/* TODO 임시 방편 */
|
||||
pairAnimInfo = m_Animation[STATEANIM::ACCIO];
|
||||
|
||||
CPartObject::PARTOBJECT_DESC PartsDesc{};
|
||||
|
||||
PartsDesc.pParentTransform = m_pTransformCom;
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CBombard>(NEXT_LEVEL, NEXT_LEVEL, TEXT("Layer_Effect"), &PartsDesc, this, nullptr))) {
|
||||
assert(false);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
break;
|
||||
case STATEANIM::DESCENDO:
|
||||
@@ -698,15 +718,30 @@ HRESULT CPlayer::Behavior_CombatExitCheck()
|
||||
break;
|
||||
}
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
m_eSpell = STATEANIM::END;
|
||||
m_pModelCom->Anim_Event(0.1f, m_Animation[STATEANIM::ACCIO].first, [this]() {
|
||||
Spawn_Effect<CBombard>();
|
||||
m_eSpell = STATEANIM::END;
|
||||
return E_FAIL;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (m_pFSM->IsEnable(FSMSTATE::ANCIENT_THROW))
|
||||
{
|
||||
if (SUCCEEDED(InputMove()) && IsCurrentKeyFrame("Throw")) {
|
||||
m_pFSM->Change_State(FSMSTATE::MOVE);
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (SUCCEEDED(InputMove()) && IsCurrentKeyFrame("Combat")) {
|
||||
m_pFSM->Change_State(FSMSTATE::MOVE);
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
|
||||
if (SUCCEEDED(InputMove()) && IsCurrentKeyFrame("Combat")) {
|
||||
m_pFSM->Change_State(FSMSTATE::MOVE);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (m_pModelCom->IsFinishedAnim()) {
|
||||
m_pFSM->Change_State(FSMSTATE::IDLE);
|
||||
@@ -718,7 +753,7 @@ HRESULT CPlayer::Behavior_CombatExitCheck()
|
||||
|
||||
void CPlayer::Behavior_CombatExit()
|
||||
{
|
||||
m_pFSM->Disable_State(FSMSTATE::COMBAT | FSMSTATE::LIGHT_ATTACK | FSMSTATE::SPELL | FSMSTATE::SKILL | FSMSTATE::SKILL2 | FSMSTATE::MAPHELP);
|
||||
m_pFSM->Disable_State(FSMSTATE::COMBAT | FSMSTATE::LIGHT_ATTACK | FSMSTATE::SPELL | FSMSTATE::SKILL | FSMSTATE::SKILL2 | FSMSTATE::MAPHELP | FSMSTATE::ANCIENT_THROW);
|
||||
}
|
||||
|
||||
void CPlayer::Add_FSM()
|
||||
@@ -745,9 +780,13 @@ void CPlayer::Add_FSM()
|
||||
_vector xmvPlayerDir = { };
|
||||
|
||||
{
|
||||
_float3 fMove = m_pGameInstance->Get_MouseMove();
|
||||
m_pTransformCom->Turn(m_pTransformCom->Get_State(STATE::UP), fTimeDelta * fMove.x* 0.08f);
|
||||
m_pTransformCom->Turn(-m_pTransformCom->Get_State(STATE::UP), fTimeDelta * fMove.y * 0.08f);
|
||||
if (!m_pFSM->IsEnable(FSMSTATE::STOP))
|
||||
{
|
||||
_float3 fMove = m_pGameInstance->Get_MouseMove();
|
||||
m_pTransformCom->Turn(m_pTransformCom->Get_State(STATE::UP), fTimeDelta * fMove.x * 0.05f);
|
||||
m_pTransformCom->Turn(-m_pTransformCom->Get_State(STATE::UP), fTimeDelta * fMove.y * 0.05f);
|
||||
}
|
||||
|
||||
|
||||
if (m_pGameInstance->Key_Pressing(DIK_A)) {
|
||||
xmvPlayerDir -= xmvRight;
|
||||
@@ -837,7 +876,7 @@ void CPlayer::Set_Anim()
|
||||
m_Animation[STATEANIM::JOG_FWD] = { 167,true };
|
||||
m_Animation[STATEANIM::JOG_LEFT] = { 164,false };
|
||||
m_Animation[STATEANIM::JOG_RIGHT] = { 185,false };
|
||||
m_Animation[STATEANIM::JOG_BWD] = { 154,false };
|
||||
m_Animation[STATEANIM::JOG_BWD] = { 154,false };//176
|
||||
m_Animation[STATEANIM::JOG_STOP] = { 289,false };
|
||||
|
||||
m_Animation[STATEANIM::JUMP] = { 205,false };
|
||||
@@ -863,6 +902,7 @@ void CPlayer::Set_Anim()
|
||||
m_Animation[STATEANIM::LUMOS] = { 782,false };
|
||||
m_Animation[STATEANIM::DISILLUSION_ENTER] = { 585,false };
|
||||
m_Animation[STATEANIM::DISILLUSION_EXIT] = { 586,false };
|
||||
m_Animation[STATEANIM::ANCIENT_THROW] = { 843,false };
|
||||
}
|
||||
#pragma endregion State
|
||||
|
||||
|
||||
@@ -10,15 +10,16 @@ namespace Client {
|
||||
|
||||
|
||||
#pragma region FX_NAME
|
||||
#define FX_ANIMMESH TEXT("FX_ANIMMESH")
|
||||
#define FX_MESH TEXT("FX_MESH")
|
||||
#define FX_POSTEX TEXT("FX_POSTEX")
|
||||
#define FX_NORTEX TEXT("FX_NORTEX")
|
||||
#define FX_CELL TEXT("FX_CELL")
|
||||
#define FX_PARTICLE TEXT("FX_PARTICLE")
|
||||
#define FX_INSTANCE_MODEL TEXT("FX_INSTANCE_MODEL")
|
||||
#define FX_UIEDITOR TEXT("FX_UIEDITOR")
|
||||
#define FX_UIINSTANCE TEXT("FX_UIINSTANCE")
|
||||
#define FX_ANIMMESH TEXT("FX_ANIMMESH")
|
||||
#define FX_MESH TEXT("FX_MESH")
|
||||
#define FX_POSTEX TEXT("FX_POSTEX")
|
||||
#define FX_NORTEX TEXT("FX_NORTEX")
|
||||
#define FX_CELL TEXT("FX_CELL")
|
||||
#define FX_PARTICLE TEXT("FX_PARTICLE")
|
||||
#define FX_INSTANCE_MODEL TEXT("FX_INSTANCE_MODEL")
|
||||
#define FX_INSTANCE_PROP_MODEL TEXT("FX_INSTANCE_PROP_MODEL")
|
||||
#define FX_UIEDITOR TEXT("FX_UIEDITOR")
|
||||
#define FX_UIINSTANCE TEXT("FX_UIINSTANCE")
|
||||
|
||||
#pragma endregion
|
||||
#pragma region MACRO_PROTOTYPE
|
||||
|
||||
@@ -0,0 +1,55 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "GameObject.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
class CVIBuffer_Model_Instance;
|
||||
class CShader;
|
||||
class CTexture;
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CInstancedProp final : public CGameObject
|
||||
{
|
||||
public:
|
||||
typedef struct tagInstancedPropDesc
|
||||
{
|
||||
_wstring strPrototypeTag;
|
||||
_string strInstanceDataPath;
|
||||
}INSTANCE_PROP_DESC;
|
||||
private:
|
||||
CInstancedProp(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CInstancedProp(const CInstancedProp& rhs);
|
||||
virtual ~CInstancedProp() = 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:
|
||||
_uint m_iNumMesh = {};
|
||||
CVIBuffer_Model_Instance* m_pVIBufferInstanceCom = { nullptr };
|
||||
CShader* m_pShaderCom = { 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;
|
||||
|
||||
HRESULT Load_InstancedProp(const _char* pFilePath);
|
||||
|
||||
public:
|
||||
static CInstancedProp* 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
|
||||
@@ -69,14 +69,19 @@ class CPlayer final : public CUnit
|
||||
public:
|
||||
virtual void Reset_Sprint() { m_bSprintToggle = false; }
|
||||
virtual void Reset_Walk() { m_bWalkToggle = false; }
|
||||
template<typename T>
|
||||
void Spawn_Effect();
|
||||
|
||||
private:
|
||||
|
||||
|
||||
void TestKeyInput(_float fTimeDelta);
|
||||
virtual void Add_FSM();
|
||||
virtual void Set_Anim();
|
||||
|
||||
_float m_fAmount = { 1.f };
|
||||
_float m_fInputTime = {};
|
||||
_bool m_bRatio = { false };
|
||||
|
||||
HRESULT InputAction();
|
||||
HRESULT InputMove();
|
||||
|
||||
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user