예제 #1
0
 public CSDT_CAMPINFO()
 {
     this.astCampPlayerInfo = new CSDT_CAMPPLAYERINFO[5];
     for (int i = 0; i < 5; i++)
     {
         this.astCampPlayerInfo[i] = (CSDT_CAMPPLAYERINFO)ProtocolObjectPool.Get(CSDT_CAMPPLAYERINFO.CLASS_ID);
     }
     this.stExtInfo = (CSDT_CAMP_EXT_INFO)ProtocolObjectPool.Get(CSDT_CAMP_EXT_INFO.CLASS_ID);
 }
예제 #2
0
 public override void OnUse()
 {
     if (this.astCampPlayerInfo != null)
     {
         for (int i = 0; i < this.astCampPlayerInfo.Length; i++)
         {
             this.astCampPlayerInfo[i] = (CSDT_CAMPPLAYERINFO)ProtocolObjectPool.Get(CSDT_CAMPPLAYERINFO.CLASS_ID);
         }
     }
     this.stExtInfo = (CSDT_CAMP_EXT_INFO)ProtocolObjectPool.Get(CSDT_CAMP_EXT_INFO.CLASS_ID);
 }
예제 #3
0
 public override void OnRelease()
 {
     this.dwPlayerNum = 0u;
     if (this.astCampPlayerInfo != null)
     {
         for (int i = 0; i < this.astCampPlayerInfo.Length; i++)
         {
             if (this.astCampPlayerInfo[i] != null)
             {
                 this.astCampPlayerInfo[i].Release();
                 this.astCampPlayerInfo[i] = null;
             }
         }
     }
     if (this.stExtInfo != null)
     {
         this.stExtInfo.Release();
         this.stExtInfo = null;
     }
 }