Exemplo n.º 1
0
 public override void OnUse()
 {
     this.stBaseInfo         = (COMDT_HEROINFO)ProtocolObjectPool.Get(COMDT_HEROINFO.CLASS_ID);
     this.stBurningInfo      = (COMDT_HERO_BURNING_INFO)ProtocolObjectPool.Get(COMDT_HERO_BURNING_INFO.CLASS_ID);
     this.stHeroExtral       = (COMDT_HEROEXTRALINFO)ProtocolObjectPool.Get(COMDT_HEROEXTRALINFO.CLASS_ID);
     this.stNewHeroEquipList = (COMDT_HERO_EQUIPLIST_NEW)ProtocolObjectPool.Get(COMDT_HERO_EQUIPLIST_NEW.CLASS_ID);
 }
Exemplo n.º 2
0
 public COMDT_CHOICEHERO()
 {
     this.stBaseInfo    = (COMDT_HEROINFO)ProtocolObjectPool.Get(COMDT_HEROINFO.CLASS_ID);
     this.SymbolID      = new uint[30];
     this.stBurningInfo = (COMDT_HERO_BURNING_INFO)ProtocolObjectPool.Get(COMDT_HERO_BURNING_INFO.CLASS_ID);
     this.stHeroExtral  = (COMDT_HEROEXTRALINFO)ProtocolObjectPool.Get(COMDT_HEROEXTRALINFO.CLASS_ID);
     this.HeroEquipList = new uint[6];
 }
Exemplo n.º 3
0
 public override void OnRelease()
 {
     if (this.stBaseInfo != null)
     {
         this.stBaseInfo.Release();
         this.stBaseInfo = null;
     }
     if (this.stBurningInfo != null)
     {
         this.stBurningInfo.Release();
         this.stBurningInfo = null;
     }
     if (this.stHeroExtral != null)
     {
         this.stHeroExtral.Release();
         this.stHeroExtral = null;
     }
 }