Beispiel #1
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 #2
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 #3
0
 public SCPKG_CMD_GAMELOGINRSP()
 {
     this.szName               = new byte[64];
     this.stLoginTaskInfo      = (COMDT_ACNT_TASKINFO)ProtocolObjectPool.Get(COMDT_ACNT_TASKINFO.CLASS_ID);
     this.stPveProgress        = (COMDT_ACNT_LEVEL_COMPLETE_DETAIL)ProtocolObjectPool.Get(COMDT_ACNT_LEVEL_COMPLETE_DETAIL.CLASS_ID);
     this.stNewbieBits         = (COMDT_NEWBIE_STATUS_BITS)ProtocolObjectPool.Get(COMDT_NEWBIE_STATUS_BITS.CLASS_ID);
     this.stClientBits         = (COMDT_CLIENT_BITS)ProtocolObjectPool.Get(COMDT_CLIENT_BITS.CLASS_ID);
     this.stNewCltBits         = (COMDT_NEWCLIENT_BITS)ProtocolObjectPool.Get(COMDT_NEWCLIENT_BITS.CLASS_ID);
     this.stShopBuyRcd         = (CSDT_ACNT_SHOPBUY_INFO)ProtocolObjectPool.Get(CSDT_ACNT_SHOPBUY_INFO.CLASS_ID);
     this.stActivityInfo       = (COMDT_ACNT_ACTIVITY_INFO)ProtocolObjectPool.Get(COMDT_ACNT_ACTIVITY_INFO.CLASS_ID);
     this.stGuildBaseInfo      = (COMDT_ACNT_GUILD_INFO)ProtocolObjectPool.Get(COMDT_ACNT_GUILD_INFO.CLASS_ID);
     this.stGuildExtInfo       = (COMDT_ACNT_GUILD_EXT_INFO)ProtocolObjectPool.Get(COMDT_ACNT_GUILD_EXT_INFO.CLASS_ID);
     this.stArenaData          = (CSDT_ACNT_ARENADATA)ProtocolObjectPool.Get(CSDT_ACNT_ARENADATA.CLASS_ID);
     this.stCoinList           = (COMDT_COIN_LIST)ProtocolObjectPool.Get(COMDT_COIN_LIST.CLASS_ID);
     this.szHeadUrl            = new byte[256];
     this.BanTime              = new uint[100];
     this.stPropMultiple       = (COMDT_PROP_MULTIPLE)ProtocolObjectPool.Get(COMDT_PROP_MULTIPLE.CLASS_ID);
     this.stMostUsedHero       = (COMDT_MOST_USED_HERO_DETAIL)ProtocolObjectPool.Get(COMDT_MOST_USED_HERO_DETAIL.CLASS_ID);
     this.stInBattleNewbieBits = (COMDT_INBATTLE_NEWBIE_BITS_DETAIL)ProtocolObjectPool.Get(COMDT_INBATTLE_NEWBIE_BITS_DETAIL.CLASS_ID);
     this.stLicense            = (COMDT_ACNT_LICENSE)ProtocolObjectPool.Get(COMDT_ACNT_LICENSE.CLASS_ID);
     this.stMonthWeekCardInfo  = (COMDT_MONTH_WEEK_CARD_INFO)ProtocolObjectPool.Get(COMDT_MONTH_WEEK_CARD_INFO.CLASS_ID);
     this.stHeadImage          = (COMDT_ACNT_HEADIMG_LIST)ProtocolObjectPool.Get(COMDT_ACNT_HEADIMG_LIST.CLASS_ID);
     this.stPresentLimit       = (COMDT_HERO_PRESENT_LIMIT)ProtocolObjectPool.Get(COMDT_HERO_PRESENT_LIMIT.CLASS_ID);
     this.stSelfDefineChatInfo = (COMDT_SELFDEFINE_CHATINFO)ProtocolObjectPool.Get(COMDT_SELFDEFINE_CHATINFO.CLASS_ID);
     this.stLikeNum            = (COMDT_LIKE_NUMS)ProtocolObjectPool.Get(COMDT_LIKE_NUMS.CLASS_ID);
     this.szSignatureInfo      = new byte[128];
     this.stPasswdInfo         = (CSDT_ACNTPSWD_LOGININFO)ProtocolObjectPool.Get(CSDT_ACNTPSWD_LOGININFO.CLASS_ID);
     this.stRecentUsedHero     = (COMDT_RECENT_USED_HERO)ProtocolObjectPool.Get(COMDT_RECENT_USED_HERO.CLASS_ID);
     this.stMobaInfo           = (COMDT_MOBA_INFO)ProtocolObjectPool.Get(COMDT_MOBA_INFO.CLASS_ID);
     this.stChgNameCD          = (COMDT_CHGNAME_CD)ProtocolObjectPool.Get(COMDT_CHGNAME_CD.CLASS_ID);
     this.stAcntMasterInfo     = (COMDT_ACNT_MASTER_INFO)ProtocolObjectPool.Get(COMDT_ACNT_MASTER_INFO.CLASS_ID);
 }
Beispiel #4
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);
 }