@@ -42,7 +42,7 @@
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<PlatformToolset>v145</PlatformToolset>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<EnableASAN>true</EnableASAN>
|
||||
</PropertyGroup>
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<PlatformToolset>v145</PlatformToolset>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<EnableASAN>true</EnableASAN>
|
||||
</PropertyGroup>
|
||||
@@ -189,8 +189,6 @@
|
||||
<ClInclude Include="..\Public\Monster.h" />
|
||||
<ClInclude Include="..\public\Mouse_Cursor.h" />
|
||||
<ClInclude Include="..\Public\RootModelPart.h" />
|
||||
<ClInclude Include="..\Public\TombProtector.h" />
|
||||
<ClInclude Include="..\Public\Troll.h" />
|
||||
<ClInclude Include="Editor.h" />
|
||||
<ClInclude Include="framework.h" />
|
||||
<ClInclude Include="Resource.h" />
|
||||
@@ -238,8 +236,6 @@
|
||||
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Create</PrecompiledHeader>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\RootModelPart.cpp" />
|
||||
<ClCompile Include="..\Private\TombProtector.cpp" />
|
||||
<ClCompile Include="..\Private\Troll.cpp" />
|
||||
<ClCompile Include="Editor.cpp" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
|
||||
@@ -151,12 +151,6 @@
|
||||
<Filter Include="02.GameObjects\Monster">
|
||||
<UniqueIdentifier>{a2944f33-1db0-480a-b793-7ec7f81e8116}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Monster\TombProtector">
|
||||
<UniqueIdentifier>{6ccfe379-cf97-47af-98ae-b5155d1a0b39}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Monster\Troll">
|
||||
<UniqueIdentifier>{f405a7a7-3eca-4a05-9098-aedc576bd360}</UniqueIdentifier>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="Editor.h">
|
||||
@@ -237,12 +231,6 @@
|
||||
<ClInclude Include="..\Public\Monster.h">
|
||||
<Filter>02.GameObjects\Monster</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\TombProtector.h">
|
||||
<Filter>02.GameObjects\Monster\TombProtector</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Troll.h">
|
||||
<Filter>02.GameObjects\Monster\Troll</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Level_EffectViewer.h">
|
||||
<Filter>01.Level\40.EffectViewer</Filter>
|
||||
</ClInclude>
|
||||
@@ -424,12 +412,6 @@
|
||||
<ClCompile Include="..\Private\Monster.cpp">
|
||||
<Filter>02.GameObjects\Monster</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\TombProtector.cpp">
|
||||
<Filter>02.GameObjects\Monster\TombProtector</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Troll.cpp">
|
||||
<Filter>02.GameObjects\Monster\Troll</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ResourceCompile Include="Editor.rc">
|
||||
|
||||
@@ -8,10 +8,9 @@
|
||||
#include "Hair.h"
|
||||
#include "Dummy_Cube.h"
|
||||
#include "DebugCamera.h"
|
||||
#include "TombProtector.h"
|
||||
#include "Troll.h"
|
||||
#include "Layer.h"
|
||||
#include "GameObject.h"
|
||||
#include "Monster.h"
|
||||
|
||||
CLevel_ObjectViewer::CLevel_ObjectViewer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID)
|
||||
: CLevel{ pDevice, pContext, ENUM_CLASS(eLevelID) }
|
||||
@@ -77,18 +76,12 @@ void CLevel_ObjectViewer::Add_Creature()
|
||||
{
|
||||
if (ImGui::BeginTabItem("Creatures"))
|
||||
{
|
||||
if (GUI::Button("Add TombProtector"))
|
||||
if (GUI::Button("Add Monster"))
|
||||
{
|
||||
CGameObject* pTempObject = { nullptr };
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CTombProtector>(ENUM_CLASS(LEVEL::STATIC), NEXT_LEVEL, TEXT("Layer_Monster"), nullptr, nullptr, &pTempObject)))
|
||||
return;
|
||||
m_Objects.push_back(pTempObject);
|
||||
}
|
||||
|
||||
if (GUI::Button("Add Troll"))
|
||||
{
|
||||
CGameObject* pTempObject = { nullptr };
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CTroll>(ENUM_CLASS(LEVEL::STATIC), NEXT_LEVEL, TEXT("Layer_Monster"), nullptr, nullptr, &pTempObject)))
|
||||
CMonster::OBJECT_DESC Desc = {};
|
||||
Desc.pModelPrototypeTag = TEXT("Prototype_Component_Troll_Model");
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CMonster>(ENUM_CLASS(LEVEL::STATIC), NEXT_LEVEL, TEXT("Layer_Monster"), &Desc, nullptr, &pTempObject)))
|
||||
return;
|
||||
m_Objects.push_back(pTempObject);
|
||||
}
|
||||
@@ -144,25 +137,31 @@ void CLevel_ObjectViewer::Show_ModelFilePath()
|
||||
{
|
||||
if (GUI::BeginTabItem("Assimp_Model"))
|
||||
{
|
||||
for (_uint i = 0; i < m_pGameInstance->ModelFilePathCount(); i++)
|
||||
if (m_pGameInstance->ModelFilePathCount() > 0)
|
||||
{
|
||||
GUI::Text(m_pGameInstance->Load_ModelFilePath(i));
|
||||
GUI::SameLine();
|
||||
|
||||
std::string label = "Binary##" + std::to_string(i);
|
||||
if (GUI::Button(label.c_str()))
|
||||
for (_uint i = 0; i < m_pGameInstance->ModelFilePathCount(); i++)
|
||||
{
|
||||
m_pGameInstance->SaveAssimpModel(m_pGameInstance->Load_ModelFilePath(i));
|
||||
GUI::Text(m_pGameInstance->Load_ModelFilePath(i));
|
||||
GUI::SameLine();
|
||||
|
||||
std::string label = "Binary##" + std::to_string(i);
|
||||
if (GUI::Button(label.c_str()))
|
||||
{
|
||||
m_pGameInstance->SaveAssimpModel(m_pGameInstance->Load_ModelFilePath(i));
|
||||
}
|
||||
}
|
||||
GUI::EndTabItem();
|
||||
}
|
||||
GUI::EndTabItem();
|
||||
}
|
||||
|
||||
if (GUI::BeginTabItem("Binary_Model"))
|
||||
{
|
||||
for (_uint i = 0; i < m_pGameInstance->BinaryModelFilePathCount(); i++)
|
||||
if (m_pGameInstance->BinaryModelFilePathCount() > 0)
|
||||
{
|
||||
GUI::Text(m_pGameInstance->Load_BinaryModelFilePath(i));
|
||||
for (_uint i = 0; i < m_pGameInstance->BinaryModelFilePathCount(); i++)
|
||||
{
|
||||
GUI::Text(m_pGameInstance->Load_BinaryModelFilePath(i));
|
||||
}
|
||||
}
|
||||
GUI::EndTabItem();
|
||||
}
|
||||
@@ -273,8 +272,8 @@ HRESULT CLevel_ObjectViewer::Ready_Layer_UI(const _wstring& strLayerTag)
|
||||
|
||||
HRESULT CLevel_ObjectViewer::Ready_Layer_Dummy(const _wstring& strLayerTag)
|
||||
{
|
||||
/*if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CDummy_Cube>(g_iStaticLevel, NEXT_LEVEL, LAYER_CUBE)))
|
||||
return E_FAIL;*/
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CDummy_Cube>(g_iStaticLevel, NEXT_LEVEL, LAYER_CUBE)))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -4,11 +4,21 @@
|
||||
#include "GameInstance.h"
|
||||
#include "DummyRect.h"
|
||||
#include "MainApp.h"
|
||||
|
||||
#include "Dummy_Cube.h"
|
||||
|
||||
#pragma region OBJECT_HEADER
|
||||
|
||||
#include "RootModelPart.h"
|
||||
#include "Head.h"
|
||||
#include "Body.h"
|
||||
#include "Hair.h"
|
||||
#include "Dummy_Goblin.h"
|
||||
#include "Dummy_Goblin.h"
|
||||
#include "Monster.h"
|
||||
#include <filesystem>
|
||||
|
||||
#pragma endregion
|
||||
|
||||
#pragma region UI
|
||||
|
||||
#include "Mission.h"
|
||||
@@ -18,17 +28,11 @@
|
||||
#include "Mission_Key.h"
|
||||
#include "Mission_KeyHold.h"
|
||||
#include "Mouse_Cursor.h"
|
||||
#include "RootModelPart.h"
|
||||
#include "Head.h"
|
||||
#include "Body.h"
|
||||
#include "Hair.h"
|
||||
#include "Dummy_Goblin.h"
|
||||
|
||||
#include "Dummy_Cube.h"
|
||||
#include "LodingWidget1.h"
|
||||
#include "MiniMap_TrimBorder.h"
|
||||
#include "Active_Icon.h"
|
||||
#include "TombProtector.h"
|
||||
#include "Troll.h"
|
||||
|
||||
#pragma endregion
|
||||
|
||||
@@ -520,12 +524,8 @@ HRESULT CLoader::Loading_For_ObjectViewer()
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CHair>(g_iStaticLevel, CHair::Create(m_pDevice, m_pContext))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_GameObject_TombProtector */
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CTombProtector>(g_iStaticLevel, CTombProtector::Create(m_pDevice, m_pContext))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_GameObject_Troll */
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CTroll>(g_iStaticLevel, CTroll::Create(m_pDevice, m_pContext))))
|
||||
/* For.Prototype_GameObject_Monster */
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CMonster>(g_iStaticLevel, CMonster::Create(m_pDevice, m_pContext))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_GameObject_Dummy_Cube */
|
||||
|
||||
@@ -50,6 +50,7 @@ HRESULT CModelParts::Render()
|
||||
HRESULT CModelParts::Ready_Components()
|
||||
{
|
||||
__super::Ready_Components(nullptr);
|
||||
|
||||
/* Com_Shader */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_ANIMMESH,
|
||||
reinterpret_cast<CComponent**>(&m_pShaderCom))))
|
||||
|
||||
@@ -21,6 +21,10 @@ HRESULT CMonster::Initialize_Prototype()
|
||||
|
||||
HRESULT CMonster::Initialize(void* pArg)
|
||||
{
|
||||
OBJECT_DESC* pDesc = static_cast<OBJECT_DESC*>(pArg);
|
||||
|
||||
m_strModelPrototypeTag = pDesc->pModelPrototypeTag;
|
||||
|
||||
if (FAILED(__super::Initialize(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
@@ -28,6 +32,8 @@ HRESULT CMonster::Initialize(void* pArg)
|
||||
if (FAILED(Ready_Components()))
|
||||
return E_FAIL;
|
||||
|
||||
m_pModelCom->Set_AnimationIndex(0);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -38,10 +44,14 @@ void CMonster::Priority_Update(_float fTimeDelta)
|
||||
|
||||
void CMonster::Update(_float fTimeDelta)
|
||||
{
|
||||
m_pModelCom->Play_Animation(fTimeDelta);
|
||||
}
|
||||
|
||||
void CMonster::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
_float4 vPos;
|
||||
XMStoreFloat4(&vPos, Get_WorldPostion());
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::BLEND, this, vPos, 20.f);
|
||||
}
|
||||
|
||||
HRESULT CMonster::Render()
|
||||
@@ -81,6 +91,11 @@ HRESULT CMonster::Ready_Components()
|
||||
{
|
||||
__super::Ready_Components(nullptr);
|
||||
|
||||
/* Com_Model */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, m_strModelPrototypeTag,
|
||||
reinterpret_cast<CComponent**>(&m_pModelCom))))
|
||||
return E_FAIL;
|
||||
|
||||
/* Com_Shader */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_ANIMMESH,
|
||||
reinterpret_cast<CComponent**>(&m_pShaderCom))))
|
||||
@@ -107,6 +122,33 @@ HRESULT CMonster::Bind_ShaderResources()
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CMonster* CMonster::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CMonster* pInstance = new CMonster(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CMonster");
|
||||
Safe_Release(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
CGameObject* CMonster::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CMonster* pInstance = new CMonster(*this);
|
||||
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CMonster");
|
||||
Safe_Release(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
|
||||
|
||||
void CMonster::Free()
|
||||
{
|
||||
|
||||
@@ -1,124 +0,0 @@
|
||||
#include "pch.h"
|
||||
#include "TombProtector.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
#include "DebugCamera.h"
|
||||
|
||||
CTombProtector::CTombProtector(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CMonster(pDevice, pContext)
|
||||
{
|
||||
}
|
||||
|
||||
CTombProtector::CTombProtector(const CTombProtector& Prototype)
|
||||
: CMonster(Prototype)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CTombProtector::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CTombProtector::Initialize(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Initialize(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Ready_Components()))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
m_pModelCom->Set_AnimationIndex(0);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CTombProtector::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void CTombProtector::Update(_float fTimeDelta)
|
||||
{
|
||||
m_pModelCom->Play_Animation(fTimeDelta);
|
||||
}
|
||||
|
||||
void CTombProtector::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
_float4 vPos;
|
||||
XMStoreFloat4(&vPos, Get_WorldPostion());
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::BLEND, this, vPos, 20.f);
|
||||
}
|
||||
|
||||
HRESULT CTombProtector::Render()
|
||||
{
|
||||
__super::Render();
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CTombProtector::Ready_Components()
|
||||
{
|
||||
/* Com_Model */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_TombProtector_Model"),
|
||||
reinterpret_cast<CComponent**>(&m_pModelCom))))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CTombProtector::Bind_ShaderResources()
|
||||
{
|
||||
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) {
|
||||
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;
|
||||
}
|
||||
|
||||
CTombProtector* CTombProtector::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CTombProtector* pInstance = new CTombProtector(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CTombProtector");
|
||||
Safe_Release(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
CGameObject* CTombProtector::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CTombProtector* pInstance = new CTombProtector(*this);
|
||||
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CTombProtector");
|
||||
Safe_Release(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
|
||||
|
||||
void CTombProtector::Free()
|
||||
{
|
||||
__super::Free();
|
||||
}
|
||||
|
||||
void CTombProtector::Describe_Entity()
|
||||
{
|
||||
}
|
||||
@@ -1,124 +0,0 @@
|
||||
#include "pch.h"
|
||||
#include "Troll.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
#include "DebugCamera.h"
|
||||
|
||||
CTroll::CTroll(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CMonster(pDevice, pContext)
|
||||
{
|
||||
}
|
||||
|
||||
CTroll::CTroll(const CTroll& Prototype)
|
||||
: CMonster(Prototype)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CTroll::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CTroll::Initialize(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Initialize(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Ready_Components()))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
m_pModelCom->Set_AnimationIndex(0);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CTroll::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void CTroll::Update(_float fTimeDelta)
|
||||
{
|
||||
m_pModelCom->Play_Animation(fTimeDelta);
|
||||
}
|
||||
|
||||
void CTroll::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
_float4 vPos;
|
||||
XMStoreFloat4(&vPos, Get_WorldPostion());
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::BLEND, this, vPos, 20.f);
|
||||
}
|
||||
|
||||
HRESULT CTroll::Render()
|
||||
{
|
||||
__super::Render();
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CTroll::Ready_Components()
|
||||
{
|
||||
/* Com_Model */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_Troll_Model"),
|
||||
reinterpret_cast<CComponent**>(&m_pModelCom))))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CTroll::Bind_ShaderResources()
|
||||
{
|
||||
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) {
|
||||
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;
|
||||
}
|
||||
|
||||
CTroll* CTroll::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CTroll* pInstance = new CTroll(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CTroll");
|
||||
Safe_Release(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
CGameObject* CTroll::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CTroll* pInstance = new CTroll(*this);
|
||||
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CTroll");
|
||||
Safe_Release(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
|
||||
|
||||
void CTroll::Free()
|
||||
{
|
||||
__super::Free();
|
||||
}
|
||||
|
||||
void CTroll::Describe_Entity()
|
||||
{
|
||||
}
|
||||
@@ -10,9 +10,14 @@ NS_END
|
||||
|
||||
NS_BEGIN(Editor)
|
||||
|
||||
class CMonster abstract : public CGameObject
|
||||
class CMonster final : public CGameObject
|
||||
{
|
||||
protected:
|
||||
public:
|
||||
typedef struct tagObjectDesc
|
||||
{
|
||||
const _tchar* pModelPrototypeTag;
|
||||
}OBJECT_DESC;
|
||||
private:
|
||||
CMonster(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CMonster(const CMonster& Prototype);
|
||||
virtual ~CMonster() = default;
|
||||
@@ -25,9 +30,13 @@ class CMonster abstract : public CGameObject
|
||||
virtual void Late_Update(_float fTimeDelta) override;
|
||||
virtual HRESULT Render() override;
|
||||
|
||||
protected:
|
||||
public:
|
||||
_wstring& Get_PrototypeTag() { return m_strModelPrototypeTag; }
|
||||
|
||||
private:
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
CModel* m_pModelCom = { nullptr };
|
||||
_wstring m_strModelPrototypeTag;
|
||||
_bool m_bRimLight = { true };
|
||||
_float m_fRimLightPower = { 3.2f };
|
||||
_float m_fRimLightStrength = { 3.04f };
|
||||
@@ -38,7 +47,8 @@ class CMonster abstract : public CGameObject
|
||||
HRESULT Bind_ShaderResources();
|
||||
|
||||
public:
|
||||
virtual CGameObject* Clone(void* pArg, CGameObject* pOwner = nullptr)PURE;
|
||||
static CMonster* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, CGameObject* pOwner = nullptr) override;
|
||||
virtual void Free() override;
|
||||
virtual void Describe_Entity() override;
|
||||
};
|
||||
|
||||
@@ -1,34 +0,0 @@
|
||||
#pragma once
|
||||
|
||||
#include "Editor_Define.h"
|
||||
#include "Monster.h"
|
||||
|
||||
NS_BEGIN(Editor)
|
||||
|
||||
class CTombProtector final : public CMonster
|
||||
{
|
||||
private:
|
||||
CTombProtector(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CTombProtector(const CTombProtector& Prototype);
|
||||
virtual ~CTombProtector() = 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;
|
||||
|
||||
private:
|
||||
HRESULT Ready_Components();
|
||||
HRESULT Bind_ShaderResources();
|
||||
|
||||
public:
|
||||
static CTombProtector* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, CGameObject* pOwner = nullptr) override;
|
||||
virtual void Free() override;
|
||||
virtual void Describe_Entity() override;
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -1,34 +0,0 @@
|
||||
#pragma once
|
||||
|
||||
#include "Editor_Define.h"
|
||||
#include "Monster.h"
|
||||
|
||||
NS_BEGIN(Editor)
|
||||
|
||||
class CTroll final : public CMonster
|
||||
{
|
||||
private:
|
||||
CTroll(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CTroll(const CTroll& Prototype);
|
||||
virtual ~CTroll() = 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;
|
||||
|
||||
private:
|
||||
HRESULT Ready_Components();
|
||||
HRESULT Bind_ShaderResources();
|
||||
|
||||
public:
|
||||
static CTroll* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, CGameObject* pOwner = nullptr) override;
|
||||
virtual void Free() override;
|
||||
virtual void Describe_Entity() override;
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -42,7 +42,7 @@
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<PlatformToolset>v145</PlatformToolset>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<EnableASAN>true</EnableASAN>
|
||||
</PropertyGroup>
|
||||
|
||||
Reference in New Issue
Block a user