[merge commit]
This commit is contained in:
@@ -0,0 +1,55 @@
|
||||
<Dialogue id="ELF_ANIM">
|
||||
|
||||
<Name Flow="0" Trigger="DIALOGUE_END">
|
||||
<Anim state="BROWSE_START" index="51" loop="false"/>
|
||||
</Name>
|
||||
|
||||
<Name Flow="1" Trigger="DIALOGUE_END">
|
||||
<Anim state="BROWSE_END" index="50" loop="false"/>
|
||||
</Name>
|
||||
|
||||
<Name Flow="2" Trigger="ARRIVE_POS">
|
||||
<Anim state="SPRINT" index="0" loop="true"/>
|
||||
</Name>
|
||||
|
||||
<Name Flow="3" Trigger="DIALOGUE_END">
|
||||
<Anim state="CROUCH" index="18" loop="true"/>
|
||||
</Name>
|
||||
|
||||
<Name Flow="4" Trigger="ARRIVE_POS">
|
||||
<Anim state="SPRINT" index="0" loop="true"/>
|
||||
</Name>
|
||||
|
||||
<Name Flow="5" Trigger="ARRIVE_POS">
|
||||
<Anim state="SPRINT" index="0" loop="true"/>
|
||||
</Name>
|
||||
|
||||
<Name Flow="6" Trigger="ARRIVE_POS">
|
||||
<Anim state="IDLE" index="1" loop="true"/>
|
||||
</Name>
|
||||
|
||||
<Name Flow="7" Trigger="DIALOGUE_END">
|
||||
<Anim state="HELLO" index="19" loop="true"/>
|
||||
</Name>
|
||||
|
||||
<Name Flow="8" Trigger="DIALOGUE_END">
|
||||
<Anim state="IDLE" index="1" loop="true"/>
|
||||
</Name>
|
||||
|
||||
<Name Flow="9" Trigger="ANIM_END">
|
||||
<Anim state="FINGERSNAP" index="16" loop="false"/>
|
||||
</Name>
|
||||
|
||||
<Name Flow="10" Trigger="DIALOGUE_END">
|
||||
<Anim state="IDLE" index="1" loop="true"/>
|
||||
</Name>
|
||||
|
||||
<Name Flow="11" Trigger="ANIM_END">
|
||||
<Anim state="CROUCHALERT" index="17" loop="false"/>
|
||||
</Name>
|
||||
|
||||
<Name Flow="12" Trigger="DIALOGUE_END">
|
||||
<Anim state="IDLE" index="1" loop="true"/>
|
||||
</Name>
|
||||
|
||||
</Dialogue>
|
||||
@@ -58,11 +58,11 @@
|
||||
<Anim state="SKILL2" index="992" loop="false"/>
|
||||
<Anim state="SHIELD_BLOCK1" index="985" loop="false"/>
|
||||
<Anim state="SHIELD_BLOCK2" index="986" loop="false"/>
|
||||
<Anim state="SHIELD_BLOCK3" index="1011" loop="false"/>
|
||||
<Anim state="SHIELD_BLOCK4" index="1012" loop="false"/>
|
||||
<Anim state="SHIELD_BLOCK5" index="1013" loop="false"/>
|
||||
<Anim state="SHIELD_BLOCK6" index="1015" loop="false"/>
|
||||
<Anim state="SHIELD_BLOCK7" index="1016" loop="false"/>
|
||||
<Anim state="SHIELD_BLOCK3" index="1009" loop="false"/>
|
||||
<Anim state="SHIELD_BLOCK4" index="1010" loop="false"/>
|
||||
<Anim state="SHIELD_BLOCK5" index="1011" loop="false"/>
|
||||
<Anim state="SHIELD_BLOCK6" index="1013" loop="false"/>
|
||||
<Anim state="SHIELD_BLOCK7" index="1014" loop="false"/>
|
||||
|
||||
<Anim state="SHIELD_BLOCK_90_L1" index="964" loop="false"/>
|
||||
<Anim state="SHIELD_BLOCK_90_L2" index="965" loop="false"/>
|
||||
@@ -121,27 +121,27 @@
|
||||
<Anim state="PARRY6" index="938" loop="false"/>
|
||||
|
||||
<!-- HIT / FLINCH -->
|
||||
<Anim state="HIT_BWD" index="1213" loop="false"/>
|
||||
<Anim state="HIT_L" index="1216" loop="false"/>
|
||||
<Anim state="HIT_R" index="1217" loop="false"/>
|
||||
<Anim state="HIT_FWD" index="1218" loop="false"/>
|
||||
<Anim state="HIT_LEVIOSO" index="1114" loop="true"/>
|
||||
<Anim state="LEVIOSO_LAND" index="1115" loop="false"/>
|
||||
<Anim state="HIT_BWD" index="1211" loop="false"/>
|
||||
<Anim state="HIT_L" index="1214" loop="false"/>
|
||||
<Anim state="HIT_R" index="1215" loop="false"/>
|
||||
<Anim state="HIT_FWD" index="1216" loop="false"/>
|
||||
<Anim state="HIT_LEVIOSO" index="1112" loop="true"/>
|
||||
<Anim state="LEVIOSO_LAND" index="1113" loop="false"/>
|
||||
|
||||
<Anim state="FLINCH_BWD" index="1076" loop="false"/>
|
||||
<Anim state="FLINCH_FWD" index="1077" loop="false"/>
|
||||
<Anim state="FLINCH_LEFT" index="1078" loop="false"/>
|
||||
<Anim state="FLINCH_RIGHT" index="1079" loop="false"/>
|
||||
<Anim state="FLINCH_BWD" index="1074" loop="false"/>
|
||||
<Anim state="FLINCH_FWD" index="1075" loop="false"/>
|
||||
<Anim state="FLINCH_LEFT" index="1076" loop="false"/>
|
||||
<Anim state="FLINCH_RIGHT" index="1077" loop="false"/>
|
||||
|
||||
<!-- KNOCKDOWN -->
|
||||
<Anim state="KNOCKDOWN_BWD" index="1087" loop="false"/>
|
||||
<Anim state="KNOCKDOWN_FWD" index="1089" loop="false"/>
|
||||
<Anim state="KNOCKDOWN_BWD_SPLT" index="1091" loop="false"/>
|
||||
<Anim state="KNOCKDOWN_FWD_SPLT" index="1090" loop="false"/>
|
||||
<Anim state="KNOCKDOWN_BWD" index="1086" loop="false"/>
|
||||
<Anim state="KNOCKDOWN_FWD" index="1087" loop="false"/>
|
||||
<Anim state="KNOCKDOWN_BWD_SPLT" index="1089" loop="false"/>
|
||||
<Anim state="KNOCKDOWN_FWD_SPLT" index="1088" loop="false"/>
|
||||
|
||||
<!-- GETUP -->
|
||||
<Anim state="GETUP_BWD" index="1095" loop="false"/>
|
||||
<Anim state="GETUP_FWD" index="1100" loop="false"/>
|
||||
<Anim state="GETUP_BWD" index="1093" loop="false"/>
|
||||
<Anim state="GETUP_FWD" index="1098" loop="false"/>
|
||||
|
||||
<!-- BROOM -->
|
||||
<Anim state="BROOM_IDLE" index="711" loop="true"/>
|
||||
@@ -180,15 +180,13 @@
|
||||
<Anim state="OPEN_DOOR_R" index="1005" loop="false"/>
|
||||
|
||||
<!-- SPELL LEARNING -->
|
||||
<Anim state="SPELL_LEARNING_FAIL" index="1292" loop="false"/>
|
||||
<Anim state="SPELL_LEARNING_LOOP" index="1293" loop="true"/>
|
||||
<Anim state="SPELL_LEARNING_START" index="1294" loop="false"/>
|
||||
<Anim state="SPELL_LEARNING_SUCCESS" index="1295" loop="false"/>
|
||||
<Anim state="SPELL_LEARNING_WANDWAVE" index="1296" loop="false"/>
|
||||
<Anim state="SPELL_LEARNING_FAIL" index="1290" loop="false"/>
|
||||
<Anim state="SPELL_LEARNING_LOOP" index="1291" loop="true"/>
|
||||
<Anim state="SPELL_LEARNING_START" index="1292" loop="false"/>
|
||||
<Anim state="SPELL_LEARNING_SUCCESS" index="1293" loop="false"/>
|
||||
<Anim state="SPELL_LEARNING_WANDWAVE" index="1294" loop="false"/>
|
||||
|
||||
<!-- CUT SCENE -->
|
||||
<Anim state="CUTSCENE_TROLLINTRO" index="1297" loop="false"/>
|
||||
<Anim state="CUTSCENE_TROLLINTRO" index="1295" loop="false"/>
|
||||
<Anim state="CUTSCENE_OPENINGINTRO1" index="1006" loop="false"/>
|
||||
<Anim state="CUTSCENE_OPENINGINTRO2" index="1007" loop="true"/>
|
||||
<Anim state="CUTSCENE_OPENINGINTRO3" index="1008" loop="false"/>
|
||||
</Animations>
|
||||
|
||||
@@ -0,0 +1,86 @@
|
||||
<ElfPosInfo>
|
||||
<ElfPosData>
|
||||
|
||||
<Name Flow="0">
|
||||
<Position>
|
||||
<Pos x="-84.20" y="-30.98" z="-60.13"/>
|
||||
</Position>
|
||||
</Name>
|
||||
|
||||
<Name Flow="1">
|
||||
<Position>
|
||||
<Pos x="-84.20" y="-30.98" z="-60.13"/>
|
||||
</Position>
|
||||
</Name>
|
||||
|
||||
<Name Flow="2">
|
||||
<Position>
|
||||
<Pos x="-52.44" y="-28.42" z="-55.25"/>
|
||||
</Position>
|
||||
</Name>
|
||||
|
||||
<Name Flow="3">
|
||||
<Position>
|
||||
<Pos x="-52.44" y="-28.42" z="-55.25"/>
|
||||
</Position>
|
||||
</Name>
|
||||
|
||||
<Name Flow="4">
|
||||
<Position>
|
||||
<Pos x="-4.123" y="-18.538" z="-49.517"/>
|
||||
</Position>
|
||||
</Name>
|
||||
|
||||
<Name Flow="5">
|
||||
<Position>
|
||||
<Pos x="3.535" y="-14.009" z="-32.619"/>
|
||||
</Position>
|
||||
</Name>
|
||||
|
||||
<Name Flow="6">
|
||||
<Position>
|
||||
<Pos x="3.535" y="-14.009" z="-32.619"/>
|
||||
</Position>
|
||||
</Name>
|
||||
|
||||
<Name Flow="7">
|
||||
<Position>
|
||||
<Pos x="3.535" y="-14.009" z="-32.619"/>
|
||||
</Position>
|
||||
</Name>
|
||||
|
||||
<Name Flow="8">
|
||||
<Position>
|
||||
<Pos x="3.535" y="-14.009" z="-32.619"/>
|
||||
</Position>
|
||||
</Name>
|
||||
|
||||
<Name Flow="9">
|
||||
<Position>
|
||||
<Pos x="3.535" y="-14.009" z="-32.619"/>
|
||||
</Position>
|
||||
</Name>
|
||||
|
||||
<Name Flow="10">
|
||||
<Position>
|
||||
<Pos x="3.535" y="-14.009" z="-32.619"/>
|
||||
</Position>
|
||||
</Name>
|
||||
|
||||
<Name Flow="11">
|
||||
<Position>
|
||||
<Pos x="3.535" y="-14.009" z="-32.619"/>
|
||||
</Position>
|
||||
</Name>
|
||||
|
||||
<Name Flow="12">
|
||||
<Position>
|
||||
<Pos x="3.535" y="-14.009" z="-32.619"/>
|
||||
</Position>
|
||||
</Name>
|
||||
|
||||
</ElfPosData>
|
||||
</ElfPosInfo>
|
||||
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
<PrototypeTag>Prototype_GameObject_SM_Chest_RewardContainer_C_Lid_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_Chest_RewardContainer_C_Lid_Lod2</PrototypeTag>
|
||||
<Position x="0" y="0.5" z="0"/>
|
||||
<RotationAngle RotationAngle="10"/>
|
||||
<RotationAngle RotationAngle="70"/>
|
||||
</Lid>
|
||||
</Object>
|
||||
<Object Type="2" ID="2" Lod_Level="3">
|
||||
@@ -35,7 +35,7 @@
|
||||
<PrototypeTag>Prototype_GameObject_SM_Chest_RewardContainer_C_Lid_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_Chest_RewardContainer_C_Lid_Lod2</PrototypeTag>
|
||||
<Position x="0" y="0.5" z="0"/>
|
||||
<RotationAngle RotationAngle="10"/>
|
||||
<RotationAngle RotationAngle="70"/>
|
||||
</Lid>
|
||||
</Object>
|
||||
<Object Type="2" ID="2" Lod_Level="3">
|
||||
@@ -54,7 +54,7 @@
|
||||
<PrototypeTag>Prototype_GameObject_SM_Chest_RewardContainer_C_Lid_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_Chest_RewardContainer_C_Lid_Lod2</PrototypeTag>
|
||||
<Position x="0" y="0.5" z="0"/>
|
||||
<RotationAngle RotationAngle="10"/>
|
||||
<RotationAngle RotationAngle="70"/>
|
||||
</Lid>
|
||||
</Object>
|
||||
</Chests>
|
||||
|
||||
@@ -0,0 +1,53 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<NPC>
|
||||
<Object ID="13" Index="4">
|
||||
<Position x="7.1631966" y="-10.129012" z="-29.87093"/>
|
||||
<Scale x="0.99811238" y="1" z="0.99811238"/>
|
||||
<Rotation x="0" y="214" z="0"/>
|
||||
</Object>
|
||||
<Object ID="1" Index="1">
|
||||
<Position x="47.214542" y="4.2283616" z="82.240288"/>
|
||||
<Scale x="0.99857348" y="1" z="0.99857348"/>
|
||||
<Rotation x="0" y="120" z="0"/>
|
||||
</Object>
|
||||
<Object ID="2" Index="0">
|
||||
<Position x="48.645473" y="4.2111044" z="80.637032"/>
|
||||
<Scale x="0.99998683" y="1" z="0.99998683"/>
|
||||
<Rotation x="0" y="287" z="0"/>
|
||||
</Object>
|
||||
<Object ID="5" Index="2">
|
||||
<Position x="40.331745" y="6.6973305" z="99.171661"/>
|
||||
<Scale x="0.99978107" y="1" z="0.99978107"/>
|
||||
<Rotation x="0" y="160" z="0"/>
|
||||
</Object>
|
||||
<Object ID="6" Index="3">
|
||||
<Position x="90.164291" y="15.802738" z="142.52655"/>
|
||||
<Scale x="1.0003461" y="1" z="1.0003461"/>
|
||||
<Rotation x="0" y="135" z="0"/>
|
||||
</Object>
|
||||
<Object ID="7" Index="5">
|
||||
<Position x="114.85642" y="15.469075" z="116.20981"/>
|
||||
<Scale x="0.99999529" y="1" z="0.99999529"/>
|
||||
<Rotation x="0" y="315" z="0"/>
|
||||
</Object>
|
||||
<Object ID="9" Index="7">
|
||||
<Position x="35.15633" y="1.5198594" z="50.624886"/>
|
||||
<Scale x="0.99999732" y="1" z="0.99999732"/>
|
||||
<Rotation x="0" y="120" z="0"/>
|
||||
</Object>
|
||||
<Object ID="10" Index="8">
|
||||
<Position x="129.77383" y="15.728663" z="121.83965"/>
|
||||
<Scale x="0.99999732" y="1" z="0.99999732"/>
|
||||
<Rotation x="0" y="-105" z="0"/>
|
||||
</Object>
|
||||
<Object ID="11" Index="9">
|
||||
<Position x="-393.24478" y="-33.342117" z="-362.13519"/>
|
||||
<Scale x="0.9999885" y="1" z="0.9999885"/>
|
||||
<Rotation x="0" y="285" z="0"/>
|
||||
</Object>
|
||||
<Object ID="12" Index="10">
|
||||
<Position x="79.841499" y="3.8484674" z="83.004013"/>
|
||||
<Scale x="0.99980307" y="1" z="0.99980307"/>
|
||||
<Rotation x="0" y="210" z="0"/>
|
||||
</Object>
|
||||
</NPC>
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -193,6 +193,7 @@ call Update_Shaders.bat
|
||||
<ClInclude Include="..\public\Dialogue_Panel.h" />
|
||||
<ClInclude Include="..\public\DummyDecal.h" />
|
||||
<ClInclude Include="..\public\Dialogue.h" />
|
||||
<ClInclude Include="..\public\DummyNPC.h" />
|
||||
<ClInclude Include="..\public\Enemy_Detection.h" />
|
||||
<ClInclude Include="..\Public\Goblin_BattleAxe.h" />
|
||||
<ClInclude Include="..\Public\Goblin_Dagger.h" />
|
||||
@@ -233,6 +234,7 @@ call Update_Shaders.bat
|
||||
<ClInclude Include="..\Public\Ranrok_Pulse.h" />
|
||||
<ClInclude Include="..\Public\Ranrok_Point.h" />
|
||||
<ClInclude Include="..\Public\Ranrok_FireBall.h" />
|
||||
<ClInclude Include="..\Public\ReparoObject.h" />
|
||||
<ClInclude Include="..\public\Ride_BoosterBar.h" />
|
||||
<ClInclude Include="..\public\Ride_Booster_Slot.h" />
|
||||
<ClInclude Include="..\public\Ride_HpBar.h" />
|
||||
@@ -480,6 +482,7 @@ call Update_Shaders.bat
|
||||
<ClCompile Include="..\private\Dialogue_Choice.cpp" />
|
||||
<ClCompile Include="..\private\Dialogue_Panel.cpp" />
|
||||
<ClCompile Include="..\private\DummyDecal.cpp" />
|
||||
<ClCompile Include="..\private\DummyNPC.cpp" />
|
||||
<ClCompile Include="..\Private\Enemy_Detection.cpp" />
|
||||
<ClCompile Include="..\Private\Goblin_BattleAxe.cpp" />
|
||||
<ClCompile Include="..\Private\Goblin_Dagger.cpp" />
|
||||
@@ -522,6 +525,7 @@ call Update_Shaders.bat
|
||||
<ClCompile Include="..\Private\Ranrok_Point.cpp" />
|
||||
<ClCompile Include="..\Private\Ranrok_FireBall.cpp" />
|
||||
<ClCompile Include="..\Private\Ranrok_States.cpp" />
|
||||
<ClCompile Include="..\Private\ReparoObject.cpp" />
|
||||
<ClCompile Include="..\private\Ride_BoosterBar.cpp" />
|
||||
<ClCompile Include="..\private\Ride_Booster_Slot.cpp" />
|
||||
<ClCompile Include="..\private\Ride_HpBar.cpp" />
|
||||
|
||||
@@ -792,10 +792,16 @@
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Layer_Effect\Effect_Editor\Effect\Magic\11.Stupefy\StupefySide">
|
||||
<UniqueIdentifier>{d84324ea-6303-442d-8f00-ed6555e6b02b}</UniqueIdentifier>
|
||||
</Filter>
|
||||
</Filter>
|
||||
<Filter Include="50.UI\GamePlay_Canvas\Broom_Panel\Broom_TargetGate2D">
|
||||
<UniqueIdentifier>{bde6e952-c6ee-4136-8559-99392c01645e}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Dummys\DummyNPC">
|
||||
<UniqueIdentifier>{aa6ef154-b82d-42eb-82a7-f8b7f6631a1e}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\ReparoObject">
|
||||
<UniqueIdentifier>{29bd6d08-5bfd-48ca-bd32-40824c276032}</UniqueIdentifier>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="Editor.h">
|
||||
@@ -1607,10 +1613,16 @@
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Stupefy.h">
|
||||
<Filter>02.GameObjects\Layer_Effect\Effect_Editor\Effect\Magic\11.Stupefy</Filter>
|
||||
</ClInclude>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\public\Broom_TargetGate2D.h">
|
||||
<Filter>50.UI\GamePlay_Canvas\Broom_Panel\Broom_TargetGate2D</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\public\DummyNPC.h">
|
||||
<Filter>02.GameObjects\Dummys\DummyNPC</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\ReparoObject.h">
|
||||
<Filter>02.GameObjects\ReparoObject</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Image Include="Editor.ico">
|
||||
@@ -2430,10 +2442,16 @@
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Stupefy.cpp">
|
||||
<Filter>02.GameObjects\Layer_Effect\Effect_Editor\Effect\Magic\11.Stupefy</Filter>
|
||||
</ClCompile>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\private\Broom_TargetGate2D.cpp">
|
||||
<Filter>50.UI\GamePlay_Canvas\Broom_Panel\Broom_TargetGate2D</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\private\DummyNPC.cpp">
|
||||
<Filter>02.GameObjects\Dummys\DummyNPC</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\ReparoObject.cpp">
|
||||
<Filter>02.GameObjects\ReparoObject</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ResourceCompile Include="Editor.rc">
|
||||
|
||||
@@ -162,7 +162,6 @@ void CAlphaMap::Load_ToFile(const _char* pFilePath)
|
||||
in.read(reinterpret_cast<_char*>(&m_pPixels[i]), sizeof(_float4));
|
||||
}
|
||||
|
||||
|
||||
in.close();
|
||||
|
||||
D3D11_MAPPED_SUBRESOURCE SubResource{};
|
||||
@@ -175,8 +174,8 @@ void CAlphaMap::Load_ToFile(const _char* pFilePath)
|
||||
|
||||
m_pContext->Unmap(m_pTexture2D, 0);
|
||||
|
||||
/*if (FAILED(SaveDDSTextureToFile(m_pContext, m_pTexture2D, L"../Bin/Resources/Data/Map/Terrain/Hogsmeade_AlphaMap.dds")))
|
||||
return;*/
|
||||
if (FAILED(SaveDDSTextureToFile(m_pContext, m_pTexture2D, L"../Bin/Resources/Data/Map/Terrain/Hogsmeade_AlphaMap.dds")))
|
||||
return;
|
||||
}
|
||||
|
||||
void CAlphaMap::Save_DDS(const _char* pFilePath)
|
||||
|
||||
@@ -0,0 +1,236 @@
|
||||
#include "pch.h"
|
||||
#include "DummyNPC.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
|
||||
|
||||
CDummyNPC::CDummyNPC(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CGameObject{ pDevice, pContext }
|
||||
{
|
||||
}
|
||||
|
||||
CDummyNPC::CDummyNPC(const CDummyNPC& rhs)
|
||||
: CGameObject(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CDummyNPC::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CDummyNPC::Initialize(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Initialize(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
m_fUsingSurfaceParams = PBR_MRO;
|
||||
|
||||
_float fMaxScale = 1.f;
|
||||
m_iID = 0;
|
||||
|
||||
if (nullptr != pArg)
|
||||
{
|
||||
DUMMY_NPC_DESC* pDesc = static_cast<DUMMY_NPC_DESC*>(pArg);
|
||||
m_iID = pDesc->iID;
|
||||
m_pTransformCom->Set_Scale(pDesc->vScale);
|
||||
m_pTransformCom->Set_Rotation(pDesc->vRotation);
|
||||
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 CDummyNPC::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void CDummyNPC::Update(_float fTimeDelta)
|
||||
{
|
||||
}
|
||||
|
||||
void CDummyNPC::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
|
||||
}
|
||||
|
||||
HRESULT CDummyNPC::Render()
|
||||
{
|
||||
if (FAILED(Bind_ShaderResources())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
_uint iNumMesh = m_pModelCom->Get_NumMeshes();
|
||||
|
||||
for (_uint i = 0; i < iNumMesh; i++)
|
||||
{
|
||||
if (FAILED(m_pShaderCom->Bind_SRV("g_DiffuseTexture", m_pDiffuseTextureCom->Get_SRV(0)))) {
|
||||
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_pSurfaceTextureCom->Get_SRV(0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_MESH::DEFAULT)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pModelCom->Render(i))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CDummyNPC::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Ready_Components(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
/* Com_Texture */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("DUMMY_NPC_Diffuse"),
|
||||
reinterpret_cast<CComponent**>(&m_pDiffuseTextureCom))))
|
||||
return E_FAIL;
|
||||
/* Com_Texture */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("DUMMY_NPC_Normal"),
|
||||
reinterpret_cast<CComponent**>(&m_pNormalTextureCom))))
|
||||
return E_FAIL;
|
||||
/* Com_Texture */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Base_MRO"),
|
||||
reinterpret_cast<CComponent**>(&m_pSurfaceTextureCom))))
|
||||
return E_FAIL;
|
||||
|
||||
/* Com_Model */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_Model_DummyNpc"),
|
||||
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 CDummyNPC::Bind_ShaderResources()
|
||||
{
|
||||
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fUsingSurfaceParams", &m_fUsingSurfaceParams, sizeof(_float)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CDummyNPC* CDummyNPC::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CDummyNPC* pInstance = new CDummyNPC(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CDummyNPC");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
CGameObject* CDummyNPC::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CDummyNPC* pInstance = new CDummyNPC(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CDummyNPC");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CDummyNPC::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
|
||||
SAFE_RELEASE(m_pDiffuseTextureCom);
|
||||
SAFE_RELEASE(m_pNormalTextureCom);
|
||||
SAFE_RELEASE(m_pSurfaceTextureCom);
|
||||
SAFE_RELEASE(m_pModelCom);
|
||||
SAFE_RELEASE(m_pShaderCom);
|
||||
}
|
||||
|
||||
void CDummyNPC::Describe_Entity()
|
||||
{
|
||||
GUI::InputInt("ID", (_int*)(&m_iID));
|
||||
m_pTransformCom->Describe_Entity();
|
||||
|
||||
if (m_pGameInstance->Mouse_Down(DIM_LBUTTON) && m_pGameInstance->Key_Pressing(DIK_LSHIFT))
|
||||
{
|
||||
_float3 vPosition = {};
|
||||
if (m_pGameInstance->isPicking(&vPosition))
|
||||
{
|
||||
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&vPosition), 1.f));
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
HRESULT CDummyNPC::Save_XML(tinyxml2::XMLDocument& doc, tinyxml2::XMLElement* root)
|
||||
{
|
||||
tinyxml2::XMLElement* object = doc.NewElement("Object");
|
||||
object->SetAttribute("ID", m_iID);
|
||||
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;
|
||||
}
|
||||
@@ -20,6 +20,7 @@
|
||||
#include "DummyDecal.h"
|
||||
#include "EffectPool.h"
|
||||
#include "InstancedProp_Light.h"
|
||||
#include "ReparoObject.h"
|
||||
|
||||
CLevel_MapViewer::CLevel_MapViewer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID)
|
||||
: CLevel{ pDevice, pContext, ENUM_CLASS(eLevelID) }
|
||||
@@ -138,7 +139,8 @@ HRESULT CLevel_MapViewer::Ready_Layer_Background(const _wstring& strLayerTag)
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CDummySkyBox>(g_iStaticLevel, NEXT_LEVEL, strLayerTag)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CReparoObject>(g_iStaticLevel, NEXT_LEVEL, strLayerTag)))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
@@ -634,7 +636,7 @@ HRESULT CLevel_MapViewer::Ready_Layer_InstanceProp(const _wstring& strLayerTag)
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Desc)))
|
||||
return E_FAIL;
|
||||
|
||||
Desc.bEditMode = true;
|
||||
Desc.bEditMode = false;
|
||||
Desc.isShake = false;
|
||||
Desc.iShaderPassIndex = 4;
|
||||
Desc.vRadius = _float2(0.f, 0.f);
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
#include "Player.h"
|
||||
#include "Goblin.h"
|
||||
#include "Broom.h"
|
||||
#include "ReparoObject.h"
|
||||
CLevel_ObjectViewer::CLevel_ObjectViewer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID)
|
||||
: CLevel{ pDevice, pContext, ENUM_CLASS(eLevelID) }
|
||||
{
|
||||
@@ -777,6 +778,9 @@ HRESULT CLevel_ObjectViewer::Ready_Layer_Dummy(const _wstring& strLayerTag)
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CDummySkyBox>(g_iStaticLevel, NEXT_LEVEL, LAYER_CUBE)))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CReparoObject>(g_iStaticLevel, NEXT_LEVEL, strLayerTag)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
|
||||
/*if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CTerrain>(g_iStaticLevel, NEXT_LEVEL, strLayerTag)))
|
||||
|
||||
@@ -184,6 +184,7 @@
|
||||
#include "LightSpawner.h"
|
||||
#include "RaceRing.h"
|
||||
#include "MapElement_Balloon.h"
|
||||
#include "DummyNPC.h"
|
||||
|
||||
#pragma endregion
|
||||
|
||||
@@ -238,6 +239,7 @@
|
||||
#include "Ranrok_DeadSplash.h"
|
||||
#include "Ranrok_DeadImpact.h"
|
||||
#include "Ranrok_Prop.h"
|
||||
#include "ReparoObject.h"
|
||||
|
||||
#pragma endregion
|
||||
|
||||
@@ -2868,6 +2870,9 @@ HRESULT CLoader::Loading_For_MapViewer()
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CEffectPool>(g_iStaticLevel, CEffectPool::Create(m_pDevice, m_pContext))))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CReparoObject>(g_iStaticLevel, CReparoObject::Create(m_pDevice, m_pContext))))
|
||||
return E_FAIL;
|
||||
#pragma endregion
|
||||
|
||||
|
||||
@@ -3038,6 +3043,24 @@ HRESULT CLoader::Loading_For_MapViewer()
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/Effect/Decal/DecalBox.fbx", XMMatrixIdentity()))))
|
||||
return E_FAIL;
|
||||
|
||||
#pragma region DUMMY_NPC
|
||||
/* DUMMY_NPC_Diffuse */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("DUMMY_NPC_Diffuse"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("C:/MeshTable/Game/Environment/Sanctum_Dungeon/Textures/Props/T_AgedTombProtector_Grunt_A_D.dds"), 0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
/* DUMMY_NPC_Normal */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("DUMMY_NPC_Normal"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("C:/MeshTable/Game/Environment/Sanctum_Dungeon/Textures/Props/T_AgedTombProtector_Grunt_A_N.dds"), 0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
/* For.Prototype_Component_Model_DummyNpc */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Model_DummyNpc"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "C:/MeshTable/Game/Environment/DummyNpc.fbx", XMMatrixRotationY(XMConvertToRadians(180.f))))))
|
||||
return E_FAIL;
|
||||
#pragma endregion
|
||||
|
||||
#pragma region MAP_LANDS
|
||||
/* For.Prototype_Component_Hogsmead_Land */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Hogsmead_Land"),
|
||||
@@ -3117,7 +3140,7 @@ HRESULT CLoader::Loading_For_MapViewer()
|
||||
|
||||
/* For.Prototype_Component_FloatingBalloon */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_FloatingBalloon"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "C:/MeshTable/Game/RiggedObjects/Props/FloatingBalloonTarget/SK_FloatingBalloonTarget_.fbx"))))
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "C:/MeshTable/Game/RiggedObjects/Props/FloatingBalloonTarget/SK_FloatingBalloonTarget_.bin"))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_Component_Hogwart_Lake */
|
||||
@@ -3424,7 +3447,7 @@ _bool bLoadHogsmeade = true;
|
||||
}
|
||||
|
||||
#pragma region HOGWART
|
||||
_bool bHogwartLoad = { true };
|
||||
_bool bHogwartLoad = { false };
|
||||
|
||||
/* Hogwart LOD */
|
||||
if (FAILED(MapFolderLoad("../Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/HogwartsLOD",
|
||||
@@ -3760,7 +3783,7 @@ vector<future<void>> jobFutures;
|
||||
_uint iLoadCount = 44;
|
||||
vector<vector<FOLDER_LOAD*>*> Contents(iLoadCount);
|
||||
|
||||
_bool isLoad_Map = { false };
|
||||
_bool isLoad_Map = { true };
|
||||
if(isLoad_Map)
|
||||
{
|
||||
{ /* Terrain */
|
||||
@@ -4393,6 +4416,9 @@ if(isLoad_Map)
|
||||
/* 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_DummyNPC */
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CDummyNPC>(g_iStaticLevel, CDummyNPC::Create(m_pDevice, m_pContext))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_GameObject_MapObject_Manager */
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CMapObject_Manager>(g_iStaticLevel, CMapObject_Manager::Create(m_pDevice, m_pContext, ModelPrototypeTags, ModelPrototypePath))))
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
#include "CamPosition_Shoulder.h"
|
||||
#include "CamPosition_Arm.h"
|
||||
#include "Wand.h"
|
||||
#include "ReparoObject.h"
|
||||
|
||||
#pragma endregion
|
||||
|
||||
@@ -71,6 +72,13 @@ HRESULT CLoader::Loading_For_ObjectViewer()
|
||||
|
||||
#pragma region MONSTER
|
||||
|
||||
/* For.Prototype_Component_Hogsmead_NorthLakeShallow */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Hogsmead_NorthLakeShallow"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::ANIM_LOCAL, "C:/MeshTable\\Game\\RiggedObjects\\Props\\Wands\\CharacterWands\\SK_Wands_Amit.fbx", XMMatrixIdentity()))))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
|
||||
futures.emplace_back(Deferred_ModelLoad(
|
||||
MODEL::ANIM, "../Bin/Resources/Models/Monster/Goblin/SK_GOB_M_T4Melee_INST_A_Master.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
|
||||
TEXT("Prototype_Component_SK_GOB_M_T4Melee_INST_A_Master_Model")
|
||||
@@ -315,6 +323,11 @@ HRESULT CLoader::Loading_For_ObjectViewer()
|
||||
MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/Elf/Elf.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
|
||||
TEXT("Prototype_Component_Elf_Model")
|
||||
));
|
||||
|
||||
//futures.emplace_back(Deferred_ModelLoad(
|
||||
// MODEL::ANIM, "../Bin/Resources/Models/Human/Npc/Elf/Elf_Browse.fbx", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
|
||||
// TEXT("Prototype_Component_Elf_Model")
|
||||
//));
|
||||
|
||||
|
||||
futures.emplace_back(Deferred_ModelLoad(
|
||||
@@ -458,6 +471,10 @@ HRESULT CLoader::Loading_For_ObjectViewer()
|
||||
//if (FAILED(m_pGameInstance->Add_Prototype<CTerrain>(g_iStaticLevel, CTerrain::Create(m_pDevice, m_pContext))))
|
||||
// return E_FAIL;
|
||||
|
||||
/* For.Prototype_Component_FSM */
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CReparoObject>(g_iStaticLevel, CReparoObject::Create(m_pDevice, m_pContext))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_Component_FSM */
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CFSM>(g_iStaticLevel, CFSM::Create(m_pDevice, m_pContext))))
|
||||
return E_FAIL;
|
||||
|
||||
@@ -47,8 +47,8 @@ HRESULT CMapElement_Balloon::Initialize(void* pArg)
|
||||
m_isFloating = false;
|
||||
m_iDiffuseIndex = 0;
|
||||
m_vPosition = _float3(0.f, 0.f, 0.f);
|
||||
m_vScale = _float3(0.f, 0.f, 0.f);
|
||||
m_vRotation = _float3(1.f, 1.f, 1.f);
|
||||
m_vScale = _float3(1.f, 1.f, 1.f);
|
||||
m_vRotation = _float3(0.f, 0.f, 0.f);
|
||||
}
|
||||
|
||||
memcpy(&m_vOriginPosition, &m_vPosition, sizeof(_float3));
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
#include "InstancedProp_Light.h"
|
||||
#include "EditEffect.h"
|
||||
#include "MapElement_Balloon.h"
|
||||
#include "DummyNPC.h"
|
||||
|
||||
CMapObject_Manager::CMapObject_Manager(ID3D11Device * pDevice, ID3D11DeviceContext * pContext)
|
||||
: CGameObject(pDevice, pContext), m_pInfoInstance{CInfoInstance::GetInstance()}
|
||||
@@ -87,8 +88,8 @@ HRESULT CMapObject_Manager::Initialize(void* pArg)
|
||||
// return E_FAIL;
|
||||
|
||||
#pragma region HOGSMEADE
|
||||
/* if (FAILED(Load_MapData("Hogsmeade_MapContainer_Data", LAYER_HOGSMEADE)))
|
||||
return E_FAIL;*/
|
||||
if (FAILED(Load_MapData("Hogsmeade_MapContainer_Data", LAYER_HOGSMEADE)))
|
||||
return E_FAIL;
|
||||
#pragma endregion
|
||||
|
||||
#pragma region DUNGEON
|
||||
@@ -99,10 +100,10 @@ HRESULT CMapObject_Manager::Initialize(void* pArg)
|
||||
#pragma endregion
|
||||
|
||||
#pragma region HOGWART
|
||||
if (FAILED(Load_MapData("Hogwart_MapContainer_Data", LAYER_HOGWART)))
|
||||
return E_FAIL;
|
||||
if (FAILED(Load_MapData("HogwartMap1221", LAYER_HOGWART)))
|
||||
return E_FAIL;
|
||||
//if (FAILED(Load_MapData("Hogwart_MapContainer_Data", LAYER_HOGWART)))
|
||||
// return E_FAIL;
|
||||
//if (FAILED(Load_MapData("HogwartMap1221", LAYER_HOGWART)))
|
||||
// return E_FAIL;
|
||||
#pragma endregion
|
||||
|
||||
#pragma region Light
|
||||
@@ -129,8 +130,8 @@ HRESULT CMapObject_Manager::Initialize(void* pArg)
|
||||
if (FAILED(Load_RaceRing("RaceRing_Data")))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(Load_Balloons("Ballon_Data")))
|
||||
return E_FAIL;
|
||||
/*if (FAILED(Load_Balloons("Ballon_Data")))
|
||||
return E_FAIL;*/
|
||||
#pragma endregion
|
||||
|
||||
#pragma region EFFECT_PART
|
||||
@@ -159,10 +160,8 @@ HRESULT CMapObject_Manager::Initialize(void* pArg)
|
||||
//if (FAILED(Load_EffectParts("Rotate_Rock_Large2_Data", "../Bin/Resources/Data/Effect/MapEffect/Rotate_Rock_Large2")))
|
||||
// return E_FAIL;
|
||||
|
||||
|
||||
//if (FAILED(Load_EffectParts("Bon_Fire_Data", "../Bin/Resources/Data/Effect/MapEffect/Bon_Fire")))
|
||||
// return E_FAIL;
|
||||
|
||||
#pragma endregion
|
||||
|
||||
|
||||
@@ -278,9 +277,9 @@ void CMapObject_Manager::Update(_float fTimeDelta)
|
||||
//Update_LightSpawer();
|
||||
//Update_Decal();
|
||||
//Update_RaceRing();
|
||||
//Update_Balloon();
|
||||
//Update_EffectParts();
|
||||
//Update_Balloon();
|
||||
Update_DummyNpc();
|
||||
|
||||
Update_Unified();
|
||||
|
||||
@@ -2102,7 +2101,6 @@ HRESULT CMapObject_Manager::Load_RaceRing(const _char* pFileName)
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -2114,14 +2112,14 @@ HRESULT CMapObject_Manager::Save_Balloons(const _char* pFileName)
|
||||
return S_OK;
|
||||
|
||||
tinyxml2::XMLDocument doc;
|
||||
string strPath = "../Bin/Resources/Data/Map/Balloon/" + string(pFileName) + ".xml";
|
||||
string strPath = "../Bin/Resources/Data/Map/NPC/" + string(pFileName) + ".xml";
|
||||
|
||||
tinyxml2::XMLError loadResult = doc.LoadFile(strPath.c_str());
|
||||
|
||||
doc.Clear();
|
||||
doc.InsertFirstChild(doc.NewDeclaration());
|
||||
|
||||
tinyxml2::XMLElement* root = doc.NewElement("Balloon");
|
||||
tinyxml2::XMLElement* root = doc.NewElement("NPC");
|
||||
doc.InsertEndChild(root);
|
||||
|
||||
if (nullptr != pLayer)
|
||||
@@ -2330,6 +2328,51 @@ HRESULT CMapObject_Manager::Load_EffectParts(const _char* pFileName, const _char
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CMapObject_Manager::Save_DummyNpc(const _char* pFileName)
|
||||
{
|
||||
CLayer* pLayer = m_pGameInstance->Get_Layer(ENUM_CLASS(LEVEL::MAP), TEXT("Layer_Npc"));
|
||||
|
||||
if (nullptr == pLayer)
|
||||
return S_OK;
|
||||
|
||||
tinyxml2::XMLDocument doc;
|
||||
string strPath = "../Bin/Resources/Data/Map/NPC/" + string(pFileName) + ".xml";
|
||||
|
||||
tinyxml2::XMLError loadResult = doc.LoadFile(strPath.c_str());
|
||||
|
||||
doc.Clear();
|
||||
doc.InsertFirstChild(doc.NewDeclaration());
|
||||
|
||||
tinyxml2::XMLElement* root = doc.NewElement("NPC");
|
||||
doc.InsertEndChild(root);
|
||||
|
||||
if (nullptr != pLayer)
|
||||
{
|
||||
const list<CGameObject*>* pList = pLayer->Get_Objects();
|
||||
|
||||
for (auto pGamObject : *pList)
|
||||
{
|
||||
CDummyNPC* pNpc = dynamic_cast<CDummyNPC*>(pGamObject);
|
||||
|
||||
if (nullptr == pNpc)
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(pNpc->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 CDummyNPC");
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CMapObject_Manager::Update_PrototypeList()
|
||||
{
|
||||
GUI::Begin("Model Prototype List");
|
||||
@@ -2750,11 +2793,11 @@ void CMapObject_Manager::Update_Balloon()
|
||||
GUI::Begin("Ballon Editor");
|
||||
if (GUI::Button("Save Ballon"))
|
||||
{
|
||||
Save_Balloons("Ballon_Data");
|
||||
Save_Balloons("DummyNPC_Data");
|
||||
}
|
||||
if (GUI::Button("Load Ballon"))
|
||||
{
|
||||
Load_Balloons("Ballon_Data");
|
||||
Load_Balloons("DummyNPC_Data");
|
||||
}
|
||||
if (GUI::Button("Add Ballon"))
|
||||
{
|
||||
@@ -2781,6 +2824,42 @@ void CMapObject_Manager::Update_Balloon()
|
||||
GUI::End();
|
||||
}
|
||||
|
||||
void CMapObject_Manager::Update_DummyNpc()
|
||||
{
|
||||
GUI::Begin("DummyNpc Editor");
|
||||
if (GUI::Button("Save DummyNpc"))
|
||||
{
|
||||
Save_DummyNpc("DummyNPC_Data");
|
||||
}
|
||||
if (GUI::Button("Load DummyNpc"))
|
||||
{
|
||||
//Load_Balloons("DummyNPC_Data");
|
||||
}
|
||||
if (GUI::Button("Add DummyNpc"))
|
||||
{
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CDummyNPC>(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Npc"))))
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
GUI::InputInt("Index : ", (_int*)&m_iSelectedIndex);
|
||||
CLayer* pLayer = m_pGameInstance->Get_Layer(ENUM_CLASS(LEVEL::MAP), TEXT("Layer_Npc"));
|
||||
|
||||
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)
|
||||
{
|
||||
vector<_uint> LodModelIndices;
|
||||
|
||||
@@ -0,0 +1,329 @@
|
||||
#include "pch.h"
|
||||
#include "ReparoObject.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
#include "InfoInstance.h"
|
||||
#include "Unit.h"
|
||||
#include "PartObject.h"
|
||||
|
||||
CReparoObject::CReparoObject(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CMonster(pDevice, pContext)
|
||||
{
|
||||
}
|
||||
|
||||
CReparoObject::CReparoObject(const CReparoObject& Prototype)
|
||||
: CMonster(Prototype)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CReparoObject::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CReparoObject::Initialize(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Initialize(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
if (FAILED(Ready_Components())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(0.f, 0.f, 0.f, 1.f));
|
||||
|
||||
m_pModelCom->Set_AnimationIndex(0);
|
||||
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CReparoObject::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CReparoObject::Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Update(fTimeDelta);
|
||||
|
||||
m_pModelCom->Play_Animation(fTimeDelta, m_pTransformCom);
|
||||
|
||||
#ifdef _DEBUG
|
||||
Describe_Entity();
|
||||
#endif // _DEBUG
|
||||
|
||||
|
||||
}
|
||||
|
||||
void CReparoObject::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Late_Update(fTimeDelta);
|
||||
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
|
||||
|
||||
}
|
||||
|
||||
HRESULT CReparoObject::Render()
|
||||
{
|
||||
if (!m_pModelCom) {
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
if (FAILED(Bind_ShaderResources())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
_uint iNumMeshes = m_pModelCom->Get_NumMeshes();
|
||||
_uint iShaderPass = ENUM_CLASS(SHADER_PASS_ANIM::DEFAULT);
|
||||
if (true == m_bDrawOutLine) {
|
||||
iShaderPass = ENUM_CLASS(SHADER_PASS_ANIM::OUTLINE_WRITE);
|
||||
}
|
||||
|
||||
for (_uint i = 0; i < iNumMeshes; i++)
|
||||
{
|
||||
if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_Matrices(
|
||||
"g_OffsetMatrix",
|
||||
m_pModelCom->Get_OffsetMatrix(i).data(),
|
||||
(_int)m_pModelCom->Get_OffsetMatrix(i).size()
|
||||
)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_ANIM::DEFAULT)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pModelCom->Bind_OutPut_SRV_VS(31, 0);
|
||||
m_pModelCom->Bind_OutPut_SRV_VS_Prev(32, 0);
|
||||
|
||||
if (FAILED(m_pModelCom->Render(i))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
|
||||
if (m_bDrawOutLine) {
|
||||
Render_OutLine();
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CReparoObject::Render_OutLine()
|
||||
{
|
||||
m_bDrawOutLine = false;
|
||||
if (FAILED(Bind_ShaderResources())) {
|
||||
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;
|
||||
}
|
||||
|
||||
Compute_Depth();
|
||||
_float fCamFar = *m_pGameInstance->Get_CurrentCameraFar();
|
||||
_float fRatio = CMyTools::Saturate((m_fCamDepth / (fCamFar * fCamFar)));
|
||||
m_fOutLineThickness = CMyTools::Lerp_f1D(0.024f, 0.5f, fRatio);
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_vOutLineColor", &m_vOutLineColor, sizeof(_float3)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fOutLineThickness", &m_fOutLineThickness, sizeof(_float)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fOutLineScale", &m_fOutLineScale, sizeof(_float)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fOutLinePower", &m_fOutLinePower, sizeof(_float)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_vCamPosition", m_pGameInstance->Get_CamPosition(), sizeof(_float4)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
_uint iNumMeshes = m_pModelCom->Get_NumMeshes();
|
||||
|
||||
for (_uint i = 0; i < iNumMeshes; i++)
|
||||
{
|
||||
if (FAILED(m_pShaderCom->Bind_Matrices(
|
||||
"g_OffsetMatrix",
|
||||
m_pModelCom->Get_OffsetMatrix(i).data(),
|
||||
(_int)m_pModelCom->Get_OffsetMatrix(i).size()
|
||||
)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_ANIM::OUTLINE_READ)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pModelCom->Bind_OutPut_SRV_VS(31, 0);
|
||||
m_pModelCom->Bind_OutPut_SRV_VS_Prev(32, 0);
|
||||
|
||||
if (FAILED(m_pModelCom->Render(i))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CReparoObject::Ready_Components()
|
||||
{
|
||||
CTransform::TRANSFORM_DESC Desc = {};
|
||||
|
||||
Desc.fSpeedPerSec = 10.f;
|
||||
Desc.fRotationPerSec = XMConvertToRadians(180.0f);
|
||||
Desc.fRadius = 10.f;
|
||||
|
||||
if (FAILED(Add_Component<CTransform>(g_iStaticLevel, &m_pTransformCom, &Desc))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
/* Com_Model */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_VFX_SK_OLI_TrollFight_BlockerA_Model"),
|
||||
reinterpret_cast<CComponent**>(&m_pModelCom)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
/* Com_Shader */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_ANIMMESH,
|
||||
reinterpret_cast<CComponent**>(&m_pShaderCom)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CReparoObject::Bind_ShaderResources()
|
||||
{
|
||||
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) {
|
||||
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;
|
||||
}
|
||||
|
||||
CReparoObject* CReparoObject::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CReparoObject* pInstance = new CReparoObject(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CReparoObject");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
CGameObject* CReparoObject::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CReparoObject* pInstance = new CReparoObject(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CReparoObject");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CReparoObject::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
|
||||
void CReparoObject::Describe_Entity()
|
||||
{
|
||||
GUI::Begin("UNIT", 0, IMGUI_GLOBAL_BEGIN_FLAG);
|
||||
|
||||
if (m_pModelCom->Get_AnimSize() <= 0)
|
||||
return;
|
||||
|
||||
if (GUI::BeginTabBar("Anim_List"))
|
||||
{
|
||||
if (GUI::BeginTabItem("ReparoObject"))
|
||||
{
|
||||
for (_uint i = 0; i < m_pModelCom->Get_AnimSize(); i++)
|
||||
{
|
||||
if (GUI::Button(m_pModelCom->Get_AnimList(i)))
|
||||
{
|
||||
m_pModelCom->Set_AnimationIndex(i);
|
||||
}
|
||||
}
|
||||
|
||||
GUI::EndTabItem();
|
||||
}
|
||||
GUI::EndTabBar();
|
||||
}
|
||||
|
||||
_char label[24];
|
||||
|
||||
sprintf_s(label, "%s %d", "AnimIndex", m_pModelCom->Get_AnimIndex());
|
||||
|
||||
GUI::Text(label);
|
||||
|
||||
_float AnimTrack = m_pModelCom->Get_CurrentTrackPosition();
|
||||
if (GUI::DragFloat("AnimTrack", &AnimTrack))
|
||||
{
|
||||
if (AnimTrack >= 0.f)
|
||||
m_pModelCom->Set_CurrentTrackPosition(AnimTrack);
|
||||
}
|
||||
|
||||
_float AnimRatio = m_pModelCom->Get_CurrentTrackProgressRatio();
|
||||
GUI::DragFloat("AnimRatio", &AnimRatio);
|
||||
|
||||
_float AnimSpeed = m_pModelCom->Get_AnimSpeed();
|
||||
GUI::DragFloat("AnimSpeed", &AnimSpeed, 0.1f);
|
||||
m_pModelCom->Set_AnimSpeed(AnimSpeed);
|
||||
|
||||
_bool bPlayAnim = m_pModelCom->Get_PlayAnim();
|
||||
if (GUI::Checkbox("Play Anim", &bPlayAnim))
|
||||
{
|
||||
m_pModelCom->Set_PlayAnim(bPlayAnim);
|
||||
}
|
||||
|
||||
GUI::End();
|
||||
}
|
||||
|
||||
#endif // _DEBUG
|
||||
@@ -306,35 +306,35 @@ void CTerrain::Describe_Entity()
|
||||
GUI::Begin("Terrain");
|
||||
|
||||
#pragma region ALPHA_MAP
|
||||
//GUI::InputInt("Color", &m_iColorIndex);
|
||||
//m_iColorIndex = max(0, min(4, m_iColorIndex));
|
||||
|
||||
GUI::InputInt("Color", &m_iColorIndex);
|
||||
m_iColorIndex = max(0, min(4, m_iColorIndex));
|
||||
//GUI::Checkbox("Flat", &m_isFlat);
|
||||
GUI::InputInt("Rnage", (_int*)(&m_iMaskRange));
|
||||
//GUI::DragFloat("Value", &m_fMaskValue, 0.01f, -1.0f, 1.f);
|
||||
//if (GUI::Button("Save", ImVec2(100.f, 30.f)))
|
||||
//{
|
||||
// m_pAlphaMap->Save_ToFile("Hogwart_AlphaMap.bin");
|
||||
//}
|
||||
//if (GUI::Button("Load", ImVec2(100.f, 30.f)))
|
||||
//{
|
||||
// m_pAlphaMap->Load_ToFile("Hogwart_AlphaMap.bin");
|
||||
//}
|
||||
GUI::DragFloat("Value", &m_fMaskValue, 0.01f, -1.0f, 1.f);
|
||||
if (GUI::Button("Save", ImVec2(100.f, 30.f)))
|
||||
{
|
||||
m_pAlphaMap->Save_ToFile("Hogsmeade_AlphaMap.bin");
|
||||
}
|
||||
if (GUI::Button("Load", ImVec2(100.f, 30.f)))
|
||||
{
|
||||
m_pAlphaMap->Load_ToFile("Hogsmeade_AlphaMap.bin");
|
||||
}
|
||||
|
||||
m_iMaskRange = max(0, m_iMaskRange);
|
||||
GUI::InputFloat("Up Value", &m_fUpValue, 0.001f, 0.1f);
|
||||
|
||||
GUI::InputFloat3("Picking Pos", (_float*)(&m_vPickingPosition));
|
||||
if (m_pGameInstance->Mouse_Pressing(DIM_LBUTTON))
|
||||
{
|
||||
if (m_pGameInstance->isPicking(&m_vPickingPosition))
|
||||
{
|
||||
{/*
|
||||
if (m_pGameInstance->Key_Pressing(DIK_PERIOD))
|
||||
m_pVIBufferCom->FitY(m_pTransformCom->Get_XMWorldMatrix(), m_fUpValue, m_vPickingPosition, m_iMaskRange);
|
||||
m_pVIBufferCom->FitY(m_pTransformCom->Get_XMWorldMatrix(), m_fUpValue , m_vPickingPosition, m_iMaskRange, m_isFlat);
|
||||
if (m_pGameInstance->Key_Pressing(DIK_COMMA))
|
||||
m_pVIBufferCom->FitY(m_pTransformCom->Get_XMWorldMatrix(), m_fUpValue * -1.f, m_vPickingPosition, m_iMaskRange);
|
||||
m_pVIBufferCom->FitY(m_pTransformCom->Get_XMWorldMatrix(), m_fUpValue, m_vPickingPosition, m_iMaskRange, m_isFlat);*/
|
||||
|
||||
//XMStoreFloat3(&m_vPickingPosition, XMVector3TransformCoord(XMLoadFloat3(&m_vPickingPosition), m_pTransformCom->Get_WorldMatrixInv()));
|
||||
//if(m_pGameInstance->Key_Pressing(DIK_M))
|
||||
// m_pAlphaMap->Update(m_vPickingPosition, m_iColorIndex, m_fMaskValue, m_iMaskRange);
|
||||
XMStoreFloat3(&m_vPickingPosition, XMVector3TransformCoord(XMLoadFloat3(&m_vPickingPosition), m_pTransformCom->Get_WorldMatrixInv()));
|
||||
if(m_pGameInstance->Key_Pressing(DIK_M))
|
||||
m_pAlphaMap->Update(m_vPickingPosition, m_iColorIndex, m_fMaskValue, m_iMaskRange);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,59 @@
|
||||
#pragma once
|
||||
|
||||
#include "Editor_Define.h"
|
||||
#include "GameObject.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
class CModel;
|
||||
class CShader;
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Editor)
|
||||
|
||||
class CDummyNPC final : public CGameObject
|
||||
{
|
||||
public:
|
||||
typedef struct tagDummyNpcDesc
|
||||
{
|
||||
_uint iID = {};
|
||||
_float3 vPosition = {};
|
||||
_float3 vRotation = {};
|
||||
_float3 vScale = { 1.f, 1.f, 1.f };
|
||||
}DUMMY_NPC_DESC;
|
||||
private:
|
||||
CDummyNPC(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CDummyNPC(const CDummyNPC& rhs);
|
||||
virtual ~CDummyNPC() = 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:
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
CModel* m_pModelCom = { nullptr };
|
||||
|
||||
CTexture* m_pNormalTextureCom = { nullptr };
|
||||
CTexture* m_pSurfaceTextureCom = { nullptr };
|
||||
CTexture* m_pDiffuseTextureCom = { nullptr };
|
||||
|
||||
_uint m_iID = {};
|
||||
_float m_fUsingSurfaceParams = {};
|
||||
|
||||
private:
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
virtual HRESULT Ready_Components(void* pArg) override;
|
||||
virtual HRESULT Bind_ShaderResources() override;
|
||||
|
||||
public:
|
||||
static CDummyNPC* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
virtual void Free() override;
|
||||
void Describe_Entity() override;
|
||||
HRESULT Save_XML(tinyxml2::XMLDocument& doc, tinyxml2::XMLElement* root);
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -95,6 +95,8 @@ class CMapObject_Manager final : public CGameObject
|
||||
|
||||
HRESULT Save_EffectParts(const _char* pFileName);
|
||||
HRESULT Load_EffectParts(const _char* pFileName, const _char* pEffectrFilePath);
|
||||
|
||||
HRESULT Save_DummyNpc(const _char* pFileName);
|
||||
#pragma endregion
|
||||
|
||||
void Update_PrototypeList();
|
||||
@@ -107,6 +109,7 @@ class CMapObject_Manager final : public CGameObject
|
||||
void Update_RaceRing();
|
||||
void Update_EffectParts();
|
||||
void Update_Balloon();
|
||||
void Update_DummyNpc();
|
||||
|
||||
void Create_PartObject(_wstring& strPrototypeTag);
|
||||
void Create_Elemnt(_wstring& strPrototypeTag);
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
#pragma once
|
||||
|
||||
#include "Editor_Define.h"
|
||||
#include "Monster.h"
|
||||
|
||||
NS_BEGIN(Editor)
|
||||
|
||||
class CReparoObject final : public CMonster
|
||||
{
|
||||
private:
|
||||
CReparoObject(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CReparoObject(const CReparoObject& Prototype);
|
||||
virtual ~CReparoObject() = default;
|
||||
|
||||
public:
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
virtual void Priority_Update(_float fTimeDelta) override;
|
||||
virtual void Update(_float fTimeDelta) override;
|
||||
virtual void Late_Update(_float fTimeDelta) override;
|
||||
virtual HRESULT Render() override;
|
||||
|
||||
private:
|
||||
_float4 m_vOutLineColor = CMyTools::ColorRGBA_HEXtoFLOAT4(0xfefefe00);
|
||||
_float m_fOutLineThickness = { 5.f };
|
||||
_float m_fOutLineScale = { 2.f };
|
||||
_float m_fOutLinePower = { 2.f };
|
||||
|
||||
private:
|
||||
HRESULT Ready_Components();
|
||||
HRESULT Bind_ShaderResources();
|
||||
HRESULT Render_OutLine();
|
||||
|
||||
|
||||
public:
|
||||
static CReparoObject* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, CGameObject* pOwner = nullptr) override;
|
||||
virtual void Free() override;
|
||||
#ifdef _DEBUG
|
||||
virtual void Describe_Entity() override;
|
||||
#endif // _DEBUG
|
||||
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -50,6 +50,7 @@ class CTerrain final : public CGameObject
|
||||
|
||||
_bool m_bUsePsx = { false };
|
||||
_bool m_isEdit = {};
|
||||
_bool m_isFlat = {};
|
||||
|
||||
_float m_fUsingSurfaceParams = {};
|
||||
_float m_fHeightRatio = {1.f};
|
||||
|
||||
Reference in New Issue
Block a user