public override void OnRelease() { this.iErrCode = 0; this.dwRewardNum = 0u; this.bGameType = 0; if (this.stGameParam != null) { this.stGameParam.Release(); this.stGameParam = null; } this.iLevelId = 0; if (this.stDetail != null) { this.stDetail.Release(); this.stDetail = null; } }
public SCPKG_STARTSINGLEGAMERSP() { this.stGameParam = (CSDT_SINGLEGAMETYPE_RSP)ProtocolObjectPool.Get(CSDT_SINGLEGAMETYPE_RSP.CLASS_ID); this.stDetail = (CSDT_SINGLEGAME_DETAIL)ProtocolObjectPool.Get(CSDT_SINGLEGAME_DETAIL.CLASS_ID); }
public override void OnUse() { this.stGameParam = (CSDT_SINGLEGAMETYPE_RSP)ProtocolObjectPool.Get(CSDT_SINGLEGAMETYPE_RSP.CLASS_ID); this.stDetail = (CSDT_SINGLEGAME_DETAIL)ProtocolObjectPool.Get(CSDT_SINGLEGAME_DETAIL.CLASS_ID); }