Exemple #1
0
 private static void GmBsCmnInitBossMotionCBSystem(
     AppMain.OBS_OBJECT_WORK obj_work,
     AppMain.GMS_BS_CMN_BMCB_MGR bmcb_mgr)
 {
     bmcb_mgr.Clear();
     bmcb_mgr.bmcb_head.next      = bmcb_mgr.bmcb_tail;
     bmcb_mgr.bmcb_head.prev      = (AppMain.GMS_BS_CMN_BMCB_LINK)null;
     bmcb_mgr.bmcb_tail.next      = (AppMain.GMS_BS_CMN_BMCB_LINK)null;
     bmcb_mgr.bmcb_tail.prev      = bmcb_mgr.bmcb_head;
     obj_work.obj_3d.mtn_cb_func  = new AppMain.mtn_cb_func_delegate(AppMain.gmBsCmnBossMotionCallbackFunc);
     obj_work.obj_3d.mtn_cb_param = (object)bmcb_mgr;
 }
Exemple #2
0
 private static void GmBsCmnClearBossMotionCBSystem(AppMain.OBS_OBJECT_WORK obj_work)
 {
     AppMain.GMS_BS_CMN_BMCB_MGR mtnCbParam = (AppMain.GMS_BS_CMN_BMCB_MGR)obj_work.obj_3d.mtn_cb_param;
     if (mtnCbParam == null)
     {
         return;
     }
     AppMain.GMS_BS_CMN_BMCB_LINK next;
     for (AppMain.GMS_BS_CMN_BMCB_LINK gmsBsCmnBmcbLink = mtnCbParam.bmcb_head.next; gmsBsCmnBmcbLink != null; gmsBsCmnBmcbLink = next)
     {
         next = gmsBsCmnBmcbLink.next;
         gmsBsCmnBmcbLink.next = (AppMain.GMS_BS_CMN_BMCB_LINK)null;
         gmsBsCmnBmcbLink.prev = (AppMain.GMS_BS_CMN_BMCB_LINK)null;
         if (gmsBsCmnBmcbLink.bmcb_func == null)
         {
             break;
         }
     }
     mtnCbParam.bmcb_head.next = mtnCbParam.bmcb_head.prev = (AppMain.GMS_BS_CMN_BMCB_LINK)null;
     mtnCbParam.bmcb_tail.next = mtnCbParam.bmcb_tail.prev = (AppMain.GMS_BS_CMN_BMCB_LINK)null;
     mtnCbParam.Clear();
     obj_work.obj_3d.mtn_cb_func  = (AppMain.mtn_cb_func_delegate)null;
     obj_work.obj_3d.mtn_cb_param = (object)null;
 }