DragonNest/Client/EtActionTool/SCRVelocity.cpp
2024-12-20 16:56:44 +08:00

39 lines
1.5 KiB
C++
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#include "StdAfx.h"
#include "SCRVelocity.h"
#include "ActionSignal.h"
#include "ActionObject.h"
CSCRVelocity::CSCRVelocity( const char *szSignalName )
: CSignalCustomRender( szSignalName )
{
}
CSCRVelocity::~CSCRVelocity()
{
}
void CSCRVelocity::Initialize()
{
m_bActivate = true;
OnModify();
}
void CSCRVelocity::OnModify()
{
}
void CSCRVelocity::OnSelect( bool bFirst )
{
}
void CSCRVelocity::OnUnSelect()
{
}
void CSCRVelocity::OnProcess( LOCAL_TIME LocalTime, float fDelta )
{
((CActionObject*)m_pSignal->GetParent()->GetParent())->SetVelocity( m_pSignal->GetProperty(0)->GetVariableVector3() );
((CActionObject*)m_pSignal->GetParent()->GetParent())->SetResistance( m_pSignal->GetProperty(1)->GetVariableVector3() );
}