public override void OnRelease() { this.dwHeroID = 0; this.dwMaskBits = 0; this.wLevel = 0; this.wStar = 0; if (this.stQuality != null) { this.stQuality.Release(); this.stQuality = null; } this.dwExp = 0; if (this.stSkill != null) { this.stSkill.Release(); this.stSkill = null; } if (this.stProficiency != null) { this.stProficiency.Release(); this.stProficiency = null; } this.bSymbolPageWear = 0; this.wSkinID = 0; this.dwGameWinNum = 0; this.dwGameLoseNum = 0; if (this.stTalent != null) { this.stTalent.Release(); this.stTalent = null; } this.dwRankGameTotalFightCnt = 0; this.dwRankGameTotalWinCnt = 0; this.dwDeadLine = 0; }
public override void OnUse() { this.stQuality = (COMDT_ACNTHERO_QUALITY)ProtocolObjectPool.Get(COMDT_ACNTHERO_QUALITY.CLASS_ID); this.stSkill = (COMDT_SKILLARRAY)ProtocolObjectPool.Get(COMDT_SKILLARRAY.CLASS_ID); this.stProficiency = (COMDT_HERO_PROFICIENCY)ProtocolObjectPool.Get(COMDT_HERO_PROFICIENCY.CLASS_ID); this.stTalent = (COMDT_TALENTARRAY)ProtocolObjectPool.Get(COMDT_TALENTARRAY.CLASS_ID); }
public COMDT_HERO_COMMON_INFO() { this.stQuality = (COMDT_ACNTHERO_QUALITY)ProtocolObjectPool.Get(COMDT_ACNTHERO_QUALITY.CLASS_ID); this.stSkill = (COMDT_SKILLARRAY)ProtocolObjectPool.Get(COMDT_SKILLARRAY.CLASS_ID); this.stProficiency = (COMDT_HERO_PROFICIENCY)ProtocolObjectPool.Get(COMDT_HERO_PROFICIENCY.CLASS_ID); this.stTalent = (COMDT_TALENTARRAY)ProtocolObjectPool.Get(COMDT_TALENTARRAY.CLASS_ID); this.stStatisticDetail = (COMDT_HERO_STATISTIC_DETAIL)ProtocolObjectPool.Get(COMDT_HERO_STATISTIC_DETAIL.CLASS_ID); }