Example #1
0
 public bool initWithTarget(SelectorProtocol pSelectorTarget, SEL_CallFuncND selector, object d)
 {
     if (!base.initWithTarget(pSelectorTarget))
     {
         return(false);
     }
     this.m_pData       = d;
     this.m_pCallFuncND = selector;
     return(true);
 }
        // todo
        //public static CCCallFuncND actionWithScriptFuncName(string pszFuncName, object d) 
        //{
        //    CCCallFuncND pRet = new CCCallFuncND();

        //    if (pRet != null && pRet.initWithScriptFuncName(pszFuncName)) 
        //    {
        //        pRet.m_pData = d;
        //        return pRet;
        //    }
	        
        //    return null;
        //}


        public bool initWithTarget(SelectorProtocol pSelectorTarget,
		        SEL_CallFuncND selector, object d) 
        {
	        if (base.initWithTarget(pSelectorTarget)) 
            {
		        m_pData = d;
		        m_pCallFuncND = selector;
		        return true;
	        }

	        return false;
        }
         public static CCCallFuncND actionWithTarget(SelectorProtocol pSelectorTarget,
		        SEL_CallFuncND selector, object d) 
         {
	        CCCallFuncND pRet = new CCCallFuncND();

	        if (pRet != null && pRet.initWithTarget(pSelectorTarget, selector, d)) 
            {
		        return pRet;
	        }

	        return null;
        }
Example #4
0
        public static CCCallFuncND actionWithTarget(SelectorProtocol pSelectorTarget,
                                                    SEL_CallFuncND selector, object d)
        {
            CCCallFuncND pRet = new CCCallFuncND();

            if (pRet != null && pRet.initWithTarget(pSelectorTarget, selector, d))
            {
                return(pRet);
            }

            return(null);
        }
Example #5
0
 public bool InitWithTarget(SEL_CallFuncND selector, object d)
 {
     m_pData = d;
     m_pCallFuncND = selector;
     return true;
 }
Example #6
0
 public CCCallFuncND(SEL_CallFuncND selector, object d)
     : base()
 {
     InitWithTarget(selector, d);
 }
 public CCCallFuncND(SEL_CallFuncND selector, object d) : base()
 {
     InitWithTarget(selector, d);
 }
 public bool InitWithTarget(SEL_CallFuncND selector, object d)
 {
     m_pData       = d;
     m_pCallFuncND = selector;
     return(true);
 }
Example #9
0
        public static CCCallFuncND actionWithTarget(SelectorProtocol pSelectorTarget, SEL_CallFuncND selector, object d)
        {
            CCCallFuncND cCCallFuncND = new CCCallFuncND();

            if (cCCallFuncND != null && cCCallFuncND.initWithTarget(pSelectorTarget, selector, d))
            {
                return(cCCallFuncND);
            }
            return(null);
        }