Exemplo n.º 1
0
 public COMDT_SHOPBUY_RECORD()
 {
     for (int i = 0; i < 15; i++)
     {
         this.astDrawRecord[i] = (COMDT_DRAWCNT_RECORD)ProtocolObjectPool.Get(COMDT_DRAWCNT_RECORD.CLASS_ID);
     }
     this.ShopBuyLimit   = new int[20];
     this.stCoinDrawInfo = (COMDT_COINDRAW_INFO)ProtocolObjectPool.Get(COMDT_COINDRAW_INFO.CLASS_ID);
 }
Exemplo n.º 2
0
 public override void OnUse()
 {
     if (this.astDrawRecord != null)
     {
         for (int i = 0; i < this.astDrawRecord.Length; i++)
         {
             this.astDrawRecord[i] = (COMDT_DRAWCNT_RECORD)ProtocolObjectPool.Get(COMDT_DRAWCNT_RECORD.CLASS_ID);
         }
     }
     this.stCoinDrawInfo = (COMDT_COINDRAW_INFO)ProtocolObjectPool.Get(COMDT_COINDRAW_INFO.CLASS_ID);
 }
Exemplo n.º 3
0
 public override void OnRelease()
 {
     if (this.astDrawRecord != null)
     {
         for (int i = 0; i < this.astDrawRecord.Length; i++)
         {
             if (this.astDrawRecord[i] != null)
             {
                 this.astDrawRecord[i].Release();
                 this.astDrawRecord[i] = null;
             }
         }
     }
     this.iLimitRefreshTime = 0;
     if (this.stCoinDrawInfo != null)
     {
         this.stCoinDrawInfo.Release();
         this.stCoinDrawInfo = null;
     }
     this.dwDirectBuyItemRefreshTime = 0;
     this.dwDirectBuyCurItemCnt      = 0;
 }