Class: Overlook::Csgo::MatchInfoDecoder
- Inherits:
-
Object
- Object
- Overlook::Csgo::MatchInfoDecoder
- Defined in:
- lib/overlook/csgo/match_info_decoder.rb
Instance Method Summary collapse
Instance Method Details
#decode(io) ⇒ Object
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/overlook/csgo/match_info_decoder.rb', line 6 def decode(io) match = ::Csgo::CDataGCCStrike15_v2_MatchInfo.decode(io.read) decoded = {} decoded.merge!((match)) decoded.merge!(extract_replay_info(match)) decoded.merge!(extract_stats(match)) decoded.merge!(extract_end_results(match)) decoded end |