public CSPKG_MULTGAME_GAMEOVER() { this.astAcntInfo = new CSDT_MULTIGAMEOVER_INFO[10]; for (int i = 0; i < 10; i++) { this.astAcntInfo[i] = (CSDT_MULTIGAMEOVER_INFO)ProtocolObjectPool.Get(CSDT_MULTIGAMEOVER_INFO.CLASS_ID); } this.stClientRecordData = (COMDT_CLIENT_RECORD_DATA)ProtocolObjectPool.Get(COMDT_CLIENT_RECORD_DATA.CLASS_ID); }
public override void OnUse() { if (this.astAcntInfo != null) { for (int i = 0; i < this.astAcntInfo.Length; i++) { this.astAcntInfo[i] = (CSDT_MULTIGAMEOVER_INFO)ProtocolObjectPool.Get(CSDT_MULTIGAMEOVER_INFO.CLASS_ID); } } this.stClientRecordData = (COMDT_CLIENT_RECORD_DATA)ProtocolObjectPool.Get(COMDT_CLIENT_RECORD_DATA.CLASS_ID); }
public override void OnRelease() { if (this.stAcntInfo != null) { this.stAcntInfo.Release(); this.stAcntInfo = null; } if (this.stCommonData != null) { this.stCommonData.Release(); this.stCommonData = null; } if (this.stClientRecordData != null) { this.stClientRecordData.Release(); this.stClientRecordData = null; } }
public override void OnRelease() { this.bAcntNum = 0; if (this.astAcntInfo != null) { for (int i = 0; i < this.astAcntInfo.Length; i++) { if (this.astAcntInfo[i] != null) { this.astAcntInfo[i].Release(); this.astAcntInfo[i] = null; } } } if (this.stClientRecordData != null) { this.stClientRecordData.Release(); this.stClientRecordData = null; } }
public COMDT_MULTI_GAME_SETTLE_NORMAL() { this.stAcntInfo = (COMDT_ACNT_SETTLE_RANK_INFO)ProtocolObjectPool.Get(COMDT_ACNT_SETTLE_RANK_INFO.CLASS_ID); this.stCommonData = (COMDT_SETTLE_COMMON_DATA)ProtocolObjectPool.Get(COMDT_SETTLE_COMMON_DATA.CLASS_ID); this.stClientRecordData = (COMDT_CLIENT_RECORD_DATA)ProtocolObjectPool.Get(COMDT_CLIENT_RECORD_DATA.CLASS_ID); }
public override void OnUse() { this.stAcntInfo = (COMDT_ACNT_SETTLE_RANK_INFO)ProtocolObjectPool.Get(COMDT_ACNT_SETTLE_RANK_INFO.CLASS_ID); this.stCommonData = (COMDT_SETTLE_COMMON_DATA)ProtocolObjectPool.Get(COMDT_SETTLE_COMMON_DATA.CLASS_ID); this.stClientRecordData = (COMDT_CLIENT_RECORD_DATA)ProtocolObjectPool.Get(COMDT_CLIENT_RECORD_DATA.CLASS_ID); }