@@ -1733,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;
|
||||
@@ -1827,8 +1828,8 @@ PS_OUT PS_SpellLearnColor(PS_IN In)
|
||||
float2 trailTopLeft = g_Trail[i];
|
||||
float2 trailCenter = trailTopLeft + itemSize / 2.0f;
|
||||
|
||||
float halfWidth = itemSize.x / 2.0f + 6.f;
|
||||
float halfHeight = itemSize.y / 2.0f + 6.f;
|
||||
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 &&
|
||||
|
||||
@@ -161,6 +161,8 @@ call Update_Resources.bat
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\Public\Action_Panel.h" />
|
||||
<ClInclude Include="..\Public\Barral_Splesh.h" />
|
||||
<ClInclude Include="..\Public\CallBack_NonPlayable_Behavior.h" />
|
||||
<ClInclude Include="..\Public\CallBack_NonPlayable_HitReport.h" />
|
||||
<ClInclude Include="..\Public\TransformationSide.h" />
|
||||
<ClInclude Include="..\Public\Transformation.h" />
|
||||
<ClInclude Include="..\Public\LightningSide.h" />
|
||||
@@ -389,6 +391,8 @@ call Update_Resources.bat
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\Private\Action_Panel.cpp" />
|
||||
<ClCompile Include="..\Private\CallBack_NonPlayable_Behavior.cpp" />
|
||||
<ClCompile Include="..\Private\CallBack_NonPlayable_HitReport.cpp" />
|
||||
<ClCompile Include="..\Private\TransformationSide.cpp" />
|
||||
<ClCompile Include="..\Private\Transformation.cpp" />
|
||||
<ClCompile Include="..\Private\LightningSide.cpp" />
|
||||
|
||||
@@ -688,7 +688,7 @@
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\TransformationSide.h">
|
||||
<Filter>02.GameObjects\Effect\Effects\Transformation\TransformationSide</Filter>
|
||||
</ClInclude>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\SpellLearn_Slot.h">
|
||||
<Filter>02.GameObjects\UI\SpellLearn_Canvas\SpellLearn_Panel\SpellLearn_Slot</Filter>
|
||||
</ClInclude>
|
||||
@@ -704,6 +704,12 @@
|
||||
<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>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Image Include="Client.ico">
|
||||
@@ -1451,7 +1457,7 @@
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Effect\Effects\Transformation\TransformationSide">
|
||||
<UniqueIdentifier>{064b5e2f-dcde-47fd-a43d-43e25800393d}</UniqueIdentifier>
|
||||
</Filter>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\UI\SpellLearn_Canvas\SpellLearn_Panel\SPellLeam_ChaserPointer">
|
||||
<UniqueIdentifier>{d9c0bcb6-64f6-4b58-a68d-ff04c91b9861}</UniqueIdentifier>
|
||||
</Filter>
|
||||
@@ -1467,6 +1473,12 @@
|
||||
<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>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="Client.cpp">
|
||||
@@ -2102,7 +2114,7 @@
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\NPC_EleazarFig.cpp">
|
||||
<Filter>02.GameObjects\NPC\Ally\GateKeeper</Filter>
|
||||
</ClCompile>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\SpellLearn_Slot.cpp">
|
||||
<Filter>02.GameObjects\UI\SpellLearn_Canvas\SpellLearn_Panel\SpellLearn_Slot</Filter>
|
||||
</ClCompile>
|
||||
@@ -2118,6 +2130,12 @@
|
||||
<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>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\Private\Goblin_States.cpp">
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -418,7 +418,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))) {
|
||||
|
||||
@@ -411,7 +411,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;
|
||||
|
||||
@@ -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,15 +573,16 @@ 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;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CNPC_Ollivander>(g_iStaticLevel, NEXT_LEVEL, strLayerTag))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
|
||||
@@ -357,7 +357,7 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
#endif //
|
||||
#ifdef 기무리
|
||||
isLoad_Background = true;
|
||||
isLoad_Hogwart = false;
|
||||
isLoad_Hogwart = true;
|
||||
#endif //
|
||||
#ifdef 인혁
|
||||
isLoad_Background = false;
|
||||
@@ -1870,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;
|
||||
}
|
||||
|
||||
@@ -1943,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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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,86 @@ 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);
|
||||
|
||||
Set_Shadow(m_pGameInstance->IsIn_ShadowViewFrustum(m_pTransformCom->Get_State(STATE::POSITION), m_pTransformCom->Get_Radius()));
|
||||
|
||||
__super::Late_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
@@ -72,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;
|
||||
@@ -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);
|
||||
@@ -483,7 +487,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;
|
||||
|
||||
@@ -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)
|
||||
@@ -360,7 +365,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))) {
|
||||
@@ -469,6 +474,10 @@ HRESULT CRanrok::Render_Nonblend()
|
||||
}
|
||||
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",
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -101,7 +101,7 @@ 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 = true;
|
||||
m_bBooster = m_Booster.bBoosterOn;
|
||||
}
|
||||
|
||||
void CSpellLearn_MovePointer::Priority_Update(_float fTimeDelta)
|
||||
@@ -175,7 +175,7 @@ void CSpellLearn_MovePointer::Update(_float fTimeDelta)
|
||||
if (m_pGameInstance->Mouse_Down(DIM_LBUTTON))
|
||||
{
|
||||
m_bBooster = false;
|
||||
m_fMoveSpeed = 160.f;
|
||||
m_fMoveSpeed = 170.f;
|
||||
static_cast<CUIObject*>(m_pOwner)->Function_Callback(TEXT("BoosterOn"), &m_Booster);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -297,7 +297,7 @@ HRESULT CSpellLearn_Overlay::Ready_Components(void* pArg)
|
||||
|
||||
void CSpellLearn_Overlay::Clear()
|
||||
{
|
||||
m_vUVScale.y = 1.2f;
|
||||
m_vUVScale.y = 1.5f;
|
||||
m_bClear = true;
|
||||
}
|
||||
|
||||
@@ -328,7 +328,7 @@ void CSpellLearn_Overlay::Compute_UI(_uint SpellID)
|
||||
|
||||
void CSpellLearn_Overlay::Update_Trail(_float fTimeaDalta)
|
||||
{
|
||||
m_vUVScale.y = CMyTools::Lerp_f1D(m_vUVScale.y, m_fTrail / m_fSpellLearn * 1.05f, fTimeaDalta * m_fMoveSpeed);
|
||||
m_vUVScale.y = CMyTools::Lerp_f1D(m_vUVScale.y, m_fTrail / m_fSpellLearn * 1.06f, fTimeaDalta * m_fMoveSpeed);
|
||||
}
|
||||
|
||||
void CSpellLearn_Overlay::SizeUp(_float fSizeX)
|
||||
|
||||
@@ -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
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -61,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;
|
||||
|
||||
|
||||
@@ -714,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.
BIN
Binary file not shown.
LFS
BIN
Binary file not shown.
LFS
BIN
Binary file not shown.
@@ -11,7 +11,6 @@ float4x4 g_WorldMatrix, g_ViewMatrix, g_ProjMatrix;
|
||||
float4x4 g_PrevWorldMatrix, g_PrevViewMatrix, g_PrevProjMatrix;
|
||||
matrix g_OffsetMatrix[256];
|
||||
|
||||
|
||||
int g_bRimLight;
|
||||
int g_bUseNormalMap;
|
||||
int g_bDisolve;
|
||||
@@ -24,6 +23,7 @@ float g_fOutLineScale;
|
||||
float g_fOutLineThickness;
|
||||
float g_fOutLinePower;
|
||||
float g_fUsingSurfaceParams;
|
||||
float g_fEtherealRatio;
|
||||
|
||||
|
||||
Texture2D g_DiffuseTexture : register(t00);
|
||||
@@ -58,7 +58,6 @@ StructuredBuffer<BoneOut> g_PrevBoneBuffer : register(t27);
|
||||
|
||||
Texture2D g_SurfaceParamsTexture;
|
||||
|
||||
|
||||
int g_iBinded_Texture[27];
|
||||
matrix g_BoneMatrices[512];
|
||||
|
||||
@@ -787,9 +786,11 @@ PS_OUT_BLEND PS_Dragon_Aura(PS_IN In)
|
||||
{
|
||||
PS_OUT_BLEND Out;
|
||||
float2 uv = In.vTexcoord;
|
||||
float2 uvOppacity = uv;
|
||||
uvOppacity.y += g_fEtherealRatio;
|
||||
float4 vDiffuse = g_DiffuseTexture.Sample(DefaultSampler, uv);
|
||||
float fOppacity = g_NormalBlendTexture.Sample(DefaultSampler, uv).x;
|
||||
vDiffuse.a = vDiffuse.a * fOppacity.r;
|
||||
float fOppacity = g_NormalBlendTexture.Sample(DefaultSampler, uvOppacity).r;
|
||||
vDiffuse = vDiffuse * (1 - fOppacity);
|
||||
Out.vAlbedo = vDiffuse;
|
||||
return Out;
|
||||
}
|
||||
@@ -799,7 +800,7 @@ PS_OUT_BLEND PS_Dragon_EtherealEyes(PS_IN In)
|
||||
PS_OUT_BLEND Out;
|
||||
float2 uv = In.vTexcoord;
|
||||
float4 vDiffuse = g_DiffuseTexture.Sample(DefaultSampler, uv);
|
||||
float fOppacity = g_NormalBlendTexture.Sample(DefaultSampler, uv).x;
|
||||
float fOppacity = g_NormalBlendTexture.Sample(DefaultSampler, uv).a;
|
||||
float4 vBaseColor = g_DiffuseBlend.Sample(DefaultSampler, uv);
|
||||
//TODO ?덉븣 ???댁빞??
|
||||
Out.vAlbedo = lerp(vDiffuse, vBaseColor, fOppacity);
|
||||
@@ -810,11 +811,12 @@ PS_OUT_BLEND PS_Dragon_EtherealWings(PS_IN In)
|
||||
{
|
||||
PS_OUT_BLEND Out;
|
||||
float2 uv = In.vTexcoord;
|
||||
float4 vDiffuse = g_DiffuseTexture.Sample(DefaultSampler, uv);
|
||||
float2 uvDiffuse = uv; uvDiffuse.y -= g_fEtherealRatio;
|
||||
float4 vDiffuse = g_DiffuseTexture.Sample(DefaultSampler, uvDiffuse);
|
||||
float4 vEmissive = g_EmissiveTexture.Sample(DefaultSampler, uv);
|
||||
vDiffuse += vEmissive;
|
||||
float fOppacity = g_NormalBlendTexture.Sample(DefaultSampler, uv).x;
|
||||
vDiffuse.a = fOppacity;
|
||||
float fOppacity = g_NormalBlendTexture.Sample(DefaultSampler, uvDiffuse).a;
|
||||
vDiffuse.a = (1- fOppacity);
|
||||
Out.vAlbedo = vDiffuse;
|
||||
return Out;
|
||||
}
|
||||
|
||||
@@ -1733,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;
|
||||
@@ -1827,8 +1828,8 @@ PS_OUT PS_SpellLearnColor(PS_IN In)
|
||||
float2 trailTopLeft = g_Trail[i];
|
||||
float2 trailCenter = trailTopLeft + itemSize / 2.0f;
|
||||
|
||||
float halfWidth = itemSize.x / 2.0f + 6.f;
|
||||
float halfHeight = itemSize.y / 2.0f + 6.f;
|
||||
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 &&
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 71 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 59 KiB |
@@ -177,7 +177,7 @@ void CDummy_PhysXEffectHitBox::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());
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -138,7 +138,7 @@ HRESULT CDummy_PhysXMonster::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(), m_pGameInstance->Get_CurrentLevelID());
|
||||
}
|
||||
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_MESH,
|
||||
|
||||
@@ -47,12 +47,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());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -154,7 +154,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,
|
||||
|
||||
@@ -328,7 +328,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))) {
|
||||
|
||||
@@ -51,7 +51,7 @@ HRESULT CMagic_Item::Initialize(void* pArg)
|
||||
|
||||
void CMagic_Item::Compute_UV(_uint iItemID)
|
||||
{
|
||||
_float2 fImage_Size = { 320.f, 384.f};
|
||||
_float2 fImage_Size = { 320.f, 384.f };
|
||||
|
||||
_uint iCountX = 5;
|
||||
_uint iCountY = 6;
|
||||
@@ -76,8 +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_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)
|
||||
@@ -121,19 +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_vUVScale.y <= 1)
|
||||
{
|
||||
m_vUVScale.y += fTimeDelta * (1.f / m_fCoolTime);
|
||||
}
|
||||
|
||||
m_fTime += fTimeDelta * m_fTimeMult;
|
||||
__super::Update(fTimeDelta);
|
||||
}
|
||||
@@ -236,11 +223,11 @@ HRESULT CMagic_Item::Bind_ShaderResources()
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fItemPosition1", &m_vImagePos1, sizeof(_float2))))
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fImageSipos1", &m_vImageposi1, sizeof(_float4))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fItemImageSizes1", &m_vImageSize1, sizeof(_float2))))
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fImageSipos2", &m_vImageposi2, sizeof(_float4))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -248,6 +235,7 @@ HRESULT CMagic_Item::Bind_ShaderResources()
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -304,7 +304,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;
|
||||
|
||||
@@ -98,7 +98,7 @@ 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 = true;
|
||||
m_bBooster = m_Booster.bBoosterOn;
|
||||
}
|
||||
|
||||
void CSpellLearn_MovePointer::Priority_Update(_float fTimeDelta)
|
||||
|
||||
@@ -318,7 +318,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))) {
|
||||
|
||||
@@ -39,8 +39,8 @@ class CMagic_Item final : public CElementObject
|
||||
|
||||
_float4 m_vUV{};
|
||||
_uint m_iArratCount{};
|
||||
_float2 m_vImageSize1 = {};
|
||||
_float2 m_vImagePos1 = {};
|
||||
_float4 m_vImageposi1 = {};
|
||||
_float4 m_vImageposi2 = {};
|
||||
|
||||
public:
|
||||
static CMagic_Item* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
|
||||
@@ -151,7 +151,7 @@ HRESULT CCharacter_Controller::ConvertToDO(CRigidBody_Dynamic& BodyOriginal)
|
||||
m_bActive = false;
|
||||
BodyOriginal.SetActive(true);
|
||||
|
||||
m_pGameInstance->Attach_Actor(*pDOActor); // DO 액터 활성화
|
||||
m_pGameInstance->Attach_Actor(*pDOActor, m_pGameInstance->Get_CurrentLevelID()); // DO 액터 활성화
|
||||
|
||||
PSX::PxTransform pxTransform = pCCTActor->getGlobalPose();
|
||||
pDOActor->setGlobalPose(pxTransform);
|
||||
|
||||
@@ -100,7 +100,7 @@ HRESULT CGameInstance::Initialize_Engine(const ENGINE_DESC& EngineDesc, ID3D11De
|
||||
if (nullptr == m_pCollider_Manager) {
|
||||
return E_FAIL;
|
||||
}
|
||||
m_pPhysX_Manager = CPhysX_Manager::Create(*ppDevice, *ppContext);
|
||||
m_pPhysX_Manager = CPhysX_Manager::Create(*ppDevice, *ppContext, EngineDesc.iNumLevels);
|
||||
if (nullptr == m_pPhysX_Manager) {
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -177,6 +177,7 @@ void CGameInstance::Clear_Resources(_uint iLevelIndex)
|
||||
m_pObject_Manager->Clear(iLevelIndex);
|
||||
m_pLight_Manager->Light_Clear(iLevelIndex);
|
||||
m_pResource_Manager->Clear_LevelResources(iLevelIndex);
|
||||
m_pPhysX_Manager->ClearScene(iLevelIndex);
|
||||
}
|
||||
|
||||
_float CGameInstance::Random_Normal()
|
||||
@@ -981,27 +982,27 @@ PSX::PxMaterial* CGameInstance::Create_Material(_float3* vMatInfo)
|
||||
return m_pPhysX_Manager->Create_Material(vMatInfo);
|
||||
}
|
||||
|
||||
void CGameInstance::RegistTriMesh(const _char* pName, PSX::PxTriangleMesh* pPxTriMesh)
|
||||
void CGameInstance::RegistTriMesh(const _char* pName, PSX::PxTriangleMesh* pPxTriMesh, _uint iLevel)
|
||||
{
|
||||
return m_pPhysX_Manager->RegistTriMesh(pName, pPxTriMesh);
|
||||
return m_pPhysX_Manager->RegistTriMesh(pName, pPxTriMesh, iLevel);
|
||||
}
|
||||
|
||||
void CGameInstance::RegistHeight(const _tchar* pName, PSX::PxHeightFieldDesc& Desc)
|
||||
void CGameInstance::RegistHeight(const _tchar* pName, PSX::PxHeightFieldDesc& Desc, _uint iLevel)
|
||||
{
|
||||
return m_pPhysX_Manager->RegistHeight(pName, Desc);
|
||||
return m_pPhysX_Manager->RegistHeight(pName, Desc, iLevel);
|
||||
}
|
||||
|
||||
PSX::PxRigidDynamic* CGameInstance::Add_DynamicActor(CRigidBody_Dynamic& RigidBody)
|
||||
PSX::PxRigidDynamic* CGameInstance::Add_DynamicActor(CRigidBody_Dynamic& RigidBody, _uint iLevel)
|
||||
{
|
||||
return m_pPhysX_Manager->Add_DynamicActor(RigidBody);
|
||||
return m_pPhysX_Manager->Add_DynamicActor(RigidBody, iLevel);
|
||||
}
|
||||
PSX::PxRigidStatic* CGameInstance::Add_StaticActor(CRigidBody_Static& RigidBody)
|
||||
PSX::PxRigidStatic* CGameInstance::Add_StaticActor(CRigidBody_Static& RigidBody, _uint iLevel)
|
||||
{
|
||||
return m_pPhysX_Manager->Add_StaticActor(RigidBody);
|
||||
return m_pPhysX_Manager->Add_StaticActor(RigidBody, iLevel);
|
||||
}
|
||||
PSX::PxRevoluteJoint* CGameInstance::Create_PxRevoluteJoint(PSX::PxRigidActor* pActorFrame, PSX::PxTransform& pxLocalWallFrame, PSX::PxRigidActor* pActorObject, PSX::PxTransform& pxLocalActorFrame)
|
||||
PSX::PxRevoluteJoint* CGameInstance::Create_PxRevoluteJoint(PSX::PxRigidActor* pActorFrame, PSX::PxTransform& pxLocalWallFrame, PSX::PxRigidActor* pActorObject, PSX::PxTransform& pxLocalActorFrame, _uint iLevel)
|
||||
{
|
||||
return m_pPhysX_Manager->Create_PxRevoluteJoint(pActorFrame, pxLocalWallFrame, pActorObject, pxLocalActorFrame);
|
||||
return m_pPhysX_Manager->Create_PxRevoluteJoint(pActorFrame, pxLocalWallFrame, pActorObject, pxLocalActorFrame, iLevel);
|
||||
}
|
||||
_bool CGameInstance::SphereCast(_float fRadius, _float3 vStartPos, _float3 vDir, _float fDistance, PSX::PxHitFlags flagHitsData, PSX::PxQueryFlags flagQuery, PSX::PxSweepBuffer& hitBuffer)
|
||||
{
|
||||
@@ -1035,17 +1036,17 @@ void CGameInstance::ReleaseController(_uint iControllerIndex)
|
||||
{
|
||||
m_pPhysX_Manager->ReleaseController(iControllerIndex);
|
||||
}
|
||||
void CGameInstance::Attach_Actor(PSX::PxActor& Actor)
|
||||
void CGameInstance::Attach_Actor(PSX::PxActor& Actor, _uint iLevel)
|
||||
{
|
||||
m_pPhysX_Manager->Attach_Actor(Actor);
|
||||
m_pPhysX_Manager->Attach_Actor(Actor, iLevel);
|
||||
}
|
||||
void CGameInstance::Detach_Actor(PSX::PxActor& Actor)
|
||||
void CGameInstance::Detach_Actor(PSX::PxActor& Actor, _uint iLevel)
|
||||
{
|
||||
m_pPhysX_Manager->Detach_Actor(Actor);
|
||||
m_pPhysX_Manager->Detach_Actor(Actor, iLevel);
|
||||
}
|
||||
void CGameInstance::Release_Actor(PSX::PxActor& Actor)
|
||||
{
|
||||
m_pPhysX_Manager->Detach_Actor(Actor);
|
||||
m_pPhysX_Manager->Release_Actor(Actor);
|
||||
}
|
||||
HRESULT CGameInstance::ConvertToTriMeshes(vector<class CMesh*>& Meshes, vector<class PSX::PxTriangleMesh*>& pxTriMeshes, _fmatrix WorldMatrix)
|
||||
{
|
||||
|
||||
@@ -674,7 +674,7 @@ HRESULT CModel::Render_Indexed(_uint iMeshIndex, _uint IndexCount, _uint StartIn
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
HRESULT CModel::Ready_PhysXMeshes(_fmatrix& PreTransformMatrix)
|
||||
HRESULT CModel::Ready_PhysXMeshes(_fmatrix& PreTransformMatrix, _uint iLevel)
|
||||
{
|
||||
m_iNumPhysXMeshes = m_iNumMeshes;
|
||||
|
||||
@@ -683,7 +683,7 @@ HRESULT CModel::Ready_PhysXMeshes(_fmatrix& PreTransformMatrix)
|
||||
m_pGameInstance->ConvertToTriMeshes(m_Meshes, m_TriMeshes, PreTransformMatrix);
|
||||
|
||||
for (_uint i = 0; i < m_iNumMeshes; ++i) {
|
||||
m_pGameInstance->RegistTriMesh((m_Meshes[i]->Get_Name() + to_string(i)).c_str(), m_TriMeshes[i]);
|
||||
m_pGameInstance->RegistTriMesh((m_Meshes[i]->Get_Name() + to_string(i)).c_str(), m_TriMeshes[i], iLevel);
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ CPhysX_Manager::CPhysX_Manager(ID3D11Device* pDevice, ID3D11DeviceContext* pCont
|
||||
SAFE_ADDREF(m_pGameInstance);
|
||||
}
|
||||
|
||||
PSX::PxRigidDynamic* CPhysX_Manager::Add_DynamicActor(CRigidBody_Dynamic& RigidBody)
|
||||
PSX::PxRigidDynamic* CPhysX_Manager::Add_DynamicActor(CRigidBody_Dynamic& RigidBody, _uint iLevel)
|
||||
{
|
||||
_matrix WorldMatrix = RigidBody.Get_TransformPtr()->Get_XMWorldMatrix();
|
||||
PSX::PxTransform pxWorldMatrix = XMWorldToPx_NoScale(WorldMatrix);
|
||||
@@ -58,16 +58,17 @@ PSX::PxRigidDynamic* CPhysX_Manager::Add_DynamicActor(CRigidBody_Dynamic& RigidB
|
||||
|
||||
|
||||
PSX::PxRigidBodyExt::updateMassAndInertia(*pActorDynamic, (PSX::PxReal)RigidBody.Get_Density());
|
||||
m_pRestBodies.insert(pActorDynamic);
|
||||
Attach_Actor(*pActorDynamic);
|
||||
m_pRestBodies[iLevel].insert(pActorDynamic);
|
||||
Attach_Actor(*pActorDynamic, iLevel);
|
||||
|
||||
return pActorDynamic;
|
||||
}
|
||||
|
||||
PSX::PxRigidStatic* CPhysX_Manager::Add_StaticActor(CRigidBody_Static& RigidBody)
|
||||
PSX::PxRigidStatic* CPhysX_Manager::Add_StaticActor(CRigidBody_Static& RigidBody, _uint iLevel)
|
||||
{
|
||||
_matrix WorldMatrix = RigidBody.Get_TransformPtr()->Get_XMWorldMatrix();
|
||||
PSX::PxTransform pxWorldMatrix = XMWorldToPx_NoScale(WorldMatrix);
|
||||
PSX::PxTransform pxWorldMatrix = XMWorldToPx_NoScale(WorldMatrix);
|
||||
|
||||
|
||||
// PxRigidStatic 씬의 정적 바디 인터페이스
|
||||
PSX::PxRigidStatic* pActor = m_pPhysics->createRigidStatic(pxWorldMatrix);
|
||||
@@ -80,7 +81,7 @@ PSX::PxRigidStatic* CPhysX_Manager::Add_StaticActor(CRigidBody_Static& RigidBody
|
||||
break;
|
||||
case ACTOR::TRIANGLEMESH:
|
||||
{ // SetUp Geometry
|
||||
PSX::PxTriangleMesh* pPxMesh = Find_TriangleMesh(RigidBody.Get_PxMeshKey());
|
||||
PSX::PxTriangleMesh* pPxMesh = Find_TriangleMesh(RigidBody.Get_PxMeshKey(), iLevel);
|
||||
PSX::PxTriangleMeshGeometry* pPxMeshGeometry = { nullptr };
|
||||
|
||||
_vector vPos, vRotq, vScale;
|
||||
@@ -101,26 +102,26 @@ PSX::PxRigidStatic* CPhysX_Manager::Add_StaticActor(CRigidBody_Static& RigidBody
|
||||
// 유효성 체크
|
||||
PX_ASSERT(pPxMeshGeometry->isValid());
|
||||
pGeometry = pPxMeshGeometry;
|
||||
_bool bEmplaceSuccess = m_TriangleMeshGeometry.emplace(RigidBody.Get_PxMeshKey(), pPxMeshGeometry).second;
|
||||
_bool bEmplaceSuccess = m_TriangleMeshGeometry[iLevel].emplace(RigidBody.Get_PxMeshKey(), pPxMeshGeometry).second;
|
||||
if (false == bEmplaceSuccess) {
|
||||
Safe_Delete(pPxMeshGeometry);
|
||||
pGeometry = (*m_TriangleMeshGeometry.find(RigidBody.Get_PxMeshKey())).second;
|
||||
pGeometry = (*m_TriangleMeshGeometry[iLevel].find(RigidBody.Get_PxMeshKey())).second;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case ACTOR::HEIGHTFIELD:
|
||||
{ // SetUp HeightField
|
||||
PSX::PxHeightField* pHeightField = Find_HeightField(RigidBody.Get_PxMeshKey());
|
||||
PSX::PxHeightField* pHeightField = Find_HeightField(RigidBody.Get_PxMeshKey(), iLevel);
|
||||
PSX::PxHeightFieldGeometry* pPxHeightGeometry = new PSX::PxHeightFieldGeometry(pHeightField);
|
||||
pPxHeightGeometry->heightScale = 0.01f/* 기본 정밀도 100배 0.01 -> 1cm, 1 -> 1m */;
|
||||
|
||||
// 유효성 체크
|
||||
PX_ASSERT(pPxHeightGeometry->isValid());
|
||||
pGeometry = pPxHeightGeometry;
|
||||
_bool bEmplaceSuccess = m_HeightFieldGeometry.emplace(RigidBody.Get_PxMeshKey(), pPxHeightGeometry).second;
|
||||
_bool bEmplaceSuccess = m_HeightFieldGeometry[iLevel].emplace(RigidBody.Get_PxMeshKey(), pPxHeightGeometry).second;
|
||||
if (false == bEmplaceSuccess) {
|
||||
Safe_Delete(pPxHeightGeometry);
|
||||
pGeometry = (*m_HeightFieldGeometry.find(RigidBody.Get_PxMeshKey())).second;
|
||||
pGeometry = (*m_HeightFieldGeometry[iLevel].find(RigidBody.Get_PxMeshKey())).second;
|
||||
}
|
||||
}
|
||||
break;
|
||||
@@ -135,13 +136,13 @@ PSX::PxRigidStatic* CPhysX_Manager::Add_StaticActor(CRigidBody_Static& RigidBody
|
||||
pShape->setContactOffset(RigidBody.Get_ContactOffset());
|
||||
pShape->setRestOffset(0.f);
|
||||
|
||||
m_pRestBodies.insert(pActor);
|
||||
Attach_Actor(*pActor);
|
||||
m_pRestBodies[iLevel].insert(pActor);
|
||||
Attach_Actor(*pActor, iLevel);
|
||||
|
||||
return pActor;
|
||||
}
|
||||
|
||||
PSX::PxRevoluteJoint* CPhysX_Manager::Create_PxRevoluteJoint(PSX::PxRigidActor* pActorFrame, PSX::PxTransform& pxLocalWallFrame, PSX::PxRigidActor* pActorObject, PSX::PxTransform& pxLocalActorFrame)
|
||||
PSX::PxRevoluteJoint* CPhysX_Manager::Create_PxRevoluteJoint(PSX::PxRigidActor* pActorFrame, PSX::PxTransform& pxLocalWallFrame, PSX::PxRigidActor* pActorObject, PSX::PxTransform& pxLocalActorFrame, _uint iLevel)
|
||||
{
|
||||
PSX::PxRevoluteJoint* pJoint = PSX::PxRevoluteJointCreate(*m_pPhysics, pActorFrame, pxLocalWallFrame, pActorObject, pxLocalActorFrame);
|
||||
|
||||
@@ -229,18 +230,18 @@ bool CPhysX_Manager::RayCast(_fvector _vStartPos, _gvector _vDir, _float fDistan
|
||||
}
|
||||
|
||||
|
||||
void CPhysX_Manager::RegistTriMesh(const _char* pName, PSX::PxTriangleMesh* pPxTriMesh)
|
||||
void CPhysX_Manager::RegistTriMesh(const _char* pName, PSX::PxTriangleMesh* pPxTriMesh, _uint iLevel)
|
||||
{
|
||||
m_TriangleMeshes.emplace(CMyTools::ToWstring(pName), pPxTriMesh);
|
||||
m_TriangleMeshes[iLevel].emplace(CMyTools::ToWstring(pName), pPxTriMesh);
|
||||
}
|
||||
void CPhysX_Manager::RegistHeight(const _tchar* pName, PSX::PxHeightFieldDesc& Desc)
|
||||
void CPhysX_Manager::RegistHeight(const _tchar* pName, PSX::PxHeightFieldDesc& Desc, _uint iLevel)
|
||||
{
|
||||
PSX::PxHeightField* pHeightField = PxCreateHeightField(Desc);
|
||||
if (nullptr == pHeightField) {
|
||||
assert(false);
|
||||
}
|
||||
else {
|
||||
m_HeightFields.emplace(pName, pHeightField);
|
||||
m_HeightFields[iLevel].emplace(pName, pHeightField);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -347,19 +348,19 @@ HRESULT CPhysX_Manager::LoadTriMeshes(const _char* pPath, vector<PSX::PxTriangle
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
PSX::PxTriangleMesh* CPhysX_Manager::Find_TriangleMesh(const _tchar* pMeshName)
|
||||
PSX::PxTriangleMesh* CPhysX_Manager::Find_TriangleMesh(const _tchar* pMeshName, _uint iLevel)
|
||||
{
|
||||
map<_wstring, PSX::PxTriangleMesh*>::iterator iter = m_TriangleMeshes.find(pMeshName);
|
||||
if (iter != m_TriangleMeshes.end()) {
|
||||
map<_wstring, PSX::PxTriangleMesh*>::iterator iter = m_TriangleMeshes[iLevel].find(pMeshName);
|
||||
if (iter != m_TriangleMeshes[iLevel].end()) {
|
||||
return iter->second;
|
||||
}
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
PSX::PxHeightField* CPhysX_Manager::Find_HeightField(const _tchar* pFieldName)
|
||||
PSX::PxHeightField* CPhysX_Manager::Find_HeightField(const _tchar* pFieldName, _uint iLevel)
|
||||
{
|
||||
map<_wstring, PSX::PxHeightField*>::iterator iter = m_HeightFields.find(pFieldName);
|
||||
if (iter != m_HeightFields.end()) {
|
||||
map<_wstring, PSX::PxHeightField*>::iterator iter = m_HeightFields[iLevel].find(pFieldName);
|
||||
if (iter != m_HeightFields[iLevel].end()) {
|
||||
return iter->second;
|
||||
}
|
||||
return nullptr;
|
||||
@@ -367,17 +368,19 @@ PSX::PxHeightField* CPhysX_Manager::Find_HeightField(const _tchar* pFieldName)
|
||||
|
||||
void CPhysX_Manager::Update_Kinematic()
|
||||
{
|
||||
for (auto& pBody : m_pActiveBodys) {
|
||||
PSX::PxRigidDynamic* pActor = pBody->is<PSX::PxRigidDynamic>();
|
||||
if (nullptr == pActor) {
|
||||
continue;
|
||||
}
|
||||
for (_uint iLevel = 0; iLevel < m_iMaxLevel; ++iLevel) {
|
||||
for (auto& pBody : m_pActiveBodys[iLevel]) {
|
||||
PSX::PxRigidDynamic* pActor = pBody->is<PSX::PxRigidDynamic>();
|
||||
if (nullptr == pActor) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (pActor->getRigidBodyFlags() & PSX::PxRigidBodyFlag::eKINEMATIC)
|
||||
{
|
||||
const CTransform* pTransform = static_cast<PhsXUserData*>(pBody->userData)->pOwner->Get_Component<CTransform>();
|
||||
|
||||
pActor->setKinematicTarget(XMWorldToPx_NoScale(pTransform->Get_XMWorldMatrix()));
|
||||
if (pActor->getRigidBodyFlags() & PSX::PxRigidBodyFlag::eKINEMATIC)
|
||||
{
|
||||
const CTransform* pTransform = static_cast<PhsXUserData*>(pBody->userData)->pOwner->Get_Component<CTransform>();
|
||||
|
||||
pActor->setKinematicTarget(XMWorldToPx_NoScale(pTransform->Get_XMWorldMatrix()));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -429,40 +432,56 @@ void CPhysX_Manager::Update_Dynamic_ActiveActors()
|
||||
}
|
||||
}
|
||||
|
||||
void CPhysX_Manager::ClearScene()
|
||||
void CPhysX_Manager::ClearScene(_uint iLevel)
|
||||
{
|
||||
for (auto& pBody : m_pActiveBodys) {
|
||||
for (auto& pBody : m_pActiveBodys[iLevel]) {
|
||||
pBody->release();
|
||||
} m_pActiveBodys.clear();
|
||||
for (auto& pBody : m_pRestBodies) {
|
||||
} m_pActiveBodys[iLevel].clear();
|
||||
for (auto& pBody : m_pRestBodies[iLevel]) {
|
||||
pBody->release();
|
||||
} m_pRestBodies.clear();
|
||||
} m_pRestBodies[iLevel].clear();
|
||||
for (auto& pMeshes : m_TriangleMeshes[iLevel]) {
|
||||
pMeshes.second->release();
|
||||
} m_TriangleMeshes[iLevel].clear();
|
||||
|
||||
for (auto& pGeometry : m_TriangleMeshGeometry[iLevel]) {
|
||||
Safe_Delete(pGeometry.second);
|
||||
} m_TriangleMeshGeometry[iLevel].clear();
|
||||
|
||||
for (auto& pGeometry : m_HeightFieldGeometry[iLevel]) {
|
||||
Safe_Delete(pGeometry.second);
|
||||
} m_HeightFieldGeometry[iLevel].clear();
|
||||
|
||||
for (auto& pField : m_HeightFields[iLevel]) {
|
||||
pField.second->release();
|
||||
} m_HeightFields[iLevel].clear();
|
||||
|
||||
}
|
||||
void CPhysX_Manager::Attach_Actor(PSX::PxActor& Actor)
|
||||
void CPhysX_Manager::Attach_Actor(PSX::PxActor& Actor, _uint iLevel)
|
||||
{
|
||||
unordered_set<PSX::PxActor*>::iterator iter = m_pRestBodies.find(&Actor);
|
||||
if (m_pRestBodies.end() == iter) {
|
||||
unordered_set<PSX::PxActor*>::iterator iter = m_pRestBodies[iLevel].find(&Actor);
|
||||
if (m_pRestBodies[iLevel].end() == iter) {
|
||||
return;
|
||||
}
|
||||
else {
|
||||
m_pRestBodies.erase(&Actor);
|
||||
m_pRestBodies[iLevel].erase(&Actor);
|
||||
}
|
||||
m_pActiveBodys.insert(&Actor);
|
||||
m_pActiveBodys[iLevel].insert(&Actor);
|
||||
if (m_pScene != nullptr) {
|
||||
m_pScene->addActor(Actor);
|
||||
}
|
||||
}
|
||||
|
||||
unordered_set<PSX::PxActor*>::iterator CPhysX_Manager::Detach_Actor(PSX::PxActor& Actor)
|
||||
unordered_set<PSX::PxActor*>::iterator CPhysX_Manager::Detach_Actor(PSX::PxActor& Actor, _uint iLevel)
|
||||
{
|
||||
unordered_set<PSX::PxActor*>::iterator iterOut = m_pRestBodies.end();
|
||||
unordered_set<PSX::PxActor*>::iterator iter = m_pActiveBodys.find(&Actor);
|
||||
if (m_pActiveBodys.end() != iter) {
|
||||
m_pActiveBodys.erase(iter); // 액터를 활성화 맵에서 분리 해주고
|
||||
iterOut = m_pRestBodies.insert(&Actor).first; // 액터를 다시 쓸 수 있기 때문에 따로 보관해줌
|
||||
unordered_set<PSX::PxActor*>::iterator iterOut = m_pRestBodies[iLevel].end();
|
||||
unordered_set<PSX::PxActor*>::iterator iter = m_pActiveBodys[iLevel].find(&Actor);
|
||||
if (m_pActiveBodys[iLevel].end() != iter) {
|
||||
m_pActiveBodys[iLevel].erase(iter); // 액터를 활성화 맵에서 분리 해주고
|
||||
iterOut = m_pRestBodies[iLevel].insert(&Actor).first; // 액터를 다시 쓸 수 있기 때문에 따로 보관해줌
|
||||
}
|
||||
|
||||
PSX::PxScene* pOwnerScene = Actor.getScene();
|
||||
PSX::PxScene* pOwnerScene = Actor.getScene();
|
||||
|
||||
if (pOwnerScene == nullptr) { // 액터가 씬에 없는 경우 nullptr이 나옴
|
||||
return iterOut;
|
||||
@@ -479,15 +498,21 @@ unordered_set<PSX::PxActor*>::iterator CPhysX_Manager::Detach_Actor(PSX::PxActor
|
||||
void CPhysX_Manager::Release_Actor(PSX::PxActor& Actor)
|
||||
{
|
||||
// 혹시 활성화 맵에 들어있을 수도 있으니 검사
|
||||
unordered_set<PSX::PxActor*>::iterator iterResult = Detach_Actor(Actor);
|
||||
if (m_pRestBodies.end() != iterResult) { // 방금 전까지만 해도 활성화 중이었던 액터 라면
|
||||
m_pRestBodies.erase(iterResult); // 바로 지워줌
|
||||
unordered_set<PSX::PxActor*>::iterator iterResult = {};
|
||||
_uint iReleasedLevel = UINT_MAX;
|
||||
for (_uint iLevel = 0; iLevel < m_iMaxLevel; ++iLevel) {
|
||||
iterResult = Detach_Actor(Actor, iLevel);
|
||||
if (m_pRestBodies[iLevel].end() != iterResult) { // 방금 전까지만 해도 활성화 중이었던 액터 라면
|
||||
m_pRestBodies[iLevel].erase(iterResult); // 바로 지워줌
|
||||
iReleasedLevel = iLevel;
|
||||
break;
|
||||
}
|
||||
}
|
||||
else {
|
||||
m_pActiveBodys.erase(&Actor);
|
||||
m_pRestBodies.erase(&Actor);
|
||||
if (UINT_MAX == iReleasedLevel) {
|
||||
m_pActiveBodys[iReleasedLevel].erase(&Actor);
|
||||
m_pRestBodies[iReleasedLevel].erase(&Actor);
|
||||
}
|
||||
Actor.release();
|
||||
//Actor.release();
|
||||
}
|
||||
|
||||
PSX::PxController* CPhysX_Manager::Add_CapsuleController(PSX::PxCapsuleControllerDesc& Desc)
|
||||
@@ -535,8 +560,9 @@ HRESULT CPhysX_Manager::PurgeAllController()
|
||||
}
|
||||
|
||||
|
||||
HRESULT CPhysX_Manager::Initialize()
|
||||
HRESULT CPhysX_Manager::Initialize(_uint iLevel)
|
||||
{
|
||||
m_iMaxLevel = iLevel;
|
||||
m_pFoundation = PxCreateFoundation(PX_PHYSICS_VERSION, m_AllocatorCallBack, m_ErrorCallBack);
|
||||
if (nullptr == m_pFoundation) {
|
||||
assert(false);
|
||||
@@ -628,11 +654,18 @@ HRESULT CPhysX_Manager::Initialize()
|
||||
PlaneData.pOwner = nullptr;
|
||||
PlaneData.pBody = nullptr;
|
||||
|
||||
PSX::PxRigidStatic* pGroundPlane = PxCreatePlane(*m_pPhysics, physx::PxPlane(0, 1, 0, 50), *m_pMaterials[ENUM_CLASS(PXMATERIAL::DEFAULT)]);
|
||||
PSX::PxRigidStatic* pGroundPlane = PxCreatePlane(*m_pPhysics, physx::PxPlane(0, 1, 0, 85), *m_pMaterials[ENUM_CLASS(PXMATERIAL::DEFAULT)]);
|
||||
pGroundPlane->userData = &PlaneData;
|
||||
pGroundPlane->setName("PHYSX_MANAGER_PLANE");
|
||||
m_pScene->addActor(*pGroundPlane);
|
||||
|
||||
m_pActiveBodys = new unordered_set<PSX::PxActor*>[m_iMaxLevel]();
|
||||
m_pRestBodies = new unordered_set<PSX::PxActor*>[m_iMaxLevel]();
|
||||
m_TriangleMeshes = new map<_wstring, PSX::PxTriangleMesh*>[m_iMaxLevel]();
|
||||
m_TriangleMeshGeometry = new map<_wstring, PSX::PxTriangleMeshGeometry*>[m_iMaxLevel]();
|
||||
m_HeightFields = new map<_wstring, PSX::PxHeightField*>[m_iMaxLevel]();
|
||||
m_HeightFieldGeometry = new map<_wstring, PSX::PxHeightFieldGeometry*>[m_iMaxLevel]();
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
@@ -660,10 +693,10 @@ HRESULT CPhysX_Manager::Connect_DebugServer()
|
||||
|
||||
#endif // _DEBUG
|
||||
|
||||
CPhysX_Manager* CPhysX_Manager::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
CPhysX_Manager* CPhysX_Manager::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, _uint iLevel)
|
||||
{
|
||||
CPhysX_Manager* pInstance = new CPhysX_Manager(pDevice, pContext);
|
||||
if (FAILED(pInstance->Initialize())) {
|
||||
if (FAILED(pInstance->Initialize(iLevel))) {
|
||||
SAFE_RELEASE(pInstance);
|
||||
assert(false);
|
||||
}
|
||||
@@ -672,24 +705,22 @@ CPhysX_Manager* CPhysX_Manager::Create(ID3D11Device* pDevice, ID3D11DeviceContex
|
||||
|
||||
void CPhysX_Manager::Free()
|
||||
{
|
||||
ClearScene();
|
||||
for (_uint iLevel = 0; iLevel < m_iMaxLevel; ++iLevel) {
|
||||
ClearScene(iLevel);
|
||||
m_pActiveBodys[iLevel].clear();
|
||||
m_pRestBodies[iLevel].clear();
|
||||
m_TriangleMeshes[iLevel].clear();
|
||||
m_TriangleMeshGeometry[iLevel].clear();
|
||||
m_HeightFields[iLevel].clear();
|
||||
m_HeightFieldGeometry[iLevel].clear();
|
||||
}
|
||||
Safe_Delete_Array(m_pActiveBodys);
|
||||
Safe_Delete_Array(m_pRestBodies);
|
||||
Safe_Delete_Array(m_TriangleMeshes);
|
||||
Safe_Delete_Array(m_TriangleMeshGeometry);
|
||||
Safe_Delete_Array(m_HeightFields);
|
||||
Safe_Delete_Array(m_HeightFieldGeometry);
|
||||
|
||||
for (auto& pMeshes : m_TriangleMeshes) {
|
||||
pMeshes.second->release();
|
||||
} m_TriangleMeshes.clear();
|
||||
|
||||
for (auto& pGeometry : m_TriangleMeshGeometry) {
|
||||
Safe_Delete(pGeometry.second);
|
||||
} m_TriangleMeshGeometry.clear();
|
||||
|
||||
for (auto& pGeometry : m_HeightFieldGeometry) {
|
||||
Safe_Delete(pGeometry.second);
|
||||
} m_HeightFieldGeometry.clear();
|
||||
|
||||
for (auto& pField : m_HeightFields) {
|
||||
pField.second->release();
|
||||
} m_HeightFields.clear();
|
||||
|
||||
if (nullptr != m_pCookingParam) {
|
||||
Safe_Delete(m_pCookingParam);
|
||||
}
|
||||
|
||||
@@ -145,15 +145,15 @@ HRESULT CRigidBody_Dynamic::ConvertToCCT(CCharacter_Controller& CCTOriginal)
|
||||
m_pRigidBody->setAngularVelocity(PSX::PxZERO()); // DO 객체 이동 제거
|
||||
m_pRigidBody->setLinearVelocity(PSX::PxZERO());
|
||||
|
||||
Detach_Actor();
|
||||
Detach_Actor(m_pGameInstance->Get_CurrentLevelID());
|
||||
CCTOriginal.SetActive(true);
|
||||
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
void CRigidBody_Dynamic::Detach_Actor()
|
||||
void CRigidBody_Dynamic::Detach_Actor(_uint iLevel)
|
||||
{
|
||||
m_pGameInstance->Detach_Actor(*m_pRigidBody); // 현재 액터 비활성화
|
||||
m_pGameInstance->Detach_Actor(*m_pRigidBody, iLevel); // 현재 액터 비활성화
|
||||
m_bActive = false;
|
||||
}
|
||||
|
||||
@@ -286,7 +286,7 @@ HRESULT CRigidBody_Dynamic::Initialize(void* pArg)
|
||||
m_tagData.pOwner = m_pOwner;
|
||||
XMStoreFloat4x4(&m_tagData.BeforeMatrix, m_pTransform->Get_XMWorldMatrix());
|
||||
m_tagData.pBody = this;
|
||||
m_pRigidBody = m_pGameInstance->Add_DynamicActor(*this);
|
||||
m_pRigidBody = m_pGameInstance->Add_DynamicActor(*this, m_pGameInstance->Get_NextLevelID());
|
||||
m_pRigidBody->userData = &m_tagData;
|
||||
m_pRigidBody->setCMassLocalPose(m_PxMassCenter);
|
||||
m_pRigidBody->setRigidDynamicLockFlags(m_eLockFlag);
|
||||
|
||||
@@ -37,7 +37,7 @@ HRESULT CRigidBody_Static::Initialize(void* pArg)
|
||||
m_tagData.pOwner = m_pOwner;
|
||||
XMStoreFloat4x4(&m_tagData.BeforeMatrix, m_pTransform->Get_XMWorldMatrix());
|
||||
m_tagData.pBody = this;
|
||||
m_pRigidBody = m_pGameInstance->Add_StaticActor(*this);
|
||||
m_pRigidBody = m_pGameInstance->Add_StaticActor(*this, m_pGameInstance->Get_NextLevelID());
|
||||
m_pRigidBody->userData = &m_tagData;
|
||||
m_pRigidBody->setName(CMyTools::ToString(m_wstrMeshName).c_str());
|
||||
|
||||
|
||||
@@ -393,9 +393,11 @@ HRESULT CVIBuffer_Terrain::Initialize(void* pArg)
|
||||
|
||||
void CVIBuffer_Terrain::ConvertToHeightField(const _tchar* pStaticKey)
|
||||
{
|
||||
PSX::PxHeightFieldDesc Desc{};
|
||||
Desc.format = PSX::PxHeightFieldFormat::eS16_TM;
|
||||
|
||||
vector<PSX::PxHeightFieldSample> pxSamples = {};
|
||||
pxSamples.resize(m_iNumVerticesZ * m_iNumVerticesX);
|
||||
|
||||
for (_uint iRow = 0; iRow < m_iNumVerticesZ; ++iRow) {
|
||||
for (_uint iCol = 0; iCol < m_iNumVerticesX; ++iCol) {
|
||||
_uint iIndex = iRow * m_iNumVerticesX + iCol;
|
||||
@@ -411,11 +413,9 @@ void CVIBuffer_Terrain::ConvertToHeightField(const _tchar* pStaticKey)
|
||||
pxSample.clearTessFlag();
|
||||
}
|
||||
}
|
||||
Desc.nbRows = m_iNumVerticesX;
|
||||
Desc.nbColumns = m_iNumVerticesZ;
|
||||
|
||||
PSX::PxHeightFieldDesc Desc{};
|
||||
Desc.format = PSX::PxHeightFieldFormat::eS16_TM;
|
||||
Desc.nbRows = m_iNumVerticesZ;
|
||||
Desc.nbColumns = m_iNumVerticesX;
|
||||
|
||||
Desc.samples.data = pxSamples.data();
|
||||
Desc.samples.stride = sizeof(PSX::PxHeightFieldSample);
|
||||
@@ -424,9 +424,8 @@ void CVIBuffer_Terrain::ConvertToHeightField(const _tchar* pStaticKey)
|
||||
assert(false);
|
||||
}
|
||||
else {
|
||||
m_pGameInstance->RegistHeight(pStaticKey, Desc);
|
||||
m_pGameInstance->RegistHeight(pStaticKey, Desc, m_pGameInstance->Get_NextLevelID());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
_bool CVIBuffer_Terrain::Picking(_fmatrix WorldMatrix, _float3* pOut)
|
||||
|
||||
@@ -184,6 +184,7 @@ enum class PXOBJECT : _uint {
|
||||
#pragma endregion
|
||||
#pragma region NPC
|
||||
NPC = 500,
|
||||
OLLIVANDER,
|
||||
|
||||
#pragma endregion
|
||||
#pragma region ITEM
|
||||
|
||||
@@ -206,11 +206,11 @@ class ENGINE_DLL CGameInstance final : public CBase
|
||||
#pragma endregion
|
||||
#pragma region PhysX_Manager
|
||||
PSX::PxMaterial* Create_Material(_float3* vMatInfo);
|
||||
void RegistTriMesh(const _char* pName, PSX::PxTriangleMesh* pPxTriMesh);
|
||||
void RegistHeight(const _tchar* pName, PSX::PxHeightFieldDesc& Desc);
|
||||
PSX::PxRigidDynamic* Add_DynamicActor(CRigidBody_Dynamic& RigidBody);
|
||||
PSX::PxRigidStatic* Add_StaticActor(CRigidBody_Static& RigidBody);
|
||||
PSX::PxRevoluteJoint* Create_PxRevoluteJoint(PSX::PxRigidActor* pActorFrame, PSX::PxTransform& pxLocalWallFrame, PSX::PxRigidActor* pActorObject, PSX::PxTransform& pxLocalActorFrame);
|
||||
void RegistTriMesh(const _char* pName, PSX::PxTriangleMesh* pPxTriMesh, _uint iLevel);
|
||||
void RegistHeight(const _tchar* pName, PSX::PxHeightFieldDesc& Desc, _uint iLevel);
|
||||
PSX::PxRigidDynamic* Add_DynamicActor(CRigidBody_Dynamic& RigidBody, _uint iLevel);
|
||||
PSX::PxRigidStatic* Add_StaticActor(CRigidBody_Static& RigidBody, _uint iLevel);
|
||||
PSX::PxRevoluteJoint* Create_PxRevoluteJoint(PSX::PxRigidActor* pActorFrame, PSX::PxTransform& pxLocalWallFrame, PSX::PxRigidActor* pActorObject, PSX::PxTransform& pxLocalActorFrame, _uint iLevel);
|
||||
|
||||
_bool SphereCast(_float fRadius, _float3 vStartPos, _float3 vDir, _float fDistance, PSX::PxHitFlags flagHitsData, PSX::PxQueryFlags flagQuery, PSX::PxSweepBuffer& hitBuffer);
|
||||
_bool SphereCast(_float fRadius, _fvector vStartPos, _gvector vDir, _float fDistance, PSX::PxHitFlags flagHitsData, PSX::PxQueryFlags flagQuery, PSX::PxSweepBuffer& hitBuffer);
|
||||
@@ -221,8 +221,8 @@ class ENGINE_DLL CGameInstance final : public CBase
|
||||
PSX::PxController* Add_BoxController(PSX::PxBoxControllerDesc& Desc);
|
||||
PSX::PxController* Get_Controller(_uint iControllerIndex);
|
||||
void ReleaseController(_uint iControllerIndex);
|
||||
void Attach_Actor(PSX::PxActor& Actor);
|
||||
void Detach_Actor(PSX::PxActor& pActor);
|
||||
void Attach_Actor(PSX::PxActor& Actor, _uint iLevel);
|
||||
void Detach_Actor(PSX::PxActor& pActor, _uint iLevel);
|
||||
void Release_Actor(PSX::PxActor& Actor);
|
||||
HRESULT ConvertToTriMeshes(vector<class CMesh*>& Meshes, vector<class PSX::PxTriangleMesh*>& pxTriMeshes, _fmatrix WorldMatrix = XMMatrixIdentity());
|
||||
#ifdef EDITOR_PROJECT
|
||||
|
||||
@@ -106,7 +106,7 @@ class ENGINE_DLL CModel final : public CComponent
|
||||
void Initialize_BoneMasks();
|
||||
|
||||
public:
|
||||
HRESULT Ready_PhysXMeshes(_fmatrix& PreTransformMatrix);
|
||||
HRESULT Ready_PhysXMeshes(_fmatrix& PreTransformMatrix, _uint iLevel);
|
||||
#ifdef EDITOR_PROJECT
|
||||
HRESULT Assimp_Model_Load(const _char* pModelFilePath, MODEL eType, _fmatrix& PreTransformMatrix, _uint iRootBoneIndex);
|
||||
HRESULT Ready_Meshes(MODEL eType, const aiScene* pAIScene, _fmatrix& PreTransformMatrix);
|
||||
|
||||
@@ -21,12 +21,12 @@ class CPhysX_Manager final : public CBase
|
||||
// HRESULT Update_RegionOfInterest(); ( 충돌 컬링, 필터링도 검색해야함 )
|
||||
// Aggregate ( 충돌 그룹, 이 그룹끼리는 서로 충돌검사를 하지 않음, 지형, 레그돌 등 )
|
||||
|
||||
PSX::PxRigidDynamic* Add_DynamicActor(CRigidBody_Dynamic& RigidBody);
|
||||
PSX::PxRigidStatic* Add_StaticActor(CRigidBody_Static& RigidBody);
|
||||
PSX::PxRevoluteJoint* Create_PxRevoluteJoint(PSX::PxRigidActor* pActorFrame, PSX::PxTransform& pxLocalWallFrame, PSX::PxRigidActor* pActorObject, PSX::PxTransform& pxLocalActorFrame);
|
||||
PSX::PxRigidDynamic* Add_DynamicActor(CRigidBody_Dynamic& RigidBody, _uint iLevel);
|
||||
PSX::PxRigidStatic* Add_StaticActor(CRigidBody_Static& RigidBody, _uint iLevel);
|
||||
PSX::PxRevoluteJoint* Create_PxRevoluteJoint(PSX::PxRigidActor* pActorFrame, PSX::PxTransform& pxLocalWallFrame, PSX::PxRigidActor* pActorObject, PSX::PxTransform& pxLocalActorFrame, _uint iLevel);
|
||||
|
||||
void RegistTriMesh(const _char* pName, PSX::PxTriangleMesh* pPxTriMesh);
|
||||
void RegistHeight(const _tchar* pName, PSX::PxHeightFieldDesc& Desc);
|
||||
void RegistTriMesh(const _char* pName, PSX::PxTriangleMesh* pPxTriMesh, _uint iLevel);
|
||||
void RegistHeight(const _tchar* pName, PSX::PxHeightFieldDesc& Desc, _uint iLevel);
|
||||
PSX::PxMaterial* Create_Material(const _float3* vMatInfo);
|
||||
|
||||
_bool SphereCast(_float fRadius, _float3 vStartPos, _float3 vDir, _float fDistance, PSX::PxHitFlags flagHitsData, PSX::PxQueryFlags flagQuery, PSX::PxSweepBuffer& hitBuffer);
|
||||
@@ -44,13 +44,13 @@ class CPhysX_Manager final : public CBase
|
||||
#endif // EDITOR_PROJECT
|
||||
HRESULT LoadTriMeshes(const _char* pPath, vector<PSX::PxTriangleMesh*>& TriMeshes);
|
||||
//HRESULT LoadTriMeshes_Binary(const _char* pPath, vector<PSX::PxTriangleMesh*>& TriMeshes);
|
||||
PSX::PxTriangleMesh* Find_TriangleMesh(const _tchar* pMeshName);
|
||||
PSX::PxHeightField* Find_HeightField(const _tchar* pFieldName);
|
||||
PSX::PxTriangleMesh* Find_TriangleMesh(const _tchar* pMeshName, _uint iLevel);
|
||||
PSX::PxHeightField* Find_HeightField(const _tchar* pFieldName, _uint iLevel);
|
||||
|
||||
void Update(_float fTimeDelta);
|
||||
void ClearScene();
|
||||
void Attach_Actor(PSX::PxActor& Actor);
|
||||
unordered_set<PSX::PxActor*>::iterator Detach_Actor(PSX::PxActor& Actor);
|
||||
void ClearScene(_uint iLevel);
|
||||
void Attach_Actor(PSX::PxActor& Actor, _uint iLevel);
|
||||
unordered_set<PSX::PxActor*>::iterator Detach_Actor(PSX::PxActor& Actor, _uint iLevel);
|
||||
void Release_Actor(PSX::PxActor& Actor);
|
||||
#pragma endregion
|
||||
#pragma region CHARACTER_CONTROLLER
|
||||
@@ -89,23 +89,24 @@ class CPhysX_Manager final : public CBase
|
||||
PSX::PxPvdTransport* m_pTransport = { nullptr };
|
||||
|
||||
|
||||
_uint m_iMaxLevel = {};
|
||||
|
||||
unordered_set<PSX::PxActor*> m_pActiveBodys = { };
|
||||
unordered_set<PSX::PxActor*> m_pRestBodies = { }; // 피직스의 액터로 구별되기 때문에 피직스액터 포인터를 키로 사용함
|
||||
unordered_set<PSX::PxActor*>* m_pActiveBodys = { nullptr };
|
||||
unordered_set<PSX::PxActor*>* m_pRestBodies = { nullptr }; // 피직스의 액터로 구별되기 때문에 피직스액터 포인터를 키로 사용함
|
||||
|
||||
map<_wstring, PSX::PxTriangleMesh*> m_TriangleMeshes = {};
|
||||
map<_wstring, PSX::PxTriangleMeshGeometry*> m_TriangleMeshGeometry = {};
|
||||
map<_wstring, PSX::PxTriangleMesh*>* m_TriangleMeshes = { nullptr };
|
||||
map<_wstring, PSX::PxTriangleMeshGeometry*>*m_TriangleMeshGeometry = { nullptr };
|
||||
|
||||
map<_wstring, PSX::PxHeightField*> m_HeightFields = {};
|
||||
map<_wstring, PSX::PxHeightFieldGeometry*> m_HeightFieldGeometry = {};
|
||||
map<_wstring, PSX::PxHeightField*>* m_HeightFields = { nullptr };
|
||||
map<_wstring, PSX::PxHeightFieldGeometry*>* m_HeightFieldGeometry = { nullptr };
|
||||
|
||||
|
||||
PhsXUserData PlaneData = {};
|
||||
|
||||
vector<PSX::PxMaterial*> m_pMaterials = { };
|
||||
_uint m_iNumLevel = {};
|
||||
_uint m_iNumLevel = { UINT_MAX };
|
||||
private:
|
||||
HRESULT Initialize();
|
||||
HRESULT Initialize(_uint iLevel);
|
||||
#ifdef _DEBUG
|
||||
HRESULT Connect_DebugServer();
|
||||
#endif // _DEBUG
|
||||
@@ -115,7 +116,7 @@ class CPhysX_Manager final : public CBase
|
||||
//void Update_Dynamic_AllActors();
|
||||
|
||||
public:
|
||||
static CPhysX_Manager* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
static CPhysX_Manager* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, _uint iLevel);
|
||||
virtual void Free() override;
|
||||
};
|
||||
|
||||
|
||||
@@ -71,8 +71,6 @@ class CRenderer final : public CBase
|
||||
_float4x4 m_PreShadowView = {};
|
||||
_float4x4 m_PreShadowProj = {};
|
||||
|
||||
|
||||
|
||||
#pragma region TunningParameters
|
||||
/* TunningParam */
|
||||
|
||||
|
||||
@@ -45,7 +45,7 @@ class ENGINE_DLL CRigidBody_Dynamic : public CRigidBody
|
||||
void Set_Kinematic(_bool bKinematic);
|
||||
|
||||
HRESULT ConvertToCCT(class CCharacter_Controller& CCTOriginal);
|
||||
void Detach_Actor();
|
||||
void Detach_Actor(_uint iLevel);
|
||||
_bool IsActive() const { return m_bActive; }
|
||||
void SetActive(_bool bCondition) { m_bActive = bCondition; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user