def parse_global_attributes
      attributes.each do |attr|
        case attr.id.to_i
        when 0x07d1
          @game_type = attr.sval
          @game_type = @game_type == 'Cust' ? :custom : @game_type[1, 3].to_sym
        when 0x0bb8
          @game_speed = ATTRIBUTES[:game_speed][attr.sval]
        when 0x0bc1
          @category = ATTRIBUTES[:category][attr.sval]
        end
      end
    end
def parse_global_attributes
      attributes.each do |attr|
        case attr.id.to_i
        when 0x07d1
          @game_type = attr.sval
          @game_type = @game_type == 'Cust' ? :custom : @game_type[1, 3].to_sym
        when 0x0bb8
          @game_speed = ATTRIBUTES[:game_speed][attr.sval]
        when 0x0bc1
          @category = ATTRIBUTES[:category][attr.sval]
        end
      end
    end
Several pieces of information come from `replay.attributes.events`, and
 finding one of them is about as hard as finding all of them, so we just
 find all of them here when asked.