Class: TF2LineParser::Events::MatchEnd

Inherits:
RoundEventWithVariables show all
Defined in:
lib/tf2_line_parser/events/match_end.rb

Instance Attribute Summary

Attributes inherited from Event

#airshot, #cap_name, #cap_number, #customkill, #healing, #item, #length, #message, #method, #player, #role, #score, #target, #team, #time, #type, #ubercharge, #unknown, #value, #weapon

Class Method Summary collapse

Methods inherited from RoundEventWithVariables

attributes, #initialize, regex

Methods inherited from Event

#parse_time, regex_cap, regex_console, regex_message, regex_player, regex_results, regex_target, regex_time, time_format, types

Constructor Details

This class inherits a constructor from TF2LineParser::Events::RoundEventWithVariables

Class Method Details

.round_typeObject



11
12
13
# File 'lib/tf2_line_parser/events/match_end.rb', line 11

def self.round_type
  "Game_Over"
end

.round_variableObject



15
16
17
# File 'lib/tf2_line_parser/events/match_end.rb', line 15

def self.round_variable
  @round_variable ||= :reason
end

.round_variable_regexObject



7
8
9
# File 'lib/tf2_line_parser/events/match_end.rb', line 7

def self.round_variable_regex
  @round_variable_regex ||= /reason "(?'reason'.*)"/.freeze
end