public override void OnRelease()
 {
     if (this.stBattlePlayer != null)
     {
         this.stBattlePlayer.Release();
         this.stBattlePlayer = null;
     }
     if (this.stBattleParam != null)
     {
         this.stBattleParam.Release();
         this.stBattleParam = null;
     }
     if (this.stBattleList != null)
     {
         this.stBattleList.Release();
         this.stBattleList = null;
     }
 }
 public CSPKG_STARTSINGLEGAMEREQ()
 {
     this.stBattlePlayer = (CSDT_BATTLE_PLAYER_BRIEF)ProtocolObjectPool.Get(CSDT_BATTLE_PLAYER_BRIEF.CLASS_ID);
     this.stBattleParam  = (CSDT_START_SINGLE_GAME_PARAM)ProtocolObjectPool.Get(CSDT_START_SINGLE_GAME_PARAM.CLASS_ID);
     this.stBattleList   = (COMDT_BATTLELIST)ProtocolObjectPool.Get(COMDT_BATTLELIST.CLASS_ID);
 }
 public override void OnUse()
 {
     this.stBattlePlayer = (CSDT_BATTLE_PLAYER_BRIEF)ProtocolObjectPool.Get(CSDT_BATTLE_PLAYER_BRIEF.CLASS_ID);
     this.stBattleParam  = (CSDT_START_SINGLE_GAME_PARAM)ProtocolObjectPool.Get(CSDT_START_SINGLE_GAME_PARAM.CLASS_ID);
     this.stBattleList   = (COMDT_BATTLELIST)ProtocolObjectPool.Get(COMDT_BATTLELIST.CLASS_ID);
 }