Module: SupCom2ReplayParser::PlayersInfo
- Extended by:
- PlayersInfo
- Included in:
- PlayersInfo
- Defined in:
- lib/supcom2_replay_parser/players_info.rb
Constant Summary collapse
- PLAYERS_FIELDS =
%w[ PlayerName PlayerColor Faction Team ].freeze
Instance Method Summary collapse
Instance Method Details
#call(line) ⇒ Object
12 13 14 |
# File 'lib/supcom2_replay_parser/players_info.rb', line 12 def call(line) prepare_data(line.scan(/(?:#{PLAYERS_FIELDS.join('|')})+[[:cntrl:]]{2}[^[[:cntrl:]]]{0,}[^\u{ 1 }]+/)) end |