コード例 #1
0
 public override void OnUse()
 {
     this.stGameInfo       = (COMDT_GAME_INFO)ProtocolObjectPool.Get(COMDT_GAME_INFO.CLASS_ID);
     this.stAcntInfo       = (COMDT_ACNT_INFO)ProtocolObjectPool.Get(COMDT_ACNT_INFO.CLASS_ID);
     this.stRankInfo       = (COMDT_RANK_SETTLE_INFO)ProtocolObjectPool.Get(COMDT_RANK_SETTLE_INFO.CLASS_ID);
     this.stHeroList       = (COMDT_SETTLE_HERO_RESULT_DETAIL)ProtocolObjectPool.Get(COMDT_SETTLE_HERO_RESULT_DETAIL.CLASS_ID);
     this.stReward         = (COMDT_REWARD_DETAIL)ProtocolObjectPool.Get(COMDT_REWARD_DETAIL.CLASS_ID);
     this.stMultipleDetail = (COMDT_REWARD_MULTIPLE_DETAIL)ProtocolObjectPool.Get(COMDT_REWARD_MULTIPLE_DETAIL.CLASS_ID);
     this.stSpecReward     = (COMDT_PVPSPECITEM_OUTPUT)ProtocolObjectPool.Get(COMDT_PVPSPECITEM_OUTPUT.CLASS_ID);
 }
コード例 #2
0
 public override void OnRelease()
 {
     if (this.stGameInfo != null)
     {
         this.stGameInfo.Release();
         this.stGameInfo = null;
     }
     if (this.stAcntInfo != null)
     {
         this.stAcntInfo.Release();
         this.stAcntInfo = null;
     }
     if (this.stRankInfo != null)
     {
         this.stRankInfo.Release();
         this.stRankInfo = null;
     }
     if (this.stHeroList != null)
     {
         this.stHeroList.Release();
         this.stHeroList = null;
     }
     if (this.stReward != null)
     {
         this.stReward.Release();
         this.stReward = null;
     }
     if (this.stMultipleDetail != null)
     {
         this.stMultipleDetail.Release();
         this.stMultipleDetail = null;
     }
     if (this.stSpecReward != null)
     {
         this.stSpecReward.Release();
         this.stSpecReward = null;
     }
     this.dwTipsMask = 0u;
 }