[merge commit]
This commit is contained in:
@@ -64,6 +64,8 @@ cbuffer AnimCB : register(b0)
|
||||
float UpperBlend;
|
||||
int SecondAnimIndex;
|
||||
float SecondAnimTime;
|
||||
|
||||
row_major float4x4 WorldMatrix;
|
||||
};
|
||||
|
||||
static const float EPS = 1e-6f;
|
||||
|
||||
@@ -43,6 +43,9 @@ cbuffer AnimCB : register(b0)
|
||||
float UpperBlend;
|
||||
int SecondAnimIndex;
|
||||
float SecondAnimTime;
|
||||
|
||||
row_major float4x4 WorldMatrix;
|
||||
|
||||
};
|
||||
|
||||
[numthreads(256, 1, 1)]
|
||||
@@ -53,20 +56,23 @@ void CS_MAIN(uint3 DTid : SV_DispatchThreadID)
|
||||
return;
|
||||
|
||||
uint global = g_BoneRemap[local];
|
||||
|
||||
float4x4 combined = g_LocalMatIn[global];
|
||||
|
||||
|
||||
float4x4 localMat = g_LocalMatIn[global];
|
||||
float4x4 modelCombined = localMat;
|
||||
|
||||
int p = g_ParentBuffer[global];
|
||||
while (p != -1)
|
||||
{
|
||||
combined = mul(combined, g_LocalMatIn[p]);
|
||||
modelCombined = mul(modelCombined, g_LocalMatIn[p]);
|
||||
p = g_ParentBuffer[p];
|
||||
}
|
||||
|
||||
combined = mul(combined, PreTransformMatrix);
|
||||
|
||||
g_LocalPosOutput[local].Local = g_LocalMatIn[global];
|
||||
g_LocalPosOutput[local].LocalCombined = combined;
|
||||
g_LocalPosOutput[local].Combined = combined;
|
||||
modelCombined = mul(modelCombined, PreTransformMatrix);
|
||||
|
||||
float4x4 worldCombined = mul(modelCombined, WorldMatrix);
|
||||
|
||||
g_LocalPosOutput[local].Local = localMat;
|
||||
g_LocalPosOutput[local].LocalCombined = modelCombined;
|
||||
g_LocalPosOutput[local].Combined = worldCombined;
|
||||
}
|
||||
|
||||
@@ -77,13 +77,13 @@ void CS_MAIN( uint3 DispatchThreadID : SV_DispatchThreadID)
|
||||
{
|
||||
float visibility = 1.f;
|
||||
|
||||
// Directional
|
||||
if (0.f < length(g_LightBuffer[i].vDirection))
|
||||
{
|
||||
lightDir = normalize(g_LightBuffer[i].vDirection);
|
||||
visibility = ComputeShadowVisibility(vWorldPosition);
|
||||
|
||||
}
|
||||
else
|
||||
else // Point
|
||||
{
|
||||
lightDir = vWorldPosition - g_LightBuffer[i].vPosition.xyz;
|
||||
visibility = ComputePointLightVisible(lightDir, g_LightBuffer[i].fRange);
|
||||
|
||||
@@ -342,6 +342,12 @@ void CAnimation::CreateGPUData(ID3D11Device* pDevice)
|
||||
CreateChannelBuffer(pDevice, channels);
|
||||
}
|
||||
|
||||
void CAnimation::Set_CurrentTrackProgressRatio(_float fRatio)
|
||||
{
|
||||
fRatio = clamp(fRatio, 0.f, 1.f);
|
||||
m_fTempTrack = fRatio * m_fDurationSeconds;
|
||||
}
|
||||
|
||||
|
||||
#ifdef EDITOR_PROJECT
|
||||
|
||||
|
||||
@@ -242,6 +242,8 @@ _bool CModel::Play_Anim(_float fTimeDelta, CTransform* pTransform)
|
||||
m_bIsFinishedAnim = m_Animations[m_iCurrentAnimIndex]->Update_TransformationMatrices(m_Bones, m_bIsLoop, fTimeDelta, true, m_iBoneMask, m_OutScale, m_OutRotation, m_OutTranslation, m_iRootBoneIndex);
|
||||
|
||||
m_iPreAnimIndex = m_iCurrentAnimIndex;
|
||||
fRatio = 1.f;
|
||||
m_fBlendTime = 0.f;
|
||||
}
|
||||
|
||||
|
||||
@@ -329,9 +331,11 @@ _bool CModel::Play_Dual_Anim(_float fTimeDelta, CTransform* pTransform)
|
||||
|
||||
m_bIsFinishedAnim = pCurAnim->Update_TransformationMatrices(m_Bones, m_bIsLoop, fTimeDelta, true, m_iBoneMask, m_OutScale, m_OutRotation, m_OutTranslation, m_iRootBoneIndex);
|
||||
|
||||
pCurAnim->InterpAnim(pPreAnim, m_Bones, fRatio);
|
||||
|
||||
m_bIsSecondFinishedAnim = pSecondAnim->Update_TransformationMatrices(m_Bones, m_bIsSecondLoop, fTimeDelta, false, m_iBoneMask, m_OutScale, m_OutRotation, m_OutTranslation);
|
||||
|
||||
m_Animations[m_iCurrSecondAnimIndex]->InterpSecondAnim(m_Animations[m_iCurrentAnimIndex], m_iBoneMask, m_Bones, m_fSecondRatio* 5.f);
|
||||
m_Animations[m_iCurrSecondAnimIndex]->InterpSecondAnim(m_Animations[m_iCurrentAnimIndex], m_iBoneMask, m_Bones, m_fSecondRatio);
|
||||
|
||||
if (fRatio >= 1.f)
|
||||
{
|
||||
@@ -363,7 +367,7 @@ _bool CModel::Play_Dual_Anim(_float fTimeDelta, CTransform* pTransform)
|
||||
m_bIsFinishedAnim = m_Animations[m_iCurrentAnimIndex]->Update_TransformationMatrices(m_Bones, m_bIsLoop, fTimeDelta, true, m_iBoneMask, m_OutScale, m_OutRotation, m_OutTranslation, m_iRootBoneIndex);
|
||||
|
||||
m_bIsSecondFinishedAnim = m_Animations[m_iCurrSecondAnimIndex]->Update_TransformationMatrices(m_Bones, m_bIsSecondLoop, fTimeDelta, false, m_iBoneMask, m_OutScale, m_OutRotation, m_OutTranslation);
|
||||
m_Animations[m_iCurrSecondAnimIndex]->InterpSecondAnim(m_Animations[m_iCurrentAnimIndex], m_iBoneMask, m_Bones, m_fSecondRatio * 5.f);
|
||||
m_Animations[m_iCurrSecondAnimIndex]->InterpSecondAnim(m_Animations[m_iCurrentAnimIndex], m_iBoneMask, m_Bones, m_fSecondRatio);
|
||||
m_iPreAnimIndex = m_iCurrentAnimIndex;
|
||||
|
||||
if (m_bIsSecondFinishedAnim)
|
||||
@@ -445,7 +449,7 @@ _bool CModel::IsBlending() const
|
||||
}
|
||||
|
||||
|
||||
void CModel::Set_AnimationIndex(_uint iIndex, _bool isLoop, _float fAmount, _bool bRatio, _float fAnimSpeed,_bool bRootBone,_bool bQueuedAnim, _bool bInit)
|
||||
void CModel::Set_AnimationIndex(_uint iIndex, _bool isLoop, _float fAmount, _bool bRatio, _float fAnimSpeed,_bool bRootBone,_bool bQueuedAnim)
|
||||
{
|
||||
m_bQueuedAnim = bQueuedAnim;
|
||||
if (m_iCurrentAnimIndex == iIndex)
|
||||
@@ -472,10 +476,8 @@ void CModel::Set_AnimationIndex(_uint iIndex, _bool isLoop, _float fAmount, _boo
|
||||
m_iPreAnimIndex = m_iCurrentAnimIndex;
|
||||
}
|
||||
|
||||
if (bInit) {
|
||||
m_fBlendTime = 0.f;
|
||||
m_fRatio = 0.f;
|
||||
}
|
||||
m_fBlendTime = 0.f;
|
||||
fRatio = 0.f;
|
||||
m_bRootBone = bRootBone;
|
||||
m_iCurrentAnimIndex = iIndex;
|
||||
m_bIsLoop = isLoop;
|
||||
@@ -501,8 +503,8 @@ void CModel::Set_Second_AnimationIndex(_uint BoneIndex, _uint iIndex, _bool isLo
|
||||
m_bIsSecondLoop = isLoop;
|
||||
m_iBoneMask = m_BoneMask[BoneIndex];
|
||||
|
||||
/*m_fSecondBlendTime = 0.f;
|
||||
m_fSecondRatio = 0.f;*/
|
||||
m_fSecondBlendTime = 0.f;
|
||||
m_fSecondRatio = 0.f;
|
||||
m_bIsSecondFinishedAnim = false;
|
||||
|
||||
m_Animations[m_iCurrSecondAnimIndex]->Depart_Animation();
|
||||
@@ -596,10 +598,10 @@ void CModel::Update_RootBone(_float Amount)
|
||||
|
||||
_float yaw = axis.y * angle;
|
||||
|
||||
if (m_bRootBone)
|
||||
{
|
||||
/* if (m_bRootBone)
|
||||
{*/
|
||||
m_pTransform->TurnAngle_Y(yaw);
|
||||
}
|
||||
//}
|
||||
|
||||
|
||||
}
|
||||
@@ -860,6 +862,11 @@ _float CModel::Get_CurrentTrackProgressRatio()
|
||||
return m_Animations[m_iCurrentAnimIndex]->Get_CurrentTrackProgressRatio();
|
||||
}
|
||||
|
||||
void CModel::Set_CurrentTrackProgressRatio(_float fRatio)
|
||||
{
|
||||
m_Animations[m_iCurrentAnimIndex]->Set_CurrentTrackProgressRatio(fRatio);
|
||||
}
|
||||
|
||||
_float CModel::Get_TrackProgressRatio(_uint iIndex)
|
||||
{
|
||||
return m_Animations[iIndex]->Get_CurrentTrackProgressRatio();
|
||||
@@ -2113,9 +2120,11 @@ void CModel::ComputeLocal(_uint AnimIndex, _uint MeshIndex)
|
||||
pDesc->RootInitRot = m_vInitialRootRot;
|
||||
|
||||
pDesc->UseUpperBody = m_bSecondAnim;
|
||||
pDesc->UpperBlend = 1.f;
|
||||
pDesc->UpperBlend = m_fSecondRatio;
|
||||
pDesc->SecondAnimIndex = m_iCurrSecondAnimIndex;
|
||||
pDesc->SecondAnimTime = m_Animations[m_iCurrSecondAnimIndex]->Get_CurrentTrackPosition();;
|
||||
pDesc->SecondAnimTime = m_Animations[m_iCurrSecondAnimIndex]->Get_CurrentTrackPosition();
|
||||
|
||||
pDesc->WorldMatrix = *m_pTransform->Get_WorldMatrixPtr();
|
||||
|
||||
m_pContext->Unmap(m_pConstantBuffer, 0);
|
||||
}
|
||||
|
||||
@@ -261,6 +261,91 @@ _bool CPanelObject::Chack_Element(_float2 Position, _float2 Target, _float Scale
|
||||
return false;
|
||||
}
|
||||
|
||||
_bool CPanelObject::World_Screen(_float3 fWorld_Pos, _float2& fScreenPos, _float& fDepth)
|
||||
{
|
||||
_matrix mView = m_pGameInstance->Get_Transform_Matrix(D3DTS::VIEW);
|
||||
_matrix mProj = m_pGameInstance->Get_Transform_Matrix(D3DTS::PROJ);
|
||||
_matrix mVP = mView * mProj;
|
||||
|
||||
_vector Pos = XMVectorSet(fWorld_Pos.x, fWorld_Pos.y, fWorld_Pos.z, 1.f);
|
||||
Pos = XMVector4Transform(Pos, mVP);
|
||||
|
||||
_float w = XMVectorGetW(Pos);
|
||||
|
||||
_bool bBehind = (w <= 0.f);
|
||||
|
||||
if (bBehind)
|
||||
{
|
||||
fDepth = -1.f;
|
||||
return false;
|
||||
}
|
||||
|
||||
_float NDCX = XMVectorGetX(Pos) / w;
|
||||
_float NDCY = XMVectorGetY(Pos) / w;
|
||||
_float NDCZ = XMVectorGetZ(Pos) / w;
|
||||
|
||||
|
||||
|
||||
fDepth = NDCZ;
|
||||
|
||||
fScreenPos.x = (NDCX + 1.f) * 0.5f * m_fWinSizeX;
|
||||
fScreenPos.y = (1.f - NDCY) * 0.5f * m_fWinSizeY;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
_bool CPanelObject::Screen(_float2& fWorld_Pos, _float Winx, _float Winy)
|
||||
{
|
||||
return fWorld_Pos.x >= 0 && fWorld_Pos.x <= Winx &&
|
||||
fWorld_Pos.y >= 0 && fWorld_Pos.y <= Winy;
|
||||
}
|
||||
|
||||
_float2 CPanelObject::Get_EdgePosition(_float2 fWorld_Pos, _float Winx, _float Winy, _float OffSetY)
|
||||
{
|
||||
_float2 center = _float2(Winx * 0.5f, Winy * 0.5f);
|
||||
_float2 dir = _float2(fWorld_Pos.x - center.x, fWorld_Pos.y - center.y);
|
||||
|
||||
_float tX = FLT_MAX;
|
||||
_float tY = FLT_MAX;
|
||||
|
||||
if (dir.x != 0.f)
|
||||
tX = (dir.x > 0) ? (Winx - center.x) / dir.x : (0.f - center.x) / dir.x;
|
||||
|
||||
if (dir.y != 0.f)
|
||||
tY = (dir.y > 0) ? (Winy - center.y) / dir.y : (0.f - center.y) / dir.y;
|
||||
|
||||
float t = min(tX, tY);
|
||||
|
||||
return _float2(dir.x * t,- dir.y * t - OffSetY);
|
||||
}
|
||||
|
||||
_bool CPanelObject::World_to_ScreenUI(_float3 fWorld_Pos, _float2& fUIScreenPos, _float OffSetY)
|
||||
{
|
||||
_float2 fScreenPos{};
|
||||
_float fDepth{};
|
||||
|
||||
if (!World_Screen(fWorld_Pos, fScreenPos, fDepth))
|
||||
{
|
||||
fUIScreenPos.x = m_fWinSizeX * 0.5f;
|
||||
fUIScreenPos.y = m_fWinSizeY - OffSetY;
|
||||
return true;
|
||||
}
|
||||
|
||||
_float fWinSizeX = static_cast<_float>(m_fWinSizeX);
|
||||
_float fWinSizeY = static_cast<_float>(m_fWinSizeY);
|
||||
|
||||
if(Screen(fScreenPos, fWinSizeX, fWinSizeY))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
fUIScreenPos = Get_EdgePosition(fScreenPos, fWinSizeX, fWinSizeY, OffSetY);
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
CGameObject* CPanelObject::Find_Element(const wstring& Name)
|
||||
{
|
||||
auto iter = m_Elements_map.find(Name);
|
||||
|
||||
@@ -21,7 +21,6 @@ HRESULT CQuest::Initialize(void* pArg)
|
||||
QUESTINFO* Info = static_cast<QUESTINFO*>(pArg);
|
||||
m_iQuestID = Info->iQuestID;
|
||||
m_ObjectiveInfo = Info->ObjectiveInfo;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -38,7 +37,7 @@ _bool CQuest::Update_Objective(_int MonsterID)
|
||||
continue;
|
||||
|
||||
++it.iCurrentCount;
|
||||
|
||||
m_iMonsterID = MonsterID;
|
||||
if (it.iCurrentCount >= it.iRequiredCount)
|
||||
it.bClear = true;
|
||||
|
||||
@@ -59,6 +58,11 @@ _int CQuest::Get_QuestID()
|
||||
return m_iQuestID;
|
||||
}
|
||||
|
||||
_int CQuest::Get_MonsterID()
|
||||
{
|
||||
return m_iMonsterID;
|
||||
}
|
||||
|
||||
void CQuest::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
@@ -35,6 +35,7 @@ HRESULT CUIObject::Initialize(void* pArg)
|
||||
// 이제 뷰포트의 개수랑 정보를 저장할 포인터를 넣어준다.
|
||||
m_pContext->RSGetViewports(&iNumViewports, &ViewportDesc);
|
||||
|
||||
|
||||
// 이제 받아온 fX,fY,fSizeX,fSizeY를 다 저장 해 놓는다.
|
||||
UIOBJECT_DESC* pDesc = static_cast<UIOBJECT_DESC*>(pArg);
|
||||
|
||||
|
||||
@@ -309,6 +309,10 @@ STATEANIM::ESTATE CUnit::StringToStateAnim(const string& s)
|
||||
{ "SHIELD_BLOCK5", SHIELD_BLOCK5 }, { "SHIELD_BLOCK6", SHIELD_BLOCK6 },
|
||||
{ "SHIELD_BLOCK7", SHIELD_BLOCK7 },
|
||||
|
||||
{ "SHIELD_BLOCK_90_L1", SHIELD_BLOCK_90_L1 }, { "SHIELD_BLOCK_90_L2", SHIELD_BLOCK_90_L2 },
|
||||
{ "SHIELD_BLOCK_90_R1", SHIELD_BLOCK_90_R1 }, { "SHIELD_BLOCK_90_R2", SHIELD_BLOCK_90_R2 },
|
||||
{ "SHIELD_BLOCK_180_L", SHIELD_BLOCK_180_L }, { "SHIELD_BLOCK_180_R", SHIELD_BLOCK_180_R },
|
||||
|
||||
// SPELL
|
||||
{ "SPELL", SPELL }, { "SPELL_180_R", SPELL_180_R },
|
||||
{ "SPELL_90_R", SPELL_90_R }, { "SPELL_90_L", SPELL_90_L },
|
||||
@@ -353,7 +357,7 @@ STATEANIM::ESTATE CUnit::StringToStateAnim(const string& s)
|
||||
|
||||
// PARRY
|
||||
{ "PARRY_180", PARRY_180 },
|
||||
{ "PARRY2", PARRY2 }, { "PARRY3", PARRY3 }, { "PARRY4", PARRY4 },
|
||||
{ "PARRY2", PARRY2 }, { "PARRY3", PARRY3 }, { "PARRY4", PARRY4 }, { "PARRY5", PARRY5 }, { "PARRY6", PARRY6 },
|
||||
|
||||
// BROOM (기존 세트)
|
||||
{ "BROOM_IDLE", BROOM_IDLE },
|
||||
@@ -490,6 +494,7 @@ STATEANIM::ESTATE CUnit::StringToStateAnim(const string& s)
|
||||
{ "FIRESWEEP_WINDUP_A", FIRESWEEP_WINDUP_A },
|
||||
{ "FIREBREATH_G", FIREBREATH_G },
|
||||
{ "FIRESWEEP_G", FIRESWEEP_G },
|
||||
{ "FIRESWEEP_G_L", FIRESWEEP_G_L }, { "FIRESWEEP_G_R", FIRESWEEP_G_R },
|
||||
|
||||
// ETC
|
||||
{ "PULSE", PULSE },
|
||||
@@ -524,6 +529,9 @@ STATEANIM::ESTATE CUnit::StringToStateAnim(const string& s)
|
||||
{ "CUTSCENE_OPENINGINTRO2", CUTSCENE_OPENINGINTRO2 },
|
||||
{ "CUTSCENE_OPENINGINTRO3", CUTSCENE_OPENINGINTRO3 },
|
||||
|
||||
// CUTSCENE_DUEL
|
||||
{ "CUTSCENE_DUEL", CUTSCENE_DUEL },
|
||||
|
||||
// BROOM (B 세트)
|
||||
{ "BROOM_MOUNT_B", BROOM_MOUNT_B },
|
||||
{ "BROOM_HOVER_IDLE_B", BROOM_HOVER_IDLE_B },
|
||||
|
||||
@@ -33,6 +33,7 @@ class ENGINE_DLL CAnimation : public CBase
|
||||
void Set_CurrentTrackPosition(_float TrackPosition) { m_fCurrentTrackPosition = TrackPosition; }
|
||||
_float Get_CurrentTrackPosition() { return m_fCurrentTrackPosition; }
|
||||
_float Get_CurrentTrackProgressRatio() { return m_fTempTrack / m_fDurationSeconds;}
|
||||
void Set_CurrentTrackProgressRatio(_float fRatio);
|
||||
void Set_AnimSpeed(_float fSpeed) { m_fAnimSpeed = fSpeed; }
|
||||
_float Get_AnimSpeed() { return m_fAnimSpeed; }
|
||||
|
||||
|
||||
@@ -36,6 +36,9 @@ class CPhysX_CctQueryFilterCallback final : public PSX::PxQueryFilterCallback
|
||||
case PXOBJECT::RANROK_PROP:
|
||||
return PSX::PxQueryHitType::eNONE;
|
||||
break;
|
||||
case PXOBJECT::POTION:
|
||||
return PSX::PxQueryHitType::eNONE;
|
||||
break;
|
||||
case PXOBJECT::NPC:
|
||||
case PXOBJECT::OLLIVANDER:
|
||||
case PXOBJECT::ELEAZARFIG:
|
||||
|
||||
@@ -201,7 +201,7 @@ enum class PXOBJECT : _uint {
|
||||
ITEM = 600,
|
||||
DROPITEM = 630,
|
||||
TRAP = 660,
|
||||
|
||||
POTION = 690,
|
||||
#pragma endregion
|
||||
#pragma region TRIGGERBOX
|
||||
TRIGGERBOX = 700,
|
||||
|
||||
@@ -577,6 +577,7 @@ typedef struct tagOnCollsionInfo
|
||||
_float4 vHitDir = {}; // 시도한 move 방향
|
||||
_float fLength = {}; // 작용된 힘
|
||||
_int eHitType = ENUM_CLASS(HIT_TYPE::HIT_PROJECTILE); // 발사체/적당한 공격/강공격
|
||||
_int eCollisionType = {};
|
||||
_float fDamage = {}; // 데미지
|
||||
class CGameObject* pObject = { nullptr }; // 시전자
|
||||
}ON_COLLISION_INFO;
|
||||
|
||||
@@ -39,6 +39,8 @@ class ENGINE_DLL CModel final : public CComponent
|
||||
_float UpperBlend;
|
||||
_int SecondAnimIndex;
|
||||
_float SecondAnimTime;
|
||||
|
||||
_float4x4 WorldMatrix;
|
||||
}ANIMSTATE_DESC;
|
||||
|
||||
typedef struct tagBoneInsertionDesc {
|
||||
@@ -78,7 +80,7 @@ class ENGINE_DLL CModel final : public CComponent
|
||||
_bool Play_Anim(_float fTimeDelta, CTransform* pTransform);
|
||||
_bool Play_Dual_Anim(_float fTimeDelta, CTransform* pTransform);
|
||||
_bool IsBlending() const;
|
||||
void Set_AnimationIndex(_uint iIndex, _bool isLoop = true, _float fAmount = 1.f, _bool bRatio = false, _float fAnimSpeed = 1.f, _bool bRootBone = true, _bool bQueuedAnim = false, _bool bInit = true);
|
||||
void Set_AnimationIndex(_uint iIndex, _bool isLoop = true, _float fAmount = 1.f, _bool bRatio = false, _float fAnimSpeed = 1.f, _bool bRootBone = true, _bool bQueuedAnim = false);
|
||||
void Set_Second_AnimationIndex(_uint BoneIndex, _uint iIndex, _bool isLoop = false);
|
||||
_bool IsFinishedAnim() const { return m_bIsFinishedAnim; }
|
||||
_bool IsFinishedSecondAnim() const { return m_bIsSecondFinishedAnim; }
|
||||
@@ -87,6 +89,7 @@ class ENGINE_DLL CModel final : public CComponent
|
||||
const _char* Get_AnimList(_uint iIndex);
|
||||
_float Get_CurrentTrackPosition();
|
||||
_float Get_CurrentTrackProgressRatio();
|
||||
void Set_CurrentTrackProgressRatio(_float fRatio);
|
||||
_float Get_TrackProgressRatio(_uint iIndex);
|
||||
|
||||
size_t Get_AnimSize() { return m_Animations.size(); }
|
||||
|
||||
@@ -42,6 +42,12 @@ class ENGINE_DLL CPanelObject abstract : public CUIObject
|
||||
virtual _bool Chack_Visible() override;
|
||||
|
||||
virtual _bool Chack_Element(_float2 Position, _float2 Target, _float Scale, _float TargetScale);
|
||||
|
||||
_bool World_Screen(_float3 fWorld_Pos, _float2& fScreenPos, _float& fDepth);
|
||||
_bool Screen(_float2& fWorld_Pos, _float Winx, _float Winy);
|
||||
_float2 Get_EdgePosition(_float2 fWorld_Pos, _float Winx, _float Winy, _float OffSetY);
|
||||
_bool World_to_ScreenUI(_float3 fWorld_Pos, _float2& fScreenPos, _float OffSetY);
|
||||
|
||||
protected:
|
||||
vector<class CGameObject*> m_Elements; // 패널이 엘리먼츠를 관리하기 위해 만듬
|
||||
vector<wstring> m_ElementName; // 엘리멘트들의 이름을 전해주기 위해서
|
||||
@@ -51,6 +57,7 @@ class ENGINE_DLL CPanelObject abstract : public CUIObject
|
||||
|
||||
_int m_iElements_Count{}; // 전체 엘리멘트의 갯수
|
||||
|
||||
_bool m_bShowOffScreenUI = { false };
|
||||
private:
|
||||
virtual class CGameObject* Find_Element(const wstring& Name);
|
||||
|
||||
|
||||
@@ -9,10 +9,11 @@ class ENGINE_DLL CQuest abstract : public CGameObject
|
||||
public:
|
||||
typedef struct tagObjectiveInfo
|
||||
{
|
||||
_bool bClear{};
|
||||
_int iTargetID{};
|
||||
_int iRequiredCount{};
|
||||
_int iCurrentCount{};
|
||||
_bool bClear{};
|
||||
_int iTargetID{};
|
||||
_wstring pQuestInfo{};
|
||||
_int iRequiredCount{};
|
||||
_int iCurrentCount{};
|
||||
}OBJECTIVEINFO;
|
||||
|
||||
typedef struct tagRewardsInfo
|
||||
@@ -43,10 +44,11 @@ class ENGINE_DLL CQuest abstract : public CGameObject
|
||||
public:
|
||||
virtual _bool Update_Objective(_int MonsterID);
|
||||
virtual _int Get_QuestID();
|
||||
|
||||
virtual _int Get_MonsterID();
|
||||
protected:
|
||||
vector<OBJECTIVEINFO> m_ObjectiveInfo;
|
||||
_int m_iQuestID{};
|
||||
_int m_iMonsterID{};
|
||||
|
||||
public:
|
||||
virtual void Free() override;
|
||||
|
||||
@@ -14,6 +14,7 @@ enum ESTATE
|
||||
LAND,LAND_TO_JOG,LAND_TO_SPRINT,LAND_HARD,LAND_MID,LAND_SOFT,
|
||||
DODGE,DODGE_BLINK, DODGE_LEFT, DODGE_RIGHT,DODGE_ATTACK,
|
||||
COMBAT, SKILL, SKILL2, SHIELD_BLOCK1, SHIELD_BLOCK2, SHIELD_BLOCK3, SHIELD_BLOCK4, SHIELD_BLOCK5, SHIELD_BLOCK6, SHIELD_BLOCK7,
|
||||
SHIELD_BLOCK_90_L1,SHIELD_BLOCK_90_L2,SHIELD_BLOCK_90_R1, SHIELD_BLOCK_90_R2,SHIELD_BLOCK_180_L, SHIELD_BLOCK_180_R,
|
||||
SPELL, SPELL_180_R, SPELL_90_R, SPELL_90_L, SPELL_90_L2,
|
||||
LIGHT_ATTACK, LIGHT_ATTACK2, LIGHT_ATTACK3, LIGHT_ATTACK4,LIGHT_ATTACK_180_R, LIGHT_ATTACK_90_L, LIGHT_ATTACK_90_R1, LIGHT_ATTACK_90_R2, LIGHT_ATTACK_90_R3,
|
||||
ATTACK_END,
|
||||
@@ -22,7 +23,7 @@ enum ESTATE
|
||||
ACCIO,DESCENDO,DIFFINDO,DEPULSO,LUMOS,LUMOS_STOP,DISILLUSION_ENTER,DISILLUSION_EXIT, ANCIENT_THROW, AVADA_KEDAVRA,REPARO_START, REPARO_LOOP, REPARO_END,
|
||||
SPELL_FAIL, SPELL_CHARGE,
|
||||
ANCIENT_LIGHTNING,
|
||||
PARRY_180,PARRY2, PARRY3, PARRY4,
|
||||
PARRY_180,PARRY2, PARRY3, PARRY4, PARRY5, PARRY6,
|
||||
BROOM_IDLE,BROOM_FWD,BROOM_LEFT,BROOM_RIGHT,BROOM_DOWN,BROOM_UP, BROOM_REVELIO, BROOM_HOVER_IDLE, BROOM_HOVER_FWD, BROOM_HOVER_LEFT, BROOM_HOVER_RIGHT, BROOM_HOVER_START, BROOM_HOVER_REVELIO,BROOM_MOUNT, BROOM_MOUNT_END,BROOM_DISMOUNT,BROOM_TURBO_FWD, BROOM_TURBO_DOWN, BROOM_TURBO_UP, BROOM_TURBO_LEFT, BROOM_TURBO_RIGHT,
|
||||
RUSH_START,RUSH_LOOP,RUSH_END,
|
||||
THROW_ROCK_START,THROW_ROCK,
|
||||
@@ -41,7 +42,7 @@ enum ESTATE
|
||||
STUMBLE_BWD_L,STUMBLE_BWD_R,STUMBLE_FWD,
|
||||
HOVER_LOOP,HOVER_DASH_FWD, HOVER_DASH_BWD, HOVER_DASH_LEFT, HOVER_DASH_RIGHT,
|
||||
FIREBALL1_A,FIREBALL2_A, FIREBALL1_G, FIREBALL2_G,
|
||||
FIREBREATH_A,FIREBREATH_COOLDOWN_A,FIREBREATH_WINDUP_A, FIRESWEEP_A, FIRESWEEP_COOLDOWN_A, FIRESWEEP_WINDUP_A, FIREBREATH_G, FIRESWEEP_G,
|
||||
FIREBREATH_A,FIREBREATH_COOLDOWN_A,FIREBREATH_WINDUP_A, FIRESWEEP_A, FIRESWEEP_COOLDOWN_A, FIRESWEEP_WINDUP_A, FIREBREATH_G, FIRESWEEP_G,FIRESWEEP_G_L, FIRESWEEP_G_R,
|
||||
PULSE,
|
||||
GROUND_SWIPE_L,GROUND_SWIPE_R,
|
||||
TUCKED,FLY_TO_HOVER,FLY,
|
||||
@@ -54,7 +55,7 @@ enum ESTATE
|
||||
#pragma endregion
|
||||
|
||||
#pragma region CUTSCENE
|
||||
CUTSCENE_TROLLINTRO,CUTSCENE_OPENINGINTRO1, CUTSCENE_OPENINGINTRO2, CUTSCENE_OPENINGINTRO3,
|
||||
CUTSCENE_TROLLINTRO,CUTSCENE_OPENINGINTRO1, CUTSCENE_OPENINGINTRO2, CUTSCENE_OPENINGINTRO3,CUTSCENE_DUEL,
|
||||
#pragma endregion
|
||||
END
|
||||
};
|
||||
|
||||
@@ -91,7 +91,8 @@ class ENGINE_DLL CTransform final :
|
||||
void Add_SpeedPerSec(_float fSpeedPerSec);
|
||||
|
||||
#ifdef _DEBUG
|
||||
_float3& Get_Rotation() { return m_vRotation; }
|
||||
_float3& Get_Rotation() { return m_vRotation; }
|
||||
void Set_Rotation(_float3 vRotation) { m_vRotation = vRotation; }
|
||||
#endif // _DEBUG
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user