mirror of https://github.com/axmolengine/axmol.git
21 lines
374 B
C++
21 lines
374 B
C++
#include "CCInvocation.h"
|
|
|
|
NS_CC_BEGIN
|
|
|
|
CCInvocation::CCInvocation(CCObject* target, SEL_MenuHandler action, CCControlEvent controlEvent)
|
|
{
|
|
m_target=target;
|
|
m_action=action;
|
|
m_controlEvent=controlEvent;
|
|
}
|
|
|
|
void CCInvocation::invoke(CCObject* sender)
|
|
{
|
|
if (m_target && m_action)
|
|
{
|
|
(m_target->*m_action)(sender);
|
|
}
|
|
}
|
|
|
|
NS_CC_END
|