. */ /** * World Opponent Network Protocol Class * * @author Nikolay Ipanyuk */ class GameQ_Protocols_Won extends GameQ_Protocols_Source { protected $name = "won"; protected $name_long = "World Opponent Network"; protected $join_link = NULL; protected $packets = array( self::PACKET_DETAILS => "\xFF\xFF\xFF\xFFdetails\x00", self::PACKET_PLAYERS => "\xFF\xFF\xFF\xFFplayers", self::PACKET_RULES => "\xFF\xFF\xFF\xFFrules", ); /** * We have to overload this function to cheat the rules processing because of some wierdness, old ass game! * * @see GameQ_Protocols_Source::preProcess_rules() */ protected function preProcess_rules($packets) { $engine_orig = $this->source_engine; // Override the engine type for rules, not sure why its like that $this->source_engine = self::GOLDSOURCE_ENGINE; // Now process the rules $ret = parent::preProcess_rules($packets); // Reset the engine type $this->source_engine = $engine_orig; return $ret; } }