public override void OnRelease() { this.dwHeroID = 0u; if (this.stStatisticInfo != null) { this.stStatisticInfo.Release(); this.stStatisticInfo = null; } }
public COMDT_STATISTIC_DATA_EXTRA_DETAIL() { this.st5v5 = (COMDT_HERO_STATISTIC_INFO)ProtocolObjectPool.Get(COMDT_HERO_STATISTIC_INFO.CLASS_ID); this.stLadder = (COMDT_HERO_STATISTIC_INFO)ProtocolObjectPool.Get(COMDT_HERO_STATISTIC_INFO.CLASS_ID); this.stGuildMatch = (COMDT_HERO_STATISTIC_INFO)ProtocolObjectPool.Get(COMDT_HERO_STATISTIC_INFO.CLASS_ID); this.st1v1 = (COMDT_HERO_STATISTIC_INFO)ProtocolObjectPool.Get(COMDT_HERO_STATISTIC_INFO.CLASS_ID); this.st3v3 = (COMDT_HERO_STATISTIC_INFO)ProtocolObjectPool.Get(COMDT_HERO_STATISTIC_INFO.CLASS_ID); this.stEntertainment = (COMDT_HERO_STATISTIC_INFO)ProtocolObjectPool.Get(COMDT_HERO_STATISTIC_INFO.CLASS_ID); this.astRecentDetail = new COMDT_HERO_STATISTIC_INFO[100]; for (int i = 0; i < 100; i++) { this.astRecentDetail[i] = (COMDT_HERO_STATISTIC_INFO)ProtocolObjectPool.Get(COMDT_HERO_STATISTIC_INFO.CLASS_ID); } }
public override void OnUse() { this.st5v5 = (COMDT_HERO_STATISTIC_INFO)ProtocolObjectPool.Get(COMDT_HERO_STATISTIC_INFO.CLASS_ID); this.stLadder = (COMDT_HERO_STATISTIC_INFO)ProtocolObjectPool.Get(COMDT_HERO_STATISTIC_INFO.CLASS_ID); this.stGuildMatch = (COMDT_HERO_STATISTIC_INFO)ProtocolObjectPool.Get(COMDT_HERO_STATISTIC_INFO.CLASS_ID); this.st1v1 = (COMDT_HERO_STATISTIC_INFO)ProtocolObjectPool.Get(COMDT_HERO_STATISTIC_INFO.CLASS_ID); this.st3v3 = (COMDT_HERO_STATISTIC_INFO)ProtocolObjectPool.Get(COMDT_HERO_STATISTIC_INFO.CLASS_ID); this.stEntertainment = (COMDT_HERO_STATISTIC_INFO)ProtocolObjectPool.Get(COMDT_HERO_STATISTIC_INFO.CLASS_ID); if (this.astRecentDetail != null) { for (int i = 0; i < this.astRecentDetail.Length; i++) { this.astRecentDetail[i] = (COMDT_HERO_STATISTIC_INFO)ProtocolObjectPool.Get(COMDT_HERO_STATISTIC_INFO.CLASS_ID); } } }
public override void OnRelease() { if (this.st5v5 != null) { this.st5v5.Release(); this.st5v5 = null; } if (this.stLadder != null) { this.stLadder.Release(); this.stLadder = null; } if (this.stGuildMatch != null) { this.stGuildMatch.Release(); this.stGuildMatch = null; } if (this.st1v1 != null) { this.st1v1.Release(); this.st1v1 = null; } if (this.st3v3 != null) { this.st3v3.Release(); this.st3v3 = null; } if (this.stEntertainment != null) { this.stEntertainment.Release(); this.stEntertainment = null; } this.dwOldestPos = 0u; this.dwRecentNum = 0u; if (this.astRecentDetail != null) { for (int i = 0; i < this.astRecentDetail.Length; i++) { if (this.astRecentDetail[i] != null) { this.astRecentDetail[i].Release(); this.astRecentDetail[i] = null; } } } }
public CSDT_CHEAT_ADD_GAME_STATISTIC() { this.stStatisticInfo = (COMDT_HERO_STATISTIC_INFO)ProtocolObjectPool.Get(COMDT_HERO_STATISTIC_INFO.CLASS_ID); }
public override void OnUse() { this.stStatisticInfo = (COMDT_HERO_STATISTIC_INFO)ProtocolObjectPool.Get(COMDT_HERO_STATISTIC_INFO.CLASS_ID); }