@@ -2,25 +2,25 @@
|
|||||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ClInclude Include="Client.h">
|
<ClInclude Include="Client.h">
|
||||||
<Filter>02.GameObjects\ReparoObject\99.Define\00.DEFAULT</Filter>
|
<Filter>99.Define\00.DEFAULT</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="framework.h">
|
<ClInclude Include="framework.h">
|
||||||
<Filter>02.GameObjects\ReparoObject\99.Define\00.DEFAULT</Filter>
|
<Filter>99.Define\00.DEFAULT</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="Resource.h">
|
<ClInclude Include="Resource.h">
|
||||||
<Filter>02.GameObjects\ReparoObject\99.Define\00.DEFAULT</Filter>
|
<Filter>99.Define\00.DEFAULT</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="targetver.h">
|
<ClInclude Include="targetver.h">
|
||||||
<Filter>02.GameObjects\ReparoObject\99.Define\00.DEFAULT</Filter>
|
<Filter>99.Define\00.DEFAULT</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="..\Public\Client_Define.h">
|
<ClInclude Include="..\Public\Client_Define.h">
|
||||||
<Filter>02.GameObjects\ReparoObject\99.Define</Filter>
|
<Filter>99.Define</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="..\Public\Client_Enum.h">
|
<ClInclude Include="..\Public\Client_Enum.h">
|
||||||
<Filter>02.GameObjects\ReparoObject\99.Define</Filter>
|
<Filter>99.Define</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="..\Public\Client_Macro.h">
|
<ClInclude Include="..\Public\Client_Macro.h">
|
||||||
<Filter>02.GameObjects\ReparoObject\99.Define</Filter>
|
<Filter>99.Define</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="..\Public\MainApp.h">
|
<ClInclude Include="..\Public\MainApp.h">
|
||||||
<Filter>00.MainApp</Filter>
|
<Filter>00.MainApp</Filter>
|
||||||
@@ -146,7 +146,7 @@
|
|||||||
<Filter>02.GameObjects\Environment\01.MapPartObject</Filter>
|
<Filter>02.GameObjects\Environment\01.MapPartObject</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="..\Public\Client_Struct.h">
|
<ClInclude Include="..\Public\Client_Struct.h">
|
||||||
<Filter>02.GameObjects\ReparoObject\99.Define</Filter>
|
<Filter>99.Define</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="..\public\MapObject_Collision.h">
|
<ClInclude Include="..\public\MapObject_Collision.h">
|
||||||
<Filter>02.GameObjects\Environment\01.MapPartObject\Collision</Filter>
|
<Filter>02.GameObjects\Environment\01.MapPartObject\Collision</Filter>
|
||||||
@@ -803,10 +803,10 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Image Include="Client.ico">
|
<Image Include="Client.ico">
|
||||||
<Filter>02.GameObjects\ReparoObject\99.Define\00.DEFAULT</Filter>
|
<Filter>99.Define\00.DEFAULT</Filter>
|
||||||
</Image>
|
</Image>
|
||||||
<Image Include="small.ico">
|
<Image Include="small.ico">
|
||||||
<Filter>02.GameObjects\ReparoObject\99.Define\00.DEFAULT</Filter>
|
<Filter>99.Define\00.DEFAULT</Filter>
|
||||||
</Image>
|
</Image>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
@@ -1656,22 +1656,22 @@
|
|||||||
<Filter Include="02.GameObjects\ReparoObject">
|
<Filter Include="02.GameObjects\ReparoObject">
|
||||||
<UniqueIdentifier>{4fbbe0ec-6b65-49f1-a72d-fe73ddbf2b4d}</UniqueIdentifier>
|
<UniqueIdentifier>{4fbbe0ec-6b65-49f1-a72d-fe73ddbf2b4d}</UniqueIdentifier>
|
||||||
</Filter>
|
</Filter>
|
||||||
<Filter Include="02.GameObjects\ReparoObject\99.Define">
|
|
||||||
<UniqueIdentifier>{2899f7fc-0ed2-41c0-8e24-0d89f08ffc39}</UniqueIdentifier>
|
|
||||||
</Filter>
|
|
||||||
<Filter Include="02.GameObjects\ReparoObject\99.Define\00.DEFAULT">
|
|
||||||
<UniqueIdentifier>{05a0db73-4fbf-456c-9137-bb605c632d68}</UniqueIdentifier>
|
|
||||||
</Filter>
|
|
||||||
<Filter Include="02.GameObjects\Environment\02.InstancedProp\Light">
|
<Filter Include="02.GameObjects\Environment\02.InstancedProp\Light">
|
||||||
<UniqueIdentifier>{2e3b9cee-41ee-4984-a1d0-3aaebbcf41a4}</UniqueIdentifier>
|
<UniqueIdentifier>{2e3b9cee-41ee-4984-a1d0-3aaebbcf41a4}</UniqueIdentifier>
|
||||||
</Filter>
|
</Filter>
|
||||||
|
<Filter Include="99.Define">
|
||||||
|
<UniqueIdentifier>{2899f7fc-0ed2-41c0-8e24-0d89f08ffc39}</UniqueIdentifier>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="99.Define\00.DEFAULT">
|
||||||
|
<UniqueIdentifier>{05a0db73-4fbf-456c-9137-bb605c632d68}</UniqueIdentifier>
|
||||||
|
</Filter>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ClCompile Include="Client.cpp">
|
<ClCompile Include="Client.cpp">
|
||||||
<Filter>02.GameObjects\ReparoObject\99.Define\00.DEFAULT</Filter>
|
<Filter>99.Define\00.DEFAULT</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="..\Private\pch.cpp">
|
<ClCompile Include="..\Private\pch.cpp">
|
||||||
<Filter>02.GameObjects\ReparoObject\99.Define\00.DEFAULT</Filter>
|
<Filter>99.Define\00.DEFAULT</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="..\Private\MainApp.cpp">
|
<ClCompile Include="..\Private\MainApp.cpp">
|
||||||
<Filter>00.MainApp</Filter>
|
<Filter>00.MainApp</Filter>
|
||||||
@@ -2459,7 +2459,7 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ResourceCompile Include="Client.rc">
|
<ResourceCompile Include="Client.rc">
|
||||||
<Filter>02.GameObjects\ReparoObject\99.Define\00.DEFAULT</Filter>
|
<Filter>99.Define\00.DEFAULT</Filter>
|
||||||
</ResourceCompile>
|
</ResourceCompile>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
||||||
@@ -160,6 +160,13 @@ void CBroomRaceManager::Free()
|
|||||||
|
|
||||||
void CBroomRaceManager::Describe_Entity()
|
void CBroomRaceManager::Describe_Entity()
|
||||||
{
|
{
|
||||||
|
if (GUI::Button("Add Race Ring"))
|
||||||
|
{
|
||||||
|
if (FAILED(Load_RaceRing()))
|
||||||
|
{
|
||||||
|
MSG_BOX("Failed Load RaceRing");
|
||||||
|
}
|
||||||
|
}
|
||||||
if (GUI::Button("Race Start"))
|
if (GUI::Button("Race Start"))
|
||||||
{
|
{
|
||||||
m_eRaceState = ENUM_CLASS(RACE_STATE::READY);
|
m_eRaceState = ENUM_CLASS(RACE_STATE::READY);
|
||||||
@@ -379,3 +386,49 @@ void CBroomRaceManager::Push_RaceRing(CRaceRing* Ring)
|
|||||||
SAFE_ADDREF(Ring);
|
SAFE_ADDREF(Ring);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
HRESULT CBroomRaceManager::Load_RaceRing()
|
||||||
|
{
|
||||||
|
tinyxml2::XMLDocument xmlDoc;
|
||||||
|
|
||||||
|
string strPath = "../Bin/Resources/Data/Map/RaceRing/RaceRing_Data.xml";
|
||||||
|
|
||||||
|
if ((tinyxml2::XML_SUCCESS != xmlDoc.LoadFile(strPath.c_str())))
|
||||||
|
return E_FAIL;
|
||||||
|
|
||||||
|
tinyxml2::XMLElement* root = xmlDoc.FirstChildElement("Ring");
|
||||||
|
|
||||||
|
if (nullptr == root)
|
||||||
|
{
|
||||||
|
MSG_BOX("Failed to Find root");
|
||||||
|
return S_OK;
|
||||||
|
}
|
||||||
|
|
||||||
|
for (auto* Object = root->FirstChildElement("Object"); Object; Object = Object->NextSiblingElement("Object"))
|
||||||
|
{
|
||||||
|
CRaceRing::RACERING_DESC Desc = {};
|
||||||
|
|
||||||
|
Desc.pBroomRaceManager = this;
|
||||||
|
|
||||||
|
/* 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<CRaceRing>(g_iStaticLevel, NEXT_LEVEL, LAYER_RING, &Desc)))
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
|
|
||||||
|
return S_OK;
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -90,13 +90,13 @@ HRESULT CBroomRacerAI::Initialize(void* pArg)
|
|||||||
|
|
||||||
m_pBroomRaceManager = static_cast<CBroomRaceManager*>(pArg);
|
m_pBroomRaceManager = static_cast<CBroomRaceManager*>(pArg);
|
||||||
|
|
||||||
CBroomRaceManager::RacerInfo Info;
|
/*CBroomRaceManager::RacerInfo Info;
|
||||||
|
|
||||||
Info.pAI = this;
|
Info.pAI = this;
|
||||||
Info.curRing = 0;
|
Info.curRing = 0;
|
||||||
Info.prevPos = Get_WorldPostion();
|
Info.prevPos = Get_WorldPostion();
|
||||||
|
|
||||||
m_pBroomRaceManager->Push_BroomRacer(Info);
|
m_pBroomRaceManager->Push_BroomRacer(Info);*/
|
||||||
|
|
||||||
m_LaneOffsetX = m_pGameInstance->Real_Random_Float(-3.f, 3.f);
|
m_LaneOffsetX = m_pGameInstance->Real_Random_Float(-3.f, 3.f);
|
||||||
m_LaneOffsetY = m_pGameInstance->Real_Random_Float(-3.f, 3.f);
|
m_LaneOffsetY = m_pGameInstance->Real_Random_Float(-3.f, 3.f);
|
||||||
|
|||||||
@@ -94,9 +94,9 @@ HRESULT CLevel_GamePlay::Initialize(void* pArg)
|
|||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (FAILED(Ready_Layer_RaceRing(TEXT("Layer_RaceRing")))) {
|
//if (FAILED(Ready_Layer_RaceRing(TEXT("Layer_RaceRing")))) {
|
||||||
return E_FAIL;
|
// return E_FAIL;
|
||||||
}
|
//}
|
||||||
|
|
||||||
if (FAILED(Ready_Layer_ReparoObject(TEXT("Layer_ReparoObject")))) {
|
if (FAILED(Ready_Layer_ReparoObject(TEXT("Layer_ReparoObject")))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
@@ -325,8 +325,8 @@ HRESULT CLevel_GamePlay::Ready_Background()
|
|||||||
|
|
||||||
#ifdef gimch
|
#ifdef gimch
|
||||||
isReady_Background = true;
|
isReady_Background = true;
|
||||||
isReady_Hogsmeade = true;
|
isReady_Hogsmeade = false;
|
||||||
isReady_Hogwart = false;
|
isReady_Hogwart = true;
|
||||||
#endif // gimch
|
#endif // gimch
|
||||||
#ifdef Bin
|
#ifdef Bin
|
||||||
isReady_Background = false;
|
isReady_Background = false;
|
||||||
@@ -744,7 +744,7 @@ HRESULT CLevel_GamePlay::Ready_Layer_RaceRing(const _wstring& strLayerTag)
|
|||||||
|
|
||||||
CRaceRing::RACERING_DESC RaceRingDesc{};
|
CRaceRing::RACERING_DESC RaceRingDesc{};
|
||||||
RaceRingDesc.pBroomRaceManager = m_pBroomRaceManager;
|
RaceRingDesc.pBroomRaceManager = m_pBroomRaceManager;
|
||||||
RaceRingDesc.iIndex = i;
|
|
||||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CRaceRing>(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &RaceRingDesc))) {
|
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CRaceRing>(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &RaceRingDesc))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -374,8 +374,8 @@ HRESULT CLoader::Loading_For_GamePlay()
|
|||||||
|
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
#ifdef gimch
|
#ifdef gimch
|
||||||
isLoad_Background = true;
|
isLoad_Background = false;
|
||||||
isLoad_Hogwart = false;
|
isLoad_Hogwart = true;
|
||||||
isLoad_UI_SEQUANTIAL = false;
|
isLoad_UI_SEQUANTIAL = false;
|
||||||
#endif // gimch
|
#endif // gimch
|
||||||
#ifdef 진우
|
#ifdef 진우
|
||||||
|
|||||||
@@ -94,7 +94,7 @@ HRESULT CPlayer::Initialize(void* pArg)
|
|||||||
|
|
||||||
m_pBroomRaceManager = pDesc->pBroomRaceManager;
|
m_pBroomRaceManager = pDesc->pBroomRaceManager;
|
||||||
|
|
||||||
if (m_pBroomRaceManager)
|
/*if (m_pBroomRaceManager)
|
||||||
{
|
{
|
||||||
CBroomRaceManager::RacerInfo Info;
|
CBroomRaceManager::RacerInfo Info;
|
||||||
|
|
||||||
@@ -103,7 +103,7 @@ HRESULT CPlayer::Initialize(void* pArg)
|
|||||||
Info.prevPos = Get_WorldPostion();
|
Info.prevPos = Get_WorldPostion();
|
||||||
|
|
||||||
m_pBroomRaceManager->Push_BroomRacer(Info);
|
m_pBroomRaceManager->Push_BroomRacer(Info);
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
|
|||||||
@@ -30,14 +30,19 @@ HRESULT CRaceRing::Initialize(void* pArg)
|
|||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
m_pBroomRaceManager = static_cast<RACERING_DESC*>(pArg)->pBroomRaceManager;
|
|
||||||
m_iIndex = static_cast<RACERING_DESC*>(pArg)->iIndex;
|
|
||||||
_float X = m_pGameInstance->Real_Random_Float(-200.f, 200.f);
|
|
||||||
_float Y = m_pGameInstance->Real_Random_Float(15.f, 60.f);
|
|
||||||
_float Z = m_pGameInstance->Real_Random_Float(-50.f, 50.f);
|
|
||||||
|
|
||||||
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet((_float)m_iIndex *100.f, Y, Z, 1.f));
|
//m_iIndex = static_cast<RACERING_DESC*>(pArg)->iIndex;
|
||||||
|
//_float X = m_pGameInstance->Real_Random_Float(-200.f, 200.f);
|
||||||
|
//_float Y = m_pGameInstance->Real_Random_Float(15.f, 60.f);
|
||||||
|
//_float Z = m_pGameInstance->Real_Random_Float(-50.f, 50.f);
|
||||||
|
|
||||||
|
RACERING_DESC* pDesc = static_cast<RACERING_DESC*>(pArg);
|
||||||
|
|
||||||
|
m_pBroomRaceManager = pDesc->pBroomRaceManager;
|
||||||
|
_float3 vRotation = pDesc->vRotation;
|
||||||
|
m_pTransformCom->Rotation(XMConvertToRadians(vRotation.x), XMConvertToRadians(vRotation.y), XMConvertToRadians(vRotation.z));
|
||||||
|
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(pDesc->vPosition.x, pDesc->vPosition.y, pDesc->vPosition.z, 1.f));
|
||||||
|
m_pTransformCom->Set_Scale(pDesc->vScale);
|
||||||
m_pBroomRaceManager->Push_RaceRing(this);
|
m_pBroomRaceManager->Push_RaceRing(this);
|
||||||
|
|
||||||
return S_OK;
|
return S_OK;
|
||||||
@@ -54,7 +59,6 @@ void CRaceRing::Priority_Update(_float fTimeDelta)
|
|||||||
void CRaceRing::Update(_float fTimeDelta)
|
void CRaceRing::Update(_float fTimeDelta)
|
||||||
{
|
{
|
||||||
m_pModelCom->Combined_BoneMatrix();
|
m_pModelCom->Combined_BoneMatrix();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void CRaceRing::Late_Update(_float fTimeDelta)
|
void CRaceRing::Late_Update(_float fTimeDelta)
|
||||||
|
|||||||
@@ -41,6 +41,8 @@ class CBroomRaceManager final : public CGameObject
|
|||||||
void Push_BroomRacer(RacerInfo Info);
|
void Push_BroomRacer(RacerInfo Info);
|
||||||
void Push_RaceRing(class CRaceRing* Ring);
|
void Push_RaceRing(class CRaceRing* Ring);
|
||||||
_int Get_RaceState() const { return m_eRaceState; }
|
_int Get_RaceState() const { return m_eRaceState; }
|
||||||
|
|
||||||
|
HRESULT Load_RaceRing();
|
||||||
private:
|
private:
|
||||||
CInfoInstance* m_pInfoInstance = { nullptr };
|
CInfoInstance* m_pInfoInstance = { nullptr };
|
||||||
|
|
||||||
@@ -73,7 +75,6 @@ class CBroomRaceManager final : public CGameObject
|
|||||||
virtual void Free() override;
|
virtual void Free() override;
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
virtual void Describe_Entity() override;
|
virtual void Describe_Entity() override;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -67,6 +67,7 @@ namespace Client {
|
|||||||
#define LAYER_UNIFIED TEXT("Layer_Unified")
|
#define LAYER_UNIFIED TEXT("Layer_Unified")
|
||||||
#define LAYER_DOOR TEXT("Layer_Door")
|
#define LAYER_DOOR TEXT("Layer_Door")
|
||||||
#define LAYER_HIDDEN TEXT("Layer_HIDDEN")
|
#define LAYER_HIDDEN TEXT("Layer_HIDDEN")
|
||||||
|
#define LAYER_RING TEXT("Layer_Ring")
|
||||||
|
|
||||||
|
|
||||||
#define LAYER_MAPOBJECTMANAGER TEXT("Layer_MapObjectManager")
|
#define LAYER_MAPOBJECTMANAGER TEXT("Layer_MapObjectManager")
|
||||||
|
|||||||
@@ -11,7 +11,9 @@ class CRaceRing final : public CGameObject
|
|||||||
typedef struct RaceRingDesc
|
typedef struct RaceRingDesc
|
||||||
{
|
{
|
||||||
class CBroomRaceManager* pBroomRaceManager = { nullptr };
|
class CBroomRaceManager* pBroomRaceManager = { nullptr };
|
||||||
_int iIndex = { 0 };
|
_float3 vPosition{};
|
||||||
|
_float3 vRotation{};
|
||||||
|
_float3 vScale{};
|
||||||
}RACERING_DESC;
|
}RACERING_DESC;
|
||||||
private:
|
private:
|
||||||
CRaceRing(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
CRaceRing(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
<Rotation x="-0" y="-60" z="-0"/>
|
<Rotation x="-0" y="-60" z="-0"/>
|
||||||
<MapContainerType type="0"/>
|
<MapContainerType type="0"/>
|
||||||
<BoundingBox_Min x="-7.0020647" y="-0.45976496" z="-1.5148951"/>
|
<BoundingBox_Min x="-7.0020647" y="-0.45976496" z="-1.5148951"/>
|
||||||
<BoundingBox_Max x="6.3698497" y="12.858675" z="14.645905"/>
|
<BoundingBox_Max x="20.3698497" y="12.858675" z="30.645905"/>
|
||||||
<PartObject Lod_Level="1" Key_Index="4">
|
<PartObject Lod_Level="1" Key_Index="4">
|
||||||
<PrototypeTag>Prototype_GameObject_SM_HM_Ollivanders_Railing_Post_A</PrototypeTag>
|
<PrototypeTag>Prototype_GameObject_SM_HM_Ollivanders_Railing_Post_A</PrototypeTag>
|
||||||
<PrototypeTag>Prototype_GameObject_SM_HM_Ollivanders_Railing_Post_A_Lod1</PrototypeTag>
|
<PrototypeTag>Prototype_GameObject_SM_HM_Ollivanders_Railing_Post_A_Lod1</PrototypeTag>
|
||||||
|
|||||||
@@ -0,0 +1,73 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<Ring>
|
||||||
|
<Object Type="0">
|
||||||
|
<Position x="-624.6828" y="-5.8805885" z="-346.03726"/>
|
||||||
|
<Scale x="0.99942404" y="1" z="0.99942404"/>
|
||||||
|
<Rotation x="0" y="90" z="0"/>
|
||||||
|
</Object>
|
||||||
|
<Object Type="0">
|
||||||
|
<Position x="-538.65613" y="-9.7019424" z="-220.7928"/>
|
||||||
|
<Scale x="1" y="1" z="1"/>
|
||||||
|
<Rotation x="0" y="0" z="0"/>
|
||||||
|
</Object>
|
||||||
|
<Object Type="0">
|
||||||
|
<Position x="-337.73676" y="22.321819" z="-370.07764"/>
|
||||||
|
<Scale x="1.000001" y="1" z="1.000001"/>
|
||||||
|
<Rotation x="0" y="99" z="0"/>
|
||||||
|
</Object>
|
||||||
|
<Object Type="0">
|
||||||
|
<Position x="-406.02249" y="84.212677" z="-460.5611"/>
|
||||||
|
<Scale x="0.99931335" y="1" z="0.99931335"/>
|
||||||
|
<Rotation x="0" y="105" z="0"/>
|
||||||
|
</Object>
|
||||||
|
<Object Type="0">
|
||||||
|
<Position x="-310.34567" y="69.336639" z="-551.00226"/>
|
||||||
|
<Scale x="0.9941389" y="0.99323529" z="0.99999595"/>
|
||||||
|
<Rotation x="0" y="7" z="0"/>
|
||||||
|
</Object>
|
||||||
|
<Object Type="0">
|
||||||
|
<Position x="-261.31503" y="41.564301" z="-528.52368"/>
|
||||||
|
<Scale x="0.99999613" y="0.99954367" z="0.9994064"/>
|
||||||
|
<Rotation x="-90" y="-45" z="-8"/>
|
||||||
|
</Object>
|
||||||
|
<Object Type="0">
|
||||||
|
<Position x="-238.78645" y="-10.563053" z="-466.24268"/>
|
||||||
|
<Scale x="0.99976027" y="0.99999475" z="0.99999315"/>
|
||||||
|
<Rotation x="30" y="-63" z="-14"/>
|
||||||
|
</Object>
|
||||||
|
<Object Type="0">
|
||||||
|
<Position x="-96.618591" y="-16.054264" z="-351.12924"/>
|
||||||
|
<Scale x="1" y="1" z="1"/>
|
||||||
|
<Rotation x="0" y="0" z="0"/>
|
||||||
|
</Object>
|
||||||
|
<Object Type="0">
|
||||||
|
<Position x="-128.33682" y="38.68256" z="-522.79828"/>
|
||||||
|
<Scale x="0.99999386" y="1" z="0.99999386"/>
|
||||||
|
<Rotation x="0" y="105" z="0"/>
|
||||||
|
</Object>
|
||||||
|
<Object Type="0">
|
||||||
|
<Position x="-128.85426" y="20.893711" z="-592.85968"/>
|
||||||
|
<Scale x="0.9999308" y="0.99835175" z="0.99809289"/>
|
||||||
|
<Rotation x="-90" y="-15" z="-20"/>
|
||||||
|
</Object>
|
||||||
|
<Object Type="0">
|
||||||
|
<Position x="-213.46817" y="135.46735" z="-562.4892"/>
|
||||||
|
<Scale x="0.99988467" y="0.99907112" z="0.99889481"/>
|
||||||
|
<Rotation x="-90" y="48" z="0"/>
|
||||||
|
</Object>
|
||||||
|
<Object Type="0">
|
||||||
|
<Position x="-276.20966" y="50.973507" z="-426.81964"/>
|
||||||
|
<Scale x="0.99997073" y="1" z="0.99997073"/>
|
||||||
|
<Rotation x="0" y="75" z="0"/>
|
||||||
|
</Object>
|
||||||
|
<Object Type="0">
|
||||||
|
<Position x="-263.67758" y="20.335052" z="-315.45111"/>
|
||||||
|
<Scale x="0.99999481" y="1" z="0.99999481"/>
|
||||||
|
<Rotation x="0" y="60" z="0"/>
|
||||||
|
</Object>
|
||||||
|
<Object Type="0">
|
||||||
|
<Position x="-567.87341" y="6.0618649" z="-402.6113"/>
|
||||||
|
<Scale x="1" y="1" z="1"/>
|
||||||
|
<Rotation x="0" y="0" z="0"/>
|
||||||
|
</Object>
|
||||||
|
</Ring>
|
||||||
@@ -211,6 +211,7 @@ call Update_Shaders.bat
|
|||||||
<ClInclude Include="..\public\Quest_Panel.h" />
|
<ClInclude Include="..\public\Quest_Panel.h" />
|
||||||
<ClInclude Include="..\public\Quest_Slot.h" />
|
<ClInclude Include="..\public\Quest_Slot.h" />
|
||||||
<ClInclude Include="..\public\Quest_Status.h" />
|
<ClInclude Include="..\public\Quest_Status.h" />
|
||||||
|
<ClInclude Include="..\public\RaceRing.h" />
|
||||||
<ClInclude Include="..\Public\Ranrok.h" />
|
<ClInclude Include="..\Public\Ranrok.h" />
|
||||||
<ClInclude Include="..\Public\Ranrok_Breath.h" />
|
<ClInclude Include="..\Public\Ranrok_Breath.h" />
|
||||||
<ClInclude Include="..\Public\Ranrok_Point.h" />
|
<ClInclude Include="..\Public\Ranrok_Point.h" />
|
||||||
@@ -471,6 +472,7 @@ call Update_Shaders.bat
|
|||||||
<ClCompile Include="..\private\Quest_Panel.cpp" />
|
<ClCompile Include="..\private\Quest_Panel.cpp" />
|
||||||
<ClCompile Include="..\private\Quest_Slot.cpp" />
|
<ClCompile Include="..\private\Quest_Slot.cpp" />
|
||||||
<ClCompile Include="..\private\Quest_Status.cpp" />
|
<ClCompile Include="..\private\Quest_Status.cpp" />
|
||||||
|
<ClCompile Include="..\private\RaceRing.cpp" />
|
||||||
<ClCompile Include="..\Private\Ranrok.cpp" />
|
<ClCompile Include="..\Private\Ranrok.cpp" />
|
||||||
<ClCompile Include="..\Private\Ranrok_Breath.cpp" />
|
<ClCompile Include="..\Private\Ranrok_Breath.cpp" />
|
||||||
<ClCompile Include="..\Private\Ranrok_Point.cpp" />
|
<ClCompile Include="..\Private\Ranrok_Point.cpp" />
|
||||||
|
|||||||
@@ -712,6 +712,9 @@
|
|||||||
<Filter Include="02.GameObjects\Env\06.InstancedProp\Light">
|
<Filter Include="02.GameObjects\Env\06.InstancedProp\Light">
|
||||||
<UniqueIdentifier>{1402a2f4-a28b-4f95-b4ec-249a840fa819}</UniqueIdentifier>
|
<UniqueIdentifier>{1402a2f4-a28b-4f95-b4ec-249a840fa819}</UniqueIdentifier>
|
||||||
</Filter>
|
</Filter>
|
||||||
|
<Filter Include="02.GameObjects\RaceRing">
|
||||||
|
<UniqueIdentifier>{189b5f72-c985-4bf8-a33e-4257f6d74d25}</UniqueIdentifier>
|
||||||
|
</Filter>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ClInclude Include="Editor.h">
|
<ClInclude Include="Editor.h">
|
||||||
@@ -1443,6 +1446,9 @@
|
|||||||
<ClInclude Include="..\public\InstancedProp_Light.h">
|
<ClInclude Include="..\public\InstancedProp_Light.h">
|
||||||
<Filter>02.GameObjects\Env\06.InstancedProp\Light</Filter>
|
<Filter>02.GameObjects\Env\06.InstancedProp\Light</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\public\RaceRing.h">
|
||||||
|
<Filter>02.GameObjects\RaceRing</Filter>
|
||||||
|
</ClInclude>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Image Include="Editor.ico">
|
<Image Include="Editor.ico">
|
||||||
@@ -2182,6 +2188,9 @@
|
|||||||
<ClCompile Include="..\private\InstancedProp_Light.cpp">
|
<ClCompile Include="..\private\InstancedProp_Light.cpp">
|
||||||
<Filter>02.GameObjects\Env\06.InstancedProp\Light</Filter>
|
<Filter>02.GameObjects\Env\06.InstancedProp\Light</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\private\RaceRing.cpp">
|
||||||
|
<Filter>02.GameObjects\RaceRing</Filter>
|
||||||
|
</ClCompile>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ResourceCompile Include="Editor.rc">
|
<ResourceCompile Include="Editor.rc">
|
||||||
|
|||||||
@@ -64,21 +64,21 @@ HRESULT CLevel_MapViewer::Initialize()
|
|||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
//if (FAILED(Ready_Layer_Land(TEXT("Layer_Land")))) {
|
if (FAILED(Ready_Layer_Land(TEXT("Layer_Land")))) {
|
||||||
// return E_FAIL;
|
|
||||||
//}
|
|
||||||
|
|
||||||
if (FAILED(Ready_Layer_InstanceProp(TEXT("Layer_InstanceProp")))) {
|
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*if (FAILED(Ready_Layer_InstanceProp(TEXT("Layer_InstanceProp")))) {
|
||||||
|
return E_FAIL;
|
||||||
|
}*/
|
||||||
|
|
||||||
//if (FAILED(Ready_Layer_BuildingContainer(TEXT("Layer_Building")))) {
|
//if (FAILED(Ready_Layer_BuildingContainer(TEXT("Layer_Building")))) {
|
||||||
// return E_FAIL;
|
// return E_FAIL;
|
||||||
//}
|
//}
|
||||||
|
|
||||||
//if (FAILED(Ready_Layer_Unified(TEXT("Layer_Unified")))) {
|
if (FAILED(Ready_Layer_Unified(TEXT("Layer_Unified")))) {
|
||||||
// return E_FAIL;
|
return E_FAIL;
|
||||||
//}
|
}
|
||||||
|
|
||||||
/*if (FAILED(Ready_Layer_Door(TEXT("Layer_Door")))) {
|
/*if (FAILED(Ready_Layer_Door(TEXT("Layer_Door")))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
@@ -427,27 +427,27 @@ HRESULT CLevel_MapViewer::Ready_Layer_InstanceProp(const _wstring& strLayerTag)
|
|||||||
|
|
||||||
CInstancedProp_Light::INSTANCE_PROP_LIGHT_DESC LightDesc = {};
|
CInstancedProp_Light::INSTANCE_PROP_LIGHT_DESC LightDesc = {};
|
||||||
|
|
||||||
/* LightPost */
|
///* LightPost */
|
||||||
LightDesc.bEditMode = false;
|
//LightDesc.bEditMode = false;
|
||||||
LightDesc.isShake = false;
|
//LightDesc.isShake = false;
|
||||||
LightDesc.iGlassMeshIndex = 0;
|
//LightDesc.iGlassMeshIndex = 0;
|
||||||
LightDesc.vRadius = _float2(0.f, 0.f);
|
//LightDesc.vRadius = _float2(0.f, 0.f);
|
||||||
LightDesc.vSpeed = _float2(0.f, 0.f);
|
//LightDesc.vSpeed = _float2(0.f, 0.f);
|
||||||
LightDesc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_LightPost";
|
//LightDesc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_LightPost";
|
||||||
LightDesc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/Light_Post_Floating.bin";
|
//LightDesc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/Light_Post_Floating.bin";
|
||||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp_Light>(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &LightDesc)))
|
//if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp_Light>(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &LightDesc)))
|
||||||
return E_FAIL;
|
// return E_FAIL;
|
||||||
|
|
||||||
/* LightPost_Floating */
|
///* LightPost_Floating */
|
||||||
LightDesc.bEditMode = false;
|
//LightDesc.bEditMode = false;
|
||||||
LightDesc.isShake = false;
|
//LightDesc.isShake = false;
|
||||||
LightDesc.iGlassMeshIndex = 1;
|
//LightDesc.iGlassMeshIndex = 1;
|
||||||
LightDesc.vRadius = _float2(0.f, 0.f);
|
//LightDesc.vRadius = _float2(0.f, 0.f);
|
||||||
LightDesc.vSpeed = _float2(0.f, 0.f);
|
//LightDesc.vSpeed = _float2(0.f, 0.f);
|
||||||
LightDesc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_Light_Post_Floating";
|
//LightDesc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_Light_Post_Floating";
|
||||||
LightDesc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/LightPost.bin";
|
//LightDesc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/LightPost.bin";
|
||||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp_Light>(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &LightDesc)))
|
//if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp_Light>(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &LightDesc)))
|
||||||
return E_FAIL;
|
// return E_FAIL;
|
||||||
|
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
@@ -569,8 +569,8 @@ HRESULT CLevel_MapViewer::Ready_Layer_Player_And_Ranrok()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CRanrok>(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Monster"))))
|
/*if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CRanrok>(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Monster"))))
|
||||||
return E_FAIL;
|
return E_FAIL;*/
|
||||||
|
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -167,6 +167,8 @@
|
|||||||
#include "MapElement_Chest.h"
|
#include "MapElement_Chest.h"
|
||||||
#include "MapElement_Chest_Lid.h"
|
#include "MapElement_Chest_Lid.h"
|
||||||
#include "LightSpawner.h"
|
#include "LightSpawner.h"
|
||||||
|
#include "RaceRing.h"
|
||||||
|
|
||||||
#pragma endregion
|
#pragma endregion
|
||||||
|
|
||||||
|
|
||||||
@@ -2411,10 +2413,10 @@ HRESULT CLoader::Loading_For_MapViewer()
|
|||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Ranrok_Model"),
|
//if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Ranrok_Model"),
|
||||||
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/ConjuredDragon/ConjuredDragon.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
|
// CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/ConjuredDragon/ConjuredDragon.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
|
||||||
return E_FAIL;
|
// return E_FAIL;
|
||||||
}
|
//}
|
||||||
|
|
||||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Playable_Model"),
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Playable_Model"),
|
||||||
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable.bin", XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
|
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable.bin", XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
|
||||||
@@ -2663,6 +2665,7 @@ HRESULT CLoader::Loading_For_MapViewer()
|
|||||||
vector<_wstring> ModelPrototypeTags = {};
|
vector<_wstring> ModelPrototypeTags = {};
|
||||||
vector<filesystem::path> ModelPrototypePath = {};
|
vector<filesystem::path> ModelPrototypePath = {};
|
||||||
|
|
||||||
|
|
||||||
#pragma region HOGSMEADE
|
#pragma region HOGSMEADE
|
||||||
/* Hogsmead LOD */
|
/* Hogsmead LOD */
|
||||||
if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\HogsmeadeLOD\\ProxyAssets",
|
if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\HogsmeadeLOD\\ProxyAssets",
|
||||||
@@ -2853,107 +2856,105 @@ HRESULT CLoader::Loading_For_MapViewer()
|
|||||||
// ".fbx", false, ModelPrototypeTags, ModelPrototypePath)))
|
// ".fbx", false, ModelPrototypeTags, ModelPrototypePath)))
|
||||||
// return E_FAIL;
|
// return E_FAIL;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#pragma endregion
|
#pragma endregion
|
||||||
|
|
||||||
|
_bool bLoadHogsmeade = false;
|
||||||
|
if (bLoadHogsmeade)
|
||||||
|
{
|
||||||
#pragma region HOGSMEADE_OBJECT
|
#pragma region HOGSMEADE_OBJECT
|
||||||
|
/* Light */
|
||||||
|
if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\Common\\Meshes\\LightPosts",
|
||||||
|
".bin", false, ModelPrototypeTags, ModelPrototypePath)))
|
||||||
|
return E_FAIL;
|
||||||
|
|
||||||
// /* Fences */
|
/* Doors */
|
||||||
//if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\Common\\Meshes\\fences",
|
if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\Common\\Meshes\\Doors",
|
||||||
// ".fbx", false, ModelPrototypeTags, ModelPrototypePath)))
|
".bin", false, ModelPrototypeTags, ModelPrototypePath)))
|
||||||
// return E_FAIL;
|
return E_FAIL;
|
||||||
|
|
||||||
/* Light */
|
/* Step */
|
||||||
if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\Common\\Meshes\\LightPosts",
|
if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\Common\\Meshes\\GroundSurfaces",
|
||||||
".bin", false, ModelPrototypeTags, ModelPrototypePath)))
|
".bin", false, ModelPrototypeTags, ModelPrototypePath)))
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
|
|
||||||
/* Doors */
|
if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\Common\\Collision\\GroundSurfaces",
|
||||||
if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\Common\\Meshes\\Doors",
|
".bin", false, ModelPrototypeTags, ModelPrototypePath)))
|
||||||
".bin", false, ModelPrototypeTags, ModelPrototypePath)))
|
return E_FAIL;
|
||||||
return E_FAIL;
|
|
||||||
|
|
||||||
/* Step */
|
/* Box */
|
||||||
if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\Common\\Meshes\\GroundSurfaces",
|
if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\Common\\Meshes\\MiscProps",
|
||||||
".bin", false, ModelPrototypeTags, ModelPrototypePath)))
|
".bin", false, ModelPrototypeTags, ModelPrototypePath)))
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
|
|
||||||
if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\Common\\Collision\\GroundSurfaces",
|
/* TeaShop Table */
|
||||||
".bin", false, ModelPrototypeTags, ModelPrototypePath)))
|
if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\Common\\Meshes\\Tables",
|
||||||
return E_FAIL;
|
".bin", false, ModelPrototypeTags, ModelPrototypePath)))
|
||||||
|
return E_FAIL;
|
||||||
|
|
||||||
/* Box */
|
/* TeaShop Chair*/
|
||||||
if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\Common\\Meshes\\MiscProps",
|
if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\Common\\Meshes\\Chairs",
|
||||||
".bin", false, ModelPrototypeTags, ModelPrototypePath)))
|
".bin", false, ModelPrototypeTags, ModelPrototypePath)))
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
|
|
||||||
/* TeaShop Table */
|
|
||||||
if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\Common\\Meshes\\Tables",
|
|
||||||
".bin", false, ModelPrototypeTags, ModelPrototypePath)))
|
|
||||||
return E_FAIL;
|
|
||||||
|
|
||||||
/* TeaShop Chair*/
|
|
||||||
if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\Common\\Meshes\\Chairs",
|
|
||||||
".bin", false, ModelPrototypeTags, ModelPrototypePath)))
|
|
||||||
return E_FAIL;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Barrel */
|
/* Barrel */
|
||||||
if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Objects\\Meshes",
|
if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Objects\\Meshes",
|
||||||
".bin", false, ModelPrototypeTags, ModelPrototypePath)))
|
".bin", false, ModelPrototypeTags, ModelPrototypePath)))
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
|
|
||||||
/* Object Interactables */
|
/* Object Interactables */
|
||||||
/* Chest */
|
/* Chest */
|
||||||
if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Objects\\Interactables",
|
if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Objects\\Interactables",
|
||||||
".bin", false, ModelPrototypeTags, ModelPrototypePath)))
|
".bin", false, ModelPrototypeTags, ModelPrototypePath)))
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
#pragma endregion
|
#pragma endregion
|
||||||
|
|
||||||
#pragma region HOGSMEADE_LOD
|
#pragma region HOGSMEADE_LOD
|
||||||
/* SUB_HogsHead */
|
/* SUB_HogsHead */
|
||||||
if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\SUB_HogsHead\\SUB_HogsHead_EXTLOD\\ProxyAssets",
|
if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\SUB_HogsHead\\SUB_HogsHead_EXTLOD\\ProxyAssets",
|
||||||
".fbx", true, ModelPrototypeTags, ModelPrototypePath)))
|
".fbx", true, ModelPrototypeTags, ModelPrototypePath)))
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
/* SUB_PippensPotions */
|
/* SUB_PippensPotions */
|
||||||
if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\SUB_PippensPotions\\SUB_Pippens_EXTLOD\\ProxyAssets",
|
if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\SUB_PippensPotions\\SUB_Pippens_EXTLOD\\ProxyAssets",
|
||||||
".fbx", true, ModelPrototypeTags, ModelPrototypePath)))
|
".fbx", true, ModelPrototypeTags, ModelPrototypePath)))
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
/* GEN_E_LOD */
|
/* GEN_E_LOD */
|
||||||
if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\SUB_GEN_E\\SUB_GEN_E_EXTLOD\\ProxyAssets",
|
if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\SUB_GEN_E\\SUB_GEN_E_EXTLOD\\ProxyAssets",
|
||||||
".fbx", true, ModelPrototypeTags, ModelPrototypePath)))
|
".fbx", true, ModelPrototypeTags, ModelPrototypePath)))
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
/* GEN_F_LOD */
|
/* GEN_F_LOD */
|
||||||
if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\SUB_GEN_F\\SUB_GEN_F_EXTLOD\\ProxyAssets",
|
if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\SUB_GEN_F\\SUB_GEN_F_EXTLOD\\ProxyAssets",
|
||||||
".fbx", true, ModelPrototypeTags, ModelPrototypePath)))
|
".fbx", true, ModelPrototypeTags, ModelPrototypePath)))
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
/* GEN_G_LOD */
|
/* GEN_G_LOD */
|
||||||
if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\SUB_GEN_G\\SUB_GEN_G_EXTLOD\\ProxyAssets",
|
if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\SUB_GEN_G\\SUB_GEN_G_EXTLOD\\ProxyAssets",
|
||||||
".fbx", true, ModelPrototypeTags, ModelPrototypePath)))
|
".fbx", true, ModelPrototypeTags, ModelPrototypePath)))
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
/* GEN_H_LOD */
|
/* GEN_H_LOD */
|
||||||
if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\SUB_GEN_H\\SUB_GEN_H_EXTLOD\\ProxyAssets",
|
if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\SUB_GEN_H\\SUB_GEN_H_EXTLOD\\ProxyAssets",
|
||||||
".fbx", true, ModelPrototypeTags, ModelPrototypePath)))
|
".fbx", true, ModelPrototypeTags, ModelPrototypePath)))
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
/* GEN_J_LOD */
|
/* GEN_J_LOD */
|
||||||
if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\SUB_GEN_J\\SUB_GEN_J_EXTLOD\\ProxyAssets",
|
if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\SUB_GEN_J\\SUB_GEN_J_EXTLOD\\ProxyAssets",
|
||||||
".fbx", true, ModelPrototypeTags, ModelPrototypePath)))
|
".fbx", true, ModelPrototypeTags, ModelPrototypePath)))
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
#pragma endregion
|
#pragma endregion
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
#pragma region HOGWART
|
#pragma region HOGWART
|
||||||
_bool bHogwartLoad = { false };
|
_bool bHogwartLoad = { true };
|
||||||
|
|
||||||
/* Hogwart LOD */
|
/* Hogwart LOD */
|
||||||
if (FAILED(MapFolderLoad("../Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/HogwartsLOD",
|
if (FAILED(MapFolderLoad("../Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/HogwartsLOD",
|
||||||
".bin", false, ModelPrototypeTags, ModelPrototypePath)))
|
".bin", false, ModelPrototypeTags, ModelPrototypePath)))
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
|
|
||||||
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_RaceRing_Model"),
|
||||||
|
CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/Object/RaceRing/SM_BRR_RaceRing_01.bin", XMMatrixRotationX(XMConvertToRadians(90.f)) * XMMatrixIdentity()))))
|
||||||
|
return E_FAIL;
|
||||||
|
|
||||||
if(bHogwartLoad)
|
if(bHogwartLoad)
|
||||||
{
|
{
|
||||||
/* QuidditchPitch */
|
/* QuidditchPitch */
|
||||||
@@ -3247,7 +3248,7 @@ vector<future<void>> jobFutures;
|
|||||||
_uint iLoadCount = 46;
|
_uint iLoadCount = 46;
|
||||||
vector<vector<FOLDER_LOAD*>*> Contents(iLoadCount);
|
vector<vector<FOLDER_LOAD*>*> Contents(iLoadCount);
|
||||||
|
|
||||||
_bool isLoad_Map = { true };
|
_bool isLoad_Map = { false };
|
||||||
if(isLoad_Map)
|
if(isLoad_Map)
|
||||||
{
|
{
|
||||||
{ /* Terrain */
|
{ /* Terrain */
|
||||||
@@ -3852,6 +3853,10 @@ if(isLoad_Map)
|
|||||||
if (FAILED(m_pGameInstance->Add_Prototype<CDummyDecal>(g_iStaticLevel, CDummyDecal::Create(m_pDevice, m_pContext))))
|
if (FAILED(m_pGameInstance->Add_Prototype<CDummyDecal>(g_iStaticLevel, CDummyDecal::Create(m_pDevice, m_pContext))))
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
|
|
||||||
|
/* For.Prototype_GameObject_RaceRing */
|
||||||
|
if (FAILED(m_pGameInstance->Add_Prototype<CRaceRing>(g_iStaticLevel, CRaceRing::Create(m_pDevice, m_pContext))))
|
||||||
|
return E_FAIL;
|
||||||
|
|
||||||
/* For.Prototype_GameObject_MapObject_Manager */
|
/* For.Prototype_GameObject_MapObject_Manager */
|
||||||
if (FAILED(m_pGameInstance->Add_Prototype<CMapObject_Manager>(g_iStaticLevel, CMapObject_Manager::Create(m_pDevice, m_pContext, ModelPrototypeTags, ModelPrototypePath))))
|
if (FAILED(m_pGameInstance->Add_Prototype<CMapObject_Manager>(g_iStaticLevel, CMapObject_Manager::Create(m_pDevice, m_pContext, ModelPrototypeTags, ModelPrototypePath))))
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
|
|||||||
@@ -15,6 +15,7 @@
|
|||||||
#include "MapElement_Lake.h"
|
#include "MapElement_Lake.h"
|
||||||
#include "LightSpawner.h"
|
#include "LightSpawner.h"
|
||||||
#include "DummyDecal.h"
|
#include "DummyDecal.h"
|
||||||
|
#include "RaceRing.h"
|
||||||
|
|
||||||
|
|
||||||
CMapObject_Manager::CMapObject_Manager(ID3D11Device * pDevice, ID3D11DeviceContext * pContext)
|
CMapObject_Manager::CMapObject_Manager(ID3D11Device * pDevice, ID3D11DeviceContext * pContext)
|
||||||
@@ -93,6 +94,10 @@ HRESULT CMapObject_Manager::Initialize(void* pArg)
|
|||||||
//m_pInfoInstance->Load_Decal("Duengon_Decal_Data");
|
//m_pInfoInstance->Load_Decal("Duengon_Decal_Data");
|
||||||
//m_pInfoInstance->Load_PointLights("Duengon_PointLight_Data");
|
//m_pInfoInstance->Load_PointLights("Duengon_PointLight_Data");
|
||||||
#pragma endregion
|
#pragma endregion
|
||||||
|
if (FAILED(Load_MapData("Hogwart_MapContainer_Data", LAYER_HOGWART)))
|
||||||
|
return E_FAIL;
|
||||||
|
if (FAILED(Load_MapData("HogwartMap1221", LAYER_HOGWART)))
|
||||||
|
return E_FAIL;
|
||||||
|
|
||||||
|
|
||||||
#pragma region Light
|
#pragma region Light
|
||||||
@@ -206,8 +211,9 @@ void CMapObject_Manager::Update(_float fTimeDelta)
|
|||||||
|
|
||||||
Update_Edit();
|
Update_Edit();
|
||||||
|
|
||||||
Update_LightSpawer();
|
//Update_LightSpawer();
|
||||||
//Update_Decal();
|
//Update_Decal();
|
||||||
|
Update_RaceRing();
|
||||||
|
|
||||||
Update_Unified();
|
Update_Unified();
|
||||||
|
|
||||||
@@ -1945,6 +1951,51 @@ HRESULT CMapObject_Manager::Save_Decal(const _char* pFileName)
|
|||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
HRESULT CMapObject_Manager::Save_RaceRing(const _char* pFileName)
|
||||||
|
{
|
||||||
|
CLayer* pLayer = m_pGameInstance->Get_Layer(ENUM_CLASS(LEVEL::MAP), TEXT("Layer_RaceRing"));
|
||||||
|
|
||||||
|
if (nullptr == pLayer)
|
||||||
|
return S_OK;
|
||||||
|
|
||||||
|
tinyxml2::XMLDocument doc;
|
||||||
|
string strPath = "../Bin/Resources/Data/Map/RaceRing/" + string(pFileName) + ".xml";
|
||||||
|
|
||||||
|
tinyxml2::XMLError loadResult = doc.LoadFile(strPath.c_str());
|
||||||
|
|
||||||
|
doc.Clear();
|
||||||
|
doc.InsertFirstChild(doc.NewDeclaration());
|
||||||
|
|
||||||
|
tinyxml2::XMLElement* root = doc.NewElement("Ring");
|
||||||
|
doc.InsertEndChild(root);
|
||||||
|
|
||||||
|
if (nullptr != pLayer)
|
||||||
|
{
|
||||||
|
const list<CGameObject*>* pList = pLayer->Get_Objects();
|
||||||
|
|
||||||
|
for (auto pGamObject : *pList)
|
||||||
|
{
|
||||||
|
CRaceRing* pRaceRing = dynamic_cast<CRaceRing*>(pGamObject);
|
||||||
|
|
||||||
|
if (nullptr == pRaceRing)
|
||||||
|
return E_FAIL;
|
||||||
|
|
||||||
|
if (FAILED(pRaceRing->Save_XML(doc, root)))
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (doc.SaveFile(strPath.c_str()) != tinyxml2::XML_SUCCESS) {
|
||||||
|
MSG_BOX("Failed to Save File");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
MSG_BOX("Succeed to Save DummyDecals");
|
||||||
|
}
|
||||||
|
|
||||||
|
return S_OK;
|
||||||
|
}
|
||||||
|
|
||||||
void CMapObject_Manager::Update_PrototypeList()
|
void CMapObject_Manager::Update_PrototypeList()
|
||||||
{
|
{
|
||||||
GUI::Begin("Model Prototype List");
|
GUI::Begin("Model Prototype List");
|
||||||
@@ -2282,6 +2333,40 @@ void CMapObject_Manager::Update_Decal()
|
|||||||
GUI::End();
|
GUI::End();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CMapObject_Manager::Update_RaceRing()
|
||||||
|
{
|
||||||
|
GUI::Begin("RaceRing Editor");
|
||||||
|
if (GUI::Button("Save RaceRings"))
|
||||||
|
{
|
||||||
|
Save_RaceRing("RaceRing_Data");
|
||||||
|
}
|
||||||
|
if (GUI::Button("Load Ring"))
|
||||||
|
{
|
||||||
|
//m_pInfoInstance->Load_Decal("Duengon_Decal_Data");
|
||||||
|
}
|
||||||
|
if (GUI::Button("Add Ring"))
|
||||||
|
{
|
||||||
|
m_pGameInstance->Add_GameObject_ToLayer<CRaceRing>(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_RaceRing"));
|
||||||
|
}
|
||||||
|
|
||||||
|
GUI::InputInt("Index : ", (_int*)&m_iSelectedIndex);
|
||||||
|
CLayer* pLayer = m_pGameInstance->Get_Layer(ENUM_CLASS(LEVEL::MAP), TEXT("Layer_RaceRing"));
|
||||||
|
|
||||||
|
if (nullptr != pLayer)
|
||||||
|
{
|
||||||
|
_uint iIndex = {};
|
||||||
|
for (auto& pObject : *pLayer->Get_Objects())
|
||||||
|
{
|
||||||
|
if (m_iSelectedIndex == iIndex)
|
||||||
|
pObject->Describe_Entity();
|
||||||
|
|
||||||
|
++iIndex;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
GUI::End();
|
||||||
|
}
|
||||||
|
|
||||||
void CMapObject_Manager::Create_PartObject(_wstring& strPrototypeTag)
|
void CMapObject_Manager::Create_PartObject(_wstring& strPrototypeTag)
|
||||||
{
|
{
|
||||||
vector<_uint> LodModelIndices;
|
vector<_uint> LodModelIndices;
|
||||||
|
|||||||
@@ -0,0 +1,218 @@
|
|||||||
|
#include "pch.h"
|
||||||
|
#include "RaceRing.h"
|
||||||
|
|
||||||
|
#include "GameInstance.h"
|
||||||
|
|
||||||
|
CRaceRing::CRaceRing(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||||
|
: CGameObject(pDevice, pContext)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
CRaceRing::CRaceRing(const CRaceRing& Prototype)
|
||||||
|
: CGameObject(Prototype)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
HRESULT CRaceRing::Initialize_Prototype()
|
||||||
|
{
|
||||||
|
return S_OK;
|
||||||
|
}
|
||||||
|
|
||||||
|
HRESULT CRaceRing::Initialize(void* pArg)
|
||||||
|
{
|
||||||
|
if (FAILED(__super::Initialize(pArg))) {
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (FAILED(Ready_Components())) {
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
|
|
||||||
|
m_iIndex = 0;
|
||||||
|
|
||||||
|
return S_OK;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CRaceRing::Priority_Update(_float fTimeDelta)
|
||||||
|
{
|
||||||
|
#ifdef _DEBUG
|
||||||
|
|
||||||
|
#endif // _DEBUG
|
||||||
|
}
|
||||||
|
|
||||||
|
void CRaceRing::Update(_float fTimeDelta)
|
||||||
|
{
|
||||||
|
m_pModelCom->Combined_BoneMatrix();
|
||||||
|
}
|
||||||
|
|
||||||
|
void CRaceRing::Late_Update(_float fTimeDelta)
|
||||||
|
{
|
||||||
|
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
|
||||||
|
}
|
||||||
|
|
||||||
|
HRESULT CRaceRing::Render()
|
||||||
|
{
|
||||||
|
if (!m_pModelCom)
|
||||||
|
return S_OK;
|
||||||
|
|
||||||
|
if (!m_bVisible)
|
||||||
|
return S_OK;
|
||||||
|
|
||||||
|
if (FAILED(Bind_ShaderResources())) {
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
|
|
||||||
|
_uint iNumMeshes = m_pModelCom->Get_NumMeshes();
|
||||||
|
|
||||||
|
for (_uint i = 0; i < iNumMeshes; i++)
|
||||||
|
{
|
||||||
|
if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) {
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_ANIM::DEFAULT)))) {
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (FAILED(m_pModelCom->Render(i))) {
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
return S_OK;
|
||||||
|
}
|
||||||
|
|
||||||
|
HRESULT CRaceRing::Ready_Components()
|
||||||
|
{
|
||||||
|
__super::Ready_Components(nullptr);
|
||||||
|
|
||||||
|
/* Com_Model */
|
||||||
|
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_RaceRing_Model"),
|
||||||
|
reinterpret_cast<CComponent**>(&m_pModelCom))))
|
||||||
|
return E_FAIL;
|
||||||
|
|
||||||
|
/* Com_Shader */
|
||||||
|
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_MESH,
|
||||||
|
reinterpret_cast<CComponent**>(&m_pShaderCom))))
|
||||||
|
return E_FAIL;
|
||||||
|
|
||||||
|
return S_OK;
|
||||||
|
}
|
||||||
|
|
||||||
|
HRESULT CRaceRing::Bind_ShaderResources()
|
||||||
|
{
|
||||||
|
if (FAILED(m_pShaderCom->Bind_Matrix("g_WorldMatrix", m_pTransformCom->Get_WorldMatrixPtr()))) {
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
|
if (FAILED(m_pShaderCom->Bind_Matrix("g_PrevWorldMatrix", m_pTransformCom->Get_PrevWorldMatrixPtr()))) {
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
|
if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevViewMatrix", D3DTS::VIEW))) {
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
|
if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevProjMatrix", D3DTS::PROJ))) {
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
|
||||||
|
CRaceRing* CRaceRing::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||||
|
{
|
||||||
|
CRaceRing* pInstance = new CRaceRing(pDevice, pContext);
|
||||||
|
|
||||||
|
if (FAILED(pInstance->Initialize_Prototype()))
|
||||||
|
{
|
||||||
|
MSG_BOX("Failed to Created : CRaceRing");
|
||||||
|
SAFE_RELEASE(pInstance);
|
||||||
|
}
|
||||||
|
|
||||||
|
return pInstance;
|
||||||
|
}
|
||||||
|
|
||||||
|
CGameObject* CRaceRing::Clone(void* pArg, CGameObject* pOwner)
|
||||||
|
{
|
||||||
|
CRaceRing* pInstance = new CRaceRing(*this);
|
||||||
|
pInstance->m_pOwner = pOwner;
|
||||||
|
if (FAILED(pInstance->Initialize(pArg)))
|
||||||
|
{
|
||||||
|
MSG_BOX("Failed to Cloned : CRaceRing");
|
||||||
|
SAFE_RELEASE(pInstance);
|
||||||
|
}
|
||||||
|
|
||||||
|
return pInstance;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CRaceRing::Free()
|
||||||
|
{
|
||||||
|
__super::Free();
|
||||||
|
|
||||||
|
SAFE_RELEASE(m_pShaderCom);
|
||||||
|
SAFE_RELEASE(m_pModelCom);
|
||||||
|
|
||||||
|
}
|
||||||
|
#ifdef _DEBUG
|
||||||
|
|
||||||
|
void CRaceRing::Describe_Entity()
|
||||||
|
{
|
||||||
|
m_pTransformCom->Describe_Entity();
|
||||||
|
|
||||||
|
if (m_pGameInstance->Mouse_Down(DIM_LBUTTON) && m_pGameInstance->Key_Pressing(DIK_LSHIFT))
|
||||||
|
{
|
||||||
|
_float3 vPosition = {};
|
||||||
|
if (m_pGameInstance->isPicking(&vPosition))
|
||||||
|
{
|
||||||
|
vPosition.y += 20.7f;
|
||||||
|
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&vPosition), 1.f));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
HRESULT CRaceRing::Save_XML(tinyxml2::XMLDocument& doc, tinyxml2::XMLElement* root)
|
||||||
|
{
|
||||||
|
tinyxml2::XMLElement* object = doc.NewElement("Object");
|
||||||
|
object->SetAttribute("Type", 0);
|
||||||
|
root->InsertEndChild(object);
|
||||||
|
|
||||||
|
#pragma region TRANSFORM
|
||||||
|
_float3 vPosition = {};
|
||||||
|
XMStoreFloat3(&vPosition, m_pTransformCom->Get_State(STATE::POSITION));
|
||||||
|
|
||||||
|
_float3 vScale = m_pTransformCom->Get_Scale();
|
||||||
|
|
||||||
|
_float3 vRotation = m_pTransformCom->Get_Rotation();
|
||||||
|
|
||||||
|
tinyxml2::XMLElement* Position = doc.NewElement("Position");
|
||||||
|
Position->SetAttribute("x", vPosition.x);
|
||||||
|
Position->SetAttribute("y", vPosition.y);
|
||||||
|
Position->SetAttribute("z", vPosition.z);
|
||||||
|
object->InsertEndChild(Position);
|
||||||
|
|
||||||
|
tinyxml2::XMLElement* Scale = doc.NewElement("Scale");
|
||||||
|
Scale->SetAttribute("x", vScale.x);
|
||||||
|
Scale->SetAttribute("y", vScale.y);
|
||||||
|
Scale->SetAttribute("z", vScale.z);
|
||||||
|
object->InsertEndChild(Scale);
|
||||||
|
|
||||||
|
tinyxml2::XMLElement* Rotation = doc.NewElement("Rotation");
|
||||||
|
Rotation->SetAttribute("x", vRotation.x);
|
||||||
|
Rotation->SetAttribute("y", vRotation.y);
|
||||||
|
Rotation->SetAttribute("z", vRotation.z);
|
||||||
|
object->InsertEndChild(Rotation);
|
||||||
|
#pragma endregion
|
||||||
|
|
||||||
|
return S_OK;
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif // _DEBUG
|
||||||
@@ -84,6 +84,10 @@ class CMapObject_Manager final : public CGameObject
|
|||||||
|
|
||||||
HRESULT Save_PointLightObject(const _char* pFileName);
|
HRESULT Save_PointLightObject(const _char* pFileName);
|
||||||
HRESULT Save_Decal(const _char* pFileName);
|
HRESULT Save_Decal(const _char* pFileName);
|
||||||
|
|
||||||
|
HRESULT Save_RaceRing(const _char* pFileName);
|
||||||
|
|
||||||
|
|
||||||
#pragma endregion
|
#pragma endregion
|
||||||
|
|
||||||
void Update_PrototypeList();
|
void Update_PrototypeList();
|
||||||
@@ -93,6 +97,7 @@ class CMapObject_Manager final : public CGameObject
|
|||||||
void Update_Unified();
|
void Update_Unified();
|
||||||
void Update_LightSpawer();
|
void Update_LightSpawer();
|
||||||
void Update_Decal();
|
void Update_Decal();
|
||||||
|
void Update_RaceRing();
|
||||||
|
|
||||||
void Create_PartObject(_wstring& strPrototypeTag);
|
void Create_PartObject(_wstring& strPrototypeTag);
|
||||||
void Create_Elemnt(_wstring& strPrototypeTag);
|
void Create_Elemnt(_wstring& strPrototypeTag);
|
||||||
|
|||||||
@@ -0,0 +1,45 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "Editor_Define.h"
|
||||||
|
#include "PartObject.h"
|
||||||
|
|
||||||
|
NS_BEGIN(Editor)
|
||||||
|
|
||||||
|
class CRaceRing final : public CGameObject
|
||||||
|
{
|
||||||
|
private:
|
||||||
|
CRaceRing(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||||
|
CRaceRing(const CRaceRing& Prototype);
|
||||||
|
virtual ~CRaceRing() = default;
|
||||||
|
|
||||||
|
public:
|
||||||
|
virtual HRESULT Initialize_Prototype() override;
|
||||||
|
virtual HRESULT Initialize(void* pArg) override;
|
||||||
|
virtual void Priority_Update(_float fTimeDelta) override;
|
||||||
|
virtual void Update(_float fTimeDelta) override;
|
||||||
|
virtual void Late_Update(_float fTimeDelta) override;
|
||||||
|
virtual HRESULT Render() override;
|
||||||
|
void Set_Target(_bool bTarget) { m_bTarget = bTarget; }
|
||||||
|
|
||||||
|
private:
|
||||||
|
CShader* m_pShaderCom = { nullptr };
|
||||||
|
CModel* m_pModelCom = { nullptr };
|
||||||
|
_bool m_bTarget = { false };
|
||||||
|
_int m_iIndex = {};
|
||||||
|
|
||||||
|
private:
|
||||||
|
HRESULT Ready_Components();
|
||||||
|
HRESULT Bind_ShaderResources();
|
||||||
|
|
||||||
|
public:
|
||||||
|
static CRaceRing* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||||
|
virtual CGameObject* Clone(void* pArg, CGameObject* pOwner = nullptr)override;
|
||||||
|
virtual void Free() override;
|
||||||
|
|
||||||
|
#ifdef _DEBUG
|
||||||
|
void Describe_Entity() override;
|
||||||
|
HRESULT Save_XML(tinyxml2::XMLDocument& doc, tinyxml2::XMLElement* root);
|
||||||
|
#endif // _DEBUG
|
||||||
|
};
|
||||||
|
|
||||||
|
NS_END
|
||||||
Reference in New Issue
Block a user