Пример #1
0
 public override void OnRelease()
 {
     if (this.stDeskInfo != null)
     {
         this.stDeskInfo.Release();
         this.stDeskInfo = null;
     }
     this.dwLeftMs = 0;
     if (this.astCampInfo != null)
     {
         for (int i = 0; i < this.astCampInfo.Length; i++)
         {
             if (this.astCampInfo[i] != null)
             {
                 this.astCampInfo[i].Release();
                 this.astCampInfo[i] = null;
             }
         }
     }
     if (this.stFreeHero != null)
     {
         this.stFreeHero.Release();
         this.stFreeHero = null;
     }
     if (this.stFreeHeroSymbol != null)
     {
         this.stFreeHeroSymbol.Release();
         this.stFreeHeroSymbol = null;
     }
     if (this.stPickStateExtra != null)
     {
         this.stPickStateExtra.Release();
         this.stPickStateExtra = null;
     }
 }
 public override void OnRelease()
 {
     this.dwDeskId       = 0;
     this.dwDeskSeq      = 0;
     this.bKFrapsLater   = 0;
     this.dwKFrapsFreqMs = 0;
     this.bPreActFrap    = 0;
     this.dwRandomSeed   = 0;
     this.bGameType      = 0;
     if (this.stDeskInfo != null)
     {
         this.stDeskInfo.Release();
         this.stDeskInfo = null;
     }
     if (this.astCampInfo != null)
     {
         for (int i = 0; i < this.astCampInfo.Length; i++)
         {
             if (this.astCampInfo[i] != null)
             {
                 this.astCampInfo[i].Release();
                 this.astCampInfo[i] = null;
             }
         }
     }
 }
Пример #3
0
 public override void OnRelease()
 {
     this.dwSelfObjID = 0;
     if (this.stDeskInfo != null)
     {
         this.stDeskInfo.Release();
         this.stDeskInfo = null;
     }
     if (this.astCampInfo != null)
     {
         for (int i = 0; i < this.astCampInfo.Length; i++)
         {
             if (this.astCampInfo[i] != null)
             {
                 this.astCampInfo[i].Release();
                 this.astCampInfo[i] = null;
             }
         }
     }
     if (this.stFreeHero != null)
     {
         this.stFreeHero.Release();
         this.stFreeHero = null;
     }
     if (this.stFreeHeroSymbol != null)
     {
         this.stFreeHeroSymbol.Release();
         this.stFreeHeroSymbol = null;
     }
 }
Пример #4
0
 public SCPKG_MULTGAME_BEGINLOAD()
 {
     this.stDeskInfo  = (COMDT_DESKINFO)ProtocolObjectPool.Get(COMDT_DESKINFO.CLASS_ID);
     this.astCampInfo = new CSDT_CAMPINFO[2];
     for (int i = 0; i < 2; i++)
     {
         this.astCampInfo[i] = (CSDT_CAMPINFO)ProtocolObjectPool.Get(CSDT_CAMPINFO.CLASS_ID);
     }
 }
 public SCPKG_MULTGAME_BEGINBAN()
 {
     this.stDeskInfo  = (COMDT_DESKINFO)ProtocolObjectPool.Get(COMDT_DESKINFO.CLASS_ID);
     this.astCampInfo = new CSDT_CAMPINFO[2];
     for (int i = 0; i < 2; i++)
     {
         this.astCampInfo[i] = (CSDT_CAMPINFO)ProtocolObjectPool.Get(CSDT_CAMPINFO.CLASS_ID);
     }
     this.stFreeHero       = (COMDT_FREEHERO)ProtocolObjectPool.Get(COMDT_FREEHERO.CLASS_ID);
     this.stFreeHeroSymbol = (COMDT_FREEHERO_INACNT)ProtocolObjectPool.Get(COMDT_FREEHERO_INACNT.CLASS_ID);
 }
 public override void OnUse()
 {
     this.stDeskInfo = (COMDT_DESKINFO)ProtocolObjectPool.Get(COMDT_DESKINFO.CLASS_ID);
     if (this.astCampInfo != null)
     {
         for (int i = 0; i < this.astCampInfo.Length; i++)
         {
             this.astCampInfo[i] = (CSDT_CAMPINFO)ProtocolObjectPool.Get(CSDT_CAMPINFO.CLASS_ID);
         }
     }
 }
 public CSDT_RECONN_ADJUSTINFO()
 {
     this.stDeskInfo  = (COMDT_DESKINFO)ProtocolObjectPool.Get(COMDT_DESKINFO.CLASS_ID);
     this.astCampInfo = new CSDT_RECONN_CAMPPICKINFO[2];
     for (int i = 0; i < 2; i++)
     {
         this.astCampInfo[i] = (CSDT_RECONN_CAMPPICKINFO)ProtocolObjectPool.Get(CSDT_RECONN_CAMPPICKINFO.CLASS_ID);
     }
     this.stFreeHero       = (COMDT_FREEHERO)ProtocolObjectPool.Get(COMDT_FREEHERO.CLASS_ID);
     this.stFreeHeroSymbol = (COMDT_FREEHERO_INACNT)ProtocolObjectPool.Get(COMDT_FREEHERO_INACNT.CLASS_ID);
     this.stHeroSwapInfo   = (CSDT_RECONN_ADJUST_STATE_EXTRA)ProtocolObjectPool.Get(CSDT_RECONN_ADJUST_STATE_EXTRA.CLASS_ID);
 }
Пример #8
0
 public CSDT_RECONN_BANINFO()
 {
     this.stDeskInfo  = (COMDT_DESKINFO)ProtocolObjectPool.Get(COMDT_DESKINFO.CLASS_ID);
     this.astCampInfo = new CSDT_CAMPINFO[2];
     for (int i = 0; i < 2; i++)
     {
         this.astCampInfo[i] = (CSDT_CAMPINFO)ProtocolObjectPool.Get(CSDT_CAMPINFO.CLASS_ID);
     }
     this.stFreeHero       = (COMDT_FREEHERO)ProtocolObjectPool.Get(COMDT_FREEHERO.CLASS_ID);
     this.stFreeHeroSymbol = (COMDT_FREEHERO_INACNT)ProtocolObjectPool.Get(COMDT_FREEHERO_INACNT.CLASS_ID);
     this.stStateInfo      = (CSDT_RECONN_BAN_PICK_STATE_INFO)ProtocolObjectPool.Get(CSDT_RECONN_BAN_PICK_STATE_INFO.CLASS_ID);
 }
Пример #9
0
 public override void OnUse()
 {
     this.stDeskInfo = (COMDT_DESKINFO)ProtocolObjectPool.Get(COMDT_DESKINFO.CLASS_ID);
     if (this.astCampInfo != null)
     {
         for (int i = 0; i < this.astCampInfo.Length; i++)
         {
             this.astCampInfo[i] = (CSDT_CAMPINFO)ProtocolObjectPool.Get(CSDT_CAMPINFO.CLASS_ID);
         }
     }
     this.stFreeHero       = (COMDT_FREEHERO)ProtocolObjectPool.Get(COMDT_FREEHERO.CLASS_ID);
     this.stFreeHeroSymbol = (COMDT_FREEHERO_INACNT)ProtocolObjectPool.Get(COMDT_FREEHERO_INACNT.CLASS_ID);
 }
Пример #10
0
 public override void OnUse()
 {
     this.stDeskInfo = (COMDT_DESKINFO)ProtocolObjectPool.Get(COMDT_DESKINFO.CLASS_ID);
     if (this.astCampInfo != null)
     {
         for (int i = 0; i < this.astCampInfo.Length; i++)
         {
             this.astCampInfo[i] = (CSDT_RECONN_CAMPPICKINFO)ProtocolObjectPool.Get(CSDT_RECONN_CAMPPICKINFO.CLASS_ID);
         }
     }
     this.stFreeHero       = (COMDT_FREEHERO)ProtocolObjectPool.Get(COMDT_FREEHERO.CLASS_ID);
     this.stFreeHeroSymbol = (COMDT_FREEHERO_INACNT)ProtocolObjectPool.Get(COMDT_FREEHERO_INACNT.CLASS_ID);
     this.stPickStateExtra = (CSDT_RECONN_PICK_STATE_EXTRA)ProtocolObjectPool.Get(CSDT_RECONN_PICK_STATE_EXTRA.CLASS_ID);
 }