Esempio n. 1
0
 public CKLBGenericTask(CKLBTask parent, CKLBTask.ETASK_PHASE phase, ExecuteCallBack executeCallBack, DieCallBack dieCallBack)
     : base(s_classID)
 {
     NativeManagement.resetCppError();
     IntPtr ptr = CKLBGenericTask_create(parent != null ? parent.CppObject : IntPtr.Zero, (uint)phase);
     NativeManagement.intercepCppError();
     bind(ptr);
     m_executeCallBack = executeCallBack;
     m_dieCallBack = dieCallBack;
 }
Esempio n. 2
0
        public CKLBGenericTask(CKLBTask parent, CKLBTask.ETASK_PHASE phase, ExecuteCallBack executeCallBack, DieCallBack dieCallBack)
            : base(s_classID)
        {
            NativeManagement.resetCppError();
            IntPtr ptr = CKLBGenericTask_create(parent != null ? parent.CppObject : IntPtr.Zero, (uint)phase);

            NativeManagement.intercepCppError();
            bind(ptr);
            m_executeCallBack = executeCallBack;
            m_dieCallBack     = dieCallBack;
        }
Esempio n. 3
0
 public override void setDelegate(Delegate anyDelegate, String delegateName)
 {
     if(delegateName == "execute")
     {
         m_executeCallBack = (ExecuteCallBack)anyDelegate;
     }
     else if(delegateName == "die")
     {
         m_dieCallBack = (DieCallBack)anyDelegate;
     }
     else {
         throw new CKLBException("Unvalid delegate name");
     }
 }
Esempio n. 4
0
 public override void setDelegate(Delegate anyDelegate, String delegateName)
 {
     if (delegateName == "execute")
     {
         m_executeCallBack = (ExecuteCallBack)anyDelegate;
     }
     else if (delegateName == "die")
     {
         m_dieCallBack = (DieCallBack)anyDelegate;
     }
     else
     {
         throw new CKLBException("Unvalid delegate name");
     }
 }