public COMDT_ACTIVITY_DETAIL()
 {
     this.stOpenData           = (COMDT_ACTIVITY_OPEN_UNION)ProtocolObjectPool.Get(COMDT_ACTIVITY_OPEN_UNION.CLASS_ID);
     this.astSubActivityDetail = new COMDT_SUBACTIVITY_DETAIL[20];
     for (int i = 0; i < 20; i++)
     {
         this.astSubActivityDetail[i] = (COMDT_SUBACTIVITY_DETAIL)ProtocolObjectPool.Get(COMDT_SUBACTIVITY_DETAIL.CLASS_ID);
     }
 }
예제 #2
0
 public override void OnUse()
 {
     this.stOpenData = (COMDT_ACTIVITY_OPEN_UNION)ProtocolObjectPool.Get(COMDT_ACTIVITY_OPEN_UNION.CLASS_ID);
     if (this.astSubActivityDetail != null)
     {
         for (int i = 0; i < this.astSubActivityDetail.Length; i++)
         {
             this.astSubActivityDetail[i] = (COMDT_SUBACTIVITY_DETAIL)ProtocolObjectPool.Get(COMDT_SUBACTIVITY_DETAIL.CLASS_ID);
         }
     }
 }
예제 #3
0
 public override void OnRelease()
 {
     this.dwActivityID     = 0;
     this.dwAccPlayedCount = 0;
     this.bOpenType        = 0;
     if (this.stOpenData != null)
     {
         this.stOpenData.Release();
         this.stOpenData = null;
     }
     this.wSubActivityCnt = 0;
     if (this.astSubActivityDetail != null)
     {
         for (int i = 0; i < this.astSubActivityDetail.Length; i++)
         {
             if (this.astSubActivityDetail[i] != null)
             {
                 this.astSubActivityDetail[i].Release();
                 this.astSubActivityDetail[i] = null;
             }
         }
     }
 }