public override void OnRelease() { this.iGameSysTime = 0; if (this.astShopDrawInfo != null) { for (int i = 0; i < this.astShopDrawInfo.Length; i++) { if (this.astShopDrawInfo[i] != null) { this.astShopDrawInfo[i].Release(); this.astShopDrawInfo[i] = null; } } } this.bCurCoinDrawStep = 0; this.dwOpenBoxByCouponsCnt = 0u; this.dwDirectBuyItemCnt = 0u; if (this.stSymbolDrawCommon != null) { this.stSymbolDrawCommon.Release(); this.stSymbolDrawCommon = null; } if (this.stSymbolDrawSenior != null) { this.stSymbolDrawSenior.Release(); this.stSymbolDrawSenior = null; } }
public CSDT_ACNT_SHOPBUY_INFO() { for (int i = 0; i < 15; i++) { this.astShopDrawInfo[i] = (CSDT_SHOPBUY_DRAWINFO)ProtocolObjectPool.Get(CSDT_SHOPBUY_DRAWINFO.CLASS_ID); } this.LeftShopBuyCnt = new int[20]; this.stSymbolDrawSenior = (COMDT_DRAWCNT_RECORD)ProtocolObjectPool.Get(COMDT_DRAWCNT_RECORD.CLASS_ID); }
public override void OnUse() { if (this.astShopDrawInfo != null) { for (int i = 0; i < this.astShopDrawInfo.Length; i++) { this.astShopDrawInfo[i] = (CSDT_SHOPBUY_DRAWINFO)ProtocolObjectPool.Get(CSDT_SHOPBUY_DRAWINFO.CLASS_ID); } } this.stSymbolDrawSenior = (COMDT_DRAWCNT_RECORD)ProtocolObjectPool.Get(COMDT_DRAWCNT_RECORD.CLASS_ID); }