Merge branch 'Develope' into Effect
This commit is contained in:
@@ -64,13 +64,21 @@ Texture2D g_DiffuseTexture;
|
||||
Texture2D g_MaskingTexture;
|
||||
|
||||
int g_iHover;
|
||||
int g_iBoosterOn;
|
||||
int g_iBoosterOff;
|
||||
int g_iClick;
|
||||
int g_iColor;
|
||||
int g_Count;
|
||||
int g_ChaseCount;
|
||||
|
||||
int g_iStep1 = 0;
|
||||
int g_iStep2 = 0;
|
||||
int g_iStep3 = 0;
|
||||
|
||||
float2 g_Trail[200];
|
||||
float2 g_ChaseTrail[200];
|
||||
|
||||
|
||||
struct VS_IN
|
||||
{
|
||||
float3 vPosition : POSITION;
|
||||
@@ -1725,35 +1733,36 @@ PS_OUT PS_Broomstick(PS_IN In)
|
||||
Rotation.x = uv.x * cos(g_fAngle) - uv.y * sin(g_fAngle);
|
||||
Rotation.y = uv.x * sin(g_fAngle) + uv.y * cos(g_fAngle);
|
||||
Rotation += center;
|
||||
|
||||
float2 startUV = g_fImageUV.xy;
|
||||
float2 endUV = g_fImageUV.zw;
|
||||
|
||||
float2 atlasUV = startUV + In.vTexcoord * (endUV - startUV);
|
||||
|
||||
float4 tex1 = g_Texture.Sample(ClampSampler, Rotation);
|
||||
float4 tex2 = g_Texture1.Sample(ClampSampler, atlasUV);
|
||||
float4 tex2 = g_Texture1.Sample(ClampSampler, Rotation);
|
||||
tex1.rgb *= 0.4f;
|
||||
color = tex1;
|
||||
tex2.rgb *= 0.3f;
|
||||
|
||||
color = lerp(color, tex2, tex2.a);
|
||||
|
||||
|
||||
float2 texpos1 = g_fItemPosition1 / g_fCurrent_Size;
|
||||
float2 texsize1 = g_fItemImageSizes1 / g_fCurrent_Size;
|
||||
float2 texpos1 = g_fImageSipos1.xy / g_fCurrent_Size * 0.5f;
|
||||
float2 texsize1 = g_fImageSipos1.zw / g_fCurrent_Size * 0.5;
|
||||
float2 texlocal1 = (In.vTexcoord - texpos1) / texsize1;
|
||||
bool inside = all(texlocal1 >= 0.0f && texlocal1 <= 1.0f);
|
||||
if (inside)
|
||||
bool inside1 = all(texlocal1 >= 0.0f && texlocal1 <= 1.0f);
|
||||
if (inside1)
|
||||
{
|
||||
float4 tex3 = g_Texture2.Sample(ClampSampler, texlocal1);
|
||||
color = lerp(color, tex3, tex3.a);
|
||||
|
||||
float CoolTime = 0.f + g_fDeltaV;
|
||||
float CoolTime2 = 0.f + g_fDeltaV + 0.1f;
|
||||
atlasUV = startUV + texlocal1 * (endUV - startUV);
|
||||
}
|
||||
|
||||
float2 texpos2 = g_fImageSipos2.xy / g_fCurrent_Size;
|
||||
float2 texsize2 = g_fImageSipos2.zw / g_fCurrent_Size;
|
||||
float2 texlocal2 = (In.vTexcoord - texpos2) / texsize2;
|
||||
bool inside2 = all(texlocal2 >= 0.0f && texlocal2 <= 1.0f);
|
||||
if (inside2)
|
||||
{
|
||||
float2 startUV = g_fImageUV.xy;
|
||||
float2 endUV = g_fImageUV.zw;
|
||||
float2 atlasUV = atlasUV = startUV + texlocal2 * (endUV - startUV);
|
||||
float4 tex4 = g_Texture3.Sample(DefaultSampler, atlasUV);
|
||||
color = lerp(color, tex4, tex4.a);
|
||||
}
|
||||
|
||||
color.a *= Alpha;
|
||||
@@ -1795,32 +1804,105 @@ PS_OUT PS_SpellLearnColor(PS_IN In)
|
||||
Color = tex;
|
||||
|
||||
Color.rgb *= tex1.rgb;
|
||||
|
||||
float2 rectPos = g_fPosition;
|
||||
|
||||
float2 rectPos = g_fPosition - float2(256.f, 259.f);
|
||||
float2 rectSize = g_fCurrent_Size;
|
||||
|
||||
float2 itemPos = g_fItemPosition1;
|
||||
float2 itemSize = g_fItemImageSizes1;
|
||||
|
||||
float x0 = max(rectPos.x, itemPos.x);
|
||||
float x1 = min(rectPos.x + rectSize.x, itemPos.x + itemSize.x);
|
||||
float y0 = max(rectPos.y, itemPos.y);
|
||||
float y1 = min(rectPos.y + rectSize.y, itemPos.y + itemSize.y);
|
||||
float2 pixelPos;
|
||||
pixelPos.x = rectPos.x + In.vTexcoord.x * rectSize.x;
|
||||
pixelPos.y = rectPos.y + (1.0f - In.vTexcoord.y) * rectSize.y;
|
||||
|
||||
float uMin = (x0 - rectPos.x) / rectSize.x;
|
||||
float uMax = (x1 - rectPos.x) / rectSize.x;
|
||||
float vMin = (y0 - rectPos.y) / rectSize.y;
|
||||
float vMax = (y1 - rectPos.y) / rectSize.y;
|
||||
|
||||
vMin = 1.0f - vMin;
|
||||
vMax = 1.0f - vMax;
|
||||
|
||||
if (In.vTexcoord.x >= min(uMin, uMax) && In.vTexcoord.x <= max(uMin, uMax) &&
|
||||
In.vTexcoord.y >= min(vMin, vMax) && In.vTexcoord.y <= max(vMin, vMax))
|
||||
if (pixelPos.x >= itemPos.x &&
|
||||
pixelPos.x <= itemPos.x + itemSize.x &&
|
||||
pixelPos.y >= itemPos.y &&
|
||||
pixelPos.y <= itemPos.y + itemSize.y)
|
||||
{
|
||||
Color.rgb = float3(0.f, 0.f, 1.f);
|
||||
}
|
||||
|
||||
for (int i = 0; i < g_Count; ++i)
|
||||
{
|
||||
float2 trailTopLeft = g_Trail[i];
|
||||
float2 trailCenter = trailTopLeft + itemSize / 2.0f;
|
||||
|
||||
float halfWidth = itemSize.x / 2.0f + 12.f;
|
||||
float halfHeight = itemSize.y / 2.0f + 12.f;
|
||||
|
||||
if (pixelPos.x >= trailCenter.x - halfWidth &&
|
||||
pixelPos.x <= trailCenter.x + halfWidth &&
|
||||
pixelPos.y >= trailCenter.y - halfHeight &&
|
||||
pixelPos.y <= trailCenter.y + halfHeight)
|
||||
{
|
||||
Color.rgb = float3(20.f, 100.f, 180.f) / 255.f;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
for (int j = 0; j < g_ChaseCount; ++j)
|
||||
{
|
||||
float2 ChaseTopLeft = g_ChaseTrail[j];
|
||||
float2 ChaseCenter = ChaseTopLeft + itemSize / 2.0f;
|
||||
|
||||
float halfWidth = itemSize.x * 0.7f;
|
||||
float halfHeight = itemSize.y * 0.7f;
|
||||
|
||||
if (pixelPos.x >= ChaseCenter.x - halfWidth &&
|
||||
pixelPos.x <= ChaseCenter.x + halfWidth &&
|
||||
pixelPos.y >= ChaseCenter.y - halfHeight &&
|
||||
pixelPos.y <= ChaseCenter.y + halfHeight)
|
||||
{
|
||||
Color.rgb = float3(110.f, 5.f, 5.f) / 255.f;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Color.a *= Alpha;
|
||||
Out.vColor = Color;
|
||||
return Out;
|
||||
}
|
||||
|
||||
PS_OUT PS_SpellLearnBooster(PS_IN In)
|
||||
{
|
||||
PS_OUT Out;
|
||||
float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
|
||||
|
||||
float4 Color = float4(1.f, 1.f, 1.f, 1.f);
|
||||
float4 tex = g_Texture.Sample(DefaultSampler, In.vTexcoord);
|
||||
|
||||
Color = tex;
|
||||
|
||||
float2 Imagetexpos1 = g_fImageSipos1.xy / g_fCurrent_Size;
|
||||
float2 Imagetexsize1 = g_fImageSipos1.zw / g_fCurrent_Size;
|
||||
float2 Imagelocal = (In.vTexcoord - Imagetexpos1) / Imagetexsize1;
|
||||
bool inside1 = all(Imagelocal >= 0.0f && Imagelocal <= 1.0f);
|
||||
|
||||
if (g_iBoosterOn == 0 && g_iBoosterOff == 0)
|
||||
{
|
||||
if (inside1)
|
||||
{
|
||||
float4 tex1 = g_Texture1.Sample(DefaultSampler, Imagelocal);
|
||||
Color = lerp(Color, tex1, tex1.a);
|
||||
}
|
||||
}
|
||||
else if (g_iBoosterOn != 0 && g_iBoosterOff == 0)
|
||||
{
|
||||
|
||||
float4 tex3 = g_Texture3.Sample(DefaultSampler, In.vTexcoord);
|
||||
Color = lerp(Color, tex3, tex3.a);
|
||||
}
|
||||
else if (g_iBoosterOn == 0 && g_iBoosterOff != 0)
|
||||
{
|
||||
float4 tex2 = g_Texture2.Sample(DefaultSampler, In.vTexcoord);
|
||||
|
||||
tex2.rgb *= float3(1.f, 0.f, 0.f);
|
||||
Color = tex;
|
||||
|
||||
Color = lerp(Color, tex2, tex2.a);
|
||||
}
|
||||
|
||||
Color.a *= Alpha;
|
||||
Out.vColor = Color;
|
||||
return Out;
|
||||
@@ -2416,6 +2498,16 @@ technique11 PosTexTechnique11
|
||||
PixelShader = compile ps_5_0 PS_SpellLearnColor();
|
||||
}
|
||||
|
||||
pass SpellLearnBooster
|
||||
{
|
||||
SetRasterizerState(RS_Nocull);
|
||||
SetDepthStencilState(DSS_Default, 0);
|
||||
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
|
||||
VertexShader = compile vs_5_0 VS_MAIN();
|
||||
GeometryShader = NULL;
|
||||
PixelShader = compile ps_5_0 PS_SpellLearnBooster();
|
||||
}
|
||||
|
||||
pass Enemy_Detection
|
||||
{
|
||||
SetRasterizerState(RS_Nocull);
|
||||
|
||||
@@ -162,18 +162,27 @@ call Update_Resources.bat
|
||||
<ClInclude Include="..\Public\Action_Panel.h" />
|
||||
<ClInclude Include="..\Public\Barral_Splesh.h" />
|
||||
<ClInclude Include="..\Public\Avadakedavra.h" />
|
||||
<ClInclude Include="..\Public\CallBack_NonPlayable_Behavior.h" />
|
||||
<ClInclude Include="..\Public\CallBack_NonPlayable_HitReport.h" />
|
||||
<ClInclude Include="..\Public\State_Fall.h" />
|
||||
<ClInclude Include="..\Public\TransformationSide.h" />
|
||||
<ClInclude Include="..\Public\Transformation.h" />
|
||||
<ClInclude Include="..\Public\LightningSide.h" />
|
||||
<ClInclude Include="..\Public\Lightning.h" />
|
||||
<ClInclude Include="..\Public\Blink.h" />
|
||||
<ClInclude Include="..\Public\NPC_EleazarFig.h" />
|
||||
<ClInclude Include="..\Public\SpellLearn.h" />
|
||||
<ClInclude Include="..\Public\SpellLearn_Booster.h" />
|
||||
<ClInclude Include="..\Public\SpellLearn_Canvas.h" />
|
||||
<ClInclude Include="..\Public\SpellLearn_ChaserPointer.h" />
|
||||
<ClInclude Include="..\Public\SpellLearn_Data.h" />
|
||||
<ClInclude Include="..\Public\SpellLearn_LookPointer.h" />
|
||||
<ClInclude Include="..\Public\SpellLearn_MovePointer.h" />
|
||||
<ClInclude Include="..\Public\SpellLearn_Name.h" />
|
||||
<ClInclude Include="..\Public\SpellLearn_Overlay.h" />
|
||||
<ClInclude Include="..\Public\SpellLearn_Panel.h" />
|
||||
<ClInclude Include="..\Public\State_Skill2.h" />
|
||||
<ClInclude Include="..\Public\SpellLearn_Slot.h" />
|
||||
<ClInclude Include="..\Public\Stupefy.h" />
|
||||
<ClInclude Include="..\Public\BroomRaceManager.h" />
|
||||
<ClInclude Include="..\Public\BroomRacerAI.h" />
|
||||
@@ -385,18 +394,27 @@ call Update_Resources.bat
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\Private\Action_Panel.cpp" />
|
||||
<ClCompile Include="..\Private\Avadakedavra.cpp" />
|
||||
<ClCompile Include="..\Private\CallBack_NonPlayable_Behavior.cpp" />
|
||||
<ClCompile Include="..\Private\CallBack_NonPlayable_HitReport.cpp" />
|
||||
<ClCompile Include="..\Private\State_Fall.cpp" />
|
||||
<ClCompile Include="..\Private\TransformationSide.cpp" />
|
||||
<ClCompile Include="..\Private\Transformation.cpp" />
|
||||
<ClCompile Include="..\Private\LightningSide.cpp" />
|
||||
<ClCompile Include="..\Private\Lightning.cpp" />
|
||||
<ClCompile Include="..\Private\Blink.cpp" />
|
||||
<ClCompile Include="..\Private\NPC_EleazarFig.cpp" />
|
||||
<ClCompile Include="..\Private\SpellLearn.cpp" />
|
||||
<ClCompile Include="..\Private\SpellLearn_Booster.cpp" />
|
||||
<ClCompile Include="..\Private\SpellLearn_Canvas.cpp" />
|
||||
<ClCompile Include="..\Private\SpellLearn_ChaserPointer.cpp" />
|
||||
<ClCompile Include="..\Private\SpellLearn_Data.cpp" />
|
||||
<ClCompile Include="..\Private\SpellLearn_LookPointer.cpp" />
|
||||
<ClCompile Include="..\Private\SpellLearn_MovePointer.cpp" />
|
||||
<ClCompile Include="..\Private\SpellLearn_Name.cpp" />
|
||||
<ClCompile Include="..\Private\SpellLearn_Overlay.cpp" />
|
||||
<ClCompile Include="..\Private\SpellLearn_Panel.cpp" />
|
||||
<ClCompile Include="..\Private\State_Skill2.cpp" />
|
||||
<ClCompile Include="..\Private\SpellLearn_Slot.cpp" />
|
||||
<ClCompile Include="..\Private\Stupefy.cpp" />
|
||||
<ClCompile Include="..\Private\Boss_HpBar.cpp" />
|
||||
<ClCompile Include="..\Private\Barral_Splesh.cpp" />
|
||||
|
||||
@@ -680,6 +680,9 @@
|
||||
<ClInclude Include="..\Public\State_Skill2.h">
|
||||
<Filter>04.Mechanic\State\State_Combat\State_Skill2</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\NPC_EleazarFig.h">
|
||||
<Filter>02.GameObjects\NPC\Ally\GateKeeper</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Transformation.h">
|
||||
<Filter>02.GameObjects\Effect\Effects\Transformation</Filter>
|
||||
</ClInclude>
|
||||
@@ -688,6 +691,30 @@
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Avadakedavra.h">
|
||||
<Filter>02.GameObjects\Effect\Effects\Avadakedavra</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\SpellLearn_Slot.h">
|
||||
<Filter>02.GameObjects\UI\SpellLearn_Canvas\SpellLearn_Panel\SpellLearn_Slot</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\SpellLearn_Overlay.h">
|
||||
<Filter>02.GameObjects\UI\SpellLearn_Canvas\SpellLearn_Panel\SpellLearn_Overlay</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\SpellLearn_LookPointer.h">
|
||||
<Filter>02.GameObjects\UI\SpellLearn_Canvas\SpellLearn_Panel\SpellLeam_LookPointer</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\SpellLearn_ChaserPointer.h">
|
||||
<Filter>02.GameObjects\UI\SpellLearn_Canvas\SpellLearn_Panel\SPellLeam_ChaserPointer</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\SpellLearn_Booster.h">
|
||||
<Filter>02.GameObjects\UI\SpellLearn_Canvas\SpellLearn_Panel\SpellLearn_Booster</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\CallBack_NonPlayable_Behavior.h">
|
||||
<Filter>02.GameObjects\PhysX\CallBack\Behavior\NPC</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\CallBack_NonPlayable_HitReport.h">
|
||||
<Filter>02.GameObjects\PhysX\CallBack\HitReport\NPC</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\State_Fall.h">
|
||||
<Filter>04.Mechanic\State\Focus\State_Fall</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
@@ -1431,11 +1458,38 @@
|
||||
<Filter Include="02.GameObjects\Effect\Effects\Transformation">
|
||||
<UniqueIdentifier>{87b1db75-938f-462f-a288-fe9c8d6c689e}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\NPC\Ally\GateKeeper">
|
||||
<UniqueIdentifier>{cef7b9f7-3bb3-4782-a1a8-09751fa538d8}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Effect\Effects\Transformation\TransformationSide">
|
||||
<UniqueIdentifier>{064b5e2f-dcde-47fd-a43d-43e25800393d}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Effect\Effects\Avadakedavra">
|
||||
<UniqueIdentifier>{575f6ef3-7013-448a-b448-e94f1ddc5647}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\UI\SpellLearn_Canvas\SpellLearn_Panel\SPellLeam_ChaserPointer">
|
||||
<UniqueIdentifier>{d9c0bcb6-64f6-4b58-a68d-ff04c91b9861}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\UI\SpellLearn_Canvas\SpellLearn_Panel\SpellLeam_LookPointer">
|
||||
<UniqueIdentifier>{61024044-17a9-45ed-a6f9-73385290846d}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\UI\SpellLearn_Canvas\SpellLearn_Panel\SpellLearn_Booster">
|
||||
<UniqueIdentifier>{b512f128-fcec-4db4-8cd2-08abfc56e000}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\UI\SpellLearn_Canvas\SpellLearn_Panel\SpellLearn_Overlay">
|
||||
<UniqueIdentifier>{2af08f38-aff0-4632-acb8-492111ff88f2}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\UI\SpellLearn_Canvas\SpellLearn_Panel\SpellLearn_Slot">
|
||||
<UniqueIdentifier>{dd7d2910-1d3d-42c4-9390-ac60685357ee}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\PhysX\CallBack\Behavior\NPC">
|
||||
<UniqueIdentifier>{954ad10f-edc4-4dda-a2e1-741a418831e8}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\PhysX\CallBack\HitReport\NPC">
|
||||
<UniqueIdentifier>{b265ac30-97f5-4dac-bc6b-b11fba1c5ad8}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="04.Mechanic\State\Focus\State_Fall">
|
||||
<UniqueIdentifier>{b85f80a2-d88e-4eb0-91af-da93b49bfa09}</UniqueIdentifier>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
@@ -2072,6 +2126,33 @@
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Avadakedavra.cpp">
|
||||
<Filter>02.GameObjects\Effect\Effects\Avadakedavra</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\NPC_EleazarFig.cpp">
|
||||
<Filter>02.GameObjects\NPC\Ally\GateKeeper</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\SpellLearn_Slot.cpp">
|
||||
<Filter>02.GameObjects\UI\SpellLearn_Canvas\SpellLearn_Panel\SpellLearn_Slot</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\SpellLearn_Overlay.cpp">
|
||||
<Filter>02.GameObjects\UI\SpellLearn_Canvas\SpellLearn_Panel\SpellLearn_Overlay</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\SpellLearn_LookPointer.cpp">
|
||||
<Filter>02.GameObjects\UI\SpellLearn_Canvas\SpellLearn_Panel\SpellLeam_LookPointer</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\SpellLearn_ChaserPointer.cpp">
|
||||
<Filter>02.GameObjects\UI\SpellLearn_Canvas\SpellLearn_Panel\SPellLeam_ChaserPointer</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\SpellLearn_Booster.cpp">
|
||||
<Filter>02.GameObjects\UI\SpellLearn_Canvas\SpellLearn_Panel\SpellLearn_Booster</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\CallBack_NonPlayable_Behavior.cpp">
|
||||
<Filter>02.GameObjects\PhysX\CallBack\Behavior\NPC</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\CallBack_NonPlayable_HitReport.cpp">
|
||||
<Filter>02.GameObjects\PhysX\CallBack\HitReport\NPC</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\State_Fall.cpp">
|
||||
<Filter>04.Mechanic\State\Focus\State_Fall</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
|
||||
@@ -86,7 +86,7 @@ void CAction_Panel::Update(_float fTimeDelta)
|
||||
}
|
||||
|
||||
Magic_Meter_Move();
|
||||
|
||||
m_fTime -= fTimeDelta;
|
||||
__super::Update(fTimeDelta);
|
||||
}
|
||||
|
||||
@@ -226,6 +226,10 @@ void CAction_Panel::Ancient_Magic_Throw()
|
||||
|
||||
void CAction_Panel::Use_Spell(_int Index)
|
||||
{
|
||||
if (m_fTime >= 0.f)
|
||||
return;
|
||||
|
||||
m_fTime = 1.f;
|
||||
switch (Index)
|
||||
{
|
||||
case 1:
|
||||
|
||||
@@ -0,0 +1,94 @@
|
||||
#include "pch.h"
|
||||
#include "CallBack_NonPlayable_Behavior.h"
|
||||
#include "GameInstance.h"
|
||||
|
||||
|
||||
CCallBack_NonPlayable_Behavior::CCallBack_NonPlayable_Behavior()
|
||||
{
|
||||
}
|
||||
|
||||
CCallBack_NonPlayable_Behavior::~CCallBack_NonPlayable_Behavior()
|
||||
{
|
||||
}
|
||||
|
||||
PSX::PxControllerBehaviorFlags CCallBack_NonPlayable_Behavior::getBehaviorFlags(const PSX::PxShape& shape, const PSX::PxActor& actor)
|
||||
{
|
||||
if (nullptr == actor.userData) {
|
||||
return PSX::PxControllerBehaviorFlags(0);
|
||||
}
|
||||
PSX::PxControllerBehaviorFlags eResults = PSX::PxControllerBehaviorFlags(0);
|
||||
PhsXUserData* pActorData = static_cast<PhsXUserData*>(actor.userData);
|
||||
switch (pActorData->eKind)
|
||||
{
|
||||
case PHYSX_KIND::BODY_STATIC:
|
||||
eResults = PSX::PxControllerBehaviorFlag::eCCT_SLIDE | PSX::PxControllerBehaviorFlag::eCCT_CAN_RIDE_ON_OBJECT;
|
||||
break;
|
||||
case PHYSX_KIND::BODY_DYNAMIC:
|
||||
switch (pActorData->iSubKind)
|
||||
{
|
||||
case 20:
|
||||
eResults = PSX::PxControllerBehaviorFlag::eCCT_SLIDE;
|
||||
break;
|
||||
case 21:
|
||||
eResults = PSX::PxControllerBehaviorFlag::eCCT_CAN_RIDE_ON_OBJECT;
|
||||
break;
|
||||
case 22:
|
||||
eResults = PSX::PxControllerBehaviorFlag::eCCT_SLIDE | PSX::PxControllerBehaviorFlag::eCCT_CAN_RIDE_ON_OBJECT;
|
||||
break;
|
||||
case 23:
|
||||
eResults = PSX::PxControllerBehaviorFlag::eCCT_CAN_RIDE_ON_OBJECT;
|
||||
break;
|
||||
case 24:
|
||||
eResults = PSX::PxControllerBehaviorFlags(0);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case PHYSX_KIND::CCTActor:
|
||||
// Action
|
||||
break;
|
||||
case PHYSX_KIND::OBSTACLEActor:
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
return eResults;
|
||||
}
|
||||
|
||||
PSX::PxControllerBehaviorFlags CCallBack_NonPlayable_Behavior::getBehaviorFlags(const PSX::PxController& controller)
|
||||
{
|
||||
// CCT끼리 부딪힐 때를 굳이 안 쓰면 0 리턴
|
||||
return PSX::PxControllerBehaviorFlag::eCCT_SLIDE;
|
||||
}
|
||||
|
||||
PSX::PxControllerBehaviorFlags CCallBack_NonPlayable_Behavior::getBehaviorFlags(const PSX::PxObstacle& obstacle)
|
||||
{
|
||||
// Obstacle이 움직이는 발판이다?
|
||||
// 여기서 ride/slide 세팅
|
||||
//return PSX::PxControllerBehaviorFlag::eCCT_CAN_RIDE_ON_OBJECT;
|
||||
|
||||
return PSX::PxControllerBehaviorFlags(0);
|
||||
}
|
||||
|
||||
HRESULT CCallBack_NonPlayable_Behavior::Initialize(CCharacter_Controller* pController)
|
||||
{
|
||||
m_pController = pController;
|
||||
m_pGameInstance = CGameInstance::GetInstance();
|
||||
SAFE_ADDREF(m_pController);
|
||||
SAFE_ADDREF(m_pGameInstance);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CCallBack_NonPlayable_Behavior::Finalize()
|
||||
{
|
||||
SAFE_RELEASE(m_pGameInstance);
|
||||
SAFE_RELEASE(m_pController);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CCallBack_NonPlayable_Behavior* CCallBack_NonPlayable_Behavior::Create()
|
||||
{
|
||||
return new CCallBack_NonPlayable_Behavior();
|
||||
}
|
||||
@@ -0,0 +1,195 @@
|
||||
#include "pch.h"
|
||||
#include "CallBack_NonPlayable_HitReport.h"
|
||||
#include "GameInstance.h"
|
||||
#include "GameObject.h"
|
||||
|
||||
CCallBack_NonPlayable_HitReport::CCallBack_NonPlayable_HitReport()
|
||||
{
|
||||
}
|
||||
|
||||
CCallBack_NonPlayable_HitReport::~CCallBack_NonPlayable_HitReport()
|
||||
{
|
||||
}
|
||||
|
||||
void CCallBack_NonPlayable_HitReport::BeginFrame()
|
||||
{
|
||||
// 매 프레임 초기화
|
||||
m_vClimbNormal = { 0.f, 1.f, 0.f };
|
||||
m_bGroundHit = { false };
|
||||
m_fBestNormal = { 0.f };
|
||||
}
|
||||
|
||||
void CCallBack_NonPlayable_HitReport::onShapeHit(const PSX::PxControllerShapeHit& hit)
|
||||
{
|
||||
PSX::PxController* pController = hit.controller;
|
||||
PSX::PxExtendedVec3 vWorldPos = hit.worldPos; // 접촉지점
|
||||
PSX::PxVec3 vWorldNormal = hit.worldNormal; // 접촉노말
|
||||
PSX::PxVec3 vDir = hit.dir; // 시도한 move 방향
|
||||
_float fLength = hit.length; // 시도한 move 길이
|
||||
|
||||
PSX::PxShape* pShape = hit.shape;
|
||||
PSX::PxRigidActor* pActor = hit.actor;
|
||||
|
||||
if (nullptr != pController && nullptr != pActor) {
|
||||
PhsXUserData* pTargetActorData = static_cast<PhsXUserData*>(pActor->userData);
|
||||
PhsXUserData* pOwnerActorData = static_cast<PhsXUserData*>(pController->getActor()->userData);
|
||||
if (nullptr == pTargetActorData) { // missing user data
|
||||
return;
|
||||
}
|
||||
|
||||
switch (pTargetActorData->eKind)
|
||||
{
|
||||
case PHYSX_KIND::BODY_STATIC:
|
||||
switch (PXOBJECT(pTargetActorData->iSubKind))
|
||||
{
|
||||
case PXOBJECT::TERRAIN:
|
||||
case PXOBJECT::FLOOR:
|
||||
case PXOBJECT::ROAD:
|
||||
if (vWorldNormal.y > 0) {
|
||||
_float fDotValue = vWorldNormal.dot({ 0.f, 1.f, 0.f });
|
||||
if (m_fBestNormal < fDotValue) {
|
||||
m_bGroundHit = true;
|
||||
m_fBestNormal = fDotValue;
|
||||
m_vClimbNormal = { vWorldNormal.x, vWorldNormal.y, vWorldNormal.z };
|
||||
}
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case PHYSX_KIND::BODY_DYNAMIC:
|
||||
{
|
||||
switch (PXOBJECT(pTargetActorData->iSubKind))
|
||||
{
|
||||
case PXOBJECT::END:
|
||||
break;
|
||||
case PXOBJECT::BOX:
|
||||
{
|
||||
PSX::PxRigidDynamic* pDynamic = static_cast<PSX::PxRigidDynamic*>(pActor);
|
||||
//pDynamic->setRigidBodyFlag(PSX::PxRigidBodyFlag::eKINEMATIC, false);
|
||||
PSX::PxVec3 vCompressedDir = -vWorldNormal;
|
||||
vCompressedDir.normalize();
|
||||
pDynamic->addForce(vCompressedDir * fLength * 1000.f, PSX::PxForceMode::eFORCE);
|
||||
} break;
|
||||
case PXOBJECT::DOOR:
|
||||
{
|
||||
PSX::PxRigidDynamic* pDynamic = static_cast<PSX::PxRigidDynamic*>(pActor);
|
||||
_float fDot = vDir.dot(PSX::PxVec3(0.f, 1.f, 0.f));
|
||||
if (fDot > 0) {
|
||||
pDynamic->addTorque(PSX::PxVec3(0.f, 1.f, 0.f) * fLength * 100.f, PSX::PxForceMode::eFORCE);
|
||||
}
|
||||
else {
|
||||
pDynamic->addTorque(PSX::PxVec3(0.f, -1.f, 0.f) * fLength * 100.f, PSX::PxForceMode::eFORCE);
|
||||
}
|
||||
} break;
|
||||
default:
|
||||
{
|
||||
} break;
|
||||
}
|
||||
} break;
|
||||
case PHYSX_KIND::CCTActor:
|
||||
assert(false);
|
||||
break;
|
||||
case PHYSX_KIND::OBSTACLEActor:
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void CCallBack_NonPlayable_HitReport::onControllerHit(const PSX::PxControllersHit& hit)
|
||||
{
|
||||
PSX::PxController* pController = hit.controller;
|
||||
PSX::PxExtendedVec3 vWorldPos = hit.worldPos; // 접촉지점
|
||||
PSX::PxVec3 vWorldNormal = hit.worldNormal; // 접촉노말
|
||||
PSX::PxVec3 vDir = hit.dir; // 시도한 move 방향
|
||||
_float fLength = hit.length; // 시도한 move 길이
|
||||
|
||||
PSX::PxController* pOtherController = hit.other; // 다른 컨트롤러
|
||||
|
||||
if (nullptr != pController && nullptr != pOtherController) {
|
||||
PhsXUserData* pActorData = static_cast<PhsXUserData*>(pOtherController->getActor()->userData);
|
||||
assert(nullptr != pActorData); // missing user data
|
||||
|
||||
switch (pActorData->eKind)
|
||||
{
|
||||
case PHYSX_KIND::BODY_STATIC:
|
||||
assert(false);
|
||||
break;
|
||||
case PHYSX_KIND::BODY_DYNAMIC:
|
||||
assert(false);
|
||||
break;
|
||||
case PHYSX_KIND::CCTActor:
|
||||
// Action
|
||||
break;
|
||||
case PHYSX_KIND::OBSTACLEActor:
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void CCallBack_NonPlayable_HitReport::onObstacleHit(const PSX::PxControllerObstacleHit& hit)
|
||||
{
|
||||
PSX::PxController* pController = hit.controller;
|
||||
PSX::PxExtendedVec3 vWorldPos = hit.worldPos; // 접촉지점
|
||||
PSX::PxVec3 vWorldNormal = hit.worldNormal; // 접촉노말
|
||||
PSX::PxVec3 vDir = hit.dir; // 시도한 move 방향
|
||||
_float fLength = hit.length; // 시도한 move 길이
|
||||
|
||||
const void* pOtherController = hit.userData; // 장애물
|
||||
|
||||
//switch (pOtherController.member)
|
||||
//{
|
||||
//default:
|
||||
// break;
|
||||
//}
|
||||
}
|
||||
|
||||
void CCallBack_NonPlayable_HitReport::Set_CurrentSlop()
|
||||
{
|
||||
m_pController->Rewind_Grounded();
|
||||
if (m_bGroundHit)
|
||||
{
|
||||
m_pController->Set_OnGroundFlag(m_bGroundHit);
|
||||
float fDot = clamp(m_fBestNormal, -1.0f, 1.0f);
|
||||
float fAngleRad = acosf(fDot);
|
||||
float fAngleDeg = XMConvertToDegrees(fAngleRad);
|
||||
|
||||
m_pController->Set_CurrentSlope(fAngleDeg, m_vClimbNormal);
|
||||
}
|
||||
}
|
||||
|
||||
HRESULT CCallBack_NonPlayable_HitReport::Initialize(CCharacter_Controller* pController)
|
||||
{
|
||||
m_pController = pController;
|
||||
m_pGameInstance = CGameInstance::GetInstance();
|
||||
SAFE_ADDREF(m_pController);
|
||||
SAFE_ADDREF(m_pGameInstance);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CCallBack_NonPlayable_HitReport::Finalize()
|
||||
{
|
||||
SAFE_RELEASE(m_pGameInstance);
|
||||
SAFE_RELEASE(m_pController);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
_bool CCallBack_NonPlayable_HitReport::IsOnGround()
|
||||
{
|
||||
return m_bGroundHit;
|
||||
}
|
||||
|
||||
_vector CCallBack_NonPlayable_HitReport::Get_GroundVector()
|
||||
{
|
||||
return XMLoadFloat3(&m_vClimbNormal);
|
||||
}
|
||||
|
||||
CCallBack_NonPlayable_HitReport* CCallBack_NonPlayable_HitReport::Create()
|
||||
{
|
||||
return new CCallBack_NonPlayable_HitReport();
|
||||
}
|
||||
@@ -358,8 +358,8 @@ HRESULT CCamPosition_Shoulder::Ready_SubParts()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pGameInstance->Add_Camera(g_iStaticLevel, m_pBinded_Camera, CAMERA_SHOULDER);
|
||||
if (FAILED(m_pGameInstance->Bind_Camera(g_iStaticLevel, CAMERA_SHOULDER, true))) {
|
||||
m_pGameInstance->Add_Camera(NEXT_LEVEL, m_pBinded_Camera, CAMERA_SHOULDER);
|
||||
if (FAILED(m_pGameInstance->Bind_Camera(NEXT_LEVEL, CAMERA_SHOULDER, true))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ CCamera_Debug::CCamera_Debug(const CCamera_Debug& rhs)
|
||||
void CCamera_Debug::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_pGameInstance->Bind_Camera(g_iStaticLevel, CAMERA_DEBUG, false);
|
||||
m_pGameInstance->Bind_Camera(NEXT_LEVEL, CAMERA_DEBUG, false);
|
||||
#endif // _DEBUG
|
||||
|
||||
if (FAILED(m_pGameInstance->IsBinded_Camera(CAMERA_DEBUG))) {
|
||||
|
||||
@@ -105,7 +105,7 @@ void CCamera_Gaze::Toggle_Priority()
|
||||
}
|
||||
else {
|
||||
m_iPriority = 55;
|
||||
m_pGameInstance->Bind_Camera(g_iStaticLevel, CAMERA_SHOULDER, false);
|
||||
m_pGameInstance->Bind_Camera(NEXT_LEVEL, CAMERA_SHOULDER, false);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -40,12 +40,12 @@ void CDummy_PhysXPlayable::Update(_float fTimeDelta)
|
||||
m_pTransformCom->AccumulateMomentum(XMVectorSet(0.f, -10.f, 0.f, 0.f) * m_pTransformCom->Get_Speed() * fTimeDelta);
|
||||
}
|
||||
if (m_pGameInstance->Key_Down(DIK_V)) {
|
||||
m_pGameInstance->Detach_Actor(*m_pCharacter_Controller->Get_Actor());
|
||||
m_pGameInstance->Detach_Actor(*m_pCharacter_Controller->Get_Actor(), m_pGameInstance->Get_CurrentLevelID());
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (m_pGameInstance->Key_Down(DIK_V)) {
|
||||
m_pGameInstance->Attach_Actor(*m_pCharacter_Controller->Get_Actor());
|
||||
m_pGameInstance->Attach_Actor(*m_pCharacter_Controller->Get_Actor(), m_pGameInstance->Get_CurrentLevelID());
|
||||
}
|
||||
}
|
||||
m_pCharacter_Controller->Move(fTimeDelta);
|
||||
@@ -147,7 +147,7 @@ HRESULT CDummy_PhysXPlayable::Ready_Components(void* pArg)
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_BOX"), (CComponent**)&m_pRigidBody, &Desc))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor());
|
||||
m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL);
|
||||
}
|
||||
/* Com_Shader */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_MESH,
|
||||
|
||||
@@ -151,9 +151,9 @@ CGameObject* CDummy_PhysXWall::Clone(void* pArg, CGameObject* pOwner)
|
||||
|
||||
void CDummy_PhysXWall::Free()
|
||||
{
|
||||
if (nullptr != m_pRigidBody) {
|
||||
m_pGameInstance->Release_Actor(*m_pRigidBody->Get_Actor());
|
||||
}
|
||||
//if (nullptr != m_pRigidBody) {
|
||||
// m_pGameInstance->Release_Actor(*m_pRigidBody->Get_Actor(), m_pGameInstance->Get_CurrentLevelID());
|
||||
//}
|
||||
|
||||
__super::Free();
|
||||
|
||||
|
||||
@@ -214,7 +214,7 @@ HRESULT CEffectPool::Bind_ShaderResources()
|
||||
|
||||
HRESULT CEffectPool::Ready_Effect()
|
||||
{
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::JAP, 10, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::JAP, 10, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
CNomalJap* pEffect = nullptr;
|
||||
|
||||
pEffect = m_pGameInstance->Clone_Prototype<CNomalJap>(iPrototypeLevel, nullptr);
|
||||
@@ -223,7 +223,7 @@ HRESULT CEffectPool::Ready_Effect()
|
||||
))) return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::BOMBARDA, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel)-> CEffect_Container* {
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::BOMBARDA, 5, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel)-> CEffect_Container* {
|
||||
|
||||
CBombard* pEffect = nullptr;
|
||||
|
||||
@@ -232,7 +232,7 @@ HRESULT CEffectPool::Ready_Effect()
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::DESCENDO, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel)-> CEffect_Container* {
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::DESCENDO, 5, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel)-> CEffect_Container* {
|
||||
|
||||
CDecendo* pEffect = nullptr;
|
||||
|
||||
@@ -241,7 +241,7 @@ HRESULT CEffectPool::Ready_Effect()
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::PROTEGO, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel)-> CEffect_Container* {
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::PROTEGO, 5, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel)-> CEffect_Container* {
|
||||
|
||||
CProtego* pEffect = nullptr;
|
||||
|
||||
@@ -250,7 +250,7 @@ HRESULT CEffectPool::Ready_Effect()
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::REVELIO, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel)-> CEffect_Container* {
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::REVELIO, 5, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel)-> CEffect_Container* {
|
||||
|
||||
CRevelio* pEffect = nullptr;
|
||||
|
||||
@@ -259,7 +259,7 @@ HRESULT CEffectPool::Ready_Effect()
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::JAP_SIDE, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel)-> CEffect_Container* {
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::JAP_SIDE, 5, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel)-> CEffect_Container* {
|
||||
|
||||
CNomalJapSide* pEffect = nullptr;
|
||||
|
||||
@@ -268,7 +268,7 @@ HRESULT CEffectPool::Ready_Effect()
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::LEVIOSO, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::LEVIOSO, 5, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CLevioso* pEffect = nullptr;
|
||||
|
||||
@@ -278,7 +278,7 @@ HRESULT CEffectPool::Ready_Effect()
|
||||
))) return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::LUMOS, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::LUMOS, 5, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CLumos* pEffect = nullptr;
|
||||
|
||||
@@ -288,7 +288,7 @@ HRESULT CEffectPool::Ready_Effect()
|
||||
))) return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::ACCIO, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::ACCIO, 5, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CAccio* pEffect = nullptr;
|
||||
|
||||
@@ -298,7 +298,7 @@ HRESULT CEffectPool::Ready_Effect()
|
||||
))) return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::BOMBARDA_SIDE, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::BOMBARDA_SIDE, 5, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CBombardSide* pEffect = nullptr;
|
||||
|
||||
@@ -307,7 +307,7 @@ HRESULT CEffectPool::Ready_Effect()
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::LEVIOSO_SIDE, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::LEVIOSO_SIDE, 5, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CLeviosoSide* pEffect = nullptr;
|
||||
|
||||
@@ -317,7 +317,7 @@ HRESULT CEffectPool::Ready_Effect()
|
||||
))) return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::DESCENDO_SIDE, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::DESCENDO_SIDE, 5, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CDecendoSide* pEffect = nullptr;
|
||||
|
||||
@@ -327,7 +327,7 @@ HRESULT CEffectPool::Ready_Effect()
|
||||
))) return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::WAND_END, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::WAND_END, 5, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CWandEnd* pEffect = nullptr;
|
||||
|
||||
@@ -337,7 +337,7 @@ HRESULT CEffectPool::Ready_Effect()
|
||||
))) return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::BOX_SPLESH, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::BOX_SPLESH, 5, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CBox_Splesh* pEffect = nullptr;
|
||||
|
||||
@@ -347,7 +347,7 @@ HRESULT CEffectPool::Ready_Effect()
|
||||
))) return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::CHAIL_SPLESH, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::CHAIL_SPLESH, 5, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CChair_Splesh* pEffect = nullptr;
|
||||
|
||||
@@ -357,7 +357,7 @@ HRESULT CEffectPool::Ready_Effect()
|
||||
))) return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::BARRAL_SPLASH, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::BARRAL_SPLASH, 5, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CBarral_Splesh* pEffect = nullptr;
|
||||
|
||||
@@ -367,7 +367,7 @@ HRESULT CEffectPool::Ready_Effect()
|
||||
))) return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::SCREEN_WIND, 3, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::SCREEN_WIND, 3, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CScreen_Wind* pEffect = nullptr;
|
||||
|
||||
@@ -377,7 +377,7 @@ HRESULT CEffectPool::Ready_Effect()
|
||||
))) return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::STUPEFY, 3, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::STUPEFY, 3, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CStupefy* pEffect = nullptr;
|
||||
|
||||
@@ -386,7 +386,7 @@ HRESULT CEffectPool::Ready_Effect()
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::LIGHTNING, 3, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::LIGHTNING, 3, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CLightning* pEffect = nullptr;
|
||||
|
||||
@@ -395,7 +395,7 @@ HRESULT CEffectPool::Ready_Effect()
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::LIGHTNING_SIDE, 3, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::LIGHTNING_SIDE, 3, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CLightningSide* pEffect = nullptr;
|
||||
|
||||
@@ -405,7 +405,7 @@ HRESULT CEffectPool::Ready_Effect()
|
||||
))) return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::BLINK, 3, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::BLINK, 3, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CBlink* pEffect = nullptr;
|
||||
|
||||
@@ -414,7 +414,7 @@ HRESULT CEffectPool::Ready_Effect()
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::TRANSFORMATION, 3, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::TRANSFORMATION, 3, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CTransformation* pEffect = nullptr;
|
||||
|
||||
@@ -423,7 +423,7 @@ HRESULT CEffectPool::Ready_Effect()
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::TRANSFORMATION_SIDE, 3, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::TRANSFORMATION_SIDE, 3, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CTransformationSide* pEffect = nullptr;
|
||||
|
||||
@@ -440,7 +440,7 @@ HRESULT CEffectPool::Ready_MonsterEffect()
|
||||
{
|
||||
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::TROLL_ATTACK, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::TROLL_ATTACK, 5, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CTrollSwing* pEffect = nullptr;
|
||||
|
||||
@@ -449,7 +449,7 @@ HRESULT CEffectPool::Ready_MonsterEffect()
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::TROLL_NOMAL_SMOKE, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::TROLL_NOMAL_SMOKE, 5, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CTroll_Nomal_Smoke* pEffect = nullptr;
|
||||
|
||||
@@ -458,7 +458,7 @@ HRESULT CEffectPool::Ready_MonsterEffect()
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::TROLL_RUSH_HIT, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::TROLL_RUSH_HIT, 5, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CTroll_Rush_Hit* pEffect = nullptr;
|
||||
|
||||
@@ -468,7 +468,7 @@ HRESULT CEffectPool::Ready_MonsterEffect()
|
||||
))) return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::GOBLIN_PROTEGO, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::GOBLIN_PROTEGO, 5, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CGoblin_Protego* pEffect = nullptr;
|
||||
|
||||
@@ -477,7 +477,7 @@ HRESULT CEffectPool::Ready_MonsterEffect()
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::GOBLIN_ATTACK, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::GOBLIN_ATTACK, 5, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CGoblin_Attack* pEffect = nullptr;
|
||||
|
||||
@@ -487,7 +487,7 @@ HRESULT CEffectPool::Ready_MonsterEffect()
|
||||
|
||||
))) return E_FAIL;
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::GOBLIN_MAGE_ATTACK, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::GOBLIN_MAGE_ATTACK, 5, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CMage_Nomal_Attack* pEffect = nullptr;
|
||||
|
||||
@@ -497,7 +497,7 @@ HRESULT CEffectPool::Ready_MonsterEffect()
|
||||
|
||||
))) return E_FAIL;
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::GOBLIN_MAGE_DOWN, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::GOBLIN_MAGE_DOWN, 5, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CMage_Down_Attack* pEffect = nullptr;
|
||||
|
||||
@@ -508,7 +508,7 @@ HRESULT CEffectPool::Ready_MonsterEffect()
|
||||
|
||||
))) return E_FAIL;
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::GOBLIN_MAGE_SIDE, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::GOBLIN_MAGE_SIDE, 5, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CMageSide* pEffect = nullptr;
|
||||
|
||||
@@ -519,7 +519,7 @@ HRESULT CEffectPool::Ready_MonsterEffect()
|
||||
))) return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::STUN, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::STUN, 5, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CStunEffect* pEffect = nullptr;
|
||||
|
||||
@@ -529,7 +529,7 @@ HRESULT CEffectPool::Ready_MonsterEffect()
|
||||
|
||||
))) return E_FAIL;
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::GOBILN_TELEPORT, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::GOBILN_TELEPORT, 5, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CGoblin_Teleport* pEffect = nullptr;
|
||||
|
||||
|
||||
@@ -324,6 +324,7 @@ void CGoblin::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
break;
|
||||
case ENUM_CLASS(SKILL_TYPE::JAP):
|
||||
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::JAP);
|
||||
m_fTumbleTimer = 0.f;
|
||||
break;
|
||||
case ENUM_CLASS(SKILL_TYPE::LEVIOSO):
|
||||
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::LEVIOSO);
|
||||
@@ -418,7 +419,7 @@ HRESULT CGoblin::Ready_Components()
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_BOX"), (CComponent**)&m_pRigidBody, &Desc))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor());
|
||||
m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL);
|
||||
}
|
||||
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("STAT_GOBLIN"), (CComponent**)&m_pStat))) {
|
||||
|
||||
@@ -317,6 +317,7 @@ void CGoblin_Mage::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
break;
|
||||
case ENUM_CLASS(SKILL_TYPE::JAP):
|
||||
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::JAP);
|
||||
m_fTumbleTimer = 0.f;
|
||||
break;
|
||||
case ENUM_CLASS(SKILL_TYPE::LEVIOSO):
|
||||
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::LEVIOSO);
|
||||
@@ -411,7 +412,7 @@ HRESULT CGoblin_Mage::Ready_Components()
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_BOX"), (CComponent**)&m_pRigidBody, &Desc))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor());
|
||||
m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL);
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("STAT_GOBLIN_WIZARD"), (CComponent**)&m_pStat))) {
|
||||
return E_FAIL;
|
||||
|
||||
@@ -697,18 +697,6 @@ void CGoblin::Behavior_DeadEnter()
|
||||
|
||||
_bool bStrongerKnockDown = { false };
|
||||
|
||||
switch (m_eHitSpell)
|
||||
{
|
||||
case STATEANIM::KNOCKDOWN_FWD:
|
||||
bStrongerKnockDown = true;
|
||||
break;
|
||||
case STATEANIM::TUMBLE2:
|
||||
bStrongerKnockDown = true;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
_float fabsRadius = fabsf(m_fHitRadius);
|
||||
_uint iState = { UINT_MAX };
|
||||
|
||||
|
||||
@@ -166,14 +166,8 @@ void CInfoInstance::Key_Input(_uint Input)
|
||||
switch (m_eInput)
|
||||
{
|
||||
case ENUM_CLASS(KEYINPUT::INPUT_1):
|
||||
Event_CallBack(TEXT("Spell"), &m_eInput);
|
||||
break;
|
||||
case ENUM_CLASS(KEYINPUT::INPUT_2):
|
||||
Event_CallBack(TEXT("Spell"), &m_eInput);
|
||||
break;
|
||||
case ENUM_CLASS(KEYINPUT::INPUT_3):
|
||||
Event_CallBack(TEXT("Spell"), &m_eInput);
|
||||
break;
|
||||
case ENUM_CLASS(KEYINPUT::INPUT_4):
|
||||
Event_CallBack(TEXT("Spell"), &m_eInput);
|
||||
break;
|
||||
@@ -440,7 +434,6 @@ void CInfoInstance::Release_Information()
|
||||
SAFE_RELEASE(m_pSkillInfo);
|
||||
SAFE_RELEASE(m_pQuestInfo);
|
||||
SAFE_RELEASE(m_pInteractiveInfo);
|
||||
SAFE_RELEASE(m_pSpellLearn_Data);
|
||||
SAFE_RELEASE(m_pDevice);
|
||||
SAFE_RELEASE(m_pContext);
|
||||
SAFE_RELEASE(m_pGameInstance);
|
||||
|
||||
@@ -3,6 +3,8 @@
|
||||
#include "GameInstance.h"
|
||||
#include "Level_Loading.h"
|
||||
#include "InfoInstance.h"
|
||||
#include "Player.h"
|
||||
#include "EffectPool.h"
|
||||
#include "Light_Main.h"
|
||||
#include "Layer.h"
|
||||
#include "Camera_Debug.h"
|
||||
@@ -33,6 +35,13 @@ HRESULT CLevel_Field::Initialize(void* pArg)
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(Reday_Layer_EffectPool())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(Ready_Layer_Player(LAYER_PLAYER))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Ready_Markers())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -157,11 +166,11 @@ HRESULT CLevel_Field::Ready_Camera()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pGameInstance->Add_Camera(g_iStaticLevel, pCamera, CAMERA_DEBUG);
|
||||
m_pGameInstance->Add_Camera(NEXT_LEVEL, pCamera, CAMERA_DEBUG);
|
||||
|
||||
#endif // _DEBUG
|
||||
|
||||
if (FAILED(m_pGameInstance->Bind_Camera(g_iStaticLevel, CAMERA_DEBUG, true))) {
|
||||
if (FAILED(m_pGameInstance->Bind_Camera(NEXT_LEVEL, CAMERA_DEBUG, true))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
return S_OK;
|
||||
@@ -208,6 +217,18 @@ HRESULT CLevel_Field::Ready_Markers()
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CLevel_Field::Ready_Layer_Player(const _wstring& strLayerTag)
|
||||
{
|
||||
CPlayer::PLAYERDESC playerDesc = {};
|
||||
playerDesc.vPos = _float4(-17.96f, 18.74f, 9.11f, 1.f);
|
||||
playerDesc.vRotQ = _float4(0.f, 0.f, 0.f, 1.f);
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CPlayer>(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &playerDesc))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CLevel_Field::Ready_Layer_Effect(const _wstring& strLayerTag)
|
||||
{
|
||||
return S_OK;
|
||||
@@ -222,6 +243,14 @@ HRESULT CLevel_Field::Ready_Layer_Monster()
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CLevel_Field::Reday_Layer_EffectPool()
|
||||
{
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CEffectPool>(g_iStaticLevel, NEXT_LEVEL, LAYER_EFFECTPOOL))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
pair<CLevel*, function<void()>> CLevel_Field::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID, void* pArg)
|
||||
{
|
||||
CLevel_Field* pInstance = new CLevel_Field(pDevice, pContext, eLevelID);
|
||||
|
||||
@@ -266,8 +266,8 @@ HRESULT CLevel_GamePlay::Ready_Background()
|
||||
#endif //
|
||||
#ifdef 기무리
|
||||
isReady_Background = true;
|
||||
isReady_Hogsmeade = false;
|
||||
isReady_Hogwart = false;
|
||||
isReady_Hogsmeade = true;
|
||||
isReady_Hogwart = true;
|
||||
#endif //
|
||||
#ifdef 인혁
|
||||
isReady_Background = false;
|
||||
@@ -549,11 +549,11 @@ HRESULT CLevel_GamePlay::Ready_Layer_Camera()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pGameInstance->Add_Camera(g_iStaticLevel, pCamera, CAMERA_DEBUG);
|
||||
m_pGameInstance->Add_Camera(NEXT_LEVEL, pCamera, CAMERA_DEBUG);
|
||||
|
||||
#endif // _DEBUG
|
||||
|
||||
if (FAILED(m_pGameInstance->Bind_Camera(g_iStaticLevel, CAMERA_SHOULDER, true))) {
|
||||
if (FAILED(m_pGameInstance->Bind_Camera(NEXT_LEVEL, CAMERA_SHOULDER, true))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -573,16 +573,17 @@ HRESULT CLevel_GamePlay::Ready_Markers()
|
||||
|
||||
HRESULT CLevel_GamePlay::Ready_Layer_Player(const _wstring& strLayerTag)
|
||||
{
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CPlayer>(g_iStaticLevel, NEXT_LEVEL, strLayerTag))) {
|
||||
CPlayer::PLAYERDESC playerDesc = {};
|
||||
playerDesc.vPos = _float4(-21.f, 0.f, -14.f, 1.f);
|
||||
playerDesc.vRotQ = _float4(0.f, 0.f, 0.f, 1.f);
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CPlayer>(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &playerDesc))) {
|
||||
return E_FAIL;
|
||||
|
||||
}
|
||||
|
||||
/*for (_uint i = 0; i < 1; ++i) {
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CNPC_Ollivander>(g_iStaticLevel, NEXT_LEVEL, strLayerTag))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}*/
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -118,6 +118,11 @@
|
||||
#include "SpellLearn_Name.h"
|
||||
#include "SpellLearn.h"
|
||||
#include "SpellLearn_MovePointer.h"
|
||||
#include "SpellLearn_ChaserPointer.h"
|
||||
#include "SpellLearn_LookPointer.h"
|
||||
#include "SpellLearn_Booster.h"
|
||||
#include "SpellLearn_Slot.h"
|
||||
#include "SpellLearn_Overlay.h"
|
||||
|
||||
#include "Interaction_Key.h"
|
||||
|
||||
@@ -352,7 +357,7 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
#endif //
|
||||
#ifdef 기무리
|
||||
isLoad_Background = true;
|
||||
isLoad_Hogwart = false;
|
||||
isLoad_Hogwart = true;
|
||||
#endif //
|
||||
#ifdef 인혁
|
||||
isLoad_Background = false;
|
||||
@@ -1865,7 +1870,7 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_GerboldOlivander_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/GerboldOllivander/GerboldOlivander.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))){
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/GerboldOllivander/GerboldOlivander.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity())))){
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -1875,7 +1880,7 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Ranrok_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Monster/Dragon/Dragon.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixRotationY(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;
|
||||
}
|
||||
|
||||
@@ -1938,131 +1943,131 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CBombard>(NEXT_LEVEL, CBombard::Create(m_pDevice, m_pContext)))) {
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CBombard>(g_iStaticLevel, CBombard::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CDecendo>(NEXT_LEVEL, CDecendo::Create(m_pDevice, m_pContext)))) {
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CDecendo>(g_iStaticLevel, CDecendo::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CNomalJap>(NEXT_LEVEL, CNomalJap::Create(m_pDevice, m_pContext)))) {
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CNomalJap>(g_iStaticLevel, CNomalJap::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CProtego>(NEXT_LEVEL, CProtego::Create(m_pDevice, m_pContext)))) {
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CProtego>(g_iStaticLevel, CProtego::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CRevelio>(NEXT_LEVEL, CRevelio::Create(m_pDevice, m_pContext)))) {
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CRevelio>(g_iStaticLevel, CRevelio::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CNomalJapSide>(NEXT_LEVEL, CNomalJapSide::Create(m_pDevice, m_pContext)))) {
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CNomalJapSide>(g_iStaticLevel, CNomalJapSide::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CLevioso>(NEXT_LEVEL, CLevioso::Create(m_pDevice, m_pContext)))) {
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CLevioso>(g_iStaticLevel, CLevioso::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CLumos>(NEXT_LEVEL, CLumos::Create(m_pDevice, m_pContext)))) {
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CLumos>(g_iStaticLevel, CLumos::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CAccio>(NEXT_LEVEL, CAccio::Create(m_pDevice, m_pContext)))) {
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CAccio>(g_iStaticLevel, CAccio::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CLeviosoSide>(NEXT_LEVEL, CLeviosoSide::Create(m_pDevice, m_pContext)))) {
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CLeviosoSide>(g_iStaticLevel, CLeviosoSide::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CBombardSide>(NEXT_LEVEL, CBombardSide::Create(m_pDevice, m_pContext)))) {
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CBombardSide>(g_iStaticLevel, CBombardSide::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CDecendoSide>(NEXT_LEVEL, CDecendoSide::Create(m_pDevice, m_pContext)))) {
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CDecendoSide>(g_iStaticLevel, CDecendoSide::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CTransformationSide>(NEXT_LEVEL, CTransformationSide::Create(m_pDevice, m_pContext)))) {
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CTransformationSide>(g_iStaticLevel, CTransformationSide::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CTrollSwing>(NEXT_LEVEL, CTrollSwing::Create(m_pDevice, m_pContext)))) {
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CTrollSwing>(g_iStaticLevel, CTrollSwing::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CTroll_Nomal_Smoke>(NEXT_LEVEL, CTroll_Nomal_Smoke::Create(m_pDevice, m_pContext)))) {
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CTroll_Nomal_Smoke>(g_iStaticLevel, CTroll_Nomal_Smoke::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CTroll_Rush_Hit>(NEXT_LEVEL, CTroll_Rush_Hit::Create(m_pDevice, m_pContext)))) {
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CTroll_Rush_Hit>(g_iStaticLevel, CTroll_Rush_Hit::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CGoblin_Protego>(NEXT_LEVEL, CGoblin_Protego::Create(m_pDevice, m_pContext)))) {
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CGoblin_Protego>(g_iStaticLevel, CGoblin_Protego::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CGoblin_Attack>(NEXT_LEVEL, CGoblin_Attack::Create(m_pDevice, m_pContext)))) {
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CGoblin_Attack>(g_iStaticLevel, CGoblin_Attack::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CMage_Down_Attack>(NEXT_LEVEL, CMage_Down_Attack::Create(m_pDevice, m_pContext)))) {
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CMage_Down_Attack>(g_iStaticLevel, CMage_Down_Attack::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CMage_Nomal_Attack>(NEXT_LEVEL, CMage_Nomal_Attack::Create(m_pDevice, m_pContext)))) {
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CMage_Nomal_Attack>(g_iStaticLevel, CMage_Nomal_Attack::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CMageSide>(NEXT_LEVEL, CMageSide::Create(m_pDevice, m_pContext)))) {
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CMageSide>(g_iStaticLevel, CMageSide::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CStunEffect>(NEXT_LEVEL, CStunEffect::Create(m_pDevice, m_pContext)))) {
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CStunEffect>(g_iStaticLevel, CStunEffect::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CBox_Splesh>(NEXT_LEVEL, CBox_Splesh::Create(m_pDevice, m_pContext)))) {
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CBox_Splesh>(g_iStaticLevel, CBox_Splesh::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CBarral_Splesh>(NEXT_LEVEL, CBarral_Splesh::Create(m_pDevice, m_pContext)))) {
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CBarral_Splesh>(g_iStaticLevel, CBarral_Splesh::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CChair_Splesh>(NEXT_LEVEL, CChair_Splesh::Create(m_pDevice, m_pContext)))) {
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CChair_Splesh>(g_iStaticLevel, CChair_Splesh::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CWandEnd>(NEXT_LEVEL, CWandEnd::Create(m_pDevice, m_pContext)))) {
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CWandEnd>(g_iStaticLevel, CWandEnd::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CStupefy>(NEXT_LEVEL, CStupefy::Create(m_pDevice, m_pContext)))) {
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CStupefy>(g_iStaticLevel, CStupefy::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CLightning>(NEXT_LEVEL, CLightning::Create(m_pDevice, m_pContext)))) {
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CLightning>(g_iStaticLevel, CLightning::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CLightningSide>(NEXT_LEVEL, CLightningSide::Create(m_pDevice, m_pContext)))) {
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CLightningSide>(g_iStaticLevel, CLightningSide::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CBlink>(NEXT_LEVEL, CBlink::Create(m_pDevice, m_pContext)))) {
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CBlink>(g_iStaticLevel, CBlink::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CTransformation>(NEXT_LEVEL, CTransformation::Create(m_pDevice, m_pContext)))) {
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CTransformation>(g_iStaticLevel, CTransformation::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CGoblin_Teleport>(NEXT_LEVEL, CGoblin_Teleport::Create(m_pDevice, m_pContext)))) {
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CGoblin_Teleport>(g_iStaticLevel, CGoblin_Teleport::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CScreen_Wind>(NEXT_LEVEL, CScreen_Wind::Create(m_pDevice, m_pContext)))) {
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CScreen_Wind>(g_iStaticLevel, CScreen_Wind::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -2414,6 +2419,31 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
/* For.Prototype_GameObject_SpellLearn_ChaserPointer*/
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CSpellLearn_ChaserPointer>(g_iStaticLevel, CSpellLearn_ChaserPointer::Create(m_pDevice, m_pContext))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
/* For.Prototype_GameObject_SpellLearn_SpellLearn_LookPointer*/
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CSpellLearn_LookPointer>(g_iStaticLevel, CSpellLearn_LookPointer::Create(m_pDevice, m_pContext))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
/* For.Prototype_GameObject_SpellLearn_SpellLearn_Booster*/
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CSpellLearn_Booster>(g_iStaticLevel, CSpellLearn_Booster::Create(m_pDevice, m_pContext))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
/* For.Prototype_GameObject_SpellLearn_SpellLearn_Slot*/
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CSpellLearn_Slot>(g_iStaticLevel, CSpellLearn_Slot::Create(m_pDevice, m_pContext))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
/* For.Prototype_GameObject_SpellLearn_SpellLearn_Overlay*/
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CSpellLearn_Overlay>(g_iStaticLevel, CSpellLearn_Overlay::Create(m_pDevice, m_pContext))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
/* For.Prototype_GameObject_Interaction_Key*/
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CInteraction_Key>(g_iStaticLevel, CInteraction_Key::Create(m_pDevice, m_pContext))))
|
||||
|
||||
@@ -42,27 +42,22 @@ HRESULT CMagic_Item::Initialize(void* pArg)
|
||||
m_fAngle = XMConvertToRadians(-135.f);
|
||||
m_fAlphaTime = 1.f;
|
||||
m_fSortZ = 0.2f;
|
||||
m_fCoolTime = 5.f;
|
||||
m_vUVScale.y = 1.f;
|
||||
m_iArratCount = 2;
|
||||
Compute_UV(0);
|
||||
Compute_UV(1);
|
||||
Compute_Image();
|
||||
m_fFontX = 1171.f;
|
||||
m_fFontY = 870.f;
|
||||
m_iPotionIndex = 0;
|
||||
m_iPerPotionIndex = -1;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CMagic_Item::Compute_UV(_uint iItemID)
|
||||
{
|
||||
_float2 fImage_Size = { 1024.f, 512.f };
|
||||
_float2 fImage_Size = { 320.f, 384.f };
|
||||
|
||||
_uint iCountX = 4;
|
||||
_uint iCountY = 2;
|
||||
_uint iCountX = 5;
|
||||
_uint iCountY = 6;
|
||||
|
||||
_float iImageX = 256.f;
|
||||
_float iImageY = 256.f;
|
||||
_float iImageX = 64.f;
|
||||
_float iImageY = 64.f;
|
||||
|
||||
_uint iframeX = iItemID % iCountX;
|
||||
_uint iframeY = iItemID / iCountX;
|
||||
@@ -81,10 +76,8 @@ void CMagic_Item::Compute_UV(_uint iItemID)
|
||||
|
||||
void CMagic_Item::Compute_Image()
|
||||
{
|
||||
m_vImagePos1 = _float2(72.f, 0.f);
|
||||
m_vImageSize1 = _float2(30.f, 30.f);
|
||||
m_vImagePos2 = _float2(65.f, 65.f);
|
||||
m_vImageSize2 = _float2(30.f, 30.f);
|
||||
m_vImageposi1 = _float4(30.f, 30.f, 120.f, 120.f);
|
||||
m_vImageposi2 = _float4(70.f, 0.f, 30.f, 30.f);
|
||||
}
|
||||
|
||||
void CMagic_Item::Priority_Update(_float fTimeDelta)
|
||||
@@ -128,27 +121,6 @@ void CMagic_Item::Update(_float fTimeDelta)
|
||||
}
|
||||
}
|
||||
|
||||
if (m_vUVScale.y >= 1.f)
|
||||
{
|
||||
if (m_pGameInstance->Key_Down(DIK_TAB))
|
||||
{
|
||||
m_vUVScale.y = 0.f;
|
||||
}
|
||||
}
|
||||
|
||||
if (m_iPerPotionIndex != m_iPotionIndex)
|
||||
{
|
||||
m_strPotion = to_wstring(m_iPotionIndex);
|
||||
m_fFontOffSet = (m_pGameInstance->FontSizeX(TEXT("UI_size15"), m_strPotion.c_str()) - 13.f) * 0.5f;
|
||||
m_iPerPotionIndex = m_iPotionIndex;
|
||||
}
|
||||
|
||||
|
||||
if (m_vUVScale.y <= 1)
|
||||
{
|
||||
m_vUVScale.y += fTimeDelta * (1.f / m_fCoolTime);
|
||||
}
|
||||
|
||||
m_fTime += fTimeDelta * m_fTimeMult;
|
||||
__super::Update(fTimeDelta);
|
||||
}
|
||||
@@ -172,7 +144,7 @@ HRESULT CMagic_Item::Render()
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::MAGIC_ITEM))))
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::BROOMSTICK))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -184,7 +156,6 @@ HRESULT CMagic_Item::Render()
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
m_pGameInstance->Render_Text(TEXT("UI_size15"), m_strPotion.c_str(), _float2((m_fFontX + m_fX) - m_fFontOffSet, m_fFontY - m_fY), XMVectorSet((208.f / 255.f) * m_fAlpha, (177.f / 255.f) * m_fAlpha, (52.f / 255.f) * m_fAlpha, m_fAlpha));
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
@@ -224,18 +195,6 @@ HRESULT CMagic_Item::Bind_ShaderResources()
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pDiffuse_TextureCom4->Bind_ShaderResource(m_pShaderCom, "g_Texture4", 0)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pDiffuse_TextureCom5->Bind_ShaderResource(m_pShaderCom, "g_Texture5", 0)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pDiffuse_TextureCom6->Bind_ShaderResource(m_pShaderCom, "g_MaskingTexture", 0)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
@@ -264,35 +223,11 @@ HRESULT CMagic_Item::Bind_ShaderResources()
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fCoolTime", &m_fCoolTime, sizeof(_float))))
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fImageSipos1", &m_vImageposi1, sizeof(_float4))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fDeltaV", &m_vUVScale.y, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fImageUV", &m_vUV, sizeof(_float4))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_iArrayCount", &m_iArratCount, sizeof(_uint))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fItemPosition1", &m_vImagePos1, sizeof(_float2))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fItemImageSizes1", &m_vImageSize1, sizeof(_float2))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fItemPosition2", &m_vImagePos2, sizeof(_float2))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fItemImageSizes2", &m_vImageSize2, sizeof(_float2))))
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fImageSipos2", &m_vImageposi2, sizeof(_float4))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -300,6 +235,7 @@ HRESULT CMagic_Item::Bind_ShaderResources()
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -313,27 +249,15 @@ HRESULT CMagic_Item::Ready_Components(void* pArg)
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_spellmeter_Generic"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom1), nullptr)))
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_ActionItemGoldleaf_4K"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom1), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_ActionItemGoldleaf_4K"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom2), nullptr)))
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_Broom9"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom2), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_Atlas_Item"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom3), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_Keyboard_Tab"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom4), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_AmountFrame"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom5), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_tillingSmokes"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom6), nullptr)))
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_Atlas_Keyboard"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom3), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -379,9 +303,6 @@ void CMagic_Item::Free()
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom1);
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom2);
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom3);
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom4);
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom5);
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom6);
|
||||
SAFE_RELEASE(m_pShaderCom);
|
||||
SAFE_RELEASE(m_pVIBufferCom);
|
||||
}
|
||||
|
||||
@@ -315,9 +315,9 @@ CGameObject* CMapElement_Chest::Clone(void* pArg, CGameObject* pOwner)
|
||||
|
||||
void CMapElement_Chest::Free()
|
||||
{
|
||||
if (nullptr != m_pRigidBody) {
|
||||
m_pGameInstance->Release_Actor(*m_pRigidBody->Get_Actor());
|
||||
}
|
||||
//if (nullptr != m_pRigidBody) {
|
||||
// m_pGameInstance->Release_Actor(*m_pRigidBody->Get_Actor(), m_pGameInstance->Get_CurrentLevelID());
|
||||
//}
|
||||
__super::Free();
|
||||
|
||||
if (m_bCloned)
|
||||
|
||||
@@ -482,9 +482,6 @@ CGameObject* CMapElement_Interactable::Clone(void* pArg, CGameObject* pOwner)
|
||||
|
||||
void CMapElement_Interactable::Free()
|
||||
{
|
||||
if (nullptr != m_pRigidBody) {
|
||||
m_pGameInstance->Release_Actor(*m_pRigidBody->Get_Actor());
|
||||
}
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pRigidBody);
|
||||
|
||||
@@ -149,12 +149,12 @@ void CMapElement_Static::ReadyForPhysX()
|
||||
return;
|
||||
}
|
||||
m_bConverted = true;
|
||||
|
||||
_uint iLevel = NEXT_LEVEL;
|
||||
for (_uint iIndexLOD = 0; iIndexLOD < m_iMaxLodLevel + 1; ++iIndexLOD)
|
||||
{
|
||||
CModel* pModel = m_pModelComs[iIndexLOD];
|
||||
|
||||
if (FAILED(pModel->Ready_PhysXMeshes(m_pTransformCom->Get_XMWorldMatrix()))) {
|
||||
if (FAILED(pModel->Ready_PhysXMeshes(XMMatrixIdentity(), iLevel))) {
|
||||
assert(false);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -88,7 +88,7 @@ void CMapObject_Collision::ReadyForPhysX()
|
||||
return;
|
||||
}
|
||||
m_bConverted = true;
|
||||
|
||||
_uint iLevel = NEXT_LEVEL;
|
||||
for (_uint iIndexLOD = 0; iIndexLOD < m_iMaxLodLevel + 1; ++iIndexLOD)
|
||||
{
|
||||
CModel* pModel = m_pModelComs[iIndexLOD];
|
||||
@@ -98,7 +98,7 @@ void CMapObject_Collision::ReadyForPhysX()
|
||||
_bool bSkip = { false };
|
||||
for (_int i = 0; i < 4; ++i) {
|
||||
if (false == XMVector4NearEqual(idenMatrix.r[i], parentMatrix.r[i], XMVectorReplicate(FLT_EPSILON5))) {
|
||||
if (FAILED(pModel->Ready_PhysXMeshes(XMLoadFloat4x4(&m_CombinedWorldMatrix)))) {
|
||||
if (FAILED(pModel->Ready_PhysXMeshes(XMLoadFloat4x4(&m_CombinedWorldMatrix), iLevel))) {
|
||||
assert(false);
|
||||
}
|
||||
bSkip = true;
|
||||
@@ -106,7 +106,7 @@ void CMapObject_Collision::ReadyForPhysX()
|
||||
}
|
||||
}
|
||||
if (false == bSkip) {
|
||||
if (FAILED(pModel->Ready_PhysXMeshes(m_pParentTransformCom->Get_XMWorldMatrix()))) {
|
||||
if (FAILED(pModel->Ready_PhysXMeshes(m_pParentTransformCom->Get_XMWorldMatrix(), iLevel))) {
|
||||
assert(false);
|
||||
}
|
||||
}
|
||||
@@ -226,6 +226,7 @@ void CMapObject_Collision::Free()
|
||||
for (_uint j = 0; j < m_RigidBodies[i].size(); ++j) {
|
||||
SAFE_RELEASE(m_RigidBodies[i][j]);
|
||||
}
|
||||
m_RigidBodies[i].clear();
|
||||
} m_RigidBodies.clear();
|
||||
|
||||
m_ModelPrototypeTags.clear();
|
||||
|
||||
@@ -156,11 +156,12 @@ void CMapObject_Render::ReadyForPhysX()
|
||||
}
|
||||
m_bConverted = true;
|
||||
|
||||
_uint iLevel = NEXT_LEVEL;
|
||||
for (_uint iIndexLOD = 0; iIndexLOD < m_iMaxLodLevel + 1; ++iIndexLOD)
|
||||
{
|
||||
CModel* pModel = m_pModelComs[iIndexLOD];
|
||||
|
||||
if (FAILED(pModel->Ready_PhysXMeshes(XMLoadFloat4x4(&m_CombinedWorldMatrix)))) {
|
||||
if (FAILED(pModel->Ready_PhysXMeshes(XMLoadFloat4x4(&m_CombinedWorldMatrix), iLevel))) {
|
||||
assert(false);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,238 @@
|
||||
#include "pch.h"
|
||||
#include "NPC_EleazarFig.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
#include "InfoInstance.h"
|
||||
#include "Player.h"
|
||||
|
||||
CNPC_EleazarFig::CNPC_EleazarFig(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CUnit(pDevice, pContext)
|
||||
{
|
||||
}
|
||||
|
||||
CNPC_EleazarFig::CNPC_EleazarFig(const CNPC_EleazarFig& Prototype)
|
||||
: CUnit(Prototype),
|
||||
m_pInfoInstance(CInfoInstance::GetInstance())
|
||||
{
|
||||
}
|
||||
|
||||
void CNPC_EleazarFig::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
m_pTransformCom->RewindMomentum();
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CNPC_EleazarFig::Update(_float fTimeDelta)
|
||||
{
|
||||
m_pFSM->Update_State(fTimeDelta);
|
||||
if (m_pModelCom->IsFinishedAnim()) {
|
||||
m_pModelCom->Set_AnimationIndex(m_pGameInstance->Random_Int(0, 19), false);
|
||||
}
|
||||
m_pModelCom->Play_Animation(fTimeDelta, m_pTransformCom);
|
||||
__super::Update(fTimeDelta);
|
||||
#ifdef _DEBUG
|
||||
Describe_Entity();
|
||||
#endif // _DEBUG
|
||||
|
||||
}
|
||||
|
||||
void CNPC_EleazarFig::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
m_pTransformCom->Set_State(STATE::POSITION, m_pTransformCom->Get_EstimatedPositionByMomentum());
|
||||
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
|
||||
|
||||
__super::Late_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
HRESULT CNPC_EleazarFig::Render()
|
||||
{
|
||||
if (FAILED(Bind_ShaderResources())) {
|
||||
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_pModelCom->Begin(i, m_pShaderCom))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pModelCom->Bind_OutPut_SRV_VS(26, 0);
|
||||
|
||||
if (FAILED(m_pModelCom->Render(i))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CNPC_EleazarFig::Render_Shadow(SHADOW eType)
|
||||
{
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_WorldMatrix", m_pTransformCom->Get_WorldMatrixPtr()))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Bind_Shadow_Resource(m_pShaderCom, "g_ViewMatrix", D3DTS::VIEW, eType))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Bind_Shadow_Resource(m_pShaderCom, "g_ProjMatrix", D3DTS::PROJ, eType))) {
|
||||
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->Begin(i, m_pShaderCom))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pModelCom->Bind_OutPut_SRV_VS(26, 0);
|
||||
m_pModelCom->Bind_OutPut_SRV_VS_Prev(27, 0);
|
||||
|
||||
if (FAILED(m_pModelCom->Render(i))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CNPC_EleazarFig::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;
|
||||
}
|
||||
|
||||
HRESULT CNPC_EleazarFig::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CNPC_EleazarFig::Initialize(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Initialize(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Ready_Components(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(40.f, 4.f, 68.9f, 1.f));
|
||||
m_pModelCom->Set_AnimationIndex(m_pGameInstance->Random_Int(0, 19), false);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CNPC_EleazarFig::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Ready_Components(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
/* Com_Shader */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_NPC_PBR_ANIM,
|
||||
reinterpret_cast<CComponent**>(&m_pShaderCom)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_GerboldOlivander_Model"),
|
||||
reinterpret_cast<CComponent**>(&m_pModelCom)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CNPC_EleazarFig* CNPC_EleazarFig::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CNPC_EleazarFig* pInstance = new CNPC_EleazarFig(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CNPC_EleazarFig");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
CGameObject* CNPC_EleazarFig::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CNPC_EleazarFig* pInstance = new CNPC_EleazarFig(*this);
|
||||
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CNPC_EleazarFig");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CNPC_EleazarFig::Free()
|
||||
{
|
||||
__super::Free();
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
|
||||
void CNPC_EleazarFig::Describe_Entity()
|
||||
{
|
||||
GUI::Begin("UNIT", 0, IMGUI_GLOBAL_BEGIN_FLAG);
|
||||
if (GUI::CollapsingHeader("Ollivander")) {
|
||||
m_pModelCom->Describe_Entity();
|
||||
if (ImGui::TreeNode("ANIM STATE")) {
|
||||
|
||||
for (auto& pState : m_States)
|
||||
{
|
||||
if (ImGui::Button(to_string(pState.first).c_str()))
|
||||
{
|
||||
m_pFSM->Change_State(pState.first);
|
||||
}
|
||||
}
|
||||
|
||||
GUI::Text(to_string(m_pModelCom->Get_CurrentTrackProgressRatio()).c_str());
|
||||
|
||||
ImGui::TreePop();
|
||||
}
|
||||
}
|
||||
GUI::End();
|
||||
}
|
||||
|
||||
#endif // _DEBUG
|
||||
@@ -4,6 +4,8 @@
|
||||
#include "GameInstance.h"
|
||||
#include "InfoInstance.h"
|
||||
#include "Player.h"
|
||||
#include "CallBack_NonPlayable_Behavior.h"
|
||||
#include "CallBack_NonPlayable_HitReport.h"
|
||||
|
||||
CNPC_Ollivander::CNPC_Ollivander(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CUnit(pDevice, pContext)
|
||||
@@ -25,23 +27,85 @@ void CNPC_Ollivander::Priority_Update(_float fTimeDelta)
|
||||
void CNPC_Ollivander::Update(_float fTimeDelta)
|
||||
{
|
||||
m_pFSM->Update_State(fTimeDelta);
|
||||
if (m_pModelCom->IsFinishedAnim()) {
|
||||
m_pModelCom->Set_AnimationIndex(m_pGameInstance->Random_Int(0, 19), false);
|
||||
}
|
||||
m_pModelCom->Play_Animation(fTimeDelta, m_pTransformCom);
|
||||
__super::Update(fTimeDelta);
|
||||
#ifdef _DEBUG
|
||||
Describe_Entity();
|
||||
#endif // _DEBUG
|
||||
|
||||
if (false == m_bEntered) {
|
||||
if (true == CastToPlayer()) {
|
||||
m_vEnteringTimer.x += fTimeDelta;
|
||||
if (m_vEnteringTimer.x > m_vEnteringTimer.y) {
|
||||
m_vEnteringTimer.x -= m_vEnteringTimer.y;
|
||||
m_bEntered = true;
|
||||
// Active();
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
GUI::Begin("UNIT");
|
||||
if (GUI::CollapsingHeader("Ollivander")) {
|
||||
GUI::Text("Timer :%.1f", m_vEnteringTimer.x);
|
||||
GUI::Text("Hello");
|
||||
}
|
||||
GUI::End();
|
||||
#endif // _DEBUG
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (false == CastToPlayer()) {
|
||||
m_vEnteringTimer.x += fTimeDelta;
|
||||
if (m_vEnteringTimer.x > m_vEnteringTimer.y) {
|
||||
m_vEnteringTimer.x -= m_vEnteringTimer.y;
|
||||
m_bEntered = false;
|
||||
// DeActive(), Ready To Enter;
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
GUI::Begin("UNIT");
|
||||
if (GUI::CollapsingHeader("Ollivander")) {
|
||||
GUI::Text("Timer :%.1f", m_vEnteringTimer.x);
|
||||
GUI::Text("CoolTime");
|
||||
}
|
||||
GUI::End();
|
||||
#endif // _DEBUG
|
||||
}
|
||||
else {
|
||||
#ifdef _DEBUG
|
||||
GUI::Begin("UNIT");
|
||||
if (GUI::CollapsingHeader("Ollivander")) {
|
||||
GUI::Text("Timer :%.1f", m_vEnteringTimer.x);
|
||||
GUI::Text("You must go Out");
|
||||
}
|
||||
GUI::End();
|
||||
#endif // _DEBUG
|
||||
}
|
||||
}
|
||||
|
||||
if (false == CastToPlayer() && false == m_bEntered) {
|
||||
#ifdef _DEBUG
|
||||
GUI::Begin("UNIT");
|
||||
if (GUI::CollapsingHeader("Ollivander")) {
|
||||
GUI::Text("Timer :%.1f", m_vEnteringTimer.x);
|
||||
GUI::Text("Waiting For ReEnter");
|
||||
}
|
||||
GUI::End();
|
||||
#endif // _DEBUG
|
||||
}
|
||||
|
||||
|
||||
{ // 세트
|
||||
m_pCallBack_HitReport->BeginFrame();
|
||||
m_pCharacter_Controller->Move(fTimeDelta);
|
||||
m_pCallBack_HitReport->Set_CurrentSlop();
|
||||
}
|
||||
}
|
||||
|
||||
void CNPC_Ollivander::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
m_pTransformCom->Set_State(STATE::POSITION, m_pTransformCom->Get_EstimatedPositionByMomentum());
|
||||
m_pTransformCom->Set_State(STATE::POSITION, m_pCharacter_Controller->Get_FootPosition());
|
||||
|
||||
//m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
|
||||
//m_pGameInstance->Add_RenderGroup(RENDER::SHADOW, this);
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
|
||||
|
||||
Set_Shadow(m_pGameInstance->IsIn_ShadowViewFrustum(m_pTransformCom->Get_State(STATE::POSITION), m_pTransformCom->Get_Radius()));
|
||||
|
||||
__super::Late_Update(fTimeDelta);
|
||||
}
|
||||
@@ -73,6 +137,7 @@ HRESULT CNPC_Ollivander::Render()
|
||||
}
|
||||
|
||||
m_pModelCom->Bind_OutPut_SRV_VS(26, 0);
|
||||
m_pModelCom->Bind_OutPut_SRV_VS_Prev(27, 0);
|
||||
|
||||
if (FAILED(m_pModelCom->Render(i))) {
|
||||
return E_FAIL;
|
||||
@@ -110,6 +175,7 @@ HRESULT CNPC_Ollivander::Render_Shadow(SHADOW eType)
|
||||
}
|
||||
|
||||
m_pModelCom->Bind_OutPut_SRV_VS(26, 0);
|
||||
m_pModelCom->Bind_OutPut_SRV_VS_Prev(27, 0);
|
||||
|
||||
if (FAILED(m_pModelCom->Render(i))) {
|
||||
return E_FAIL;
|
||||
@@ -145,6 +211,19 @@ HRESULT CNPC_Ollivander::Bind_ShaderResources()
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
_bool CNPC_Ollivander::CastToPlayer()
|
||||
{
|
||||
_vector vCurrentPos = m_pTransformCom->Get_State(STATE::POSITION);
|
||||
_vector vTargetPos = {};
|
||||
pair<CUnit*, CTransform*> pairAllyInfo = m_pInfoInstance->Get_NearestPlayerAlly(m_pTransformCom->Get_State(STATE::POSITION));
|
||||
vTargetPos = pairAllyInfo.second->Get_State(STATE::POSITION);
|
||||
_float fLength = XMVectorGetX(XMVector4Length(vTargetPos - vCurrentPos));
|
||||
if (fLength < m_fEncounterDistance) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
HRESULT CNPC_Ollivander::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
@@ -159,13 +238,22 @@ HRESULT CNPC_Ollivander::Initialize(void* pArg)
|
||||
return E_FAIL;
|
||||
}
|
||||
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(40.f, 4.f, 68.9f, 1.f));
|
||||
m_pModelCom->Set_AnimationIndex(m_pGameInstance->Random_Int(0, 19), false);
|
||||
m_pCharacter_Controller->Set_Position(XMVectorSet(40.f, 4.f, 68.9f, 1.f));
|
||||
m_pModelCom->Set_AnimationIndex(0, true);
|
||||
m_pCallBack_Behavior->Initialize(m_pCharacter_Controller);
|
||||
m_pCallBack_HitReport->Initialize(m_pCharacter_Controller);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CNPC_Ollivander::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Ready_Components(pArg))) {
|
||||
CTransform::TRANSFORM_DESC Desc = {};
|
||||
|
||||
Desc.fSpeedPerSec = 10.f;
|
||||
Desc.fRotationPerSec = XMConvertToRadians(180.0f);
|
||||
Desc.fRadius = 10.f;
|
||||
|
||||
if (FAILED(__super::Ready_Components(&Desc))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -179,6 +267,28 @@ HRESULT CNPC_Ollivander::Ready_Components(void* pArg)
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
{ // CCT
|
||||
CCharacter_Controller::Character_Controller_DESC Desc{};
|
||||
|
||||
Desc.iSubKind = ENUM_CLASS(PXOBJECT::OLLIVANDER);
|
||||
Desc.pTransform = m_pTransformCom;
|
||||
Desc.eBodyType = ACTOR::CAPSULE;
|
||||
Desc.fContactOffset = 0.0001f;
|
||||
Desc.fMaterial = { 1.2f, 1.0f, 0.0f };
|
||||
Desc.bAutoStepping = { false };
|
||||
Desc.fStepOffset = { 0.02f };
|
||||
Desc.fRadius = 0.5f;
|
||||
Desc.fHeight = 0.6f;
|
||||
Desc.pCallback_HitReport = m_pCallBack_HitReport = CCallBack_NonPlayable_HitReport::Create();
|
||||
Desc.pCallback_Behavior = m_pCallBack_Behavior = CCallBack_NonPlayable_Behavior::Create();
|
||||
Desc.eClimbingMode = PSX::PxCapsuleClimbingMode::eEASY;
|
||||
Desc.fWalkableSlope = 45.f;
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_CCT_CAPSULE"), (CComponent**)&m_pCharacter_Controller, &Desc))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
m_pCharacter_Controller->SetGravity(true);
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -209,30 +319,25 @@ CGameObject* CNPC_Ollivander::Clone(void* pArg, CGameObject* pOwner)
|
||||
void CNPC_Ollivander::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pCharacter_Controller);
|
||||
if (nullptr != m_pInfoInstance) {
|
||||
CInfoInstance* pInfo = m_pInfoInstance;
|
||||
m_pInfoInstance = nullptr;
|
||||
}
|
||||
if (nullptr != m_pCallBack_Behavior) {
|
||||
m_pCallBack_Behavior->Finalize();
|
||||
}
|
||||
if (nullptr != m_pCallBack_HitReport) {
|
||||
m_pCallBack_HitReport->Finalize();
|
||||
}
|
||||
Safe_Delete(m_pCallBack_Behavior);
|
||||
Safe_Delete(m_pCallBack_HitReport);
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
|
||||
void CNPC_Ollivander::Describe_Entity()
|
||||
{
|
||||
GUI::Begin("UNIT", 0, IMGUI_GLOBAL_BEGIN_FLAG);
|
||||
if (GUI::CollapsingHeader("Ollivander")) {
|
||||
m_pModelCom->Describe_Entity();
|
||||
if (ImGui::TreeNode("ANIM STATE")) {
|
||||
|
||||
for (auto& pState : m_States)
|
||||
{
|
||||
if (ImGui::Button(to_string(pState.first).c_str()))
|
||||
{
|
||||
m_pFSM->Change_State(pState.first);
|
||||
}
|
||||
}
|
||||
|
||||
GUI::Text(to_string(m_pModelCom->Get_CurrentTrackProgressRatio()).c_str());
|
||||
|
||||
ImGui::TreePop();
|
||||
}
|
||||
}
|
||||
GUI::End();
|
||||
}
|
||||
|
||||
#endif // _DEBUG
|
||||
|
||||
@@ -194,7 +194,7 @@ void CPhysXEffectHitBox::Free()
|
||||
PSX::PxExtendedVec3 pxControlllerPos = m_pCharacter_Controller->Get_Controller()->getPosition();
|
||||
PSX::PxTransform pxTransform((_float)pxControlllerPos.x, (_float)pxControlllerPos.y + 100.f, (_float)pxControlllerPos.z);
|
||||
m_pCharacter_Controller->Set_Position(XMLoadFloat3((_float3*)&pxTransform.p));
|
||||
m_pGameInstance->Detach_Actor(*m_pCharacter_Controller->Get_Actor());
|
||||
m_pGameInstance->Detach_Actor(*m_pCharacter_Controller->Get_Actor(), m_pGameInstance->Get_CurrentLevelID());
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -9,8 +9,8 @@
|
||||
#include "Wand.h"
|
||||
#include "Item_Potion.h"
|
||||
#include "Character_Controller.h"
|
||||
#include "CallBack_Playable_Behavior.h"
|
||||
#include "CamPosition_Shoulder.h"
|
||||
#include "CallBack_Playable_Behavior.h"
|
||||
#include "CallBack_Playable_HitReport.h"
|
||||
#include "Monster.h"
|
||||
#include "Broom.h"
|
||||
@@ -95,10 +95,14 @@ HRESULT CPlayer::Initialize(void* pArg)
|
||||
|
||||
m_pInfoInstance->Regist_PlayerAlly(this);
|
||||
m_pInfoInstance->Set_Damage(m_pStat->Get_Stat().fDamage);
|
||||
|
||||
m_pCharacter_Controller->Set_Position(XMVectorSet(-21.f, 0.f, -14.f, 1.f));
|
||||
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(-21.f, 0.f, -14.f, 1.f));
|
||||
|
||||
{
|
||||
PLAYERDESC* pDesc = static_cast<PLAYERDESC*>(pArg);
|
||||
_vector vPos = XMLoadFloat4(&pDesc->vPos);
|
||||
_vector vRotQ = XMLoadFloat4(&pDesc->vRotQ);
|
||||
m_pCharacter_Controller->Set_Position(vPos);
|
||||
m_pTransformCom->Set_State(STATE::POSITION, vPos);
|
||||
m_pTransformCom->Rotation(vRotQ);
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
m_BasicEffect = make_unique<BasicEffect>(m_pDevice);
|
||||
@@ -136,6 +140,8 @@ void CPlayer::Update(_float fTimeDelta)
|
||||
UpdateGrapInteractive(fTimeDelta);
|
||||
|
||||
m_pFSM->Update_State(fTimeDelta);
|
||||
|
||||
Play_SpellHitAnim();
|
||||
/* _float ratio = m_pModelCom->Get_CurrentTrackProgressRatio();
|
||||
|
||||
_float ease = 1.f;
|
||||
@@ -483,7 +489,7 @@ HRESULT CPlayer::Ready_Components()
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_BOX"), (CComponent**)&m_pRigidBody, &Desc))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor());
|
||||
m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL);
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
@@ -563,6 +569,11 @@ void CPlayer::ReLockOnTarget()
|
||||
m_LockOnInfo.pUnit = nullptr;
|
||||
}
|
||||
}
|
||||
if (nullptr != m_LockOnInfo.pInteractive) {
|
||||
if (true == m_LockOnInfo.pInteractive->isDead()) {
|
||||
m_LockOnInfo.pInteractive = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
//m_pLockOnMonster->Get_State
|
||||
}
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
#include "State_Blink.h"
|
||||
#include "State_Jump.h"
|
||||
#include "State_Land.h"
|
||||
#include "State_Fall.h"
|
||||
#include "State_Slide.h"
|
||||
#include "State_Move.h"
|
||||
#include "State_Combat.h"
|
||||
@@ -821,6 +822,9 @@ void CPlayer::Behavior_LandEnter()
|
||||
{
|
||||
pairAnimInfo = m_Animation[STATEANIM::LAND_TO_JOG];
|
||||
}
|
||||
else {
|
||||
pairAnimInfo = m_Animation[STATEANIM::LAND];
|
||||
}
|
||||
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
}
|
||||
@@ -854,9 +858,30 @@ void CPlayer::Behavior_LandExit()
|
||||
m_fGravityAmount = 0.f;
|
||||
}
|
||||
|
||||
void CPlayer::Behavior_FallEnter()
|
||||
{
|
||||
pair<_uint, _bool> pairAnimInfo;
|
||||
m_pFSM->Enable_State(FSMSTATE::FALL);
|
||||
pairAnimInfo = m_Animation[STATEANIM::FALL_LOOP];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
}
|
||||
|
||||
HRESULT CPlayer::Behavior_FallExitCheck(_float fTimeDelta)
|
||||
{
|
||||
|
||||
m_pFSM->Change_State(FSMSTATE::LAND);
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CPlayer::Behavior_FallExit()
|
||||
{
|
||||
m_pFSM->Disable_State(FSMSTATE::FALL);
|
||||
}
|
||||
|
||||
void CPlayer::Behavior_DodgeEnter()
|
||||
{
|
||||
// 혹시 @@ to Dodge 있으면 여기에
|
||||
m_pFSM->Enable_State(FSMSTATE::DODGE);
|
||||
pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::DODGE];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second,1.f,false,1.3f);
|
||||
@@ -1039,11 +1064,8 @@ void CPlayer::Behavior_CombatEnter()
|
||||
return;
|
||||
}
|
||||
else if (m_pGameInstance->Key_Down(DIK_Z)) {
|
||||
if (nullptr != m_pGrapInteractive) {
|
||||
m_pFSM->Enable_State(FSMSTATE::ANCIENT_THROW);
|
||||
pairAnimInfo = m_Animation[STATEANIM::ANCIENT_THROW];
|
||||
}
|
||||
else if (nullptr != m_LockOnInfo.pInteractive) {
|
||||
|
||||
if (nullptr != m_LockOnInfo.pInteractive) {
|
||||
m_pFSM->Enable_State(FSMSTATE::ANCIENT_THROW);
|
||||
pairAnimInfo = m_Animation[STATEANIM::ANCIENT_THROW];
|
||||
m_pGrapInteractive = m_LockOnInfo.pInteractive;
|
||||
@@ -1094,17 +1116,7 @@ HRESULT CPlayer::Behavior_CombatExitCheck()
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
}
|
||||
else if (m_pGameInstance->Key_Down(DIK_Z)) {
|
||||
|
||||
m_pFSM->Enable_State(FSMSTATE::ANCIENT_THROW);
|
||||
pairAnimInfo = m_Animation[STATEANIM::ANCIENT_THROW];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
|
||||
if (nullptr != m_pGrapInteractive) {
|
||||
m_pFSM->Enable_State(FSMSTATE::ANCIENT_THROW);
|
||||
pairAnimInfo = m_Animation[STATEANIM::ANCIENT_THROW];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
}
|
||||
else if (nullptr != m_LockOnInfo.pInteractive) {
|
||||
if (nullptr != m_LockOnInfo.pInteractive) {
|
||||
m_pFSM->Enable_State(FSMSTATE::ANCIENT_THROW);
|
||||
pairAnimInfo = m_Animation[STATEANIM::ANCIENT_THROW];
|
||||
m_pGrapInteractive = m_LockOnInfo.pInteractive;
|
||||
@@ -1112,6 +1124,9 @@ HRESULT CPlayer::Behavior_CombatExitCheck()
|
||||
m_pGrapInteractive->Set_KinematicFlag(true);
|
||||
m_vGrapInteratableLerp.x = 0.f;
|
||||
}
|
||||
else {
|
||||
return S_OK;
|
||||
}
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() { m_bLookAt = true; },
|
||||
0.1f);
|
||||
@@ -1171,6 +1186,7 @@ void CPlayer::Behavior_LightAttackEnter()
|
||||
pair<_uint, _bool> pairAnimInfo;
|
||||
m_pModelCom->Set_BlendDuration(0.1f);
|
||||
m_pFSM->Enable_State(FSMSTATE::LIGHT_ATTACK);
|
||||
_float fRatio = 0.07f;
|
||||
|
||||
if (m_LockOnInfo.pUnit)
|
||||
{
|
||||
@@ -1214,6 +1230,7 @@ void CPlayer::Behavior_LightAttackEnter()
|
||||
else
|
||||
{
|
||||
pairAnimInfo = m_Animation[STATEANIM::LIGHT_ATTACK_180_R];
|
||||
fRatio = 0.18f;
|
||||
}
|
||||
}
|
||||
else {
|
||||
@@ -1226,7 +1243,7 @@ void CPlayer::Behavior_LightAttackEnter()
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() {_uint iIndex = 0; m_pEffectPool->Use_Skill(SKILL_TYPE::JAP, Get_PartObject<CWand>(), &iIndex); },
|
||||
0.07f);
|
||||
fRatio);
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() { m_pEffectPool->Use_Skill(SKILL_TYPE::JAP_SIDE, Get_PartObject<CWand>()); },
|
||||
@@ -1335,6 +1352,8 @@ void CPlayer::Behavior_LightAttackExit()
|
||||
|
||||
void CPlayer::Behavior_SpellEnter()
|
||||
{
|
||||
if (m_bSpellHit)
|
||||
return;
|
||||
pair<_uint, _bool> pairAnimInfo;
|
||||
|
||||
m_pModelCom->Set_BlendDuration(0.1f);
|
||||
@@ -1382,13 +1401,15 @@ void CPlayer::Behavior_SpellEnter()
|
||||
pairAnimInfo = m_Animation[STATEANIM::SPELL_180_R];
|
||||
fRatio = 0.23f;
|
||||
}
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true);
|
||||
}
|
||||
else {
|
||||
pairAnimInfo = m_Animation[STATEANIM::SPELL];
|
||||
fRatio = 0.2f;
|
||||
pairAnimInfo = m_Animation[STATEANIM::SPELL];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true);
|
||||
}
|
||||
|
||||
if (m_eSpell != ENUM_CLASS(SKILL_TYPE::END) && m_eSpell != -1)
|
||||
if (m_eSpell != ENUM_CLASS(SKILL_TYPE::END) && m_eSpell != 0)
|
||||
{
|
||||
Add_SpellEvent(pairAnimInfo.first,fRatio);
|
||||
}
|
||||
@@ -1399,8 +1420,8 @@ void CPlayer::Behavior_SpellEnter()
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() { m_pEffectPool->Use_Skill(SKILL_TYPE::WAND_END, Get_PartObject<CWand>()); },
|
||||
0.2f);
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true);
|
||||
}
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true);
|
||||
}
|
||||
|
||||
HRESULT CPlayer::Behavior_SpellExitCheck()
|
||||
@@ -1421,20 +1442,14 @@ HRESULT CPlayer::Behavior_SpellExitCheck()
|
||||
|
||||
if (iCurr >= iStart && iCurr < iStart + 3)
|
||||
{
|
||||
if (fRatio >= 0.15f)
|
||||
if (fRatio >= 0.2f)
|
||||
{
|
||||
_uint iNext = iCurr + 1;
|
||||
pairAnimInfo = m_Animation[STATEANIM::SPELL];
|
||||
pairAnimInfo.first = iNext;
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() {m_bLookAt = true;
|
||||
},
|
||||
0.01f);
|
||||
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
|
||||
if (m_eSpell != ENUM_CLASS(SKILL_TYPE::END) && m_eSpell != -1)
|
||||
if (m_eSpell != ENUM_CLASS(SKILL_TYPE::END) && m_eSpell != 0)
|
||||
{
|
||||
_float fAttackRatio = 0.2f;
|
||||
if (iNext - iStart == 2) {
|
||||
@@ -1452,8 +1467,31 @@ HRESULT CPlayer::Behavior_SpellExitCheck()
|
||||
pairAnimInfo = m_Animation[STATEANIM::SPELL_FAIL];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second,1.f,true);
|
||||
}
|
||||
|
||||
if (iCurr != iStart + 2)
|
||||
{
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() {m_bLookAt = true;
|
||||
},
|
||||
0.01f);
|
||||
|
||||
}
|
||||
else {
|
||||
m_bLookAt = false;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
else if (SUCCEEDED(InputAction()) || SUCCEEDED(InputSpell()))
|
||||
{
|
||||
if (fRatio >= 0.3f)
|
||||
{
|
||||
m_pFSM->Change_State(FSMSTATE::COMBAT);
|
||||
return E_FAIL;
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
}
|
||||
else if (m_pGameInstance->Key_Down(DIK_Q)) {
|
||||
m_pFSM->Change_State(FSMSTATE::SHIELD);
|
||||
@@ -1467,41 +1505,20 @@ HRESULT CPlayer::Behavior_SpellExitCheck()
|
||||
m_pFSM->Change_State(FSMSTATE::COMBAT);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (m_bSpellHit)
|
||||
{
|
||||
if (m_eSpell != ENUM_CLASS(SKILL_TYPE::END))
|
||||
{
|
||||
m_bLookAt = true;
|
||||
switch (m_eSpell)
|
||||
{
|
||||
case ENUM_CLASS(SKILL_TYPE::ACCIO):
|
||||
pairAnimInfo = m_Animation[STATEANIM::ACCIO];
|
||||
break;
|
||||
case ENUM_CLASS(SKILL_TYPE::DESCENDO):
|
||||
pairAnimInfo = m_Animation[STATEANIM::DESCENDO];
|
||||
break;
|
||||
default:
|
||||
m_eSpell = ENUM_CLASS(SKILL_TYPE::END);
|
||||
return S_OK;
|
||||
break;
|
||||
}
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (SUCCEEDED(InputAction()) || SUCCEEDED(InputSpell()))
|
||||
else if (SUCCEEDED(InputAction()))
|
||||
{
|
||||
if (fRatio >= 0.3f)
|
||||
{
|
||||
m_pFSM->Change_State(FSMSTATE::COMBAT);
|
||||
return E_FAIL;
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
Play_SpellHitAnim();
|
||||
|
||||
if (SUCCEEDED(InputMove())) {
|
||||
if (fRatio >= 0.3f) {
|
||||
if (fRatio >= 0.4f) {
|
||||
m_pFSM->Change_State(FSMSTATE::MOVE);
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -1650,7 +1667,7 @@ HRESULT CPlayer::Behavior_ShieldExitCheck()
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() {m_bLookAt = true;
|
||||
},
|
||||
0.01f);
|
||||
0.8f);
|
||||
}
|
||||
else {
|
||||
pairAnimInfo = m_Animation[STATEANIM::PARRY_180];
|
||||
@@ -2373,7 +2390,7 @@ void CPlayer::Throwing_Interactive()
|
||||
{
|
||||
if (nullptr == m_pGrapInteractive) {
|
||||
return;
|
||||
} _vector vDir = {}; _float vDistance = 60.f;
|
||||
} _vector vDir = {}; _float vDistance = 100.f;
|
||||
CRigidBody_Dynamic* pBody = m_pGrapInteractive->Get_Component<CRigidBody_Dynamic>();
|
||||
if (nullptr != m_LockOnInfo.pUnit) {
|
||||
vDir = XMVector3Normalize(m_LockOnInfo.pUnit->Get_LockOnPos() - m_pGrapInteractive->Get_LockOnPos());
|
||||
@@ -2459,9 +2476,15 @@ void CPlayer::Add_SpellEvent(_uint AnimIndex,_float fRatio)
|
||||
break;
|
||||
case ENUM_CLASS(SKILL_TYPE::DIFFINDO):
|
||||
pairAnimInfo = m_Animation[STATEANIM::DIFFINDO];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true);
|
||||
break;
|
||||
case ENUM_CLASS(SKILL_TYPE::DISILLUSIONMENT):
|
||||
pairAnimInfo = m_Animation[STATEANIM::DISILLUSION_ENTER];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true);
|
||||
break;
|
||||
case ENUM_CLASS(SKILL_TYPE::AVADA_KEDAVRA):
|
||||
pairAnimInfo = m_Animation[STATEANIM::AVADA_KEDAVRA];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true);
|
||||
break;
|
||||
case ENUM_CLASS(SKILL_TYPE::LUMOS):
|
||||
if (m_pModelCom->Get_SecondAnimIndex() != m_Animation[STATEANIM::LUMOS].first)
|
||||
@@ -2511,10 +2534,46 @@ void CPlayer::Add_SpellEvent(_uint AnimIndex,_float fRatio)
|
||||
Add_Event(AnimIndex,
|
||||
[this]() { m_pEffectPool->Use_Skill(SKILL_TYPE::WAND_END, Get_PartObject<CWand>()); },
|
||||
0.2f);
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
void CPlayer::Play_SpellHitAnim()
|
||||
{
|
||||
if (m_bSpellHit)
|
||||
{
|
||||
pair<_uint, _bool> pairAnimInfo;
|
||||
if (m_eSpell != ENUM_CLASS(SKILL_TYPE::END))
|
||||
{
|
||||
m_bLookAt = true;
|
||||
switch (m_eSpell)
|
||||
{
|
||||
case ENUM_CLASS(SKILL_TYPE::ACCIO):
|
||||
pairAnimInfo = m_Animation[STATEANIM::ACCIO];
|
||||
break;
|
||||
case ENUM_CLASS(SKILL_TYPE::DESCENDO):
|
||||
pairAnimInfo = m_Animation[STATEANIM::DESCENDO];
|
||||
break;
|
||||
}
|
||||
m_pFSM->Change_State(FSMSTATE::SPELL);
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
m_bSpellHit = false;
|
||||
|
||||
if (m_pModelCom->IsFinishedAnim())
|
||||
{
|
||||
if (SUCCEEDED(InputMove()))
|
||||
{
|
||||
m_pFSM->Change_State(FSMSTATE::MOVE);
|
||||
}
|
||||
else
|
||||
{
|
||||
m_pFSM->Change_State(FSMSTATE::IDLE);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void CPlayer::Add_FSM()
|
||||
{
|
||||
@@ -2579,6 +2638,17 @@ void CPlayer::Add_FSM()
|
||||
Desc.funcExitEvent = [this]() { Behavior_LandExit(); };
|
||||
m_States.emplace(FSMSTATE::LAND, CState_Land::Create(&Desc));
|
||||
}
|
||||
|
||||
{
|
||||
CState_Fall::STATE_FALL_DESC Desc{};
|
||||
Desc.pOwner = this;
|
||||
Desc.funcEnterEvent = [this]() { Behavior_FallEnter(); };
|
||||
Desc.funcExitCheck = [this](_float fTimeDelta) { return Behavior_FallExitCheck(fTimeDelta); };
|
||||
Desc.funcExitEvent = [this]() { Behavior_FallExit(); };
|
||||
Desc.funcPriorityUpdate = nullptr;
|
||||
Desc.funcLateUpdate = nullptr;
|
||||
m_States.emplace(FSMSTATE::FALL, CState_Fall::Create(&Desc));
|
||||
}
|
||||
{
|
||||
CState_Dodge::STATE_DODGE_DESC Desc{};
|
||||
Desc.pOwner = this;
|
||||
@@ -2927,6 +2997,9 @@ void CPlayer::Set_Anim()
|
||||
m_Animation[STATEANIM::LAND] = { 259,false }; // 259
|
||||
m_Animation[STATEANIM::LAND_TO_JOG] = {247,false};
|
||||
m_Animation[STATEANIM::LAND_TO_SPRINT] = { 249 ,false};
|
||||
m_Animation[STATEANIM::LAND_HARD] = { 255 ,false };
|
||||
m_Animation[STATEANIM::LAND_MID] = { 257 ,false };
|
||||
m_Animation[STATEANIM::LAND_SOFT] = { 259 ,false };
|
||||
|
||||
m_Animation[STATEANIM::SLIDE_STOP_R] = { 568,false };
|
||||
m_Animation[STATEANIM::SLIDE_START_R] = { 566,false };
|
||||
@@ -2961,6 +3034,8 @@ void CPlayer::Set_Anim()
|
||||
m_Animation[STATEANIM::DISILLUSION_ENTER] = { 585,false };
|
||||
m_Animation[STATEANIM::DISILLUSION_EXIT] = { 586,false };
|
||||
m_Animation[STATEANIM::ANCIENT_THROW] = { 919,false };
|
||||
m_Animation[STATEANIM::AVADA_KEDAVRA] = { 863,false };
|
||||
|
||||
|
||||
m_Animation[STATEANIM::ANCIENT_LIGHTNING] = { 1001,false }; // 859
|
||||
|
||||
@@ -3050,6 +3125,8 @@ void CPlayer::Set_Anim()
|
||||
|
||||
//874
|
||||
//1277 1281
|
||||
|
||||
//255 하드 257 중간 259 소프트
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -141,6 +141,11 @@ void CRanrok::Update(_float fTimeDelta)
|
||||
m_fSkillCoolTime[i] = max(0.f, m_fSkillCoolTime[i] - fTimeDelta);
|
||||
|
||||
#pragma endregion
|
||||
|
||||
m_vEtherealTimer.x += fTimeDelta * 0.2f;
|
||||
if (m_vEtherealTimer.x > m_vEtherealTimer.y) {
|
||||
m_vEtherealTimer.x -= m_vEtherealTimer.y;
|
||||
}
|
||||
}
|
||||
|
||||
void CRanrok::Late_Update(_float fTimeDelta)
|
||||
@@ -161,89 +166,28 @@ void CRanrok::Late_Update(_float fTimeDelta)
|
||||
}
|
||||
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::BLEND, this);
|
||||
Set_Shadow(m_pGameInstance->IsIn_ShadowViewFrustum(m_pTransformCom->Get_State(STATE::POSITION), m_pTransformCom->Get_Radius()));
|
||||
}
|
||||
|
||||
HRESULT CRanrok::Render()
|
||||
{
|
||||
if (!m_bVisible)
|
||||
if (!m_bVisible){
|
||||
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);
|
||||
RENDER eCurrentPass = m_pGameInstance->Get_CurrentRenderPass();
|
||||
HRESULT hr = E_FAIL;
|
||||
if (RENDER::NONBLEND == eCurrentPass) {
|
||||
hr = Render_Nonblend();
|
||||
}
|
||||
if (FAILED(Render_DeadDisolve())) {
|
||||
return E_FAIL;
|
||||
else if (RENDER::BLEND == eCurrentPass) {
|
||||
//hr = Render_Blend();
|
||||
hr = S_OK;
|
||||
}
|
||||
|
||||
if (FAILED(Render_Disolve())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
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(iShaderPass))) {
|
||||
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();
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
if (true == m_pCharacter_Controller->IsActive()) {
|
||||
if (FAILED(m_pCharacter_Controller->Render())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
else if (true == m_pRigidBody->IsActive()) {
|
||||
if (FAILED(m_pRigidBody->Render())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
if (0.f < m_fDeadRatio) {
|
||||
_bool bDisolve = false;
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_bDisolve", &bDisolve, sizeof(_bool)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
_bool bDisolve = false;
|
||||
_float zero = 0.f;
|
||||
m_pShaderCom->Bind_RawValue("g_bDisolve", &bDisolve, sizeof(_bool));
|
||||
m_pShaderCom->Bind_RawValue("g_fDisolveRatio", &zero, sizeof(_float));
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
return hr;
|
||||
}
|
||||
|
||||
HRESULT CRanrok::Render_Shadow(SHADOW eType)
|
||||
@@ -273,7 +217,8 @@ HRESULT CRanrok::Render_Shadow(SHADOW eType)
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pModelCom->Bind_OutPut_SRV_VS(31, 0);
|
||||
m_pModelCom->Bind_OutPut_SRV_VS(26, 0);
|
||||
m_pModelCom->Bind_OutPut_SRV_VS_Prev(27, 0);
|
||||
|
||||
if (FAILED(m_pModelCom->Render(i))) {
|
||||
return E_FAIL;
|
||||
@@ -378,6 +323,12 @@ HRESULT CRanrok::Ready_Components()
|
||||
Desc.fRadius = 10.f;
|
||||
|
||||
__super::Ready_Components(&Desc);
|
||||
SAFE_RELEASE(m_pShaderCom);
|
||||
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_NPC_PBR_ANIM,
|
||||
reinterpret_cast<CComponent**>(&m_pShaderCom)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_strModelPrototypeTag = TEXT("Prototype_Component_Ranrok_Model");
|
||||
|
||||
@@ -416,7 +367,7 @@ HRESULT CRanrok::Ready_Components()
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_BOX"), (CComponent**)&m_pRigidBody, &Desc))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor());
|
||||
m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL);
|
||||
}
|
||||
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("STAT_RANROK"), (CComponent**)&m_pStat))) {
|
||||
@@ -457,6 +408,104 @@ HRESULT CRanrok::Bind_ShaderResources()
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
HRESULT CRanrok::Render_Nonblend()
|
||||
{
|
||||
if (FAILED(Render_DeadDisolve())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(Render_Disolve())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
for (_uint i = ENUM_CLASS(RANROK_MESH_ORDER::WINGS); i < ENUM_CLASS(RANROK_MESH_ORDER::END); ++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_pModelCom->Begin(i, m_pShaderCom, m_bDrawOutLine))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pModelCom->Bind_OutPut_SRV_VS(26, 0);
|
||||
m_pModelCom->Bind_OutPut_SRV_VS_Prev(27, 0);
|
||||
|
||||
if (FAILED(m_pModelCom->Render(i))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
|
||||
if (m_bDrawOutLine) {
|
||||
Render_OutLine();
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
if (true == m_pCharacter_Controller->IsActive()) {
|
||||
if (FAILED(m_pCharacter_Controller->Render())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
else if (true == m_pRigidBody->IsActive()) {
|
||||
if (FAILED(m_pRigidBody->Render())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
if (0.f < m_fDeadRatio) {
|
||||
_bool bDisolve = false;
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_bDisolve", &bDisolve, sizeof(_bool)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
_bool bDisolve = false;
|
||||
_float zero = 0.f;
|
||||
m_pShaderCom->Bind_RawValue("g_bDisolve", &bDisolve, sizeof(_bool));
|
||||
m_pShaderCom->Bind_RawValue("g_fDisolveRatio", &zero, sizeof(_float));
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
HRESULT CRanrok::Render_Blend()
|
||||
{
|
||||
_float fDiffuseUVRatio = (m_vEtherealTimer.x / m_vEtherealTimer.y);
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fEtherealRatio", &fDiffuseUVRatio, sizeof(_float)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
for (_uint i = ENUM_CLASS(RANROK_MESH_ORDER::ETHEREAL_HOT_SPINE); i < ENUM_CLASS(RANROK_MESH_ORDER::WINGS); ++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_pModelCom->Begin(i, m_pShaderCom, m_bDrawOutLine))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pModelCom->Bind_OutPut_SRV_VS(26, 0);
|
||||
m_pModelCom->Bind_OutPut_SRV_VS_Prev(27, 0);
|
||||
|
||||
if (FAILED(m_pModelCom->Render(i))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CRanrok::MoveTo(_float fTimeDelta)
|
||||
{
|
||||
@@ -470,15 +519,22 @@ void CRanrok::MoveTo(_float fTimeDelta)
|
||||
m_iCurrentFlow = 0;
|
||||
|
||||
_vector Target = m_Points[m_iCurrentFlow][m_iCurrentPoint];
|
||||
_vector NextTarget;
|
||||
if (m_iCurrentPoint + 1 <= m_Points[m_iCurrentFlow].size())
|
||||
{
|
||||
NextTarget = m_Points[m_iCurrentFlow][m_iCurrentPoint + 1];
|
||||
}
|
||||
_vector CurPos = m_pCharacter_Controller->Get_Position();
|
||||
_vector vLook = m_pTransformCom->Get_State(STATE::LOOK);
|
||||
_vector vLook = XMVector3Normalize(m_pTransformCom->Get_State(STATE::LOOK));
|
||||
|
||||
_float Speed = 50.f;
|
||||
|
||||
_vector toTarget = Target - CurPos;
|
||||
_float fDist = XMVectorGetX(XMVector3Length(toTarget));
|
||||
GUI::Text("Dist %.2f", fDist);
|
||||
|
||||
if (m_iCurrentPoint == m_Points[m_iCurrentFlow].size() - 1)
|
||||
{
|
||||
if (fDist < 10.f)
|
||||
if (fDist < 15.f)
|
||||
{
|
||||
if (m_iCurrentPoint == m_Points[m_iCurrentFlow].size() - 1)
|
||||
{
|
||||
@@ -490,7 +546,7 @@ void CRanrok::MoveTo(_float fTimeDelta)
|
||||
return;
|
||||
}
|
||||
}
|
||||
else if (fDist < 10.f)
|
||||
else if (fDist < 50.f)
|
||||
{
|
||||
if (m_iCurrentPoint == m_Points[m_iCurrentFlow].size() - 1)
|
||||
{
|
||||
@@ -502,38 +558,9 @@ void CRanrok::MoveTo(_float fTimeDelta)
|
||||
return;
|
||||
}
|
||||
|
||||
//_float4x4 CurMat, TargetMat, LerpMat;
|
||||
|
||||
//XMStoreFloat4x4(&CurMat,XMMatrixTranslationFromVector(CurPos));
|
||||
|
||||
//XMStoreFloat4x4(&TargetMat,XMMatrixTranslationFromVector(Target));
|
||||
|
||||
//_float fLerpRatio = fTimeDelta * 2.f;
|
||||
//fLerpRatio = min(fLerpRatio, 1.f);
|
||||
|
||||
//CMyTools::MatrixLerp(&CurMat, &TargetMat, LerpMat, fLerpRatio);
|
||||
|
||||
//_vector vNextPos = XMVectorSet(LerpMat._41, LerpMat._42, LerpMat._43, 1.f);
|
||||
|
||||
|
||||
//m_pTransformCom->Set_WorldMatrix(LerpMat);
|
||||
|
||||
//m_pCharacter_Controller->Set_Position(vNextPos);
|
||||
|
||||
static _vector vMoveDir = m_pTransformCom->Get_State(STATE::LOOK);
|
||||
|
||||
_vector vDir = XMVector3Normalize(Target - CurPos);
|
||||
|
||||
vMoveDir = XMVectorLerp(vMoveDir, vDir, fTimeDelta * 2.f);
|
||||
vMoveDir = XMVector3Normalize(vMoveDir);
|
||||
|
||||
m_pTransformCom->LookAt_Horizontal_Lerp(CurPos + vMoveDir, fTimeDelta, 1.f);
|
||||
|
||||
_float Speed = 35.f;
|
||||
m_pCharacter_Controller->Set_Position(
|
||||
CurPos + vMoveDir * Speed * fTimeDelta
|
||||
);
|
||||
m_pTransformCom->LookAt_Lerp(Target, fTimeDelta, 1.f);
|
||||
|
||||
m_pCharacter_Controller->Set_Position(CurPos + vLook * Speed * fTimeDelta);
|
||||
}
|
||||
|
||||
void CRanrok::AroundPoint(_float fTimeDelta)
|
||||
@@ -673,8 +700,6 @@ void CRanrok::Describe_Entity()
|
||||
GUI::Text("Degree %.2f", m_fDegree);
|
||||
GUI::Text("CurrFlow %d", m_iCurrentFlow);
|
||||
|
||||
|
||||
|
||||
_float3 Pos;
|
||||
XMStoreFloat3(&Pos, Get_WorldPostion());
|
||||
|
||||
|
||||
@@ -616,13 +616,14 @@ void CRanrok::Behavior_TuckedEnter()
|
||||
pair<_uint, _bool> pairAnimInfo = {};
|
||||
m_pFSM->Enable_State(FSMSTATE::TUCKED);
|
||||
|
||||
if (m_iCurrentFlow == 0)
|
||||
{
|
||||
pairAnimInfo = m_Animation[STATEANIM::FLY];
|
||||
}
|
||||
else {
|
||||
pairAnimInfo = m_Animation[STATEANIM::TUCKED];
|
||||
}
|
||||
//if (m_iCurrentFlow == 0)
|
||||
//{
|
||||
// pairAnimInfo = m_Animation[STATEANIM::FLY];
|
||||
//}
|
||||
//else {
|
||||
// pairAnimInfo = m_Animation[STATEANIM::TUCKED];
|
||||
//}
|
||||
pairAnimInfo = m_Animation[STATEANIM::FLY];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true);
|
||||
}
|
||||
|
||||
|
||||
@@ -17,10 +17,12 @@ HRESULT CSkill_Data::Initialize(ID3D11Device* pDevice, ID3D11DeviceContext* pCon
|
||||
m_bNoCool = false;
|
||||
m_pInfoInstance->Add_Event(TEXT("NoCooL"), [this](void* p) {this->NoCool(*reinterpret_cast<_bool*>(p)); });
|
||||
Spell_UnLock(2);
|
||||
Spell_UnLock(3);
|
||||
Spell_UnLock(4);
|
||||
Spell_UnLock(6);
|
||||
Spell_UnLock(11);
|
||||
Spell_UnLock(14);
|
||||
Spell_UnLock(20);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
#include "pch.h"
|
||||
#include "SpellLearn.h"
|
||||
#include "GameInstance.h"
|
||||
#include "SpellLearn_MovePointer.h"
|
||||
#include "SpellLearn_ChaserPointer.h"
|
||||
#include "InfoInstance.h"
|
||||
|
||||
CSpellLearn::CSpellLearn(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
@@ -39,8 +41,12 @@ HRESULT CSpellLearn::Initialize(void* pArg)
|
||||
}
|
||||
|
||||
m_fTimeMult = 3.f;
|
||||
m_fAlpha = 1.f;
|
||||
m_fAlpha = 0.f;
|
||||
m_fAlphaTime = 5.f;
|
||||
m_iTrailIndex = 0;
|
||||
m_fSortZ = 0.02f;
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("LearnClear"), [this](void* p) {this->Clear(); });
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("OverrlayClear"), [this](void* p) {this->Set_FadeOut(); });
|
||||
Change_Image(0);
|
||||
Visible(false);
|
||||
return S_OK;
|
||||
@@ -87,7 +93,44 @@ void CSpellLearn::Update(_float fTimeDelta)
|
||||
}
|
||||
}
|
||||
|
||||
m_fTime += fTimeDelta * m_fTimeMult;
|
||||
if (m_bReset == true)
|
||||
{
|
||||
m_Trail.clear();
|
||||
m_ChaseTrail.clear();
|
||||
m_bReset = false;
|
||||
}
|
||||
|
||||
if (m_bHover == false)
|
||||
{
|
||||
fill(m_Trail.begin(), m_Trail.end(), _float2(-9999.f, -9999.f));
|
||||
fill(m_ChaseTrail.begin(), m_ChaseTrail.end(), _float2(-9999.f, -9999.f));
|
||||
m_bReset = true;
|
||||
}
|
||||
|
||||
if (m_pPointer != nullptr)
|
||||
{
|
||||
if (m_pPointer->Get_MoveStart() == true)
|
||||
{
|
||||
m_bHover = true;
|
||||
m_vPointerPosition = m_pPointer->Get_Position();
|
||||
m_vPointerScale = m_pPointer->Get_Current_Size();
|
||||
|
||||
m_vChasePosition = m_pChasePointer->Get_Position();
|
||||
m_vChaseScale = m_pChasePointer->Get_Current_Size();
|
||||
|
||||
m_fTime += fTimeDelta * m_fTimeMult;
|
||||
if (m_fTime >= 0.3f)
|
||||
{
|
||||
m_fTime = 0.f;
|
||||
m_Trail.push_back(m_vPointerPosition);
|
||||
m_iTrailIndex++;
|
||||
m_ChaseTrail.push_back(m_vChasePosition);
|
||||
m_iChaseiTrailIndex++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
}
|
||||
|
||||
@@ -108,7 +151,7 @@ HRESULT CSpellLearn::Render()
|
||||
if (FAILED(Bind_ShaderResources())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::COLOR)))) {
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::SPELLLEARNCOLOR)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pVIBufferCom->Bind_Resources())) {
|
||||
@@ -168,6 +211,34 @@ HRESULT CSpellLearn::Bind_ShaderResources()
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fItemImageSizes1", &m_vPointerScale, sizeof(_float2))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fCurrent_Size", &m_vScale, sizeof(_float2))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fPosition", &m_fCurrent_Position, sizeof(_float2))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_Trail", m_Trail.data(), sizeof(_float2) * _uint(m_Trail.size()))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_Count", &m_iTrailIndex, sizeof(_int))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_ChaseTrail", m_ChaseTrail.data(), sizeof(_float2) * _uint(m_Trail.size()))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_ChaseCount", &m_iChaseiTrailIndex, sizeof(_int))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -195,9 +266,14 @@ HRESULT CSpellLearn::Ready_Components(void* pArg)
|
||||
|
||||
HRESULT CSpellLearn::Change_Image(_int SpellID)
|
||||
{
|
||||
m_bHover = false;
|
||||
m_ChaseTrail.push_back(_float2(-9999.f, -9999.f));
|
||||
m_Trail.push_back(_float2(-9999.f, -9999.f));
|
||||
m_iTrailIndex = 0;
|
||||
m_iChaseiTrailIndex = 0;
|
||||
_wstring pName = TEXT("Prototype_Texture_");
|
||||
_wstring pImageName = pName + m_pInfoInstance->Get_SpellLearn(SpellID).pImageName;
|
||||
|
||||
m_MoveLine = m_pInfoInstance->Get_SpellLearn(SpellID).Lines;
|
||||
if (m_pDiffuse_TextureCom)
|
||||
{
|
||||
Remove_Component<CTexture>();
|
||||
@@ -206,9 +282,21 @@ HRESULT CSpellLearn::Change_Image(_int SpellID)
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, pImageName, reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom))))
|
||||
return E_FAIL;
|
||||
|
||||
Set_FadeIn();
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CSpellLearn::Set_Pointer(CSpellLearn_MovePointer* Pointer, CSpellLearn_ChaserPointer* Chase)
|
||||
{
|
||||
m_pPointer = Pointer;
|
||||
m_pChasePointer = Chase;
|
||||
}
|
||||
|
||||
void CSpellLearn::Clear()
|
||||
{
|
||||
fill(m_ChaseTrail.begin(), m_ChaseTrail.end(), _float2(-9999.f, -9999.f));
|
||||
}
|
||||
|
||||
CSpellLearn* CSpellLearn::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CSpellLearn* pInstance = new CSpellLearn(pDevice, pContext);
|
||||
|
||||
@@ -0,0 +1,321 @@
|
||||
#include "pch.h"
|
||||
#include "SpellLearn_Booster.h"
|
||||
#include "GameInstance.h"
|
||||
#include "InfoInstance.h"
|
||||
|
||||
CSpellLearn_Booster::CSpellLearn_Booster(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
:CElementObject(pDevice, pContext)
|
||||
{
|
||||
}
|
||||
|
||||
CSpellLearn_Booster::CSpellLearn_Booster(const CSpellLearn_Booster& rhs)
|
||||
:CElementObject(rhs),
|
||||
m_pInfoInstance(CInfoInstance::GetInstance())
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CSpellLearn_Booster::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CSpellLearn_Booster::Initialize(void* pArg)
|
||||
{
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = 476.f;
|
||||
Desc.fY = -253.f;
|
||||
Desc.fSizeX = 64.f;
|
||||
Desc.fSizeY = 64.f;
|
||||
m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
|
||||
|
||||
if (FAILED(__super::Initialize(&Desc)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_fTimeMult = 3.f;
|
||||
m_fAlpha = 1.f;
|
||||
m_fAlphaTime = 5.f;
|
||||
m_fAngle = XMConvertToRadians(0);
|
||||
m_bHover = true;
|
||||
m_fImagePosi = _float4(16.f, 16.f, 32.f, 32.f);
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("BoosterOn"), [this](void* p) {this->BoosterOn(p); });
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("BoosterOff"), [this](void* p) {this->BoosterOff(p); });
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("LearnClear"), [this](void* p) {this->Clear(); });
|
||||
Visible(true);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CSpellLearn_Booster::BoosterOn(void* pArg)
|
||||
{
|
||||
Booster* State = static_cast<Booster*>(pArg);
|
||||
if (State->iBoosterIndex != m_iIndex)
|
||||
return;
|
||||
|
||||
m_bBoosterOn = true;
|
||||
m_bBoosterOff = false;
|
||||
}
|
||||
|
||||
void CSpellLearn_Booster::BoosterOff(void* pArg)
|
||||
{
|
||||
Booster* State = static_cast<Booster*>(pArg);
|
||||
|
||||
if (m_bBoosterOn == true)
|
||||
return;
|
||||
|
||||
if (State->iBoosterIndex != m_iIndex)
|
||||
return;
|
||||
|
||||
m_bBoosterOff = true;
|
||||
static_cast<CUIObject*>(m_pOwner)->Function_Callback(TEXT("ChaseBooster"));
|
||||
}
|
||||
|
||||
void CSpellLearn_Booster::Set_Index(_int iIndex)
|
||||
{
|
||||
m_iIndex = iIndex;
|
||||
}
|
||||
|
||||
void CSpellLearn_Booster::Reset()
|
||||
{
|
||||
m_bBoosterOn = false;
|
||||
m_bBoosterOff = false;
|
||||
Set_FadeIn();
|
||||
}
|
||||
|
||||
void CSpellLearn_Booster::Clear()
|
||||
{
|
||||
Set_FadeOut();
|
||||
}
|
||||
|
||||
void CSpellLearn_Booster::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CSpellLearn_Booster::Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (m_bFadeIn == true)
|
||||
{
|
||||
if (m_fAlpha <= 1.f)
|
||||
{
|
||||
m_fAlpha += fTimeDelta * m_fAlphaTime;
|
||||
}
|
||||
|
||||
if (m_fAlpha >= 1.f)
|
||||
{
|
||||
m_bFadeIn = false;
|
||||
m_fAlpha = 1.f;
|
||||
}
|
||||
}
|
||||
|
||||
if (m_bFadeOut == true)
|
||||
{
|
||||
if (m_fAlpha >= 0.f)
|
||||
m_fAlpha -= fTimeDelta * m_fAlphaTime;;
|
||||
|
||||
if (m_fAlpha <= 0.f)
|
||||
{
|
||||
m_bFadeOut = false;
|
||||
m_fAlpha = 0.f;
|
||||
}
|
||||
}
|
||||
|
||||
m_fTime += fTimeDelta * m_fTimeMult;
|
||||
__super::Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CSpellLearn_Booster::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (m_bVisible) {
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
|
||||
__super::Late_Update(fTimeDelta);
|
||||
}
|
||||
}
|
||||
|
||||
HRESULT CSpellLearn_Booster::Render()
|
||||
{
|
||||
if (FAILED(Bind_ShaderResources())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::SPELLLEARNBOOSTER)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pVIBufferCom->Bind_Resources())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pVIBufferCom->Render())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
_vector CSpellLearn_Booster::Get_WorldPostion()
|
||||
{
|
||||
return m_pTransformCom->Get_State(STATE::POSITION);
|
||||
}
|
||||
|
||||
HRESULT CSpellLearn_Booster::Bind_ShaderResources()
|
||||
{
|
||||
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pDiffuse_TextureCom1->Bind_ShaderResource(m_pShaderCom, "g_Texture1", 0)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pDiffuse_TextureCom2->Bind_ShaderResource(m_pShaderCom, "g_Texture2", 0)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pDiffuse_TextureCom3->Bind_ShaderResource(m_pShaderCom, "g_Texture3", 0)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fTime", &m_fTime, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fCurrent_Size", &m_vScale, sizeof(_float2))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fImageSipos1", &m_fImagePosi, sizeof(_float4))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_iHover", &m_bHover, sizeof(_bool))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_iBoosterOn", &m_bBoosterOn, sizeof(_bool))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_iBoosterOff", &m_bBoosterOff, sizeof(_bool))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CSpellLearn_Booster::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(Add_Component<CVIBuffer_Rect>(g_iStaticLevel, &m_pVIBufferCom)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_SU_ButtonCalloutRing"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_Mouse_LeftClick"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom1), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_SpellMinigame_SpeedBurstFail"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom2), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_VFX_T_Speck_HighCoverage_D"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom3), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CSpellLearn_Booster* CSpellLearn_Booster::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CSpellLearn_Booster* pInstance = new CSpellLearn_Booster(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CSpellLearn_Booster");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
CGameObject* CSpellLearn_Booster::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CSpellLearn_Booster* pInstance = new CSpellLearn_Booster(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CSpellLearn_Booster");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CSpellLearn_Booster::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom);
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom1);
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom2);
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom3);
|
||||
SAFE_RELEASE(m_pShaderCom);
|
||||
SAFE_RELEASE(m_pVIBufferCom);
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
void CSpellLearn_Booster::Describe_Entity()
|
||||
{
|
||||
}
|
||||
#endif // _DEBUG
|
||||
@@ -0,0 +1,294 @@
|
||||
#include "pch.h"
|
||||
#include "SpellLearn_ChaserPointer.h"
|
||||
#include "GameInstance.h"
|
||||
#include "SpellLearn_MovePointer.h"
|
||||
#include "InfoInstance.h"
|
||||
|
||||
CSpellLearn_ChaserPointer::CSpellLearn_ChaserPointer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
:CElementObject(pDevice, pContext)
|
||||
{
|
||||
}
|
||||
|
||||
CSpellLearn_ChaserPointer::CSpellLearn_ChaserPointer(const CSpellLearn_ChaserPointer& rhs)
|
||||
:CElementObject(rhs),
|
||||
m_pInfoInstance(CInfoInstance::GetInstance())
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CSpellLearn_ChaserPointer::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CSpellLearn_ChaserPointer::Initialize(void* pArg)
|
||||
{
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = 476.f;
|
||||
Desc.fY = -253.f;
|
||||
Desc.fSizeX = 32.f;
|
||||
Desc.fSizeY = 32.f;
|
||||
m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
|
||||
|
||||
if (FAILED(__super::Initialize(&Desc)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_fTimeMult = 3.f;
|
||||
m_fAlpha = 0.f;
|
||||
m_fAlphaTime = 5.f;
|
||||
m_fMoveSpeed = 165.f;
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("ChaseBooster"), [this](void* p) {this->SpeedUp(); });
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("LearnClear"), [this](void* p) {this->Clear(); });
|
||||
Set_SpellLearn(0);
|
||||
Visible(false);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CSpellLearn_ChaserPointer::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CSpellLearn_ChaserPointer::Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (m_bFadeIn == true)
|
||||
{
|
||||
if (m_fAlpha <= 1.f)
|
||||
{
|
||||
m_fAlpha += fTimeDelta * m_fAlphaTime;
|
||||
}
|
||||
|
||||
if (m_fAlpha >= 1.f)
|
||||
{
|
||||
m_bFadeIn = false;
|
||||
m_fAlpha = 1.f;
|
||||
}
|
||||
}
|
||||
|
||||
if (m_bFadeOut == true)
|
||||
{
|
||||
if (m_fAlpha >= 0.f)
|
||||
m_fAlpha -= fTimeDelta * m_fAlphaTime;;
|
||||
|
||||
if (m_fAlpha <= 0.f)
|
||||
{
|
||||
m_bFadeOut = false;
|
||||
m_fAlpha = 0.f;
|
||||
}
|
||||
}
|
||||
|
||||
if (m_bMoveStart == true)
|
||||
{
|
||||
Line(fTimeDelta);
|
||||
}
|
||||
|
||||
if (m_fMoveSpeed >= 165.f)
|
||||
{
|
||||
m_fMoveSpeed -= fTimeDelta;
|
||||
}
|
||||
|
||||
m_fTime += fTimeDelta * m_fTimeMult;
|
||||
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CSpellLearn_ChaserPointer::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (m_bVisible) {
|
||||
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
|
||||
__super::Late_Update(fTimeDelta);
|
||||
}
|
||||
}
|
||||
|
||||
HRESULT CSpellLearn_ChaserPointer::Render()
|
||||
{
|
||||
if (FAILED(Bind_ShaderResources())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::DEFAULT)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pVIBufferCom->Bind_Resources())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pVIBufferCom->Render())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
_vector CSpellLearn_ChaserPointer::Get_WorldPostion()
|
||||
{
|
||||
return m_pTransformCom->Get_State(STATE::POSITION);
|
||||
}
|
||||
|
||||
void CSpellLearn_ChaserPointer::Set_SpellLearn(_int Index)
|
||||
{
|
||||
m_fAlpha = 0.f;
|
||||
m_bHover = false;
|
||||
m_bMoveStart = false;
|
||||
m_fTime = 0.f;
|
||||
m_iLineIndex = _int(m_pInfoInstance->Get_SpellLearn(Index).Lines.size());
|
||||
m_MoveLine = m_pInfoInstance->Get_SpellLearn(Index).Lines;
|
||||
m_iCurrentLine = 0;
|
||||
m_fX = m_pInfoInstance->Get_SpellLearn(Index).fStartPosition.x;
|
||||
m_fY = m_pInfoInstance->Get_SpellLearn(Index).fStartPosition.y;
|
||||
m_fMoveSpeed = 165.f;
|
||||
}
|
||||
|
||||
void CSpellLearn_ChaserPointer::Set_Move()
|
||||
{
|
||||
m_bHover = true;
|
||||
m_bMoveStart = true;
|
||||
}
|
||||
|
||||
void CSpellLearn_ChaserPointer::Line(_float fTime)
|
||||
{
|
||||
m_vLerp_Position = m_MoveLine[m_iCurrentLine];
|
||||
|
||||
if (Start_Lerp(fTime) == true)
|
||||
{
|
||||
if (m_iCurrentLine < m_iLineIndex - 1)
|
||||
{
|
||||
++m_iCurrentLine;
|
||||
}
|
||||
else
|
||||
{
|
||||
m_bMoveStart = false;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void CSpellLearn_ChaserPointer::SpeedUp()
|
||||
{
|
||||
m_fMoveSpeed = 190.f;
|
||||
}
|
||||
|
||||
void CSpellLearn_ChaserPointer::Clear()
|
||||
{
|
||||
m_fMoveSpeed = 0.f;
|
||||
Set_FadeOut();
|
||||
}
|
||||
|
||||
HRESULT CSpellLearn_ChaserPointer::Bind_ShaderResources()
|
||||
{
|
||||
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fTime", &m_fTime, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CSpellLearn_ChaserPointer::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(Add_Component<CVIBuffer_Rect>(g_iStaticLevel, &m_pVIBufferCom)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_SpellMinigame_SpeedBurstDropBack"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CSpellLearn_ChaserPointer* CSpellLearn_ChaserPointer::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CSpellLearn_ChaserPointer* pInstance = new CSpellLearn_ChaserPointer(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CSpellLearn_ChaserPointer");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
CGameObject* CSpellLearn_ChaserPointer::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CSpellLearn_ChaserPointer* pInstance = new CSpellLearn_ChaserPointer(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CSpellLearn_ChaserPointer");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CSpellLearn_ChaserPointer::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom);
|
||||
SAFE_RELEASE(m_pShaderCom);
|
||||
SAFE_RELEASE(m_pVIBufferCom);
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
void CSpellLearn_ChaserPointer::Describe_Entity()
|
||||
{
|
||||
}
|
||||
#endif // _DEBUG
|
||||
@@ -50,12 +50,34 @@ HRESULT CSpellLearn_Data::Load_SpellInfo(const _char* pFilePath)
|
||||
// 속성 읽기
|
||||
Info.pSpellName = CMyTools::ToWstring(pName->Attribute("SpellName"));
|
||||
Info.pImageName = CMyTools::ToWstring(pName->Attribute("ImageName"));
|
||||
pName->QueryIntAttribute("SpellID", &Info.iSpellID);
|
||||
pName->QueryIntAttribute("SpellType", &Info.iSpellType);
|
||||
pName->QueryFloatAttribute("Size", &Info.fSpellSize);
|
||||
|
||||
_float fX{}, fY{};
|
||||
pName->QueryFloatAttribute("x", &fX);
|
||||
pName->QueryFloatAttribute("y", &fY);
|
||||
Info.fStartPosition = _float2(fX, fY);
|
||||
_float endx{}, endy{};
|
||||
pName->QueryFloatAttribute("endx", &endx);
|
||||
pName->QueryFloatAttribute("endy", &endy);
|
||||
Info.fEndPosition = _float2(endx, endy);
|
||||
|
||||
tinyxml2::XMLElement* pBooster = pName->FirstChildElement("Booster");
|
||||
while (pBooster)
|
||||
{
|
||||
tinyxml2::XMLElement* pPos = pBooster->FirstChildElement("Pos");
|
||||
if (pPos)
|
||||
{
|
||||
_float px{}, py{};
|
||||
pPos->QueryFloatAttribute("x", &px);
|
||||
pPos->QueryFloatAttribute("y", &py);
|
||||
Info.Booster.push_back(XMVectorSet(px, py, 0.f, 1.f));
|
||||
}
|
||||
|
||||
// 다음 Position으로 이동
|
||||
pBooster = pBooster->NextSiblingElement("Booster");
|
||||
}
|
||||
|
||||
// Position 요소 반복
|
||||
tinyxml2::XMLElement* pPosition = pName->FirstChildElement("Position");
|
||||
|
||||
@@ -0,0 +1,255 @@
|
||||
#include "pch.h"
|
||||
#include "SpellLearn_LookPointer.h"
|
||||
#include "GameInstance.h"
|
||||
|
||||
CSpellLearn_LookPointer::CSpellLearn_LookPointer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
:CElementObject(pDevice, pContext)
|
||||
{
|
||||
}
|
||||
|
||||
CSpellLearn_LookPointer::CSpellLearn_LookPointer(const CSpellLearn_LookPointer& rhs)
|
||||
:CElementObject(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CSpellLearn_LookPointer::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CSpellLearn_LookPointer::Initialize(void* pArg)
|
||||
{
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = 100.f;
|
||||
Desc.fY = 100.f;
|
||||
Desc.fSizeX = 80.f;
|
||||
Desc.fSizeY = 80.f;
|
||||
m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
|
||||
|
||||
if (FAILED(__super::Initialize(&Desc)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_fTimeMult = 3.f;
|
||||
m_fAlpha = 1.f;
|
||||
m_fAlphaTime = 5.f;
|
||||
m_fMoveSpeed = 130.f;
|
||||
Set_SpellLearn(0);
|
||||
m_fAngle = XMConvertToRadians(0);
|
||||
Visible(true);
|
||||
m_localX = 0.f;
|
||||
m_localY = 20.f;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CSpellLearn_LookPointer::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CSpellLearn_LookPointer::Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (m_bFadeIn == true)
|
||||
{
|
||||
if (m_fAlpha <= 1.f)
|
||||
{
|
||||
m_fAlpha += fTimeDelta * m_fAlphaTime;
|
||||
}
|
||||
|
||||
if (m_fAlpha >= 1.f)
|
||||
{
|
||||
m_bFadeIn = false;
|
||||
m_fAlpha = 1.f;
|
||||
}
|
||||
}
|
||||
|
||||
if (m_bFadeOut == true)
|
||||
{
|
||||
if (m_fAlpha >= 0.f)
|
||||
m_fAlpha -= fTimeDelta * m_fAlphaTime;;
|
||||
|
||||
if (m_fAlpha <= 0.f)
|
||||
{
|
||||
m_bFadeOut = false;
|
||||
m_fAlpha = 0.f;
|
||||
}
|
||||
}
|
||||
|
||||
m_fAngle = XMConvertToRadians(static_cast<CUIObject*>(m_pOwner)->Get_Angle());
|
||||
|
||||
float cosA = cos(m_fAngle);
|
||||
float sinA = sin(m_fAngle);
|
||||
|
||||
float rotatedX = m_localX * cosA - m_localY * sinA;
|
||||
float rotatedY = m_localX * sinA + m_localY * cosA;
|
||||
|
||||
MoveX(rotatedX);
|
||||
MoveY(rotatedY);
|
||||
|
||||
m_fTime += fTimeDelta * m_fTimeMult;
|
||||
__super::Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CSpellLearn_LookPointer::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (m_bVisible) {
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
|
||||
__super::Late_Update(fTimeDelta);
|
||||
}
|
||||
}
|
||||
|
||||
HRESULT CSpellLearn_LookPointer::Render()
|
||||
{
|
||||
if (FAILED(Bind_ShaderResources())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::ROTATION)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pVIBufferCom->Bind_Resources())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pVIBufferCom->Render())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
_vector CSpellLearn_LookPointer::Get_WorldPostion()
|
||||
{
|
||||
return m_pTransformCom->Get_State(STATE::POSITION);
|
||||
}
|
||||
|
||||
HRESULT CSpellLearn_LookPointer::Bind_ShaderResources()
|
||||
{
|
||||
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fTime", &m_fTime, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fMapAngle", &m_fAngle, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CSpellLearn_LookPointer::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(Add_Component<CVIBuffer_Rect>(g_iStaticLevel, &m_pVIBufferCom)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_SU_CursorArrow"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CSpellLearn_LookPointer::Set_SpellLearn(_int Index)
|
||||
{
|
||||
m_bMoveStart = false;
|
||||
m_iLineIndex = _int(static_cast<CUIObject*>(m_pOwner)->Get_Learninfo(Index).Lines.size());
|
||||
m_MoveLine = static_cast<CUIObject*>(m_pOwner)->Get_Learninfo(Index).Lines;
|
||||
m_iCurrentLine = 0;
|
||||
m_fX = static_cast<CUIObject*>(m_pOwner)->Get_Learninfo(Index).fStartPosition.x;
|
||||
m_fY = static_cast<CUIObject*>(m_pOwner)->Get_Learninfo(Index).fStartPosition.y;
|
||||
}
|
||||
|
||||
CSpellLearn_LookPointer* CSpellLearn_LookPointer::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CSpellLearn_LookPointer* pInstance = new CSpellLearn_LookPointer(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CSpellLearn_LookPointer");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
CGameObject* CSpellLearn_LookPointer::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CSpellLearn_LookPointer* pInstance = new CSpellLearn_LookPointer(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CSpellLearn_LookPointer");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CSpellLearn_LookPointer::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom);
|
||||
SAFE_RELEASE(m_pShaderCom);
|
||||
SAFE_RELEASE(m_pVIBufferCom);
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
void CSpellLearn_LookPointer::Describe_Entity()
|
||||
{
|
||||
}
|
||||
#endif // _DEBUG
|
||||
@@ -1,6 +1,7 @@
|
||||
#include "pch.h"
|
||||
#include "SpellLearn_MovePointer.h"
|
||||
#include "GameInstance.h"
|
||||
#include "SpellLearn_LookPointer.h"
|
||||
#include "InfoInstance.h"
|
||||
|
||||
CSpellLearn_MovePointer::CSpellLearn_MovePointer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
@@ -38,41 +39,69 @@ HRESULT CSpellLearn_MovePointer::Initialize(void* pArg)
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_fTimeMult = 3.f;
|
||||
m_fAlpha = 1.f;
|
||||
m_fTimeMult = 10.f;
|
||||
m_fAlpha = 0.f;
|
||||
m_fAlphaTime = 5.f;
|
||||
m_fMoveSpeed = 15.f;
|
||||
m_fMoveSpeed = 105.f;
|
||||
Set_SpellLearn(0);
|
||||
m_fAngle = XMConvertToRadians(0);
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("Booster"), [this](void* p) {this->Set_Booster(p); });
|
||||
Visible(false);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CSpellLearn_MovePointer::Set_SpellLearn(_int Index)
|
||||
{
|
||||
m_bMoveStart = false;
|
||||
m_bHover = true;
|
||||
m_iLineIndex = _int(m_pInfoInstance->Get_SpellLearn(Index).Lines.size());
|
||||
m_Boosters = m_pInfoInstance->Get_SpellLearn(Index).Booster;
|
||||
m_MoveLine = m_pInfoInstance->Get_SpellLearn(Index).Lines;
|
||||
m_iCurrentLine = 0;
|
||||
m_fX = m_pInfoInstance->Get_SpellLearn(Index).fStartPosition.x;
|
||||
m_fY = m_pInfoInstance->Get_SpellLearn(Index).fStartPosition.y;
|
||||
m_iCurrentLine = 0;
|
||||
m_Booster.iBoosterIndex = -1;
|
||||
m_Booster.bBoosterOn = false;
|
||||
Set_FadeIn();
|
||||
}
|
||||
|
||||
void CSpellLearn_MovePointer::Line(_float fTime)
|
||||
_int CSpellLearn_MovePointer::Get_SpellTrail()
|
||||
{
|
||||
return m_iCurrentLine;
|
||||
}
|
||||
|
||||
_bool CSpellLearn_MovePointer::Get_MoveStart()
|
||||
{
|
||||
return m_bMoveStart;
|
||||
}
|
||||
|
||||
void CSpellLearn_MovePointer::Line(_float fTime, _float2 fMouse)
|
||||
{
|
||||
m_vLerp_Position = m_MoveLine[m_iCurrentLine];
|
||||
|
||||
if (Start_Lerp(m_fMoveSpeed * fTime) == true)
|
||||
if (Start_Lerp_Speed(fTime, fMouse) == true)
|
||||
{
|
||||
if (m_iCurrentLine < m_iLineIndex - 1)
|
||||
{
|
||||
++m_iCurrentLine;
|
||||
m_fPerPosition = _float2(m_MoveLine[m_iCurrentLine - 1].m128_f32[0], m_MoveLine[m_iCurrentLine - 1].m128_f32[1]);
|
||||
}
|
||||
else
|
||||
{
|
||||
m_bMoveStart = false;
|
||||
Set_FadeOut();
|
||||
static_cast<CUIObject*>(m_pOwner)->Function_Callback(TEXT("LearnClear"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void CSpellLearn_MovePointer::Set_Booster(void* pArg)
|
||||
{
|
||||
Booster* Info = static_cast<Booster*>(pArg);
|
||||
m_Booster.iBoosterIndex = Info->iBoosterIndex;
|
||||
m_Booster.bBoosterOn = Info->bBoosterOn;
|
||||
m_bBooster = m_Booster.bBoosterOn;
|
||||
}
|
||||
|
||||
void CSpellLearn_MovePointer::Priority_Update(_float fTimeDelta)
|
||||
@@ -116,28 +145,45 @@ void CSpellLearn_MovePointer::Update(_float fTimeDelta)
|
||||
}
|
||||
}
|
||||
|
||||
POINT ptMouse{};
|
||||
GetCursorPos(&ptMouse);
|
||||
ScreenToClient(g_hWnd, &ptMouse);
|
||||
_float2 fMouse{};
|
||||
fMouse.x = ptMouse.x - (g_iWinSizeX * 0.5f);
|
||||
fMouse.y = -ptMouse.y + (g_iWinSizeY * 0.5f);
|
||||
|
||||
_float2 fFinalMouse{};
|
||||
fFinalMouse.x = fMouse.x - m_fX;
|
||||
fFinalMouse.y = fMouse.y - m_fY;
|
||||
|
||||
if (m_pGameInstance->Key_Down(DIK_L))
|
||||
{
|
||||
m_bMoveStart = true;
|
||||
m_bBooster = false;
|
||||
m_fMoveSpeed = 105.f;
|
||||
}
|
||||
|
||||
if (m_bMoveStart == true)
|
||||
{
|
||||
Line(fTimeDelta);
|
||||
Line(fTimeDelta, fMouse);
|
||||
}
|
||||
|
||||
POINT ptMouse{};
|
||||
GetCursorPos(&ptMouse);
|
||||
ScreenToClient(g_hWnd, &ptMouse);
|
||||
_float2 fMouse;
|
||||
fMouse.x = ptMouse.x - (g_iWinSizeX * 0.5f);
|
||||
fMouse.y = -ptMouse.y + (g_iWinSizeY * 0.5f);
|
||||
m_fAngle = atan2(-fFinalMouse.x, fFinalMouse.y);
|
||||
|
||||
fMouse.x = fMouse.x - m_fX;
|
||||
fMouse.y = fMouse.y - m_fY;
|
||||
if (m_bBooster == true)
|
||||
{
|
||||
if (m_pGameInstance->Mouse_Down(DIM_LBUTTON))
|
||||
{
|
||||
m_bBooster = false;
|
||||
m_fMoveSpeed = 170.f;
|
||||
static_cast<CUIObject*>(m_pOwner)->Function_Callback(TEXT("BoosterOn"), &m_Booster);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
m_fAngle = atan2(-fMouse.x, fMouse.y);
|
||||
if (m_fMoveSpeed >= 105.f)
|
||||
{
|
||||
m_fMoveSpeed -= fTimeDelta * m_fTimeMult;
|
||||
}
|
||||
|
||||
m_fTime += fTimeDelta * m_fTimeMult;
|
||||
__super::Update(fTimeDelta);
|
||||
@@ -150,7 +196,8 @@ void CSpellLearn_MovePointer::Late_Update(_float fTimeDelta)
|
||||
return;
|
||||
}
|
||||
if (m_bVisible) {
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
|
||||
if (m_bHover == true)
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
|
||||
__super::Late_Update(fTimeDelta);
|
||||
}
|
||||
}
|
||||
@@ -239,6 +286,10 @@ HRESULT CSpellLearn_MovePointer::Ready_Components(void* pArg)
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CSpellLearn_LookPointer>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast<CSpellLearn_LookPointer**>(&m_pSpellLeam_LookPointer))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,391 @@
|
||||
#include "pch.h"
|
||||
#include "SpellLearn_Overlay.h"
|
||||
#include "GameInstance.h"
|
||||
#include "InfoInstance.h"
|
||||
|
||||
CSpellLearn_Overlay::CSpellLearn_Overlay(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
:CElementObject(pDevice, pContext)
|
||||
{
|
||||
}
|
||||
|
||||
CSpellLearn_Overlay::CSpellLearn_Overlay(const CSpellLearn_Overlay& rhs)
|
||||
:CElementObject(rhs),
|
||||
m_pInfoInstance(CInfoInstance::GetInstance())
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CSpellLearn_Overlay::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CSpellLearn_Overlay::Initialize(void* pArg)
|
||||
{
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = 380.f;
|
||||
Desc.fY = -30.f;
|
||||
Desc.fSizeX = 105.f;
|
||||
Desc.fSizeY = 105.f;
|
||||
|
||||
m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
|
||||
|
||||
if (FAILED(__super::Initialize(&Desc)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_iImageFrameX = 8;
|
||||
m_iImageFrameY = 8;
|
||||
m_fFrame = 0.2f;
|
||||
m_fTimeMult = 3.f;
|
||||
m_fAngle = XMConvertToRadians(-135.f);
|
||||
m_fAlpha = 1.f;
|
||||
m_fAlphaTime = 1.f;
|
||||
m_vUVScale.x = 1.f;
|
||||
m_vUVScale.y = 1.f;
|
||||
m_fCoolTime = 5.f;
|
||||
m_fSortZ = 0.01f;
|
||||
m_fMoveSpeed = 10.f;
|
||||
m_fLerpX = 600.f;
|
||||
m_fLerpY = 100.f;
|
||||
m_iSpellType = ENUM_CLASS(SPELLTYPE::CONTROL);
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("LearnClear"), [this](void* p) {this->Clear(); });
|
||||
Compute_UI(5);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CSpellLearn_Overlay::Set_SpellLearn(_int Index)
|
||||
{
|
||||
Compute_UI(m_pInfoInstance->Get_SpellLearn(Index).iSpellID);
|
||||
m_vUVScale.y = 0.f;
|
||||
m_fTrail = 0.f;
|
||||
m_iSpellType = m_pInfoInstance->Get_SpellLearn(Index).iSpellType;
|
||||
m_fSpellLearn = _float(m_pInfoInstance->Get_SpellLearn(Index).Lines.size());
|
||||
MoveX(m_pInfoInstance->Get_SpellLearn(Index).fEndPosition.x);
|
||||
MoveY(m_pInfoInstance->Get_SpellLearn(Index).fEndPosition.y);
|
||||
SizeUpdate(m_fOrigin_Size.x, m_fOrigin_Size.y);
|
||||
m_fSizeUp = false;
|
||||
m_bClear = false;
|
||||
}
|
||||
|
||||
void CSpellLearn_Overlay::Set_Count(_int Index)
|
||||
{
|
||||
m_fTrail = _float(Index);
|
||||
}
|
||||
|
||||
void CSpellLearn_Overlay::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CSpellLearn_Overlay::Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (m_bFadeIn == true)
|
||||
{
|
||||
if (m_fAlpha <= 1.f)
|
||||
m_fAlpha += fTimeDelta * m_fAlphaTime;
|
||||
|
||||
if (m_fAlpha >= 1.f)
|
||||
{
|
||||
m_bFadeIn = false;
|
||||
m_fAlpha = 1.f;
|
||||
}
|
||||
}
|
||||
|
||||
if (m_bFadeOut == true)
|
||||
{
|
||||
if (m_fAlpha >= 0.f)
|
||||
m_fAlpha -= fTimeDelta;
|
||||
|
||||
if (m_fAlpha <= 0.f)
|
||||
{
|
||||
m_bFadeOut = false;
|
||||
m_fAlpha = 0.f;
|
||||
}
|
||||
}
|
||||
|
||||
Update_Trail(fTimeDelta);
|
||||
|
||||
if (m_bClear == true)
|
||||
{
|
||||
SizeUp(fTimeDelta * m_fTimeMult * m_fMoveSpeed);
|
||||
}
|
||||
|
||||
if (m_fSizeUp == true)
|
||||
{
|
||||
if (Start_Lerp(fTimeDelta * m_fTimeMult * m_fMoveSpeed) == true)
|
||||
{
|
||||
m_fSizeUp = false;
|
||||
}
|
||||
}
|
||||
|
||||
m_fTime += fTimeDelta * m_fTimeMult;
|
||||
__super::Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CSpellLearn_Overlay::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (m_bVisible) {
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
|
||||
}
|
||||
__super::Late_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
HRESULT CSpellLearn_Overlay::Render()
|
||||
{
|
||||
if (FAILED(Bind_ShaderResources()))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::TYPE))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pVIBufferCom->Bind_Resources()))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pVIBufferCom->Render()))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
_vector CSpellLearn_Overlay::Get_WorldPostion()
|
||||
{
|
||||
return m_pTransformCom->Get_State(STATE::POSITION);
|
||||
}
|
||||
|
||||
HRESULT CSpellLearn_Overlay::Bind_ShaderResources()
|
||||
{
|
||||
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pDiffuse_TextureCom1->Bind_ShaderResource(m_pShaderCom, "g_Texture1", 0)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pDiffuse_TextureCom2->Bind_ShaderResource(m_pShaderCom, "g_Texture2", 0)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pDiffuse_TextureCom3->Bind_ShaderResource(m_pShaderCom, "g_Texture3", 0)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fTime", &m_fTime, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fFrame", &m_fFrame, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fAngle", &m_fAngle, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_iSpellType", &m_iSpellType, sizeof(_int))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_iImageCountX", &m_iImageFrameX, sizeof(_int))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_iImageCountY", &m_iImageFrameY, sizeof(_int))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fDeltaU", &m_vUVScale.x, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fDeltaV", &m_vUVScale.y, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fCoolTime", &m_fCoolTime, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fImageUV", &m_vUV, sizeof(_float4))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CSpellLearn_Overlay::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(Add_Component<CVIBuffer_Rect>(g_iStaticLevel, &m_pVIBufferCom)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_ActionItemBack_4K"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_spellmeter_Generic"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom1), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_Atlas_Spell"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom2), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_tillingSmokes"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom3), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CSpellLearn_Overlay::Clear()
|
||||
{
|
||||
m_vUVScale.y = 1.5f;
|
||||
m_bClear = true;
|
||||
}
|
||||
|
||||
void CSpellLearn_Overlay::Compute_UI(_uint SpellID)
|
||||
{
|
||||
_float2 fImage_Size = { 1024.f, 1792.f };
|
||||
|
||||
_uint iCountX = 4;
|
||||
_uint iCountY = 6;
|
||||
|
||||
_float iImageX = 256.f;
|
||||
_float iImageY = 256.f;
|
||||
|
||||
_uint iframeX = SpellID % iCountX;
|
||||
_uint iframeY = SpellID / iCountX;
|
||||
|
||||
_float2 UVStart;
|
||||
UVStart.x = iframeX * iImageX / fImage_Size.x;
|
||||
UVStart.y = iframeY * iImageY / fImage_Size.y;
|
||||
|
||||
_float2 UVEnd;
|
||||
UVEnd.x = UVStart.x + (iImageX / fImage_Size.x);
|
||||
UVEnd.y = UVStart.y + (iImageY / fImage_Size.y);
|
||||
|
||||
_float4 UV = _float4{ UVStart.x, UVStart.y, UVEnd.x, UVEnd.y };
|
||||
m_vUV = UV;
|
||||
}
|
||||
|
||||
void CSpellLearn_Overlay::Update_Trail(_float fTimeaDalta)
|
||||
{
|
||||
m_vUVScale.y = CMyTools::Lerp_f1D(m_vUVScale.y, m_fTrail / m_fSpellLearn * 1.06f, fTimeaDalta * m_fMoveSpeed);
|
||||
}
|
||||
|
||||
void CSpellLearn_Overlay::SizeUp(_float fSizeX)
|
||||
{
|
||||
m_fSizeX += fSizeX;
|
||||
m_fSizeY += fSizeX;
|
||||
|
||||
if (160.f <= m_fSizeX + fSizeX)
|
||||
{
|
||||
m_fSizeX = 160.f;
|
||||
m_fSizeY = 160.f;
|
||||
m_bClear = false;
|
||||
m_fSizeUp = true;
|
||||
static_cast<CUIObject*>(m_pOwner)->Function_Callback(TEXT("OverrlayClear"));
|
||||
}
|
||||
}
|
||||
|
||||
CSpellLearn_Overlay* CSpellLearn_Overlay::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CSpellLearn_Overlay* pInstance = new CSpellLearn_Overlay(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CSpellLearn_Overlay");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
CGameObject* CSpellLearn_Overlay::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CSpellLearn_Overlay* pInstance = new CSpellLearn_Overlay(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CSpell_Overlay");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CSpellLearn_Overlay::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom);
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom1);
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom2);
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom3);
|
||||
SAFE_RELEASE(m_pShaderCom);
|
||||
SAFE_RELEASE(m_pVIBufferCom);
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
void CSpellLearn_Overlay::Describe_Entity()
|
||||
{
|
||||
}
|
||||
#endif // _DEBUG
|
||||
@@ -4,7 +4,11 @@
|
||||
#include "SpellLearn_Name.h"
|
||||
#include "SpellLearn.h"
|
||||
#include "SpellLearn_MovePointer.h"
|
||||
#include "SPellLearn_ChaserPointer.h"
|
||||
#include "SpellLearn_Data.h"
|
||||
#include "SpellLearn_Booster.h"
|
||||
#include "SpellLearn_Slot.h"
|
||||
#include "SpellLearn_Overlay.h"
|
||||
#include "InfoInstance.h"
|
||||
|
||||
CSpellLearn_Panel::CSpellLearn_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
@@ -47,11 +51,45 @@ HRESULT CSpellLearn_Panel::Initialize(void* pArg)
|
||||
m_fCanvasAlpha = 1.f;
|
||||
m_fSortZ = 0.05f;
|
||||
m_fDelayTime = 1.f;
|
||||
static_cast<CSpellLearn*>(m_pSpellLearn)->Set_Pointer(
|
||||
static_cast<CSpellLearn_MovePointer*>(m_pSpellLearn_MovePointer),
|
||||
static_cast<CSpellLearn_ChaserPointer*>(m_pSpellLearn_ChaserPointer));
|
||||
|
||||
for (size_t i = 0; i < m_pBooster.size(); ++i)
|
||||
{
|
||||
static_cast<CSpellLearn_Booster*>(m_pBooster[i])->Move(m_pInfoInstance->Get_SpellLearn(Index).Booster[i].m128_f32[0],
|
||||
m_pInfoInstance->Get_SpellLearn(Index).Booster[i].m128_f32[1]);
|
||||
}
|
||||
for (size_t i = 0; i < m_pBooster.size(); ++i)
|
||||
{
|
||||
m_PointerStates.push_back(m_State);
|
||||
m_ChaseStates.push_back(m_State);
|
||||
}
|
||||
static_cast<CSpellLearn_Overlay*>(m_pSpellLearn_Overlay)->Set_SpellLearn(0);
|
||||
static_cast<CSpellLearn_Slot*>(m_pSpellLearn_Slot)->Set_SpellLearn(0);
|
||||
Visible(true);
|
||||
ElementAllVisible(true);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CSpellLearn_Panel::Set_Learn(_int Index)
|
||||
{
|
||||
m_fTime = 0.f;
|
||||
static_cast<CSpellLearn*>(m_pSpellLearn)->Change_Image(Index);
|
||||
static_cast<CSpellLearn_MovePointer*>(m_pSpellLearn_MovePointer)->Set_SpellLearn(Index);
|
||||
static_cast<CSpellLearn_ChaserPointer*>(m_pSpellLearn_ChaserPointer)->Set_SpellLearn(Index);
|
||||
static_cast<CSpellLearn_Name*>(m_pSpellLearn_Name)->Set_Name(Index);
|
||||
static_cast<CSpellLearn_Overlay*>(m_pSpellLearn_Overlay)->Set_SpellLearn(Index);
|
||||
static_cast<CSpellLearn_Slot*>(m_pSpellLearn_Slot)->Set_SpellLearn(Index);
|
||||
for (size_t i = 0; i < m_pBooster.size(); ++i)
|
||||
{
|
||||
static_cast<CSpellLearn_Booster*>(m_pBooster[i])->Move(
|
||||
m_pInfoInstance->Get_SpellLearn(Index).Booster[i].m128_f32[0],
|
||||
m_pInfoInstance->Get_SpellLearn(Index).Booster[i].m128_f32[1]);
|
||||
static_cast<CSpellLearn_Booster*>(m_pBooster[i])->Reset();
|
||||
}
|
||||
}
|
||||
|
||||
void CSpellLearn_Panel::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
@@ -78,11 +116,90 @@ void CSpellLearn_Panel::Update(_float fTimeDelta)
|
||||
{
|
||||
Index++;
|
||||
}
|
||||
static_cast<CSpellLearn*>(m_pSpellLearn)->Change_Image(Index);
|
||||
static_cast<CSpellLearn_MovePointer*>(m_pSpellLearn_MovePointer)->Set_SpellLearn(Index);
|
||||
static_cast<CSpellLearn_Name*>(m_pSpellLearn_Name)->Set_Name(Index);
|
||||
Set_Learn(Index);
|
||||
}
|
||||
|
||||
if (static_cast<CSpellLearn_MovePointer*>(m_pSpellLearn_MovePointer)->Get_MoveStart() == true)
|
||||
{
|
||||
m_fTime += fTimeDelta;
|
||||
|
||||
for (size_t i = 0; i < m_pBooster.size(); ++i)
|
||||
{
|
||||
m_PointerStates[i].bPerHit = m_PointerStates[i].bHit;
|
||||
|
||||
_bool bPointer = Chack_Element(static_cast<CUIObject*>(m_pBooster[i])->Get_Position(),
|
||||
static_cast<CUIObject*>(m_pSpellLearn_MovePointer)->Get_Position(),
|
||||
static_cast<CUIObject*>(m_pSpellLearn_MovePointer)->Get_Current_Size().x,
|
||||
static_cast<CUIObject*>(m_pSpellLearn_MovePointer)->Get_Current_Size().x);
|
||||
|
||||
m_PointerStates[i].bHit = bPointer;
|
||||
|
||||
if (m_PointerStates[i].bHit == true && m_PointerStates[i].bPerHit == false)
|
||||
{
|
||||
m_Booster.iBoosterIndex = _int(i);
|
||||
m_Booster.bBoosterOn = true;
|
||||
Function_Callback(TEXT("Booster"), &m_Booster);
|
||||
}
|
||||
|
||||
if (m_PointerStates[i].bHit == false && m_PointerStates[i].bPerHit == true)
|
||||
{
|
||||
m_Booster.iBoosterIndex = _int(i);
|
||||
m_Booster.bBoosterOn = false;
|
||||
Function_Callback(TEXT("Booster"), &m_Booster);
|
||||
}
|
||||
}
|
||||
|
||||
for (size_t i = 0; i < m_pBooster.size(); ++i)
|
||||
{
|
||||
m_ChaseStates[i].bPerHit = m_ChaseStates[i].bHit;
|
||||
|
||||
_bool bPointer = Chack_Element(static_cast<CUIObject*>(m_pBooster[i])->Get_Position(),
|
||||
static_cast<CUIObject*>(m_pSpellLearn_ChaserPointer)->Get_Position(),
|
||||
static_cast<CUIObject*>(m_pSpellLearn_ChaserPointer)->Get_Current_Size().x,
|
||||
static_cast<CUIObject*>(m_pSpellLearn_ChaserPointer)->Get_Current_Size().x);
|
||||
|
||||
m_ChaseStates[i].bHit = bPointer;
|
||||
|
||||
if (m_ChaseStates[i].bHit == true && m_ChaseStates[i].bPerHit == false)
|
||||
{
|
||||
m_Booster.iBoosterIndex = _int(i);
|
||||
m_Booster.bBoosterOn = true;
|
||||
Function_Callback(TEXT("BoosterOff"), &m_Booster);
|
||||
}
|
||||
|
||||
static_cast<CSpellLearn_Overlay*>(m_pSpellLearn_Overlay)->Set_Count(
|
||||
static_cast<CSpellLearn_MovePointer*>(m_pSpellLearn_MovePointer)->Get_SpellTrail());
|
||||
|
||||
}
|
||||
|
||||
if (m_fTime >= 1.f)
|
||||
{
|
||||
static_cast<CSpellLearn_ChaserPointer*>(m_pSpellLearn_ChaserPointer)->Set_FadeIn();
|
||||
}
|
||||
|
||||
if (m_fTime >= 2.f)
|
||||
{
|
||||
static_cast<CSpellLearn_ChaserPointer*>(m_pSpellLearn_ChaserPointer)->Set_Move();
|
||||
|
||||
if (_bool bPointer = Chack_Element(static_cast<CUIObject*>(m_pSpellLearn_MovePointer)->Get_Position(),
|
||||
static_cast<CUIObject*>(m_pSpellLearn_ChaserPointer)->Get_Position(),
|
||||
static_cast<CUIObject*>(m_pSpellLearn_MovePointer)->Get_Current_Size().x,
|
||||
static_cast<CUIObject*>(m_pSpellLearn_ChaserPointer)->Get_Current_Size().x) == true)
|
||||
{
|
||||
Set_Learn(Index);
|
||||
|
||||
m_Booster.iBoosterIndex = _int(-1);
|
||||
m_Booster.bBoosterOn = false;
|
||||
Function_Callback(TEXT("Booster"), &m_Booster);
|
||||
for (size_t i = 0; i < m_PointerStates.size(); ++i)
|
||||
{
|
||||
m_PointerStates[i].bPerHit = false;
|
||||
m_PointerStates[i].bHit = false;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
__super::Update(fTimeDelta);
|
||||
}
|
||||
|
||||
@@ -204,6 +321,36 @@ HRESULT CSpellLearn_Panel::Ready_Element(void* pArg)
|
||||
}
|
||||
Add_Element(TEXT("SpellLearn_MovePointer"), m_pSpellLearn_MovePointer);
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CSpellLearn_ChaserPointer>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast<CSpellLearn_ChaserPointer**>(&m_pSpellLearn_ChaserPointer))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
Add_Element(TEXT("SPellLeam_ChaserPointer"), m_pSpellLearn_ChaserPointer);
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CSpellLearn_Slot>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast<CSpellLearn_Slot**>(&m_pSpellLearn_Slot))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
Add_Element(TEXT("SpellLearn_Slot"), m_pSpellLearn_Slot);
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CSpellLearn_Overlay>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast<CSpellLearn_Overlay**>(&m_pSpellLearn_Overlay))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
Add_Element(TEXT("SpellLearn_Overlay"), m_pSpellLearn_Overlay);
|
||||
|
||||
for (_int i = 0; i < 3; ++i)
|
||||
{
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CSpellLearn_Booster>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast<CSpellLearn_Booster**>(&m_pSpellLearn_Booster))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
static_cast<CSpellLearn_Booster*>(m_pSpellLearn_Booster)->Set_Index(i);
|
||||
|
||||
m_pBooster.push_back(m_pSpellLearn_Booster);
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,287 @@
|
||||
#include "pch.h"
|
||||
#include "SpellLearn_Slot.h"
|
||||
#include "GameInstance.h"
|
||||
#include "InfoInstance.h"
|
||||
|
||||
CSpellLearn_Slot::CSpellLearn_Slot(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
:CElementObject(pDevice, pContext)
|
||||
{
|
||||
}
|
||||
|
||||
CSpellLearn_Slot::CSpellLearn_Slot(const CSpellLearn_Slot& rhs)
|
||||
:CElementObject(rhs),
|
||||
m_pInfoInstance(CInfoInstance::GetInstance())
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CSpellLearn_Slot::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CSpellLearn_Slot::Initialize(void* pArg)
|
||||
{
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = 380.f;
|
||||
Desc.fY = -30.f;
|
||||
Desc.fSizeX = 105.f;
|
||||
Desc.fSizeY = 105.f;
|
||||
|
||||
m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
|
||||
|
||||
if (FAILED(__super::Initialize(&Desc)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_fTimeMult = 3.f;
|
||||
m_fAngle = XMConvertToRadians(135.f);
|
||||
m_fAlpha = 1.f;
|
||||
m_fAlphaTime = 1.f;
|
||||
m_fMoveSpeed = 10.f;
|
||||
m_fLerpX = 600.f;
|
||||
m_fLerpY = 100.f;
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("LearnClear"), [this](void* p) {this->Clear(); });
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CSpellLearn_Slot::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CSpellLearn_Slot::Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (m_bFadeIn == true)
|
||||
{
|
||||
if (m_fAlpha <= 1.f)
|
||||
m_fAlpha += fTimeDelta * m_fAlphaTime;
|
||||
|
||||
if (m_fAlpha >= 1.f)
|
||||
{
|
||||
m_bFadeIn = false;
|
||||
m_fAlpha = 1.f;
|
||||
}
|
||||
}
|
||||
|
||||
if (m_bFadeOut == true)
|
||||
{
|
||||
if (m_fAlpha >= 0.f)
|
||||
m_fAlpha -= fTimeDelta;
|
||||
|
||||
if (m_fAlpha <= 0.f)
|
||||
{
|
||||
m_bFadeOut = false;
|
||||
m_fAlpha = 0.f;
|
||||
}
|
||||
}
|
||||
|
||||
if (m_bClear == true)
|
||||
{
|
||||
SizeUp(fTimeDelta * m_fTimeMult * m_fMoveSpeed);
|
||||
}
|
||||
|
||||
if (m_fSizeUp == true)
|
||||
{
|
||||
if (Start_Lerp(fTimeDelta * m_fTimeMult * m_fMoveSpeed) == true)
|
||||
{
|
||||
m_fSizeUp = false;
|
||||
}
|
||||
}
|
||||
|
||||
m_fTime += fTimeDelta * m_fTimeMult;
|
||||
__super::Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CSpellLearn_Slot::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (m_bVisible) {
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
|
||||
}
|
||||
__super::Late_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
HRESULT CSpellLearn_Slot::Render()
|
||||
{
|
||||
if (FAILED(Bind_ShaderResources()))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::SLOT))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pVIBufferCom->Bind_Resources()))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pVIBufferCom->Render()))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
_vector CSpellLearn_Slot::Get_WorldPostion()
|
||||
{
|
||||
return m_pTransformCom->Get_State(STATE::POSITION);
|
||||
}
|
||||
|
||||
HRESULT CSpellLearn_Slot::Bind_ShaderResources()
|
||||
{
|
||||
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fTime", &m_fTime, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fAngle", &m_fAngle, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_iSpellType", &m_iSpellType, sizeof(_int))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fAngle", &m_fAngle, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CSpellLearn_Slot::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(Add_Component<CVIBuffer_Rect>(g_iStaticLevel, &m_pVIBufferCom)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_ActionItemGoldleaf_4K"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CSpellLearn_Slot::Set_SpellLearn(_int Index)
|
||||
{
|
||||
MoveX(m_pInfoInstance->Get_SpellLearn(Index).fEndPosition.x);
|
||||
MoveY(m_pInfoInstance->Get_SpellLearn(Index).fEndPosition.y);
|
||||
SizeUpdate(m_fOrigin_Size.x, m_fOrigin_Size.y);
|
||||
m_fSizeUp = false;
|
||||
m_bClear = false;
|
||||
}
|
||||
|
||||
void CSpellLearn_Slot::Clear()
|
||||
{
|
||||
m_bClear = true;
|
||||
}
|
||||
|
||||
void CSpellLearn_Slot::SizeUp(_float fSizeX)
|
||||
{
|
||||
m_fSizeX += fSizeX;
|
||||
m_fSizeY += fSizeX;
|
||||
|
||||
if (160.f <= m_fSizeX + fSizeX)
|
||||
{
|
||||
m_fSizeX = 160.f;
|
||||
m_fSizeY = 160.f;
|
||||
m_bClear = false;
|
||||
m_fSizeUp = true;
|
||||
}
|
||||
}
|
||||
|
||||
CSpellLearn_Slot* CSpellLearn_Slot::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CSpellLearn_Slot* pInstance = new CSpellLearn_Slot(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CSpellLearn_Slot");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
CGameObject* CSpellLearn_Slot::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CSpellLearn_Slot* pInstance = new CSpellLearn_Slot(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CSpellLearn_Slot");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CSpellLearn_Slot::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom);
|
||||
SAFE_RELEASE(m_pShaderCom);
|
||||
SAFE_RELEASE(m_pVIBufferCom);
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
void CSpellLearn_Slot::Describe_Entity()
|
||||
{
|
||||
}
|
||||
#endif // _DEBUG
|
||||
@@ -0,0 +1,64 @@
|
||||
#include "pch.h"
|
||||
#include "State_Fall.h"
|
||||
#include "Unit.h"
|
||||
|
||||
|
||||
CState_Fall::CState_Fall()
|
||||
:CState_Root()
|
||||
{
|
||||
}
|
||||
|
||||
void CState_Fall::Enter()
|
||||
{
|
||||
__super::Enter();
|
||||
}
|
||||
|
||||
HRESULT CState_Fall::Update(_float fTimeDelta)
|
||||
{
|
||||
if (nullptr != m_funcPriorityUpdate) {
|
||||
m_funcPriorityUpdate(fTimeDelta);
|
||||
}
|
||||
if (FAILED(__super::Update(fTimeDelta))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (nullptr != m_funcLateUpdate) {
|
||||
m_funcLateUpdate(fTimeDelta);
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CState_Fall::Exit()
|
||||
{
|
||||
__super::Exit();
|
||||
}
|
||||
|
||||
HRESULT CState_Fall::Initialize(STATE_FALL_DESC* pDesc)
|
||||
{
|
||||
if (FAILED(__super::Initialize(pDesc))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
m_funcPriorityUpdate = pDesc->funcPriorityUpdate;
|
||||
m_funcLateUpdate = pDesc->funcLateUpdate;
|
||||
m_pModel = m_pOwner->Get_Component<CModel>();
|
||||
m_pFSM = m_pOwner->Get_Component<CFSM>();
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CState_Fall* CState_Fall::Create(STATE_FALL_DESC* pDesc)
|
||||
{
|
||||
CState_Fall* pInstance = new CState_Fall;
|
||||
if (FAILED(pInstance->Initialize(pDesc))) {
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CState_Fall::Free()
|
||||
{
|
||||
__super::Free();
|
||||
}
|
||||
|
||||
void CState_Fall::Describe_Entity()
|
||||
{
|
||||
}
|
||||
@@ -202,8 +202,6 @@ void CTransformation::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
if (m_bHit == false)
|
||||
return;
|
||||
|
||||
|
||||
|
||||
ON_COLLISION_INFO CollisionDesc = *static_cast<ON_COLLISION_INFO*>(pDesc);
|
||||
|
||||
CCharacter_Controller* pCCT = CollisionDesc.pObject->Get_Component<CCharacter_Controller>();
|
||||
|
||||
@@ -461,7 +461,7 @@ HRESULT CTroll::Ready_Components()
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_BOX"), (CComponent**)&m_pRigidBody, &Desc))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor());
|
||||
m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL);
|
||||
}
|
||||
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("STAT_TROLL"), (CComponent**)&m_pStat))) {
|
||||
|
||||
@@ -0,0 +1,42 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "GameObject.h"
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CCallBack_NonPlayable_Behavior final : public PSX::PxControllerBehaviorCallback
|
||||
{
|
||||
// 구현 예시
|
||||
// CCT는 RigidBody의 PxSimulationEventCallback에 안걸리고, 이 전용 콜백에서 처리되는 구조임
|
||||
//
|
||||
// PxUserControllerHitReport = "무엇과 부딪혔는지 알려줌(이벤트 알림)"
|
||||
// PxControllerBehaviorCallback = "부딪힌 것에 대해 어떤 행동 정책을 쓸지 물어봄(질의)"
|
||||
// PxSimulationEventCallback = "씬 전체에 대한 글로벌 콜백(일반 물리 이벤트)"
|
||||
private:
|
||||
CCallBack_NonPlayable_Behavior();
|
||||
public:
|
||||
~CCallBack_NonPlayable_Behavior();
|
||||
|
||||
public:
|
||||
// PxControllerBehaviorCallback을(를) 통해 상속됨
|
||||
// 충돌알림이 아닌, 행동정책 정해주기. CCT vs CCT는 지원안함
|
||||
// slopeLimit로 미끄러져 갈 수 있는지 없는지 이분법적인 계산 대신, 원하는 물체에 대해서만 미끄러운 표면으로 정의해줌
|
||||
// 주인이 되는 CCT가 이 물체에 대해 이 물체를 어떻게 해야 할까? -> (타고 올라갈까? Ride?) (미끄러져갈까? Slide?) ( 직접 내가 구현할까? user defined ride? )
|
||||
virtual PSX::PxControllerBehaviorFlags getBehaviorFlags(const PSX::PxShape& shape, const PSX::PxActor& actor) override;
|
||||
|
||||
virtual PSX::PxControllerBehaviorFlags getBehaviorFlags(const PSX::PxController& controller) override;
|
||||
|
||||
virtual PSX::PxControllerBehaviorFlags getBehaviorFlags(const PSX::PxObstacle& obstacle) override;
|
||||
|
||||
public:
|
||||
HRESULT Initialize(CCharacter_Controller* pController);
|
||||
HRESULT Finalize();
|
||||
private:
|
||||
CCharacter_Controller* m_pController = { nullptr };
|
||||
CGameInstance* m_pGameInstance = { nullptr };
|
||||
|
||||
public:
|
||||
static CCallBack_NonPlayable_Behavior* Create();
|
||||
};
|
||||
NS_END
|
||||
@@ -0,0 +1,50 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "GameObject.h"
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CCallBack_NonPlayable_HitReport final : public PSX::PxUserControllerHitReport
|
||||
{
|
||||
// 구현 예시
|
||||
// CCT는 RigidBody의 PxSimulationEventCallback에 안걸리고, 이 전용 콜백에서 처리되는 구조임
|
||||
//
|
||||
// PxUserControllerHitReport = "무엇과 부딪혔는지 알려줌(이벤트 알림)"
|
||||
// PxControllerBehaviorCallback = "부딪힌 것에 대해 어떤 행동 정책을 쓸지 물어봄(질의)"
|
||||
// PxSimulationEventCallback = "씬 전체에 대한 글로벌 콜백(일반 물리 이벤트)"
|
||||
private:
|
||||
CCallBack_NonPlayable_HitReport();
|
||||
public:
|
||||
~CCallBack_NonPlayable_HitReport();
|
||||
|
||||
void BeginFrame();
|
||||
|
||||
public:
|
||||
// PxUserControllerHitReport을(를) 통해 상속됨
|
||||
// 충돌알림!!
|
||||
// 주인이 되는 CCT가 이 물체에 대해 어떻게 반응해야 할까?
|
||||
virtual void onShapeHit(const PSX::PxControllerShapeHit& hit) override; // statc, rigid 등과 부딪힌 경우
|
||||
|
||||
virtual void onControllerHit(const PSX::PxControllersHit& hit) override; // 다른 CCT와 부딪힌 경우
|
||||
|
||||
virtual void onObstacleHit(const PSX::PxControllerObstacleHit& hit) override; // 사용자 정의 장애물과 부딪힌 경우
|
||||
|
||||
void Set_CurrentSlop();
|
||||
|
||||
public:
|
||||
HRESULT Initialize(CCharacter_Controller* pController);
|
||||
HRESULT Finalize();
|
||||
_bool IsOnGround();
|
||||
_vector Get_GroundVector();
|
||||
private:
|
||||
CCharacter_Controller* m_pController = { nullptr };
|
||||
CGameInstance* m_pGameInstance = { nullptr };
|
||||
|
||||
_float3 m_vClimbNormal = { 0.f, 1.f, 0.f };
|
||||
_float m_fBestNormal = { 0.f };
|
||||
_bool m_bGroundHit = { false };
|
||||
public:
|
||||
static CCallBack_NonPlayable_HitReport* Create();
|
||||
};
|
||||
NS_END
|
||||
@@ -19,8 +19,8 @@ namespace Client
|
||||
REVELIO, POTION, MAGIC_ITEM, SPELL_PREVIEW, SPELL_HEADER,
|
||||
SPELL_HEADER_LINE, SPELL_DRAG, CAMERA_LOCKON, LODING_SCREEN,
|
||||
ENEMY_HPBAR, BOSS_HPBAR, QUEST_BORDER, QUEST_INFO, QUEST_STATUS, BROOMSTICK,
|
||||
SPELL_LEARN,
|
||||
ENEMY_DETECTION, INTERACTION_OBJECT, END };
|
||||
SPELL_LEARN, SPELLLEARNCOLOR, SPELLLEARNBOOSTER,
|
||||
ENEMY_DETECTION, INTERACTION_OBJECT, END};
|
||||
enum class SHADER_PASS_UIINTANCE { DEFAULT, ALPHABLEND, UVALPHABLEND, MAGIC_METER, SPELL_LIST, EESSENTIAL_SPELL_SOLT, EESSENTIAL_SPELL, COLOR, SPELL_HOVER, SPELL_SLOT_EFFECT, SPELL_SLOT, SPELL_LOCK, QUEST_SLOT, END };
|
||||
|
||||
enum class SHADER_PASS_NPC_PBR_ANIM {
|
||||
|
||||
@@ -40,6 +40,7 @@ namespace Client
|
||||
typedef struct tagLockOnInfo {
|
||||
CUnit* pUnit = { nullptr };
|
||||
class CMapElement_Interactable* pInteractive = { nullptr };
|
||||
class CMapElement_Chest* pChest = { nullptr };
|
||||
}LOCKON_INFO;
|
||||
|
||||
typedef struct tagUnitInfo
|
||||
@@ -93,10 +94,14 @@ namespace Client
|
||||
|
||||
typedef struct tagSpellLearnInfo
|
||||
{
|
||||
_wstring pSpellName{};
|
||||
_wstring pImageName{};
|
||||
_float fSpellSize{};
|
||||
_float2 fStartPosition{};
|
||||
_wstring pSpellName{};
|
||||
_wstring pImageName{};
|
||||
_int iSpellID{};
|
||||
_int iSpellType{};
|
||||
_float fSpellSize{};
|
||||
_float2 fStartPosition{};
|
||||
_float2 fEndPosition{};
|
||||
vector<_vector> Booster;
|
||||
vector<_vector> Lines;
|
||||
}SPELLLEARNINFO;
|
||||
|
||||
|
||||
@@ -26,11 +26,13 @@ class CLevel_Field final : public CLevel
|
||||
HRESULT Ready_Layer_SkyBox();
|
||||
HRESULT Ready_Background();
|
||||
HRESULT Ready_Markers();
|
||||
HRESULT Ready_Layer_Player(const _wstring& strLayerTag);
|
||||
HRESULT Ready_Layer_UI(const _wstring& strLayerTag);
|
||||
HRESULT Ready_Layer_Camera();
|
||||
HRESULT Ready_Layer_Sound();
|
||||
HRESULT Ready_Layer_Effect(const _wstring& strLayerTag);
|
||||
HRESULT Ready_Layer_Monster();
|
||||
HRESULT Reday_Layer_EffectPool();
|
||||
|
||||
public:
|
||||
static pair<CLevel*, function<void()>> Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID, void* pArg);
|
||||
|
||||
@@ -34,27 +34,19 @@ class CMagic_Item final : public CElementObject
|
||||
private:
|
||||
void Compute_UV(_uint iItemID);
|
||||
void Compute_Image();
|
||||
|
||||
private:
|
||||
CTexture* m_pDiffuse_TextureCom = { nullptr };
|
||||
CTexture* m_pDiffuse_TextureCom1 = { nullptr };
|
||||
CTexture* m_pDiffuse_TextureCom2 = { nullptr };
|
||||
CTexture* m_pDiffuse_TextureCom3 = { nullptr };
|
||||
CTexture* m_pDiffuse_TextureCom4 = { nullptr };
|
||||
CTexture* m_pDiffuse_TextureCom5 = { nullptr };
|
||||
CTexture* m_pDiffuse_TextureCom6 = { nullptr };
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
||||
|
||||
_float4 m_vUV{};
|
||||
_uint m_iArratCount{};
|
||||
_float2 m_vImageSize1 = {};
|
||||
_float2 m_vImagePos1 = {};
|
||||
_float2 m_vImageSize2 = {};
|
||||
_float2 m_vImagePos2 = {};
|
||||
|
||||
_int m_iPotionIndex{};
|
||||
_int m_iPerPotionIndex{};
|
||||
_wstring m_strPotion;
|
||||
_float4 m_vImageposi1 = {};
|
||||
_float4 m_vImageposi2 = {};
|
||||
public:
|
||||
static CMagic_Item* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "Unit.h"
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CNPC_EleazarFig final : public CUnit
|
||||
{
|
||||
protected:
|
||||
CNPC_EleazarFig(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CNPC_EleazarFig(const CNPC_EleazarFig& Prototype);
|
||||
virtual ~CNPC_EleazarFig() = 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;
|
||||
virtual HRESULT Render_Shadow(SHADOW eType) override;
|
||||
protected:
|
||||
CInfoInstance* m_pInfoInstance = { nullptr };
|
||||
|
||||
protected:
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
HRESULT Ready_Components(void* pArg);
|
||||
HRESULT Bind_ShaderResources() override;
|
||||
|
||||
public:
|
||||
static CNPC_EleazarFig* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, CGameObject* pOwner = nullptr);
|
||||
virtual void Free() override;
|
||||
#ifdef _DEBUG
|
||||
virtual void Describe_Entity() override;
|
||||
|
||||
#endif // _DEBUG
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -19,13 +19,22 @@ class CNPC_Ollivander final : public CUnit
|
||||
virtual HRESULT Render() override;
|
||||
virtual HRESULT Render_Shadow(SHADOW eType) override;
|
||||
protected:
|
||||
CInfoInstance* m_pInfoInstance = { nullptr };
|
||||
CInfoInstance* m_pInfoInstance = { nullptr };
|
||||
CCharacter_Controller* m_pCharacter_Controller = { nullptr };
|
||||
class CCallBack_NonPlayable_Behavior* m_pCallBack_Behavior = { nullptr };
|
||||
class CCallBack_NonPlayable_HitReport* m_pCallBack_HitReport = { nullptr };
|
||||
CUnit* m_pPlayerAllyUnit = { nullptr };
|
||||
|
||||
|
||||
_bool m_bEntered = { false };
|
||||
_float2 m_vEnteringTimer = { 0.f, 1.f };
|
||||
_float m_fEncounterDistance = { 10.f };
|
||||
protected:
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
HRESULT Ready_Components(void* pArg);
|
||||
HRESULT Bind_ShaderResources() override;
|
||||
_bool CastToPlayer();
|
||||
|
||||
public:
|
||||
static CNPC_Ollivander* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
|
||||
@@ -7,6 +7,11 @@ NS_BEGIN(Client)
|
||||
|
||||
class CPlayer final : public CUnit
|
||||
{
|
||||
public:
|
||||
typedef struct tagPlayerInitDesc {
|
||||
_float4 vPos;
|
||||
_float4 vRotQ;
|
||||
}PLAYERDESC;
|
||||
private:
|
||||
CPlayer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CPlayer(const CPlayer& Prototype);
|
||||
@@ -75,6 +80,7 @@ class CPlayer final : public CUnit
|
||||
void ReLockOnTarget();
|
||||
void SetGravity();
|
||||
void Add_SpellEvent(_uint AnimIndex, _float fRatio);
|
||||
void Play_SpellHitAnim();
|
||||
|
||||
void Update_CameraCoordinateSystem(_float fTimeDelta);
|
||||
#ifdef _DEBUG
|
||||
@@ -163,6 +169,10 @@ class CPlayer final : public CUnit
|
||||
HRESULT Behavior_LandExitCheck(_float fTimeDelta);
|
||||
void Behavior_LandExit();
|
||||
|
||||
void Behavior_FallEnter();
|
||||
HRESULT Behavior_FallExitCheck(_float fTimeDelta);
|
||||
void Behavior_FallExit();
|
||||
|
||||
void Behavior_DodgeEnter();
|
||||
HRESULT Behavior_DodgeExitCheck(_float fTimeDelta);
|
||||
void Behavior_DodgeExit();
|
||||
|
||||
@@ -19,6 +19,18 @@ class CRanrok final : public CMonster
|
||||
RUSH,
|
||||
END
|
||||
};
|
||||
enum class RANROK_MESH_ORDER {
|
||||
ETHEREAL_HOT_SPINE,
|
||||
ETHEREAL_HOT_WINGS,
|
||||
ETHEREAL_HOT_ARMS,
|
||||
ETHEREAL_HOT_SHELL,
|
||||
ETHEREAL_AURA,
|
||||
ETHEREAL_EYES,
|
||||
ETHEREAL_WINGS,
|
||||
WINGS,
|
||||
BODY,
|
||||
END
|
||||
};
|
||||
|
||||
enum class RANROK_PHASE
|
||||
{
|
||||
@@ -49,6 +61,8 @@ class CRanrok final : public CMonster
|
||||
CRigidBody_Dynamic* m_pRigidBody = { nullptr };
|
||||
class CEffectPool* m_pEffectPool = nullptr;
|
||||
_float2 m_vStunTimer = { 0.f, 4.f };
|
||||
_float2 m_vAuraTimer = { 0.f, 0.16f };
|
||||
_float2 m_vEtherealTimer = { 0.f, 0.16f };
|
||||
_uint iIndex;
|
||||
DAMAGE_INFO m_DamageInfo;
|
||||
|
||||
@@ -58,6 +72,8 @@ class CRanrok final : public CMonster
|
||||
HRESULT Ready_Components();
|
||||
HRESULT Ready_Parts();
|
||||
HRESULT Bind_ShaderResources();
|
||||
HRESULT Render_Nonblend();
|
||||
HRESULT Render_Blend();
|
||||
void MoveTo(_float fTimeDelta);
|
||||
void AroundPoint(_float fTimeDelta);
|
||||
HRESULT Load_RanrokPos(const _char* pFilePath);
|
||||
|
||||
@@ -33,6 +33,10 @@ class CSpellLearn final : public CElementObject
|
||||
|
||||
public:
|
||||
HRESULT Change_Image(_int SpellID);
|
||||
void Set_Pointer(class CSpellLearn_MovePointer* Pointer, class CSpellLearn_ChaserPointer* Chase);
|
||||
|
||||
private:
|
||||
void Clear();
|
||||
|
||||
private:
|
||||
CInfoInstance* m_pInfoInstance = { nullptr };
|
||||
@@ -42,6 +46,25 @@ class CSpellLearn final : public CElementObject
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
||||
|
||||
class CSpellLearn_MovePointer* m_pPointer = { nullptr };
|
||||
class CSpellLearn_ChaserPointer* m_pChasePointer = { nullptr };
|
||||
|
||||
_float2 m_vPointerPosition{};
|
||||
_float3 m_vPointerScale{};
|
||||
|
||||
_float2 m_vChasePosition{};
|
||||
_float3 m_vChaseScale{};
|
||||
|
||||
_bool m_bReset{};
|
||||
|
||||
_int m_iIndex{};
|
||||
_int m_iTrailIndex{};
|
||||
vector<_float2> m_Trail;
|
||||
|
||||
_int m_iChaseiTrailIndex{};
|
||||
vector<_float2> m_ChaseTrail;
|
||||
vector<_vector> m_MoveLine;
|
||||
|
||||
public:
|
||||
static CSpellLearn* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
|
||||
@@ -0,0 +1,72 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "ElementObject.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
class CTexture;
|
||||
class CShader;
|
||||
class CVIBuffer_Rect;
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CSpellLearn_Booster final : public CElementObject
|
||||
{
|
||||
private:
|
||||
struct Booster
|
||||
{
|
||||
_bool bBoosterOn = { false };
|
||||
_int iBoosterIndex{};
|
||||
};
|
||||
private:
|
||||
CSpellLearn_Booster(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CSpellLearn_Booster(const CSpellLearn_Booster& rhs);
|
||||
virtual ~CSpellLearn_Booster() = default;
|
||||
|
||||
public:
|
||||
virtual void Priority_Update(_float fTimeDelta);
|
||||
virtual void Update(_float fTimeDelta);
|
||||
virtual void Late_Update(_float fTimeDelta);
|
||||
virtual HRESULT Render() override;
|
||||
virtual _vector Get_WorldPostion() override;
|
||||
|
||||
private:
|
||||
virtual HRESULT Bind_ShaderResources() override;
|
||||
virtual HRESULT Ready_Components(void* pArg) override;
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
|
||||
public:
|
||||
void BoosterOn(void* pArg);
|
||||
void BoosterOff(void* pArg);
|
||||
|
||||
void Set_Index(_int iIndex);
|
||||
void Reset();
|
||||
|
||||
private:
|
||||
void Clear();
|
||||
|
||||
private:
|
||||
CInfoInstance* m_pInfoInstance = { nullptr };
|
||||
CTexture* m_pDiffuse_TextureCom = { nullptr };
|
||||
CTexture* m_pDiffuse_TextureCom1 = { nullptr };
|
||||
CTexture* m_pDiffuse_TextureCom2 = { nullptr };
|
||||
CTexture* m_pDiffuse_TextureCom3 = { nullptr };
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
||||
|
||||
_bool m_bBoosterOn = { false };
|
||||
_bool m_bBoosterOff = { false };
|
||||
_float4 m_fImagePosi{};
|
||||
_int m_iIndex{};
|
||||
public:
|
||||
static CSpellLearn_Booster* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
virtual void Free() override;
|
||||
#ifdef _DEBUG
|
||||
void Describe_Entity() override;
|
||||
#endif // _DEBUG
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -0,0 +1,65 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "ElementObject.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
class CTexture;
|
||||
class CShader;
|
||||
class CVIBuffer_Rect;
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CSpellLearn_ChaserPointer final : public CElementObject
|
||||
{
|
||||
private:
|
||||
CSpellLearn_ChaserPointer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CSpellLearn_ChaserPointer(const CSpellLearn_ChaserPointer& rhs);
|
||||
virtual ~CSpellLearn_ChaserPointer() = default;
|
||||
|
||||
public:
|
||||
virtual void Priority_Update(_float fTimeDelta);
|
||||
virtual void Update(_float fTimeDelta);
|
||||
virtual void Late_Update(_float fTimeDelta);
|
||||
virtual HRESULT Render() override;
|
||||
virtual _vector Get_WorldPostion() override;
|
||||
|
||||
private:
|
||||
virtual HRESULT Bind_ShaderResources() override;
|
||||
virtual HRESULT Ready_Components(void* pArg) override;
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
|
||||
public:
|
||||
void Set_SpellLearn(_int Index);
|
||||
void Set_Move();
|
||||
private:
|
||||
void Line(_float fTime);
|
||||
void SpeedUp();
|
||||
void Clear();
|
||||
|
||||
private:
|
||||
CInfoInstance* m_pInfoInstance = { nullptr };
|
||||
CTexture* m_pDiffuse_TextureCom = { nullptr };
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
||||
|
||||
|
||||
_bool m_bMoveStart = { false };
|
||||
|
||||
_int m_iLineIndex{};
|
||||
_int m_iCurrentLine{};
|
||||
vector<_vector> m_MoveLine;
|
||||
|
||||
public:
|
||||
static CSpellLearn_ChaserPointer* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
virtual void Free() override;
|
||||
|
||||
#ifdef _DEBUG
|
||||
void Describe_Entity() override;
|
||||
#endif // _DEBUG
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -0,0 +1,59 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "ElementObject.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
class CTexture;
|
||||
class CShader;
|
||||
class CVIBuffer_Rect;
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CSpellLearn_LookPointer final : public CElementObject
|
||||
{
|
||||
private:
|
||||
CSpellLearn_LookPointer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CSpellLearn_LookPointer(const CSpellLearn_LookPointer& rhs);
|
||||
virtual ~CSpellLearn_LookPointer() = default;
|
||||
|
||||
public:
|
||||
virtual void Priority_Update(_float fTimeDelta);
|
||||
virtual void Update(_float fTimeDelta);
|
||||
virtual void Late_Update(_float fTimeDelta);
|
||||
virtual HRESULT Render() override;
|
||||
virtual _vector Get_WorldPostion() override;
|
||||
|
||||
private:
|
||||
virtual HRESULT Bind_ShaderResources() override;
|
||||
virtual HRESULT Ready_Components(void* pArg) override;
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
|
||||
public:
|
||||
void Set_SpellLearn(_int Index);
|
||||
|
||||
private:
|
||||
CTexture* m_pDiffuse_TextureCom = { nullptr };
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
||||
|
||||
|
||||
_bool m_bMoveStart = { false };
|
||||
|
||||
_int m_iLineIndex{};
|
||||
_int m_iCurrentLine{};
|
||||
vector<_vector> m_MoveLine;
|
||||
_float m_localX{};
|
||||
_float m_localY{};
|
||||
public:
|
||||
static CSpellLearn_LookPointer* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
virtual void Free() override;
|
||||
#ifdef _DEBUG
|
||||
void Describe_Entity() override;
|
||||
#endif // _DEBUG
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -13,6 +13,12 @@ NS_BEGIN(Client)
|
||||
|
||||
class CSpellLearn_MovePointer final : public CElementObject
|
||||
{
|
||||
private:
|
||||
struct Booster
|
||||
{
|
||||
_bool bBoosterOn = { false };
|
||||
_int iBoosterIndex{};
|
||||
};
|
||||
private:
|
||||
CSpellLearn_MovePointer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CSpellLearn_MovePointer(const CSpellLearn_MovePointer& rhs);
|
||||
@@ -33,8 +39,12 @@ class CSpellLearn_MovePointer final : public CElementObject
|
||||
|
||||
public:
|
||||
void Set_SpellLearn(_int Index);
|
||||
_int Get_SpellTrail();
|
||||
_bool Get_MoveStart();
|
||||
private:
|
||||
void Line(_float fTime);
|
||||
void Line(_float fTime, _float2 fMouse);
|
||||
|
||||
void Set_Booster(void* pArg);
|
||||
|
||||
|
||||
private:
|
||||
@@ -43,11 +53,17 @@ class CSpellLearn_MovePointer final : public CElementObject
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
||||
|
||||
class SpellLearm_LookPointer* m_pSpellLeam_LookPointer = { nullptr };
|
||||
|
||||
_bool m_bMoveStart = { false };
|
||||
_bool m_bBooster = { false };
|
||||
|
||||
Booster m_Booster;
|
||||
|
||||
_int m_iLineIndex{};
|
||||
_int m_iCurrentLine{};
|
||||
vector<_vector> m_MoveLine;
|
||||
vector<_vector> m_Boosters;
|
||||
|
||||
public:
|
||||
static CSpellLearn_MovePointer* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
|
||||
@@ -0,0 +1,72 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "ElementObject.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
class CTexture;
|
||||
class CShader;
|
||||
class CVIBuffer_Rect;
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CSpellLearn_Overlay final : public CElementObject
|
||||
{
|
||||
private:
|
||||
CSpellLearn_Overlay(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CSpellLearn_Overlay(const CSpellLearn_Overlay& rhs);
|
||||
virtual ~CSpellLearn_Overlay() = default;
|
||||
|
||||
public:
|
||||
virtual void Priority_Update(_float fTimeDelta);
|
||||
virtual void Update(_float fTimeDelta);
|
||||
virtual void Late_Update(_float fTimeDelta);
|
||||
virtual HRESULT Render() override;
|
||||
virtual _vector Get_WorldPostion() override;
|
||||
|
||||
|
||||
private:
|
||||
virtual HRESULT Bind_ShaderResources() override;
|
||||
virtual HRESULT Ready_Components(void* pArg) override;
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
|
||||
public:
|
||||
void Set_SpellLearn(_int Index);
|
||||
void Set_Count(_int Index);
|
||||
|
||||
private:
|
||||
void Clear();
|
||||
void Compute_UI(_uint SpellID);
|
||||
void Update_Trail(_float fTimeaDalta);
|
||||
void SizeUp(_float fSizeX);
|
||||
private:
|
||||
CInfoInstance* m_pInfoInstance = { nullptr };
|
||||
CTexture* m_pDiffuse_TextureCom = { nullptr };
|
||||
CTexture* m_pDiffuse_TextureCom1 = { nullptr };
|
||||
CTexture* m_pDiffuse_TextureCom2 = { nullptr };
|
||||
CTexture* m_pDiffuse_TextureCom3 = { nullptr };
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
||||
|
||||
_int m_iImageFrameX{};
|
||||
_int m_iImageFrameY{};
|
||||
_float m_fFrame{};
|
||||
_float4 m_vUV{};
|
||||
|
||||
_float m_fSpellLearn{};
|
||||
_float m_fTrail{};
|
||||
_float m_fTargetTrail{};
|
||||
_bool m_bClear = { false };
|
||||
_bool m_fSizeUp = { false };
|
||||
public:
|
||||
static CSpellLearn_Overlay* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
virtual void Free() override;
|
||||
#ifdef _DEBUG
|
||||
void Describe_Entity() override;
|
||||
#endif // _DEBUG
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -13,7 +13,17 @@ NS_BEGIN(Client)
|
||||
|
||||
class CSpellLearn_Panel final : public CPanelObject
|
||||
{
|
||||
|
||||
private:
|
||||
struct Booster
|
||||
{
|
||||
_bool bBoosterOn = { false };
|
||||
_int iBoosterIndex{};
|
||||
};
|
||||
struct State
|
||||
{
|
||||
_bool bHit = { false };
|
||||
_bool bPerHit = { false };
|
||||
};
|
||||
private:
|
||||
CSpellLearn_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CSpellLearn_Panel(const CSpellLearn_Panel& rhs);
|
||||
@@ -33,6 +43,9 @@ class CSpellLearn_Panel final : public CPanelObject
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
|
||||
public:
|
||||
void Set_Learn(_int Index);
|
||||
|
||||
private:
|
||||
CTexture* m_pDiffuse_TextureCom = { nullptr };
|
||||
CTexture* m_pDiffuse_TextureCom1 = { nullptr };
|
||||
@@ -46,10 +59,18 @@ class CSpellLearn_Panel final : public CPanelObject
|
||||
CGameObject* m_pSpellLearn_Name = { nullptr };
|
||||
CGameObject* m_pSpellLearn = { nullptr };
|
||||
CGameObject* m_pSpellLearn_MovePointer = { nullptr };
|
||||
CGameObject* m_pSpellLearn_ChaserPointer = { nullptr };
|
||||
CGameObject* m_pSpellLearn_Data = { nullptr };
|
||||
CGameObject* m_pSpellLearn_Booster = { nullptr };
|
||||
CGameObject* m_pSpellLearn_Slot = { nullptr };
|
||||
CGameObject* m_pSpellLearn_Overlay = { nullptr };
|
||||
|
||||
_int Index{};
|
||||
|
||||
vector<CGameObject*> m_pBooster;
|
||||
Booster m_Booster;
|
||||
State m_State;
|
||||
vector<State> m_PointerStates;
|
||||
vector<State> m_ChaseStates;
|
||||
public:
|
||||
static CSpellLearn_Panel* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
|
||||
@@ -0,0 +1,58 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "ElementObject.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
class CTexture;
|
||||
class CShader;
|
||||
class CVIBuffer_Rect;
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CSpellLearn_Slot final : public CElementObject
|
||||
{
|
||||
private:
|
||||
CSpellLearn_Slot(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CSpellLearn_Slot(const CSpellLearn_Slot& rhs);
|
||||
virtual ~CSpellLearn_Slot() = default;
|
||||
|
||||
public:
|
||||
virtual void Priority_Update(_float fTimeDelta);
|
||||
virtual void Update(_float fTimeDelta);
|
||||
virtual void Late_Update(_float fTimeDelta);
|
||||
virtual HRESULT Render() override;
|
||||
virtual _vector Get_WorldPostion() override;
|
||||
|
||||
|
||||
private:
|
||||
virtual HRESULT Bind_ShaderResources() override;
|
||||
virtual HRESULT Ready_Components(void* pArg) override;
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
|
||||
public:
|
||||
void Set_SpellLearn(_int Index);
|
||||
void Clear();
|
||||
|
||||
private:
|
||||
void SizeUp(_float fSizeX);
|
||||
private:
|
||||
CInfoInstance* m_pInfoInstance = { nullptr };
|
||||
CTexture* m_pDiffuse_TextureCom = { nullptr };
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
||||
|
||||
_bool m_bClear = { false };
|
||||
_bool m_fSizeUp = { false };
|
||||
public:
|
||||
static CSpellLearn_Slot* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
virtual void Free() override;
|
||||
#ifdef _DEBUG
|
||||
void Describe_Entity() override;
|
||||
#endif // _DEBUG
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -0,0 +1,36 @@
|
||||
#pragma once
|
||||
#include "Client_Define.h"
|
||||
#include "State_Root.h"
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CState_Fall final : public CState_Root
|
||||
{
|
||||
public:
|
||||
typedef struct tagFall : public CState_Root::STATE_ROOT_DESC {
|
||||
function<void(_float fTimeDelta)> funcPriorityUpdate = { nullptr };
|
||||
function<void(_float fTimeDelta)> funcLateUpdate = { nullptr };
|
||||
}STATE_FALL_DESC;
|
||||
public:
|
||||
CState_Fall();
|
||||
virtual ~CState_Fall() = default;
|
||||
|
||||
public:
|
||||
virtual void Enter();
|
||||
virtual HRESULT Update(_float fTimeDelta);
|
||||
virtual void Exit();
|
||||
|
||||
private:
|
||||
function<void(_float fTimeDelta)> m_funcPriorityUpdate = { nullptr };
|
||||
function<void(_float fTimeDelta)> m_funcLateUpdate = { nullptr };
|
||||
|
||||
private:
|
||||
HRESULT Initialize(STATE_FALL_DESC* pDesc);
|
||||
|
||||
public:
|
||||
static CState_Fall* Create(STATE_FALL_DESC* pDesc);
|
||||
virtual void Free() override;
|
||||
virtual void Describe_Entity();
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -1,28 +1,256 @@
|
||||
<SpellLearnInfo>
|
||||
<SpellLearnData>
|
||||
<Name SpellName="봄바르다" ImageName="Bombarda" Size="550" x="730" y="200">
|
||||
<Name SpellName="봄바르다" ImageName="Bombarda" SpellID="11" SpellType="2" Size="550" x="730" y="200" endx="522" endy="-42">
|
||||
<Booster>
|
||||
<Pos x="622" y="60"/>
|
||||
</Booster>
|
||||
<Booster>
|
||||
<Pos x="810" y="-187"/>
|
||||
</Booster>
|
||||
<Booster>
|
||||
<Pos x="390" y="-187"/>
|
||||
</Booster>
|
||||
<Position>
|
||||
<Pos x="625" y="60"/>
|
||||
<Pos x="730" y="200"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="810" y="-185"/>
|
||||
<Pos x="707" y="170"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="395" y="-185"/>
|
||||
<Pos x="683.5" y="140"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="515" y="-45"/>
|
||||
<Pos x="668" y="120"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="652.5" y="100"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="636" y="80"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="622" y="60"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="636.5" y="40"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="652" y="20"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="666.5" y="0"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="682.5" y="-20"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="698" y="-40"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="713.5" y="-60"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="728.5" y="-80"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="744" y="-100"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="759" y="-120"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="774.5" y="-140"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="790" y="-160"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="805.5" y="-180"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="811.5" y="-189"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="790" y="-187"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="760" y="-187"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="730" y="-187"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="700" y="-187"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="670" y="-187"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="640" y="-187"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="610" y="-187"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="580" y="-187"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="550" y="-187"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="520" y="-187"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="490" y="-187"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="460" y="-187"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="430" y="-187"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="400" y="-187"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="390" y="-187"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="416" y="-157"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="441.5" y="-130"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="468" y="-100"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="496" y="-70"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="516" y="-50"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="522" y="-42"/>
|
||||
</Position>
|
||||
</Name>
|
||||
<Name SpellName="루모스" ImageName="Lumos" Size="520" x="410" y="-210">
|
||||
<Name SpellName="루모스" ImageName="Lumos" SpellID="14" SpellType="3" Size="520" x="408.5" y="-218" endx="791.5" endy="-235">
|
||||
<Booster>
|
||||
<Pos x="501.5" y="-10"/>
|
||||
</Booster>
|
||||
<Booster>
|
||||
<Pos x="598.5" y="205"/>
|
||||
</Booster>
|
||||
<Booster>
|
||||
<Pos x="693" y="-10"/>
|
||||
</Booster>
|
||||
<Position>
|
||||
<Pos x="600" y="200"/>
|
||||
<Pos x="408.5" y="-218"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="790" y="-230"/>
|
||||
<Pos x="420" y="-192"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="434.5" y="-160"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="448" y="-130"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="461.5" y="-100"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="475" y="-70"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="488.5" y="-40"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="501.5" y="-10"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="515" y="20"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="529" y="50"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="542" y="80"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="556" y="110"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="565" y="130"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="574" y="150"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="587" y="180"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="598.5" y="205"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="609.5" y="180"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="622.5" y="150"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="630.5" y="130"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="640" y="110"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="653.5" y="80"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="666.5" y="50"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="679.5" y="20"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="693" y="-10"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="706" y="-40"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="719.5" y="-70"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="732.5" y="-100"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="746" y="-130"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="759" y="-160"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="772.5" y="-190"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="785.5" y="-220"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="791.5" y="-235"/>
|
||||
</Position>
|
||||
</Name>
|
||||
<Name SpellName="아씨오" ImageName="Accio" Size="520" x="852" y="-120">
|
||||
<Name SpellName="아씨오" ImageName="Accio" SpellID="4" SpellType="1" Size="520" x="852" y="-120" endx="347" endy="-71">
|
||||
<Booster>
|
||||
<Pos x="794" y="18"/>
|
||||
</Booster>
|
||||
<Booster>
|
||||
<Pos x="623" y="109"/>
|
||||
</Booster>
|
||||
<Booster>
|
||||
<Pos x="431" y="56"/>
|
||||
</Booster>
|
||||
<Position>
|
||||
<Pos x="848" y="-100"/>
|
||||
</Position>
|
||||
@@ -87,9 +315,60 @@
|
||||
<Pos x="347" y="-71"/>
|
||||
</Position>
|
||||
</Name>
|
||||
<Name SpellName="디센도" ImageName="Descendo" Size="520" x="453" y="-245">
|
||||
<Name SpellName="디센도" ImageName="Descendo" SpellID="6" SpellType="1" Size="520" x="453" y="-245" endx="580" endy="-68">
|
||||
<Booster>
|
||||
<Pos x="453" y="0"/>
|
||||
</Booster>
|
||||
<Booster>
|
||||
<Pos x="550" y="222"/>
|
||||
</Booster>
|
||||
<Booster>
|
||||
<Pos x="744" y="101"/>
|
||||
</Booster>
|
||||
<Position>
|
||||
<Pos x="453" y="90"/>
|
||||
<Pos x="453" y="-222.5"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="453" y="-200"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="453" y="-177.5"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="453" y="-155"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="453" y="-132.5"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="453" y="-110"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="453" y="-87.5"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="453" y="-65"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="453" y="-42.5"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="453" y="-20"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="453" y="2.5"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="453" y="25"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="453" y="47.5"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="453" y="70"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="453" y="92.5"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="458" y="122"/>
|
||||
@@ -158,7 +437,58 @@
|
||||
<Pos x="580" y="-68"/>
|
||||
</Position>
|
||||
</Name>
|
||||
<Name SpellName="레벨리오" ImageName="Revelio" Size="550" x="454" y="-240">
|
||||
<Name SpellName="레벨리오" ImageName="Revelio" SpellID="26" SpellType="3" Size="550" x="454" y="-240" endx="710" endy="-189">
|
||||
<Booster>
|
||||
<Pos x="454" y="0"/>
|
||||
</Booster>
|
||||
<Booster>
|
||||
<Pos x="550" y="222"/>
|
||||
</Booster>
|
||||
<Booster>
|
||||
<Pos x="738" y="36"/>
|
||||
</Booster>
|
||||
<Position>
|
||||
<Pos x="454" y="-218"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="454" y="-196"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="454" y="-174"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="454" y="-152"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="454" y="-130"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="454" y="-108"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="454" y="-86"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="454" y="-64"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="454" y="-42"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="454" y="-20"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="454" y="2"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="454" y="24"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="454" y="46"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="454" y="68"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="454" y="90"/>
|
||||
</Position>
|
||||
@@ -244,10 +574,58 @@
|
||||
<Pos x="710" y="-189"/>
|
||||
</Position>
|
||||
</Name>
|
||||
<Name SpellName="레비오소" ImageName="Levioso" Size="550" x="476" y="-253">
|
||||
<Name SpellName="레비오소" ImageName="Levioso" SpellID="2" SpellType="0" Size="550" x="476" y="-253" endx="528" endy="265">
|
||||
<Booster>
|
||||
<Pos x="735" y="-172"/>
|
||||
</Booster>
|
||||
<Booster>
|
||||
<Pos x="475" y="-45"/>
|
||||
</Booster>
|
||||
<Booster>
|
||||
<Pos x="475" y="120"/>
|
||||
</Booster>
|
||||
<Position>
|
||||
<Pos x="502" y="-253"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="528" y="-253"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="554" y="-253"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="580" y="-253"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="606" y="-253"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="632" y="-253"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="658" y="-253"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="684" y="-253"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="710" y="-253"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="735" y="-253"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="735" y="-237"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="735" y="-221"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="735" y="-205"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="735" y="-189"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="735" y="-172"/>
|
||||
</Position>
|
||||
@@ -336,5 +714,162 @@
|
||||
<Pos x="528" y="265"/>
|
||||
</Position>
|
||||
</Name>
|
||||
<Name SpellName="변 신" ImageName="Transformation" SpellID="3" SpellType="0" Size="520" x="827.5" y="95" endx="372" endy="75">
|
||||
<Booster>
|
||||
<Pos x="776" y="-10"/>
|
||||
</Booster>
|
||||
<Booster>
|
||||
<Pos x="600" y="-89.5"/>
|
||||
</Booster>
|
||||
<Booster>
|
||||
<Pos x="420" y="-16"/>
|
||||
</Booster>
|
||||
<Position>
|
||||
<Pos x="821" y="75"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="812" y="50"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="796.5" y="20"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="776" y="-10"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="750" y="-37.5"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="720" y="-59.5"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="690" y="-74.5"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="660" y="-84"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="630" y="-88.5"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="600" y="-89.5"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="570" y="-87.5"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="540" y="-83"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="510" y="-74.5"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="480" y="-61.5"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="450" y="-44"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="420" y="-16"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="400.5" y="10"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="384" y="40"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="378" y="55"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="372" y="75"/>
|
||||
</Position>
|
||||
</Name>
|
||||
<Name SpellName="아바다 케다브라" ImageName="AvadaKedavra" SpellID="20" SpellType="5" Size="640" x="627.5" y="214" endx="624" endy="-213">
|
||||
<Booster>
|
||||
<Pos x="481" y="-12"/>
|
||||
</Booster>
|
||||
<Booster>
|
||||
<Pos x="725" y="51"/>
|
||||
</Booster>
|
||||
<Booster>
|
||||
<Pos x="667.5" y="-100"/>
|
||||
</Booster>
|
||||
<Position>
|
||||
<Pos x="612.5" y="190"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="593" y="160"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="573.5" y="130"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="554.5" y="100"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="534.5" y="70"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="515" y="40"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="496" y="10"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="481" y="-12"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="520" y="-2.5"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="550" y="6.5"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="580" y="14"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="610" y="21.5"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="640" y="29"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="670" y="37"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="700" y="45"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="725" y="51"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="714" y="21"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="702" y="-10"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="690" y="-40"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="679" y="-70"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="667.5" y="-100"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="656" y="-130"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="644" y="-160"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="633" y="-190"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="624" y="-213"/>
|
||||
</Position>
|
||||
</Name>
|
||||
</SpellLearnData>
|
||||
</SpellLearnInfo>
|
||||
|
||||
BIN
Binary file not shown.
|
After Width: | Height: | Size: 69 B |
@@ -0,0 +1,234 @@
|
||||
<Material>
|
||||
<MI_Professor_EleazarFig_Hair ShaderIndex = "5" OutLineWrite="5">
|
||||
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
|
||||
<aiTextureType_DIFFUSE Index="1" Filename="T_Old_M_Hair_Fig_DAO_MSK" Extension=".dds"/>
|
||||
<aiTextureType_SPECULAR Index="2" Filename="" Extension=""/>
|
||||
<aiTextureType_AMBIENT Index="3" Filename="" Extension=""/>
|
||||
<aiTextureType_EMISSIVE Index="4" Filename="" Extension=""/>
|
||||
<aiTextureType_HEIGHT Index="5" Filename="" Extension=""/>
|
||||
<aiTextureType_NORMALS Index="6" Filename="T_DefaultGrey_D" Extension=".png"/>
|
||||
<aiTextureType_SHININESS Index="7" Filename="" Extension=""/>
|
||||
<aiTextureType_OPACITY Index="8" Filename="" Extension=""/>
|
||||
<aiTextureType_DISPLACEMENT Index="9" Filename="T_Old_M_Hair_Fig_THV_MSK" Extension=".dds"/>
|
||||
<aiTextureType_LIGHTMAP Index="10" Filename="" Extension=""/>
|
||||
<aiTextureType_REFLECTION Index="11" Filename="" Extension=""/>
|
||||
<aiTextureType_BASE_COLOR Index="12" Filename="" Extension=""/>
|
||||
<aiTextureType_NORMAL_CAMERA Index="13" Filename="" Extension=""/>
|
||||
<aiTextureType_EMISSION_COLOR Index="14" Filename="" Extension=""/>
|
||||
<aiTextureType_METALNESS Index="15" Filename="" Extension=""/>
|
||||
<aiTextureType_DIFFUSE_ROUGHNESS Index="16" Filename="" Extension=""/>
|
||||
<aiTextureType_AMBIENT_OCCLUSION Index="17" Filename="" Extension=""/>
|
||||
<aiTextureType_UNKNOWN Index="18" Filename="" Extension=""/>
|
||||
<aiTextureType_SHEEN Index="19" Filename="" Extension=""/>
|
||||
<aiTextureType_CLEARCOAT Index="20" Filename="" Extension=""/>
|
||||
<aiTextureType_TRANSMISSION Index="21" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_BASE Index="22" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR Index="23" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR_COLOR Index="24" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR_ROUGHNESS Index="25" Filename="" Extension=""/>
|
||||
<aiTextureType_ANISOTROPY Index="26" Filename="" Extension=""/>
|
||||
</MI_Professor_EleazarFig_Hair>
|
||||
<MI_HUM_N_Heads_Eye ShaderIndex = "2" OutLineWrite="2">
|
||||
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
|
||||
<aiTextureType_DIFFUSE Index="1" Filename="T_Eye_Iris_D" Extension=".dds"/>
|
||||
<aiTextureType_SPECULAR Index="2" Filename="" Extension=""/>
|
||||
<aiTextureType_AMBIENT Index="3" Filename="" Extension=""/>
|
||||
<aiTextureType_EMISSIVE Index="4" Filename="" Extension=""/>
|
||||
<aiTextureType_HEIGHT Index="5" Filename="" Extension=""/>
|
||||
<aiTextureType_NORMALS Index="6" Filename="BaseFlattenNormalMap" Extension=".png"/>
|
||||
<aiTextureType_SHININESS Index="7" Filename="" Extension=""/>
|
||||
<aiTextureType_OPACITY Index="8" Filename="" Extension=""/>
|
||||
<aiTextureType_DISPLACEMENT Index="9" Filename="" Extension=""/>
|
||||
<aiTextureType_LIGHTMAP Index="10" Filename="" Extension=""/>
|
||||
<aiTextureType_REFLECTION Index="11" Filename="" Extension=""/>
|
||||
<aiTextureType_BASE_COLOR Index="12" Filename="" Extension=""/>
|
||||
<aiTextureType_NORMAL_CAMERA Index="13" Filename="" Extension=""/>
|
||||
<aiTextureType_EMISSION_COLOR Index="14" Filename="" Extension=""/>
|
||||
<aiTextureType_METALNESS Index="15" Filename="" Extension=""/>
|
||||
<aiTextureType_DIFFUSE_ROUGHNESS Index="16" Filename="" Extension=""/>
|
||||
<aiTextureType_AMBIENT_OCCLUSION Index="17" Filename="" Extension=""/>
|
||||
<aiTextureType_UNKNOWN Index="18" Filename="" Extension=""/>
|
||||
<aiTextureType_SHEEN Index="19" Filename="" Extension=""/>
|
||||
<aiTextureType_CLEARCOAT Index="20" Filename="" Extension=""/>
|
||||
<aiTextureType_TRANSMISSION Index="21" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_BASE Index="22" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR Index="23" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR_COLOR Index="24" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR_ROUGHNESS Index="25" Filename="" Extension=""/>
|
||||
<aiTextureType_ANISOTROPY Index="26" Filename="" Extension=""/>
|
||||
</MI_HUM_N_Heads_Eye>
|
||||
<MI_HUM_N_Heads_Eyelash ShaderIndex = "0" OutLineWrite="0">
|
||||
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
|
||||
<aiTextureType_DIFFUSE Index="1" Filename="" Extension=""/>
|
||||
<aiTextureType_SPECULAR Index="2" Filename="" Extension=""/>
|
||||
<aiTextureType_AMBIENT Index="3" Filename="" Extension=""/>
|
||||
<aiTextureType_EMISSIVE Index="4" Filename="" Extension=""/>
|
||||
<aiTextureType_HEIGHT Index="5" Filename="" Extension=""/>
|
||||
<aiTextureType_NORMALS Index="6" Filename="" Extension=""/>
|
||||
<aiTextureType_SHININESS Index="7" Filename="" Extension=""/>
|
||||
<aiTextureType_OPACITY Index="8" Filename="" Extension=""/>
|
||||
<aiTextureType_DISPLACEMENT Index="9" Filename="" Extension=""/>
|
||||
<aiTextureType_LIGHTMAP Index="10" Filename="" Extension=""/>
|
||||
<aiTextureType_REFLECTION Index="11" Filename="" Extension=""/>
|
||||
<aiTextureType_BASE_COLOR Index="12" Filename="" Extension=""/>
|
||||
<aiTextureType_NORMAL_CAMERA Index="13" Filename="" Extension=""/>
|
||||
<aiTextureType_EMISSION_COLOR Index="14" Filename="" Extension=""/>
|
||||
<aiTextureType_METALNESS Index="15" Filename="" Extension=""/>
|
||||
<aiTextureType_DIFFUSE_ROUGHNESS Index="16" Filename="" Extension=""/>
|
||||
<aiTextureType_AMBIENT_OCCLUSION Index="17" Filename="" Extension=""/>
|
||||
<aiTextureType_UNKNOWN Index="18" Filename="" Extension=""/>
|
||||
<aiTextureType_SHEEN Index="19" Filename="" Extension=""/>
|
||||
<aiTextureType_CLEARCOAT Index="20" Filename="" Extension=""/>
|
||||
<aiTextureType_TRANSMISSION Index="21" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_BASE Index="22" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR Index="23" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR_COLOR Index="24" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR_ROUGHNESS Index="25" Filename="" Extension=""/>
|
||||
<aiTextureType_ANISOTROPY Index="26" Filename="" Extension=""/>
|
||||
</MI_HUM_N_Heads_Eyelash>
|
||||
<MI_HUM_N_Heads_Teeth ShaderIndex = "1" OutLineWrite="1">
|
||||
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
|
||||
<aiTextureType_DIFFUSE Index="1" Filename="T_HUM_Head_Teeth_D" Extension=".dds"/>
|
||||
<aiTextureType_SPECULAR Index="2" Filename="" Extension=""/>
|
||||
<aiTextureType_AMBIENT Index="3" Filename="" Extension=""/>
|
||||
<aiTextureType_EMISSIVE Index="4" Filename="" Extension=""/>
|
||||
<aiTextureType_HEIGHT Index="5" Filename="" Extension=""/>
|
||||
<aiTextureType_NORMALS Index="6" Filename="T_HUM_Head_Teeth_N" Extension=".dds"/>
|
||||
<aiTextureType_SHININESS Index="7" Filename="" Extension=""/>
|
||||
<aiTextureType_OPACITY Index="8" Filename="" Extension=""/>
|
||||
<aiTextureType_DISPLACEMENT Index="9" Filename="T_Old_M_Hair_Fig_THV_MSK" Extension=".dds"/>
|
||||
<aiTextureType_LIGHTMAP Index="10" Filename="" Extension=""/>
|
||||
<aiTextureType_REFLECTION Index="11" Filename="" Extension=""/>
|
||||
<aiTextureType_BASE_COLOR Index="12" Filename="" Extension=""/>
|
||||
<aiTextureType_NORMAL_CAMERA Index="13" Filename="" Extension=""/>
|
||||
<aiTextureType_EMISSION_COLOR Index="14" Filename="" Extension=""/>
|
||||
<aiTextureType_METALNESS Index="15" Filename="" Extension=""/>
|
||||
<aiTextureType_DIFFUSE_ROUGHNESS Index="16" Filename="" Extension=""/>
|
||||
<aiTextureType_AMBIENT_OCCLUSION Index="17" Filename="" Extension=""/>
|
||||
<aiTextureType_UNKNOWN Index="18" Filename="" Extension=""/>
|
||||
<aiTextureType_SHEEN Index="19" Filename="" Extension=""/>
|
||||
<aiTextureType_CLEARCOAT Index="20" Filename="" Extension=""/>
|
||||
<aiTextureType_TRANSMISSION Index="21" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_BASE Index="22" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR Index="23" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR_COLOR Index="24" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR_ROUGHNESS Index="25" Filename="" Extension=""/>
|
||||
<aiTextureType_ANISOTROPY Index="26" Filename="T_HUM_Head_Teeth_SRXO" Extension=".dds"/>
|
||||
</MI_HUM_N_Heads_Teeth>
|
||||
<MI_HUM_N_Heads_EyeOcclusion ShaderIndex = "3" OutLineWrite="3">
|
||||
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
|
||||
<aiTextureType_DIFFUSE Index="1" Filename="T_Eye_Sclera_D" Extension=".png"/>
|
||||
<aiTextureType_SPECULAR Index="2" Filename="" Extension=""/>
|
||||
<aiTextureType_AMBIENT Index="3" Filename="" Extension=""/>
|
||||
<aiTextureType_EMISSIVE Index="4" Filename="" Extension=""/>
|
||||
<aiTextureType_HEIGHT Index="5" Filename="" Extension=""/>
|
||||
<aiTextureType_NORMALS Index="6" Filename="BaseFlattenNormalMap" Extension=".png"/>
|
||||
<aiTextureType_SHININESS Index="7" Filename="" Extension=""/>
|
||||
<aiTextureType_OPACITY Index="8" Filename="" Extension=""/>
|
||||
<aiTextureType_DISPLACEMENT Index="9" Filename="" Extension=""/>
|
||||
<aiTextureType_LIGHTMAP Index="10" Filename="" Extension=""/>
|
||||
<aiTextureType_REFLECTION Index="11" Filename="" Extension=""/>
|
||||
<aiTextureType_BASE_COLOR Index="12" Filename="" Extension=""/>
|
||||
<aiTextureType_NORMAL_CAMERA Index="13" Filename="" Extension=""/>
|
||||
<aiTextureType_EMISSION_COLOR Index="14" Filename="" Extension=""/>
|
||||
<aiTextureType_METALNESS Index="15" Filename="" Extension=""/>
|
||||
<aiTextureType_DIFFUSE_ROUGHNESS Index="16" Filename="" Extension=""/>
|
||||
<aiTextureType_AMBIENT_OCCLUSION Index="17" Filename="" Extension=""/>
|
||||
<aiTextureType_UNKNOWN Index="18" Filename="" Extension=""/>
|
||||
<aiTextureType_SHEEN Index="19" Filename="" Extension=""/>
|
||||
<aiTextureType_CLEARCOAT Index="20" Filename="" Extension=""/>
|
||||
<aiTextureType_TRANSMISSION Index="21" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_BASE Index="22" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR Index="23" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR_COLOR Index="24" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR_ROUGHNESS Index="25" Filename="" Extension=""/>
|
||||
<aiTextureType_ANISOTROPY Index="26" Filename="" Extension=""/>
|
||||
</MI_HUM_N_Heads_EyeOcclusion>
|
||||
<MI_HUM_M_Arms_ArmsOld_Fig ShaderIndex = "6" OutLineWrite="6">
|
||||
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
|
||||
<aiTextureType_DIFFUSE Index="1" Filename="T_HUM_M_Body_ArmsOld01_Fig_D" Extension=".png"/>
|
||||
<aiTextureType_SPECULAR Index="2" Filename="" Extension=""/>
|
||||
<aiTextureType_AMBIENT Index="3" Filename="" Extension=""/>
|
||||
<aiTextureType_EMISSIVE Index="4" Filename="" Extension=""/>
|
||||
<aiTextureType_HEIGHT Index="5" Filename="" Extension=""/>
|
||||
<aiTextureType_NORMALS Index="6" Filename="T_HUM_M_Body_ArmsOld01_N" Extension=".dds"/>
|
||||
<aiTextureType_SHININESS Index="7" Filename="" Extension=""/>
|
||||
<aiTextureType_OPACITY Index="8" Filename="" Extension=""/>
|
||||
<aiTextureType_DISPLACEMENT Index="9" Filename="" Extension=""/>
|
||||
<aiTextureType_LIGHTMAP Index="10" Filename="" Extension=""/>
|
||||
<aiTextureType_REFLECTION Index="11" Filename="" Extension=""/>
|
||||
<aiTextureType_BASE_COLOR Index="12" Filename="" Extension=""/>
|
||||
<aiTextureType_NORMAL_CAMERA Index="13" Filename="" Extension=""/>
|
||||
<aiTextureType_EMISSION_COLOR Index="14" Filename="" Extension=""/>
|
||||
<aiTextureType_METALNESS Index="15" Filename="" Extension=""/>
|
||||
<aiTextureType_DIFFUSE_ROUGHNESS Index="16" Filename="" Extension=""/>
|
||||
<aiTextureType_AMBIENT_OCCLUSION Index="17" Filename="" Extension=""/>
|
||||
<aiTextureType_UNKNOWN Index="18" Filename="" Extension=""/>
|
||||
<aiTextureType_SHEEN Index="19" Filename="" Extension=""/>
|
||||
<aiTextureType_CLEARCOAT Index="20" Filename="" Extension=""/>
|
||||
<aiTextureType_TRANSMISSION Index="21" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_BASE Index="22" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR Index="23" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR_COLOR Index="24" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR_ROUGHNESS Index="25" Filename="" Extension=""/>
|
||||
<aiTextureType_ANISOTROPY Index="26" Filename="T_HUM_M_Body_ArmsOld0_Fig_SRXO" Extension=".dds"/>
|
||||
</MI_HUM_M_Arms_ArmsOld_Fig>
|
||||
<MI_Professor_EleazarFig_02 ShaderIndex = "20" OutLineWrite="21">
|
||||
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
|
||||
<aiTextureType_DIFFUSE Index="1" Filename="T_Professor_EleazarFig_D" Extension=".dds"/>
|
||||
<aiTextureType_SPECULAR Index="2" Filename="T_Professor_EleazaFig_SRO" Extension=".dds"/>
|
||||
<aiTextureType_AMBIENT Index="3" Filename="" Extension=""/>
|
||||
<aiTextureType_EMISSIVE Index="4" Filename="" Extension=""/>
|
||||
<aiTextureType_HEIGHT Index="5" Filename="" Extension=""/>
|
||||
<aiTextureType_NORMALS Index="6" Filename="T_Professor_EleazaFig_N" Extension=".dds"/>
|
||||
<aiTextureType_SHININESS Index="7" Filename="" Extension=""/>
|
||||
<aiTextureType_OPACITY Index="8" Filename="" Extension=""/>
|
||||
<aiTextureType_DISPLACEMENT Index="9" Filename="" Extension=""/>
|
||||
<aiTextureType_LIGHTMAP Index="10" Filename="" Extension=""/>
|
||||
<aiTextureType_REFLECTION Index="11" Filename="" Extension=""/>
|
||||
<aiTextureType_BASE_COLOR Index="12" Filename="" Extension=""/>
|
||||
<aiTextureType_NORMAL_CAMERA Index="13" Filename="" Extension=""/>
|
||||
<aiTextureType_EMISSION_COLOR Index="14" Filename="" Extension=""/>
|
||||
<aiTextureType_METALNESS Index="15" Filename="T_Professor_EleazarFig_MRO" Extension=".dds"/>
|
||||
<aiTextureType_DIFFUSE_ROUGHNESS Index="16" Filename="" Extension=""/>
|
||||
<aiTextureType_AMBIENT_OCCLUSION Index="17" Filename="" Extension=""/>
|
||||
<aiTextureType_UNKNOWN Index="18" Filename="" Extension=""/>
|
||||
<aiTextureType_SHEEN Index="19" Filename="" Extension=""/>
|
||||
<aiTextureType_CLEARCOAT Index="20" Filename="" Extension=""/>
|
||||
<aiTextureType_TRANSMISSION Index="21" Filename="T_Professor_EleazaFig_A" Extension=".dds"/>
|
||||
<aiTextureType_MAYA_BASE Index="22" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR Index="23" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR_COLOR Index="24" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR_ROUGHNESS Index="25" Filename="" Extension=""/>
|
||||
<aiTextureType_ANISOTROPY Index="26" Filename="T_Professor_EleazaFig_SRO" Extension=".dds"/>
|
||||
</MI_Professor_EleazarFig_02>
|
||||
<MI_Professor_EleazarFig_Lower_02 ShaderIndex = "8" OutLineWrite="22">
|
||||
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
|
||||
<aiTextureType_DIFFUSE Index="1" Filename="T_Professor_EleazarFig_Lower_D" Extension=".dds"/>
|
||||
<aiTextureType_SPECULAR Index="2" Filename="" Extension=""/>
|
||||
<aiTextureType_AMBIENT Index="3" Filename="" Extension=""/>
|
||||
<aiTextureType_EMISSIVE Index="4" Filename="" Extension=""/>
|
||||
<aiTextureType_HEIGHT Index="5" Filename="" Extension=""/>
|
||||
<aiTextureType_NORMALS Index="6" Filename="T_Professor_EleazarFig_Lower_N" Extension=".dds"/>
|
||||
<aiTextureType_SHININESS Index="7" Filename="" Extension=""/>
|
||||
<aiTextureType_OPACITY Index="8" Filename="" Extension=""/>
|
||||
<aiTextureType_DISPLACEMENT Index="9" Filename="" Extension=""/>
|
||||
<aiTextureType_LIGHTMAP Index="10" Filename="" Extension=""/>
|
||||
<aiTextureType_REFLECTION Index="11" Filename="" Extension=""/>
|
||||
<aiTextureType_BASE_COLOR Index="12" Filename="" Extension=""/>
|
||||
<aiTextureType_NORMAL_CAMERA Index="13" Filename="" Extension=""/>
|
||||
<aiTextureType_EMISSION_COLOR Index="14" Filename="" Extension=""/>
|
||||
<aiTextureType_METALNESS Index="15" Filename="T_Professor_EleazarFig_Lower_MRO" Extension=".dds"/>
|
||||
<aiTextureType_DIFFUSE_ROUGHNESS Index="16" Filename="" Extension=""/>
|
||||
<aiTextureType_AMBIENT_OCCLUSION Index="17" Filename="" Extension=""/>
|
||||
<aiTextureType_UNKNOWN Index="18" Filename="" Extension=""/>
|
||||
<aiTextureType_SHEEN Index="19" Filename="" Extension=""/>
|
||||
<aiTextureType_CLEARCOAT Index="20" Filename="" Extension=""/>
|
||||
<aiTextureType_TRANSMISSION Index="21" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_BASE Index="22" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR Index="23" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR_COLOR Index="24" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR_ROUGHNESS Index="25" Filename="" Extension=""/>
|
||||
<aiTextureType_ANISOTROPY Index="26" Filename="" Extension=""/>
|
||||
</MI_Professor_EleazarFig_Lower_02>
|
||||
</Material>
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 415 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 197 KiB |
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
|
After Width: | Height: | Size: 13 MiB |
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
|
After Width: | Height: | Size: 27 KiB |
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
LFS
BIN
Binary file not shown.
LFS
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user