[Add] FSM추가
[Add] 플레이어 추가 [Add] 애니메이션 검색 기능 추가 [Add] 애니메이션 보간 추가 [Add] Unit클래스 추가
This commit is contained in:
@@ -0,0 +1,76 @@
|
||||
#include "pch.h"
|
||||
#include "Unit.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
|
||||
CUnit::CUnit(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CGameObject(pDevice, pContext)
|
||||
{
|
||||
}
|
||||
|
||||
CUnit::CUnit(const CUnit& Prototype)
|
||||
: CGameObject(Prototype)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CUnit::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CUnit::Initialize(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Initialize(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
m_Animation.resize(FSMSTATE::END);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CUnit::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void CUnit::Update(_float fTimeDelta)
|
||||
{
|
||||
}
|
||||
|
||||
void CUnit::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CUnit::Render()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CUnit::Ready_Components(void *pArg)
|
||||
{
|
||||
__super::Ready_Components(pArg);
|
||||
|
||||
/* Com_FSM */
|
||||
if (FAILED(Add_Component<CFSM>(g_iStaticLevel, &m_pFSM)))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CUnit::Bind_ShaderResources()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CUnit::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pShaderCom);
|
||||
SAFE_RELEASE(m_pModelCom);
|
||||
SAFE_RELEASE(m_pFSM);
|
||||
}
|
||||
|
||||
void CUnit::Describe_Entity()
|
||||
{
|
||||
}
|
||||
Reference in New Issue
Block a user