public override void OnUse()
 {
     if (this.astSingleDetail != null)
     {
         for (int i = 0; i < this.astSingleDetail.Length; i++)
         {
             this.astSingleDetail[i] = (COMDT_STATISTIC_DATA_INFO_SINGLE)ProtocolObjectPool.Get(COMDT_STATISTIC_DATA_INFO_SINGLE.CLASS_ID);
         }
     }
     if (this.astMultiDetail != null)
     {
         for (int j = 0; j < this.astMultiDetail.Length; j++)
         {
             this.astMultiDetail[j] = (COMDT_STATISTIC_DATA_INFO_MULTI)ProtocolObjectPool.Get(COMDT_STATISTIC_DATA_INFO_MULTI.CLASS_ID);
         }
     }
     this.stKVDetail = (COMDT_STATISTIC_KEY_VALUE_DETAIL)ProtocolObjectPool.Get(COMDT_STATISTIC_KEY_VALUE_DETAIL.CLASS_ID);
     if (this.astWarmDetail != null)
     {
         for (int k = 0; k < this.astWarmDetail.Length; k++)
         {
             this.astWarmDetail[k] = (COMDT_WARM_BATTLE_INFO)ProtocolObjectPool.Get(COMDT_WARM_BATTLE_INFO.CLASS_ID);
         }
     }
     this.stLadderWarm = (COMDT_WARM_BATTLE_INFO)ProtocolObjectPool.Get(COMDT_WARM_BATTLE_INFO.CLASS_ID);
     this.stMultiExtra = (COMDT_STATISTIC_DATA_EXTRA_DETAIL)ProtocolObjectPool.Get(COMDT_STATISTIC_DATA_EXTRA_DETAIL.CLASS_ID);
 }
 public override void OnRelease()
 {
     this.bSingleNum = 0;
     if (this.astSingleDetail != null)
     {
         for (int i = 0; i < this.astSingleDetail.Length; i++)
         {
             if (this.astSingleDetail[i] != null)
             {
                 this.astSingleDetail[i].Release();
                 this.astSingleDetail[i] = null;
             }
         }
     }
     this.bMultiNum = 0;
     if (this.astMultiDetail != null)
     {
         for (int j = 0; j < this.astMultiDetail.Length; j++)
         {
             if (this.astMultiDetail[j] != null)
             {
                 this.astMultiDetail[j].Release();
                 this.astMultiDetail[j] = null;
             }
         }
     }
     if (this.stKVDetail != null)
     {
         this.stKVDetail.Release();
         this.stKVDetail = null;
     }
     this.bWarmNum = 0;
     if (this.astWarmDetail != null)
     {
         for (int k = 0; k < this.astWarmDetail.Length; k++)
         {
             if (this.astWarmDetail[k] != null)
             {
                 this.astWarmDetail[k].Release();
                 this.astWarmDetail[k] = null;
             }
         }
     }
     this.dwNormalMMRContinuousWinNum  = 0u;
     this.dwNormalMMRContinuousLoseNum = 0u;
     this.dwNormalMMRWinNum            = 0u;
     this.dwNormalMMRLoseNum           = 0u;
     if (this.stLadderWarm != null)
     {
         this.stLadderWarm.Release();
         this.stLadderWarm = null;
     }
     if (this.stMultiExtra != null)
     {
         this.stMultiExtra.Release();
         this.stMultiExtra = null;
     }
 }
 public override void OnUse()
 {
     this.stOneVsOneInfo      = (CSDT_PVPBATTLE_INFO)ProtocolObjectPool.Get(CSDT_PVPBATTLE_INFO.CLASS_ID);
     this.stTwoVsTwoInfo      = (CSDT_PVPBATTLE_INFO)ProtocolObjectPool.Get(CSDT_PVPBATTLE_INFO.CLASS_ID);
     this.stThreeVsThreeInfo  = (CSDT_PVPBATTLE_INFO)ProtocolObjectPool.Get(CSDT_PVPBATTLE_INFO.CLASS_ID);
     this.stFourVsFourInfo    = (CSDT_PVPBATTLE_INFO)ProtocolObjectPool.Get(CSDT_PVPBATTLE_INFO.CLASS_ID);
     this.stFiveVsFiveInfo    = (CSDT_PVPBATTLE_INFO)ProtocolObjectPool.Get(CSDT_PVPBATTLE_INFO.CLASS_ID);
     this.stLadderInfo        = (CSDT_PVPBATTLE_INFO)ProtocolObjectPool.Get(CSDT_PVPBATTLE_INFO.CLASS_ID);
     this.stVsMachineInfo     = (CSDT_PVPBATTLE_INFO)ProtocolObjectPool.Get(CSDT_PVPBATTLE_INFO.CLASS_ID);
     this.stEntertainmentInfo = (CSDT_PVPBATTLE_INFO)ProtocolObjectPool.Get(CSDT_PVPBATTLE_INFO.CLASS_ID);
     this.stKVDetail          = (COMDT_STATISTIC_KEY_VALUE_DETAIL)ProtocolObjectPool.Get(COMDT_STATISTIC_KEY_VALUE_DETAIL.CLASS_ID);
 }
Exemple #4
0
 public CSDT_PVPDETAIL_INFO()
 {
     this.stOneVsOneInfo      = (COMDT_PVPBATTLE_INFO)ProtocolObjectPool.Get(COMDT_PVPBATTLE_INFO.CLASS_ID);
     this.stTwoVsTwoInfo      = (COMDT_PVPBATTLE_INFO)ProtocolObjectPool.Get(COMDT_PVPBATTLE_INFO.CLASS_ID);
     this.stThreeVsThreeInfo  = (COMDT_PVPBATTLE_INFO)ProtocolObjectPool.Get(COMDT_PVPBATTLE_INFO.CLASS_ID);
     this.stFourVsFourInfo    = (COMDT_PVPBATTLE_INFO)ProtocolObjectPool.Get(COMDT_PVPBATTLE_INFO.CLASS_ID);
     this.stFiveVsFiveInfo    = (COMDT_PVPBATTLE_INFO)ProtocolObjectPool.Get(COMDT_PVPBATTLE_INFO.CLASS_ID);
     this.stLadderInfo        = (COMDT_PVPBATTLE_INFO)ProtocolObjectPool.Get(COMDT_PVPBATTLE_INFO.CLASS_ID);
     this.stVsMachineInfo     = (COMDT_PVPBATTLE_INFO)ProtocolObjectPool.Get(COMDT_PVPBATTLE_INFO.CLASS_ID);
     this.stEntertainmentInfo = (COMDT_PVPBATTLE_INFO)ProtocolObjectPool.Get(COMDT_PVPBATTLE_INFO.CLASS_ID);
     this.stKVDetail          = (COMDT_STATISTIC_KEY_VALUE_DETAIL)ProtocolObjectPool.Get(COMDT_STATISTIC_KEY_VALUE_DETAIL.CLASS_ID);
     this.stGuildMatch        = (COMDT_PVPBATTLE_INFO)ProtocolObjectPool.Get(COMDT_PVPBATTLE_INFO.CLASS_ID);
     this.stMultiExtraDetail  = (COMDT_STATISTIC_DATA_EXTRA_DETAIL)ProtocolObjectPool.Get(COMDT_STATISTIC_DATA_EXTRA_DETAIL.CLASS_ID);
     this.stRadarDetail       = (CSDT_STATISTIC_DATA_EXTRA_RADAR_DETAIL)ProtocolObjectPool.Get(CSDT_STATISTIC_DATA_EXTRA_RADAR_DETAIL.CLASS_ID);
 }
 public override void OnRelease()
 {
     if (this.stOneVsOneInfo != null)
     {
         this.stOneVsOneInfo.Release();
         this.stOneVsOneInfo = null;
     }
     if (this.stTwoVsTwoInfo != null)
     {
         this.stTwoVsTwoInfo.Release();
         this.stTwoVsTwoInfo = null;
     }
     if (this.stThreeVsThreeInfo != null)
     {
         this.stThreeVsThreeInfo.Release();
         this.stThreeVsThreeInfo = null;
     }
     if (this.stFourVsFourInfo != null)
     {
         this.stFourVsFourInfo.Release();
         this.stFourVsFourInfo = null;
     }
     if (this.stFiveVsFiveInfo != null)
     {
         this.stFiveVsFiveInfo.Release();
         this.stFiveVsFiveInfo = null;
     }
     if (this.stLadderInfo != null)
     {
         this.stLadderInfo.Release();
         this.stLadderInfo = null;
     }
     if (this.stVsMachineInfo != null)
     {
         this.stVsMachineInfo.Release();
         this.stVsMachineInfo = null;
     }
     if (this.stEntertainmentInfo != null)
     {
         this.stEntertainmentInfo.Release();
         this.stEntertainmentInfo = null;
     }
     if (this.stKVDetail != null)
     {
         this.stKVDetail.Release();
         this.stKVDetail = null;
     }
 }
Exemple #6
0
 public COMDT_STATISTIC_DATA_DETAIL()
 {
     for (int i = 0; i < 20; i++)
     {
         this.astSingleDetail[i] = (COMDT_STATISTIC_DATA_INFO_SINGLE)ProtocolObjectPool.Get(COMDT_STATISTIC_DATA_INFO_SINGLE.CLASS_ID);
     }
     this.astMultiDetail = new COMDT_STATISTIC_DATA_INFO_MULTI[40];
     for (int j = 0; j < 40; j++)
     {
         this.astMultiDetail[j] = (COMDT_STATISTIC_DATA_INFO_MULTI)ProtocolObjectPool.Get(COMDT_STATISTIC_DATA_INFO_MULTI.CLASS_ID);
     }
     this.stKVDetail    = (COMDT_STATISTIC_KEY_VALUE_DETAIL)ProtocolObjectPool.Get(COMDT_STATISTIC_KEY_VALUE_DETAIL.CLASS_ID);
     this.astWarmDetail = new COMDT_WARM_BATTLE_INFO[10];
     for (int k = 0; k < 10; k++)
     {
         this.astWarmDetail[k] = (COMDT_WARM_BATTLE_INFO)ProtocolObjectPool.Get(COMDT_WARM_BATTLE_INFO.CLASS_ID);
     }
 }