コード例 #1
0
ファイル: Cs16.php プロジェクト: Au1st3in/au1st3in.net
 /**
  * In the case of cs 1.6 we offload split packets here because the split packet response for rules is in
  * the old gold source format
  *
  * @param       $packet_id
  * @param array $packets
  *
  * @return string
  * @throws \GameQ\Exception\Protocol
  */
 protected function processPackets($packet_id, array $packets = [])
 {
     // The response is gold source if the packets are split
     $this->source_engine = self::GOLDSOURCE_ENGINE;
     // Offload to the parent
     $packs = parent::processPackets($packet_id, $packets);
     // Reset the engine
     $this->source_engine = self::SOURCE_ENGINE;
     // Return the result
     return $packs;
 }