[add] BroomRace 오브젝트 추가 배치
[add] CLand에 위치하는 InstanceProp 은 Land가 업데이트 하도록 변경
This commit is contained in:
@@ -193,6 +193,7 @@ call Update_Resources.bat
|
||||
<ClInclude Include="..\Public\Duelist_JapSide.h" />
|
||||
<ClInclude Include="..\Public\Duelist_ProtegoHit.h" />
|
||||
<ClInclude Include="..\Public\Goblin_ProtegoHit.h" />
|
||||
<ClInclude Include="..\public\MapElement_Balloon.h" />
|
||||
<ClInclude Include="..\Public\Protego_Hit.h" />
|
||||
<ClInclude Include="..\Public\RandomNpc.h" />
|
||||
<ClInclude Include="..\Public\Ranrok_ENUM.h" />
|
||||
@@ -494,6 +495,7 @@ call Update_Resources.bat
|
||||
<ClCompile Include="..\Private\Human_Duelist_States.cpp" />
|
||||
<ClCompile Include="..\private\InstancedProp_Light.cpp" />
|
||||
<ClCompile Include="..\Private\Duelist_JapSide.cpp" />
|
||||
<ClCompile Include="..\private\MapElement_Balloon.cpp" />
|
||||
<ClCompile Include="..\Private\PlayerRobe_Initialize.cpp" />
|
||||
<ClCompile Include="..\Private\Duelist_ProtegoHit.cpp" />
|
||||
<ClCompile Include="..\Private\Goblin_ProtegoHit.cpp" />
|
||||
|
||||
@@ -924,6 +924,9 @@
|
||||
<Filter>02.GameObjects\NPC\Hostile\Monster\Ranrok</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\TriggerBox.h" />
|
||||
<ClInclude Include="..\public\MapElement_Balloon.h">
|
||||
<Filter>02.GameObjects\Environment\03.MapElement\Balloon</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Image Include="Client.ico">
|
||||
@@ -1909,6 +1912,9 @@
|
||||
<Filter Include="04.Mechanic\State\State_Combat\State_Block">
|
||||
<UniqueIdentifier>{c0fdb122-503b-47f0-a544-90d153464c9a}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Environment\03.MapElement\Balloon">
|
||||
<UniqueIdentifier>{e198ab8c-2452-4f6e-adda-ecea58b44da9}</UniqueIdentifier>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="Client.cpp">
|
||||
@@ -2780,6 +2786,9 @@
|
||||
<Filter>04.Mechanic\State\State_Combat\State_Block</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\TriggerBox.cpp" />
|
||||
<ClCompile Include="..\private\MapElement_Balloon.cpp">
|
||||
<Filter>02.GameObjects\Environment\03.MapElement\Balloon</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\Private\Goblin_States.cpp">
|
||||
|
||||
@@ -3,11 +3,13 @@
|
||||
|
||||
#include "GameInstance.h"
|
||||
#include "RaceRing.h"
|
||||
#include "MapElement_Balloon.h"
|
||||
#include "Layer.h"
|
||||
#include "BroomRacerAI.h"
|
||||
#include "Player.h"
|
||||
#include "Broom.h"
|
||||
#include "InfoInstance.h"
|
||||
#include "InstancedProp.h"
|
||||
|
||||
CBroomRaceManager::CBroomRaceManager(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CGameObject(pDevice, pContext)
|
||||
@@ -501,6 +503,26 @@ void CBroomRaceManager::RaceReady()
|
||||
{
|
||||
MSG_BOX("Failed Load RaceRing");
|
||||
}
|
||||
|
||||
if (FAILED(Load_Balloons()))
|
||||
{
|
||||
MSG_BOX("Failed Load Balloons");
|
||||
}
|
||||
|
||||
CInstancedProp::INSTANCE_PROP_DESC Instance_Desc = {};
|
||||
|
||||
/* InstanceProp RouteMarker*/
|
||||
Instance_Desc.isShake = false;
|
||||
Instance_Desc.eShaderPass = SHADER_PASS_WORLDMODLE_INSTANCE::NONCULL;
|
||||
Instance_Desc.bEnableRigidbody = false;
|
||||
Instance_Desc.vRadius = _float2(0.f, 0.f);
|
||||
Instance_Desc.vSpeed = _float2(0.f, 0.f);
|
||||
Instance_Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_SK_BRR_RouteMarker";
|
||||
Instance_Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/RouteMarker.bin";
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Instance_Desc))) {
|
||||
return;
|
||||
}
|
||||
|
||||
CBroomRacerAI::RacerDesc Desc = {};
|
||||
for (_uint i = 1; i < 4; i++)
|
||||
{
|
||||
@@ -658,3 +680,51 @@ HRESULT CBroomRaceManager::Load_RaceRing()
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CBroomRaceManager::Load_Balloons()
|
||||
{
|
||||
tinyxml2::XMLDocument xmlDoc;
|
||||
|
||||
string strPath = "../Bin/Resources/Data/Map/Balloon/Ballon_Data.xml";
|
||||
|
||||
if ((tinyxml2::XML_SUCCESS != xmlDoc.LoadFile(strPath.c_str())))
|
||||
return E_FAIL;
|
||||
|
||||
tinyxml2::XMLElement* root = xmlDoc.FirstChildElement("Balloon");
|
||||
|
||||
if (nullptr == root)
|
||||
{
|
||||
MSG_BOX("Failed to Find root");
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
for (auto* Object = root->FirstChildElement("Object"); Object; Object = Object->NextSiblingElement("Object"))
|
||||
{
|
||||
CMapElement_Balloon::BALLOON_DESC Desc = {};
|
||||
|
||||
auto* Value = Object->FirstChildElement("Value");
|
||||
Value->QueryBoolAttribute("isFloating", &Desc.isFloating);
|
||||
Value->QueryUnsignedAttribute("DiffuseIndex", &Desc.iDiffuseIndex);
|
||||
|
||||
/* Transform */
|
||||
auto* Rotation = Object->FirstChildElement("Scale");
|
||||
Rotation->QueryFloatAttribute("x", &Desc.vScale.x);
|
||||
Rotation->QueryFloatAttribute("y", &Desc.vScale.y);
|
||||
Rotation->QueryFloatAttribute("z", &Desc.vScale.z);
|
||||
|
||||
auto* Scale = Object->FirstChildElement("Rotation");
|
||||
Scale->QueryFloatAttribute("x", &Desc.vRotation.x);
|
||||
Scale->QueryFloatAttribute("y", &Desc.vRotation.y);
|
||||
Scale->QueryFloatAttribute("z", &Desc.vRotation.z);
|
||||
|
||||
auto* Position = Object->FirstChildElement("Position");
|
||||
Position->QueryFloatAttribute("x", &Desc.vPosition.x);
|
||||
Position->QueryFloatAttribute("y", &Desc.vPosition.y);
|
||||
Position->QueryFloatAttribute("z", &Desc.vPosition.z);
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CMapElement_Balloon>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc)))
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -27,7 +27,6 @@ void CInstancedProp::Late_Update(_float fTimeDelta)
|
||||
}
|
||||
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
|
||||
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::SHADOW_NEAR, this);
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::SHADOW_MIDDLE, this);
|
||||
}
|
||||
@@ -42,7 +41,7 @@ HRESULT CInstancedProp::Render()
|
||||
if (FAILED(m_pVIBufferInstanceCom->Bind_Matrial(m_pShaderCom, i)))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_WORLDMODLE_INSTANCE::DEFAULT))))
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(m_eShaderPass))))
|
||||
return E_FAIL;
|
||||
|
||||
m_pVIBufferInstanceCom->Render(i);
|
||||
@@ -67,7 +66,7 @@ HRESULT CInstancedProp::Render_Shadow(SHADOW eType)
|
||||
if (FAILED(m_pVIBufferInstanceCom->Bind_Matrial(m_pShaderCom, i)))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(m_pShaderCom->Begin(3)))
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_WORLDMODLE_INSTANCE::SHADOW))))
|
||||
return E_FAIL;
|
||||
|
||||
m_pVIBufferInstanceCom->Render(i);
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
#include "Land.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
#include "InstancedProp.h"
|
||||
|
||||
CLand::CLand(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CGameObject{ pDevice, pContext }
|
||||
@@ -16,16 +17,24 @@ CLand::CLand(const CLand& rhs)
|
||||
|
||||
void CLand::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
for (auto& pInstanceProp : m_InstanceProps)
|
||||
pInstanceProp->Priority_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CLand::Update(_float fTimeDelta)
|
||||
{
|
||||
for (auto& pInstanceProp : m_InstanceProps)
|
||||
pInstanceProp->Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CLand::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_pGameInstance->IsIn_WorldFrustum(m_pTransformCom->Get_State(STATE::POSITION), m_fRaduis))
|
||||
{
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
|
||||
for (auto& pInstanceProp : m_InstanceProps)
|
||||
pInstanceProp->Late_Update(fTimeDelta);
|
||||
}
|
||||
}
|
||||
|
||||
HRESULT CLand::Render()
|
||||
@@ -34,9 +43,6 @@ HRESULT CLand::Render()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
//if (FAILED(m_pModelCom->Bind_Material(0, m_pShaderCom)))
|
||||
// return E_FAIL;
|
||||
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_MESH::LAND)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -70,6 +76,11 @@ HRESULT CLand::Render_Shadow(SHADOW eType)
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CLand::Add_InstanceProp(CInstancedProp* pIntanceProp)
|
||||
{
|
||||
m_InstanceProps.push_back(pIntanceProp);
|
||||
}
|
||||
|
||||
HRESULT CLand::Initialize_Prototype()
|
||||
{
|
||||
m_fUsingSurfaceParams = MRO_PARAMETER;
|
||||
@@ -207,6 +218,9 @@ void CLand::Free()
|
||||
|
||||
SAFE_RELEASE(m_pShaderCom);
|
||||
SAFE_RELEASE(m_pModelCom);
|
||||
|
||||
for (auto& pInstanceProp : m_InstanceProps)
|
||||
SAFE_RELEASE(pInstanceProp);
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
void CLand::Describe_Entity()
|
||||
|
||||
@@ -66,7 +66,6 @@ HRESULT CLevel_GamePlay::Initialize(void* pArg)
|
||||
#endif //
|
||||
#endif // _DEBUG
|
||||
|
||||
|
||||
if (FAILED(Ready_Lights())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -83,9 +82,16 @@ HRESULT CLevel_GamePlay::Initialize(void* pArg)
|
||||
if (FAILED(Ready_Background())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Ready_Land())) {
|
||||
|
||||
map<_string, CLand*> Lands = {};
|
||||
|
||||
if (FAILED(Ready_Land(&Lands))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(Ready_IntstanceProp(&Lands)))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(Ready_Markers())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -296,8 +302,8 @@ HRESULT CLevel_GamePlay::Ready_Background()
|
||||
|
||||
#ifdef gimch
|
||||
isReady_Background = true;
|
||||
isReady_Hogsmeade = true;
|
||||
isReady_Hogwart = false;
|
||||
isReady_Hogsmeade = false;
|
||||
isReady_Hogwart = true;
|
||||
#endif // gimch
|
||||
#ifdef Bin
|
||||
isReady_Background = false;
|
||||
@@ -336,7 +342,6 @@ HRESULT CLevel_GamePlay::Ready_Background()
|
||||
#else
|
||||
|
||||
#endif
|
||||
|
||||
if (isReady_Hogsmeade)
|
||||
{
|
||||
if (FAILED(Ready_Layer_Hogsmeade()))
|
||||
@@ -348,131 +353,144 @@ HRESULT CLevel_GamePlay::Ready_Background()
|
||||
if (FAILED(Ready_Layer_Hogwart()))
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (FAILED(Ready_IntstanceProp()))
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CLevel_GamePlay::Ready_Land()
|
||||
HRESULT CLevel_GamePlay::Ready_Land(map<_string, CLand*>* Lands)
|
||||
{
|
||||
CLand* pLand = { nullptr };
|
||||
|
||||
CLand::LAND_DESC Land_Desc = {};
|
||||
|
||||
/* South_Hogwart_Land */
|
||||
/* HN_BC */
|
||||
Land_Desc.vPosition = _float3(290.5f, 59.5f, -347.f);
|
||||
Land_Desc.vScale = _float3(1.f, 1.25f, 1.f);
|
||||
Land_Desc.strModelComTag = L"Prototype_Component_South_Hogwart_Land_LOD1";
|
||||
Land_Desc.strAlphaMapTag = L"Land_HN_BC_AlphaMap";
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLand>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc)))
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLand>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc, nullptr, &pLand)))
|
||||
return E_FAIL;
|
||||
Lands->emplace("HN_BC", pLand);
|
||||
|
||||
/* North_Hogwart_Land */
|
||||
/* HN_AV */
|
||||
Land_Desc.vPosition = _float3(-370.f, -37.5f, -21.4f);
|
||||
Land_Desc.vScale = _float3(1.f, 1.2f, 1.f);
|
||||
Land_Desc.strModelComTag = L"Prototype_Component_North_Hogwart_Land_LOD1";
|
||||
Land_Desc.strAlphaMapTag = L"Land_HN_AV_AlphaMap";
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLand>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc)))
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLand>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc, nullptr, &pLand)))
|
||||
return E_FAIL;
|
||||
Lands->emplace("HN_AV", pLand);
|
||||
|
||||
/* North_Hogwart2_Land */
|
||||
|
||||
/* HN_AU */
|
||||
Land_Desc.vPosition = _float3(-378.f, -17.5f, 285.6f);
|
||||
Land_Desc.vScale = _float3(1.f, 1.2f, 1.f);
|
||||
Land_Desc.strModelComTag = L"Prototype_Component_North_Hogwart2_Land_LOD1";
|
||||
Land_Desc.strAlphaMapTag = L"Land_HN_AU_AlphaMap";
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLand>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc)))
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLand>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc, nullptr, &pLand)))
|
||||
return E_FAIL;
|
||||
Lands->emplace("HN_AU", pLand);
|
||||
|
||||
/* West_Hogwart_Land */
|
||||
/* HN_AZ */
|
||||
Land_Desc.vPosition = _float3(-653.f, 20.f, -327.4f);
|
||||
Land_Desc.vScale = _float3(1.f, 1.2f, 1.f);
|
||||
Land_Desc.strModelComTag = L"Prototype_Component_West_Hogwart_Land_LOD1";
|
||||
Land_Desc.strAlphaMapTag = L"Land_HN_AZ_AlphaMap";
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLand>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc)))
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLand>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc, nullptr, &pLand)))
|
||||
return E_FAIL;
|
||||
Lands->emplace("HN_AZ", pLand);
|
||||
|
||||
/* East_Hogsmeade_Land */
|
||||
/* HN_AY */
|
||||
Land_Desc.vPosition = _float3(436.f, 55.f, 60.3f);
|
||||
Land_Desc.vScale = _float3(1.f, 1.2f, 1.f);
|
||||
Land_Desc.strModelComTag = L"Prototype_Component_East_Hogsmeade_Land_LOD1";
|
||||
Land_Desc.strAlphaMapTag = L"Land_HN_AY_AlphaMap";
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLand>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc)))
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLand>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc, nullptr, &pLand)))
|
||||
return E_FAIL;
|
||||
|
||||
Lands->emplace("HN_AY", pLand);
|
||||
|
||||
/* HN_BA */
|
||||
Land_Desc.vPosition = _float3(-606.f, 70.f, -647.7f);
|
||||
Land_Desc.vScale = _float3(1.f, 1.2f, 1.f);
|
||||
Land_Desc.strModelComTag = L"Prototype_Component_Land_HN_BA";
|
||||
Land_Desc.strAlphaMapTag = L"Land_HN_BA_AlphaMap";
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLand>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc)))
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLand>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc, nullptr, &pLand)))
|
||||
return E_FAIL;
|
||||
Lands->emplace("HN_BA", pLand);
|
||||
|
||||
/* HN_BD */
|
||||
Land_Desc.vPosition = _float3(201.4f, -22.9f, -650.1f);
|
||||
Land_Desc.vScale = _float3(1.f, 1.2f, 1.f);
|
||||
Land_Desc.strModelComTag = L"Prototype_Component_Land_HN_BD";
|
||||
Land_Desc.strAlphaMapTag = L"Land_HN_BD_AlphaMap";
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLand>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc)))
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLand>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc, nullptr, &pLand)))
|
||||
return E_FAIL;
|
||||
Lands->emplace("HN_BD", pLand);
|
||||
|
||||
/* HN_BG */
|
||||
Land_Desc.vPosition = _float3(-377.8f, 5.f, -1038.49f);
|
||||
Land_Desc.vScale = _float3(1.f, 1.2f, 1.f);
|
||||
Land_Desc.strModelComTag = L"Prototype_Component_Land_HN_BG";
|
||||
Land_Desc.strAlphaMapTag = L"Land_HN_BG_AlphaMap";
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLand>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc)))
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLand>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc, nullptr, &pLand)))
|
||||
return E_FAIL;
|
||||
Lands->emplace("HN_BG", pLand);
|
||||
|
||||
/* HN_BH */
|
||||
Land_Desc.vPosition = _float3(80.1f, -63.f, -908.3f);
|
||||
Land_Desc.vScale = _float3(1.f, 1.2f, 1.f);
|
||||
Land_Desc.strModelComTag = L"Prototype_Component_Land_HN_BH";
|
||||
Land_Desc.strAlphaMapTag = L"Land_HN_BH_AlphaMap";
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLand>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc)))
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLand>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc, nullptr, &pLand)))
|
||||
return E_FAIL;
|
||||
Lands->emplace("HN_BH", pLand);
|
||||
|
||||
/* HN_BE */
|
||||
Land_Desc.vPosition = _float3(431.2f, 100.1f, -658.3f);
|
||||
Land_Desc.vScale = _float3(1.f, 1.2f, 1.f);
|
||||
Land_Desc.strModelComTag = L"Prototype_Component_Land_HN_BE";
|
||||
Land_Desc.strAlphaMapTag = L"Land_HN_BE_AlphaMap";
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLand>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc)))
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLand>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc, nullptr, &pLand)))
|
||||
return E_FAIL;
|
||||
Lands->emplace("HN_BE", pLand);
|
||||
|
||||
/* HN_BF */
|
||||
Land_Desc.vPosition = _float3(-688.9f, 170.7f, -1066.f);
|
||||
Land_Desc.vScale = _float3(1.f, 1.2f, 1.f);
|
||||
Land_Desc.strModelComTag = L"Prototype_Component_Land_HN_BF";
|
||||
Land_Desc.strAlphaMapTag = L"Land_HN_BF_AlphaMap";
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLand>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc)))
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLand>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc, nullptr, &pLand)))
|
||||
return E_FAIL;
|
||||
Lands->emplace("HN_BF", pLand);
|
||||
|
||||
/* HN_BI */
|
||||
Land_Desc.vPosition = _float3(82.7f, -61.f, -1141.6f);
|
||||
Land_Desc.vScale = _float3(1.f, 1.2f, 1.f);
|
||||
Land_Desc.strModelComTag = L"Prototype_Component_Land_HN_BI";
|
||||
Land_Desc.strAlphaMapTag = L"Land_HN_BI_AlphaMap";
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLand>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc)))
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLand>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc, nullptr, &pLand)))
|
||||
return E_FAIL;
|
||||
Lands->emplace("HN_BI", pLand);
|
||||
|
||||
/* HN_BJ */
|
||||
Land_Desc.vPosition = _float3(367.1f, 44.8f, -1016.f);
|
||||
Land_Desc.vScale = _float3(1.f, 1.2f, 1.f);
|
||||
Land_Desc.strModelComTag = L"Prototype_Component_Land_HN_BJ";
|
||||
Land_Desc.strAlphaMapTag = L"Land_HN_BJ_AlphaMap";
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLand>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc)))
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLand>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc, nullptr, &pLand)))
|
||||
return E_FAIL;
|
||||
Lands->emplace("HN_BJ", pLand);
|
||||
|
||||
/* TU_BB */
|
||||
Land_Desc.vPosition = _float3(-829.5f, 58.3f, 112.9f);
|
||||
Land_Desc.vScale = _float3(1.f, 1.2f, 1.f);
|
||||
Land_Desc.strModelComTag = L"Prototype_Component_Land_TU_BB";
|
||||
Land_Desc.strAlphaMapTag = L"Land_TU_BB_AlphaMap";
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLand>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc)))
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLand>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc, nullptr, &pLand)))
|
||||
return E_FAIL;
|
||||
Lands->emplace("TU_BB", pLand);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
@@ -498,7 +516,7 @@ HRESULT CLevel_GamePlay::Ready_Layer_Hogsmeade()
|
||||
/* Chests */
|
||||
CInfoInstance::GetInstance()->Load_ChestElemet("Element_Chest_Info", LAYER_HOGSMEADE);
|
||||
|
||||
/* Hogwart Unified*/
|
||||
/* Hogsmeade Unified*/
|
||||
CUnified::UNIFIED_DESC Desc = {};
|
||||
Desc.fLodSwitchDistnace = 500.f;
|
||||
Desc.vUnifiedCenterPos = _float4(62.f, 10.f, 93.f, 1.f);
|
||||
@@ -526,8 +544,8 @@ HRESULT CLevel_GamePlay::Ready_Layer_Hogwart()
|
||||
CUnified::UNIFIED_DESC Desc = {};
|
||||
|
||||
/* Hogwart Unified*/
|
||||
Desc.fLodSwitchDistnace = 400.f;
|
||||
Desc.vUnifiedCenterPos = _float4(-250.2f, 17.2f, -500.7f, 1.f);
|
||||
Desc.fLodSwitchDistnace = 500.f;
|
||||
Desc.vUnifiedCenterPos = _float4(-291.2f, 17.2f, -500.7f, 1.f);
|
||||
Desc.vPosition = _float3(-291.2f, 17.2f, -474.7f);
|
||||
Desc.vRotation = _float3(0.f, 0.f, 0.f);
|
||||
Desc.vScale = _float3(1.f, 1.f, 1.f);
|
||||
@@ -540,26 +558,29 @@ HRESULT CLevel_GamePlay::Ready_Layer_Hogwart()
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CLevel_GamePlay::Ready_IntstanceProp()
|
||||
HRESULT CLevel_GamePlay::Ready_IntstanceProp(map<_string, CLand*>* Lands)
|
||||
{
|
||||
CInstancedProp* pInstancedProp = { nullptr };
|
||||
CInstancedProp::INSTANCE_PROP_DESC Desc = {};
|
||||
|
||||
/* InstanceProp Oak_Tree*/
|
||||
Desc.isShake = true;
|
||||
Desc.eShaderPass = SHADER_PASS_WORLDMODLE_INSTANCE::DEFAULT;
|
||||
Desc.bEnableRigidbody = true;
|
||||
Desc.vRadius = _float2(0.015f, 0.02f);
|
||||
Desc.vSpeed = _float2(0.3f, 1.f);
|
||||
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))) {
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, LAYER_HOGSMEADE, &Desc))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
Desc.isShake = false;
|
||||
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/OakTree_MedA_HN_BB.bin";
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc))) {
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, LAYER_HOGWART, &Desc))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
/* BearBerry */
|
||||
Desc.isShake = true;
|
||||
Desc.bEnableRigidbody = false;
|
||||
@@ -567,7 +588,7 @@ HRESULT CLevel_GamePlay::Ready_IntstanceProp()
|
||||
Desc.vSpeed = _float2(0.6f, 1.f);
|
||||
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))) {
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, LAYER_HOGSMEADE, &Desc))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -682,7 +703,7 @@ HRESULT CLevel_GamePlay::Ready_IntstanceProp()
|
||||
return E_FAIL;
|
||||
Desc.isShake = false;
|
||||
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/BogMyrtle_A_HN_BB.bin";
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc)))
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, LAYER_HOGWART, &Desc)))
|
||||
return E_FAIL;
|
||||
|
||||
/* Dogwood_B */
|
||||
@@ -706,16 +727,16 @@ HRESULT CLevel_GamePlay::Ready_IntstanceProp()
|
||||
return E_FAIL;
|
||||
|
||||
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/ScotsPine_LargeA_HN_BB.bin";
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc)))
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, LAYER_HOGWART, &Desc)))
|
||||
return E_FAIL;
|
||||
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/ScotsPine_LargeA_HN_BB_2.bin";
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc)))
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, LAYER_HOGWART, &Desc)))
|
||||
return E_FAIL;
|
||||
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/ScotsPine_LargeA_HN_AZ.bin";
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc)))
|
||||
if (FAILED(Bind_InstanceProp(Lands, m_pGameInstance->Clone_Prototype<CInstancedProp>(g_iStaticLevel, &Desc), "HN_AZ")))
|
||||
return E_FAIL;
|
||||
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/ScotsPine_LargeA_HN_AV.bin";
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc)))
|
||||
if (FAILED(Bind_InstanceProp(Lands, m_pGameInstance->Clone_Prototype<CInstancedProp>(g_iStaticLevel, &Desc), "HN_AV")))
|
||||
return E_FAIL;
|
||||
|
||||
/* StratifiedCliff_A1 */
|
||||
@@ -726,19 +747,19 @@ HRESULT CLevel_GamePlay::Ready_IntstanceProp()
|
||||
Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_StratifiedCliff_A1";
|
||||
|
||||
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/CliffwallA_HN_BC.bin";
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc)))
|
||||
if (FAILED(Bind_InstanceProp(Lands, m_pGameInstance->Clone_Prototype<CInstancedProp>(g_iStaticLevel, &Desc), "HN_BC")))
|
||||
return E_FAIL;
|
||||
|
||||
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/CliffwallA_HN_BB.bin";
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc)))
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, LAYER_HOGWART, &Desc)))
|
||||
return E_FAIL;
|
||||
|
||||
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/CliffwallA_HN_AZ.bin";
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc)))
|
||||
if (FAILED(Bind_InstanceProp(Lands, m_pGameInstance->Clone_Prototype<CInstancedProp>(g_iStaticLevel, &Desc), "HN_AZ")))
|
||||
return E_FAIL;
|
||||
|
||||
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/CliffwallA_HN_AV.bin";
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc)))
|
||||
if (FAILED(Bind_InstanceProp(Lands, m_pGameInstance->Clone_Prototype<CInstancedProp>(g_iStaticLevel, &Desc), "HN_AV")))
|
||||
return E_FAIL;
|
||||
|
||||
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/CliffwallA_HN_AW.bin";
|
||||
@@ -752,11 +773,11 @@ HRESULT CLevel_GamePlay::Ready_IntstanceProp()
|
||||
Desc.vSpeed = _float2(0.3f, 1.f);
|
||||
Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_StratifiedRock_B";
|
||||
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/StratifiedRock_B_HN_BB.bin";
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc)))
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, LAYER_HOGWART, &Desc)))
|
||||
return E_FAIL;
|
||||
|
||||
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/StratifiedRock_B_HN_AZ.bin";
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc)))
|
||||
if (FAILED(Bind_InstanceProp(Lands, m_pGameInstance->Clone_Prototype<CInstancedProp>(g_iStaticLevel, &Desc), "HN_AZ")))
|
||||
return E_FAIL;
|
||||
|
||||
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/StratifiedRock_B_HN_AW.bin";
|
||||
@@ -770,7 +791,7 @@ HRESULT CLevel_GamePlay::Ready_IntstanceProp()
|
||||
Desc.vSpeed = _float2(0.3f, 1.f);
|
||||
Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_StratifiedRock_D_B";
|
||||
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/StratifiedRock_D_B_HN_BB.bin";
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc)))
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, LAYER_HOGWART, &Desc)))
|
||||
return E_FAIL;
|
||||
|
||||
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/StratifiedRock_D_B_BACK.bin";
|
||||
@@ -916,8 +937,8 @@ HRESULT CLevel_GamePlay::Ready_Layer_Player(const _wstring& strLayerTag)
|
||||
_bool isLoad_RandomNPC = { true };
|
||||
#ifdef _DEBUG
|
||||
#ifdef gimch
|
||||
isLoad_NPC = false;
|
||||
isLoad_RandomNPC = false;
|
||||
isLoad_NPC = true;
|
||||
isLoad_RandomNPC = true;
|
||||
#endif // gimch
|
||||
#ifdef 진우
|
||||
isLoad_RandomNPC = true;
|
||||
@@ -1095,6 +1116,18 @@ HRESULT CLevel_GamePlay::Reday_Layer_EffectPool()
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CLevel_GamePlay::Bind_InstanceProp(map<_string, class CLand*>* Lands, CInstancedProp* pInstnace, const _char* LandTag)
|
||||
{
|
||||
auto iter = Lands->find(LandTag);
|
||||
|
||||
if (iter == Lands->end())
|
||||
return E_FAIL;
|
||||
|
||||
iter->second->Add_InstanceProp(pInstnace);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
pair<CLevel*, function<void()>> CLevel_GamePlay::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID, void* pArg)
|
||||
{
|
||||
CLevel_GamePlay* pInstance = new CLevel_GamePlay(pDevice, pContext, eLevelID);
|
||||
|
||||
@@ -272,6 +272,7 @@
|
||||
#include "MapElement_Static.h"
|
||||
#include "WorldDecal.h"
|
||||
#include "PointLight.h"
|
||||
#include "MapElement_Balloon.h"
|
||||
|
||||
#pragma endregion
|
||||
|
||||
@@ -417,10 +418,10 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
#ifdef _DEBUG
|
||||
#ifdef gimch
|
||||
isLoad_Background = true;
|
||||
isLoad_Hogwart = false;
|
||||
isLoad_Hogwart = true;
|
||||
isLoad_UI_SEQUANTIAL = false;
|
||||
isLoad_NPC = false;
|
||||
isLoad_DataClassroom = true;
|
||||
isLoad_NPC = true;
|
||||
isLoad_DataClassroom = false;
|
||||
#endif // gimch
|
||||
#ifdef 진우
|
||||
isLoad_Background = false;
|
||||
@@ -1752,6 +1753,25 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
TEXT("C:/MeshTable/Game/Environment/Hogsmeade/Common/Textures/LightPosts/T_HM_LampPost_Glass_Dark_D.png"), 0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
/* Balloon_Diffuse */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Balloon_Diffuse"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("../Bin/Resources/Textures/Balloon/T_FloatingBalloonTarget_D_%d.dds"), 4)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
/* Balloon_Normal */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Balloon_Normal"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Textures/Balloon/T_FloatingBalloonTarget_N.dds"), 0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
/* Balloon_MRO */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Balloon_MRO"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Textures/Balloon/T_FloatingBalloonTarget_MRO.dds"), 0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
#pragma endregion
|
||||
#pragma region LAKE_TEXTURE
|
||||
/* For.Prototype_Component_Water_Noise_D */
|
||||
@@ -3497,9 +3517,20 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
if (FAILED(Ready_RigidBody_Static(pModel_Instance)))
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
/* For.Prototype_Component_VIBuffer_Model_Instancel_SK_BRR_RouteMarker */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_VIBuffer_Model_Instancel_SK_BRR_RouteMarker"),
|
||||
CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
|
||||
"../Bin/Resources/Models/InstanceProp/SK_BRR_RouteMarker.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
|
||||
return E_FAIL;
|
||||
|
||||
#pragma endregion
|
||||
|
||||
|
||||
/* For.Prototype_Component_FloatingBalloon */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_FloatingBalloon"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "C:/MeshTable/Game/RiggedObjects/Props/FloatingBalloonTarget/SK_FloatingBalloonTarget_.fbx"))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_Component_Hogwart_Lake */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_Hogwart_Lake"),
|
||||
@@ -3714,6 +3745,10 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CRaceRing>(g_iStaticLevel, CRaceRing::Create(m_pDevice, m_pContext))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_GameObject_MapElement_Balloon */
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CMapElement_Balloon>(g_iStaticLevel, CMapElement_Balloon::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;
|
||||
|
||||
@@ -0,0 +1,210 @@
|
||||
#include "pch.h"
|
||||
#include "MapElement_Balloon.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
|
||||
CMapElement_Balloon::CMapElement_Balloon(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CMapElement{ pDevice, pContext }
|
||||
{
|
||||
}
|
||||
|
||||
CMapElement_Balloon::CMapElement_Balloon(const CMapElement_Balloon& rhs)
|
||||
: CMapElement(rhs)
|
||||
, m_fUsingSurfaceParams(rhs.m_fUsingSurfaceParams)
|
||||
, m_fTimeAcc(0.f)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CMapElement_Balloon::Initialize_Prototype()
|
||||
{
|
||||
m_fUsingSurfaceParams = MRO_PARAMETER;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CMapElement_Balloon::Initialize(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Initialize(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
m_isRotate = false;
|
||||
m_fRadius = 10.f;
|
||||
|
||||
BALLOON_DESC* pDesc = static_cast<BALLOON_DESC*>(pArg);
|
||||
m_isFloating = pDesc->isFloating;
|
||||
m_iDiffuseIndex = pDesc->iDiffuseIndex;
|
||||
|
||||
memcpy(&m_vOriginPosition, &pDesc->vPosition, sizeof(_float3));
|
||||
|
||||
m_pTransformCom->Set_Scale(pDesc->vScale);
|
||||
m_pTransformCom->Rotation(XMConvertToRadians(pDesc->vRotation.x), XMConvertToRadians(pDesc->vRotation.y), XMConvertToRadians(pDesc->vRotation.z));
|
||||
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&pDesc->vPosition), 1.f));
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CMapElement_Balloon::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
}
|
||||
|
||||
void CMapElement_Balloon::Update(_float fTimeDelta)
|
||||
{
|
||||
m_fTimeAcc += fTimeDelta;
|
||||
|
||||
if (m_isFloating)
|
||||
Floating();
|
||||
|
||||
if (m_isRotate)
|
||||
Rotation();
|
||||
}
|
||||
|
||||
void CMapElement_Balloon::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if(m_pGameInstance->IsIn_WorldFrustum(m_pTransformCom->Get_State(STATE::POSITION), m_fRadius))
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
|
||||
}
|
||||
|
||||
HRESULT CMapElement_Balloon::Render()
|
||||
{
|
||||
if (FAILED(Bind_ShaderResources()))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_MESH::DEFAULT)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pModelComs[0]->Render(0))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CMapElement_Balloon::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Ready_Components(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
CModel* pModel = { nullptr };
|
||||
|
||||
/* Com_Model */
|
||||
if (FAILED(__super::Add_Asset_Component(NEXT_LEVEL, TEXT("Prototype_Component_FloatingBalloon"),
|
||||
reinterpret_cast<CComponent**>(&pModel))))
|
||||
return E_FAIL;
|
||||
|
||||
m_pModelComs.push_back(pModel);
|
||||
|
||||
/* Com_Shader */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_MESH,
|
||||
reinterpret_cast<CComponent**>(&m_pShaderCom))))
|
||||
return E_FAIL;
|
||||
|
||||
/* Com_Texture */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Balloon_Diffuse"),
|
||||
reinterpret_cast<CComponent**>(&m_pDiffuseTextureCom))))
|
||||
return E_FAIL;
|
||||
/* Com_Texture */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Balloon_Normal"),
|
||||
reinterpret_cast<CComponent**>(&m_pNormalTextureCom))))
|
||||
return E_FAIL;
|
||||
/* Com_Texture */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Balloon_MRO"),
|
||||
reinterpret_cast<CComponent**>(&m_pMROTextureCom))))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CMapElement_Balloon::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_SRV("g_DiffuseTexture", m_pDiffuseTextureCom->Get_SRV(m_iDiffuseIndex))))
|
||||
return E_FAIL;
|
||||
if (FAILED(m_pShaderCom->Bind_SRV("g_NormalTexture", m_pNormalTextureCom->Get_SRV(0))))
|
||||
return E_FAIL;
|
||||
if (FAILED(m_pShaderCom->Bind_SRV("g_SurfaceParamsTexture", m_pMROTextureCom->Get_SRV(0))))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fUsingSurfaceParams", &m_fUsingSurfaceParams, sizeof(_float)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CMapElement_Balloon::Rotation()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void CMapElement_Balloon::Floating()
|
||||
{
|
||||
_float3 vPosition = m_vOriginPosition;
|
||||
|
||||
vPosition.y = m_vOriginPosition.y + sinf(m_fTimeAcc);
|
||||
|
||||
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&vPosition), 1.f));
|
||||
}
|
||||
|
||||
CMapElement_Balloon* CMapElement_Balloon::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CMapElement_Balloon* pInstance = new CMapElement_Balloon(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CMapElement_Balloon");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
CGameObject* CMapElement_Balloon::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CMapElement_Balloon* pInstance = new CMapElement_Balloon(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CMapElement_Balloon");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CMapElement_Balloon::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pShaderCom);
|
||||
for (auto& pModel : m_pModelComs)
|
||||
SAFE_RELEASE(pModel);
|
||||
|
||||
SAFE_RELEASE(m_pDiffuseTextureCom);
|
||||
SAFE_RELEASE(m_pNormalTextureCom);
|
||||
SAFE_RELEASE(m_pMROTextureCom);
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
void CMapElement_Balloon::Describe_Entity()
|
||||
{
|
||||
}
|
||||
#endif // _DEBUG
|
||||
|
||||
|
||||
@@ -1056,7 +1056,9 @@ void CRanrok::Free()
|
||||
SAFE_RELEASE(m_pTargetableDO[i]);
|
||||
}
|
||||
m_pRanrok_Props.clear();
|
||||
#ifdef _DEBUG
|
||||
SAFE_RELEASE(m_pDepthStencilStateNone);
|
||||
#endif
|
||||
SAFE_RELEASE(m_pMotionTrailCom);
|
||||
SAFE_RELEASE(m_pCharacter_Controller);
|
||||
SAFE_RELEASE(m_pRigidBody);
|
||||
|
||||
@@ -43,6 +43,7 @@ class CBroomRaceManager final : public CGameObject
|
||||
_int Get_RaceState() const { return m_eRaceState; }
|
||||
|
||||
HRESULT Load_RaceRing();
|
||||
HRESULT Load_Balloons();
|
||||
|
||||
private:
|
||||
CInfoInstance* m_pInfoInstance = { nullptr };
|
||||
|
||||
@@ -25,7 +25,7 @@ namespace Client
|
||||
ENEMY_DETECTION, INTERACTION_OBJECT, INTERACTION_NPC, BROOMTARGETGATE, END
|
||||
};
|
||||
enum class SHADER_PASS_UIINTANCE { DEFAULT, ALPHABLEND, UVALPHABLEND, MAGIC_METER, SPELL_LIST, EESSENTIAL_SPELL_SOLT, EESSENTIAL_SPELL, COLOR, SPELL_HOVER, SPELL_SLOT_EFFECT, SPELL_SLOT, SPELL_LOCK, QUEST_SLOT, END };
|
||||
enum class SHADER_PASS_WORLDMODLE_INSTANCE { DEFAULT, LIGHT, BLOOM };
|
||||
enum class SHADER_PASS_WORLDMODLE_INSTANCE { DEFAULT, LIGHT, BLOOM, SHADOW, NONCULL };
|
||||
enum class SHADER_PASS_NPC_PBR_ANIM {
|
||||
EYELASH_DAOTHV_ToSRO, TEETH_SRXO_ToSRO, EYE_DN_ToSRO, EYE_OCC,
|
||||
FACIAL_HAIR_DAOTHV_ToSRO, HEAD_HAIR_DAOTHV_ToSRO, HEADwtHAND_DSRXON_ToSRO, LOWER_DSRON_ToSRO,
|
||||
|
||||
@@ -16,12 +16,13 @@ class CInstancedProp final : public CGameObject
|
||||
public:
|
||||
typedef struct tagInstancedPropDesc
|
||||
{
|
||||
_bool isShake;
|
||||
_bool bEnableRigidbody;
|
||||
_float2 vRadius;
|
||||
_float2 vSpeed;
|
||||
_wstring strPrototypeTag;
|
||||
_string strInstanceDataPath;
|
||||
SHADER_PASS_WORLDMODLE_INSTANCE eShaderPass;
|
||||
_bool isShake;
|
||||
_bool bEnableRigidbody;
|
||||
_float2 vRadius;
|
||||
_float2 vSpeed;
|
||||
_wstring strPrototypeTag;
|
||||
_string strInstanceDataPath;
|
||||
}INSTANCE_PROP_DESC;
|
||||
private:
|
||||
CInstancedProp(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
@@ -36,13 +37,15 @@ class CInstancedProp final : public CGameObject
|
||||
virtual HRESULT Render_Shadow(SHADOW eType)override;
|
||||
|
||||
private:
|
||||
_bool m_isShake = {};
|
||||
_uint m_iNumMesh = {};
|
||||
_uint m_iNumInstacne = {};
|
||||
_bool m_isShake = {};
|
||||
_uint m_iNumMesh = {};
|
||||
_uint m_iNumInstacne = {};
|
||||
SHADER_PASS_WORLDMODLE_INSTANCE m_eShaderPass = {};
|
||||
|
||||
vector<CRigidBody_Static*> m_RigidBody = { nullptr };
|
||||
CVIBuffer_Model_Instance* m_pVIBufferInstanceCom = { nullptr };
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
CVIBuffer_Model_Instance* m_pVIBufferInstanceCom = { nullptr };
|
||||
|
||||
vector<CRigidBody_Static*> m_RigidBody = { nullptr };
|
||||
|
||||
private:
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
|
||||
@@ -9,7 +9,7 @@ class CShader;
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CInstancedProp;
|
||||
class CLand final : public CGameObject
|
||||
{
|
||||
public:
|
||||
@@ -32,6 +32,7 @@ class CLand final : public CGameObject
|
||||
virtual HRESULT Render() override;
|
||||
virtual HRESULT Render_Shadow(SHADOW eType) override;
|
||||
|
||||
void Add_InstanceProp(CInstancedProp* pIntanceProp);
|
||||
private:
|
||||
_float m_fRaduis = {};
|
||||
_float m_fUsingSurfaceParams = {};
|
||||
@@ -44,6 +45,7 @@ class CLand final : public CGameObject
|
||||
CTexture* m_pMROTextureCom = { nullptr };
|
||||
CTexture* m_pMaskTextureCom = { nullptr };
|
||||
|
||||
list<class CInstancedProp*> m_InstanceProps = {};
|
||||
private:
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
|
||||
@@ -31,10 +31,10 @@ class CLevel_GamePlay final : public CLevel
|
||||
HRESULT Ready_Lights();
|
||||
HRESULT Ready_Volumetric();
|
||||
HRESULT Ready_Background();
|
||||
HRESULT Ready_Land();
|
||||
HRESULT Ready_Land(map<_string, class CLand*>* Lands);
|
||||
HRESULT Ready_Layer_Hogsmeade();
|
||||
HRESULT Ready_Layer_Hogwart();
|
||||
HRESULT Ready_IntstanceProp();
|
||||
HRESULT Ready_IntstanceProp(map<_string, class CLand*>* Lands);
|
||||
HRESULT Ready_Markers();
|
||||
HRESULT Ready_Layer_UI(const _wstring& strLayerTag);
|
||||
HRESULT Ready_Layer_Camera();
|
||||
@@ -47,6 +47,7 @@ class CLevel_GamePlay final : public CLevel
|
||||
HRESULT Ready_Layer_Manager(const _wstring& strLayerTag);
|
||||
HRESULT Reday_Layer_EffectPool();
|
||||
|
||||
HRESULT Bind_InstanceProp(map<_string, class CLand*>* Lands, class CInstancedProp* pInstnace, const _char* LandTag);
|
||||
public:
|
||||
static pair<CLevel*, function<void()>> Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID, void* pArg);
|
||||
virtual void Free() override;
|
||||
|
||||
@@ -0,0 +1,63 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "MapElement.h"
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CMapElement_Balloon : public CMapElement
|
||||
{
|
||||
public:
|
||||
typedef struct tagMapElemntBalloonDesc
|
||||
{
|
||||
_bool isFloating;
|
||||
_uint iDiffuseIndex;
|
||||
_float3 vPosition;
|
||||
_float3 vRotation;
|
||||
_float3 vScale;
|
||||
}BALLOON_DESC;
|
||||
private:
|
||||
CMapElement_Balloon(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CMapElement_Balloon(const CMapElement_Balloon& rhs);
|
||||
virtual ~CMapElement_Balloon() = 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:
|
||||
CTexture* m_pDiffuseTextureCom = { nullptr };
|
||||
CTexture* m_pNormalTextureCom = { nullptr };
|
||||
CTexture* m_pMROTextureCom = { nullptr };
|
||||
|
||||
_bool m_isFloating = {};
|
||||
_bool m_isRotate = {};
|
||||
_uint m_iDiffuseIndex = {};
|
||||
|
||||
_float m_fTimeAcc = {};
|
||||
_float m_fUsingSurfaceParams = {};
|
||||
_float m_fRadius = {};
|
||||
|
||||
_float3 m_vOriginPosition = {};
|
||||
|
||||
private:
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
virtual HRESULT Ready_Components(void* pArg) override;
|
||||
virtual HRESULT Bind_ShaderResources() override;
|
||||
|
||||
void Rotation();
|
||||
void Floating();
|
||||
|
||||
public:
|
||||
static CMapElement_Balloon* 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
|
||||
@@ -162,10 +162,12 @@ class CRanrok final : public CMonster
|
||||
const _float4x4* m_pTail2_BoneMat = { nullptr };
|
||||
const _float4x4* m_pRanrokCombinedBoneMatrices[ENUM_CLASS(RANROK_ENUM_BONEMATRICES::END)] = { nullptr };
|
||||
CRigidBody_Dynamic* m_pTargetableDO[ENUM_CLASS(RANROK_ENUM_BONEMATRICES::END)] = { nullptr };
|
||||
|
||||
|
||||
#ifdef _DEBUG
|
||||
unique_ptr<GeometricPrimitive> m_pSubShape = { nullptr };
|
||||
ID3D11DepthStencilState* m_pDepthStencilStateNone = { nullptr };
|
||||
|
||||
ID3D11DepthStencilState* m_pDepthStencilStateNone = { nullptr };
|
||||
_float4 m_vInitialRotQ = {};
|
||||
_float3 m_vInitialTrans = {};
|
||||
#endif // _DEBUG
|
||||
|
||||
Reference in New Issue
Block a user