Sha256: c186d2b853765a07c0bd7277ba328947cc2f8318317edd245a331ae7d5531567

Contents?: true

Size: 447 Bytes

Versions: 8

Compression:

Stored size: 447 Bytes

Contents

# frozen_string_literal: true

module Sc2
  class Connection
    # Callbacks when game status changes
    module StatusListener
      # Called when game status changes
      # @param status [:launched, :in_game, :in_replay, :ended, :quit, :unknown] game state, i.e. :in_game, :ended, :launched
      # noinspection
      def on_status_change(status)
        Sc2.logger.debug { "#{self.class}.#{__method__} #{status}" }
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
sc2ai-0.2.0 lib/sc2ai/connection/status_listener.rb
sc2ai-0.1.0 lib/sc2ai/connection/status_listener.rb
sc2ai-0.0.8 lib/sc2ai/connection/status_listener.rb
sc2ai-0.0.7 lib/sc2ai/connection/status_listener.rb
sc2ai-0.0.5 lib/sc2ai/connection/status_listener.rb
sc2ai-0.0.4 lib/sc2ai/connection/status_listener.rb
sc2ai-0.0.3 lib/sc2ai/connection/status_listener.rb
sc2ai-0.0.2 lib/sc2ai/connection/status_listener.rb