Beispiel #1
0
 public override void OnUse()
 {
     this.stPlayerInfo       = (COMDT_PLAYERINFO)ProtocolObjectPool.Get(COMDT_PLAYERINFO.CLASS_ID);
     this.stUsableHero       = (COMDT_ACNT_USABLE_HERO)ProtocolObjectPool.Get(COMDT_ACNT_USABLE_HERO.CLASS_ID);
     this.stRecentUsedHero   = (COMDT_RECENT_USED_HERO)ProtocolObjectPool.Get(COMDT_RECENT_USED_HERO.CLASS_ID);
     this.stIntimacyRelation = (COMDT_INTIMACY_RELATION_INFO)ProtocolObjectPool.Get(COMDT_INTIMACY_RELATION_INFO.CLASS_ID);
 }
Beispiel #2
0
 public override void OnRelease()
 {
     if (this.stPlayerInfo != null)
     {
         this.stPlayerInfo.Release();
         this.stPlayerInfo = null;
     }
     this.bIsGM           = 0;
     this.dwGradeOfRank   = 0u;
     this.dwClassOfRank   = 0u;
     this.dwRandomHeroCnt = 0u;
     if (this.stUsableHero != null)
     {
         this.stUsableHero.Release();
         this.stUsableHero = null;
     }
     if (this.stRecentUsedHero != null)
     {
         this.stRecentUsedHero.Release();
         this.stRecentUsedHero = null;
     }
     if (this.stIntimacyRelation != null)
     {
         this.stIntimacyRelation.Release();
         this.stIntimacyRelation = null;
     }
 }
Beispiel #3
0
 public CSDT_CAMPPLAYERINFO()
 {
     this.stPlayerInfo       = (COMDT_PLAYERINFO)ProtocolObjectPool.Get(COMDT_PLAYERINFO.CLASS_ID);
     this.szOpenID           = new byte[64];
     this.stUsableHero       = (COMDT_ACNT_USABLE_HERO)ProtocolObjectPool.Get(COMDT_ACNT_USABLE_HERO.CLASS_ID);
     this.stRecentUsedHero   = (COMDT_RECENT_USED_HERO)ProtocolObjectPool.Get(COMDT_RECENT_USED_HERO.CLASS_ID);
     this.stIntimacyRelation = (COMDT_INTIMACY_RELATION_INFO)ProtocolObjectPool.Get(COMDT_INTIMACY_RELATION_INFO.CLASS_ID);
 }
 public override void OnRelease()
 {
     if (this.stPlayerInfo != null)
     {
         this.stPlayerInfo.Release();
         this.stPlayerInfo = null;
     }
     this.bIsGM           = 0;
     this.dwGradeOfRank   = 0;
     this.dwClassOfRank   = 0;
     this.dwRandomHeroCnt = 0;
     if (this.stUsableHero != null)
     {
         this.stUsableHero.Release();
         this.stUsableHero = null;
     }
 }
 public override void OnUse()
 {
     this.stPlayerInfo = (COMDT_PLAYERINFO)ProtocolObjectPool.Get(COMDT_PLAYERINFO.CLASS_ID);
     this.stUsableHero = (COMDT_ACNT_USABLE_HERO)ProtocolObjectPool.Get(COMDT_ACNT_USABLE_HERO.CLASS_ID);
 }