public CSDT_HERO_DETAIL()
 {
     this.stCommonInfo = (COMDT_HERO_COMMON_INFO)ProtocolObjectPool.Get(COMDT_HERO_COMMON_INFO.CLASS_ID);
     this.astGearWear  = new CSDT_HERO_WEARINFO[6];
     for (int i = 0; i < 6; i++)
     {
         this.astGearWear[i] = (CSDT_HERO_WEARINFO)ProtocolObjectPool.Get(CSDT_HERO_WEARINFO.CLASS_ID);
     }
 }
Exemplo n.º 2
0
 public override void OnUse()
 {
     this.stCommonInfo = (COMDT_HERO_COMMON_INFO)ProtocolObjectPool.Get(COMDT_HERO_COMMON_INFO.CLASS_ID);
     if (this.astGearWear != null)
     {
         for (int i = 0; i < this.astGearWear.Length; i++)
         {
             this.astGearWear[i] = (CSDT_HERO_WEARINFO)ProtocolObjectPool.Get(CSDT_HERO_WEARINFO.CLASS_ID);
         }
     }
 }
Exemplo n.º 3
0
 public override void OnRelease()
 {
     if (this.stCommonInfo != null)
     {
         this.stCommonInfo.Release();
         this.stCommonInfo = null;
     }
     if (this.astGearWear != null)
     {
         for (int i = 0; i < this.astGearWear.Length; i++)
         {
             if (this.astGearWear[i] != null)
             {
                 this.astGearWear[i].Release();
                 this.astGearWear[i] = null;
             }
         }
     }
 }