Module: Sc2::Connection::StatusListener

Included in:
Match, Player::GameState
Defined in:
lib/sc2ai/connection/status_listener.rb

Overview

Callbacks when game status changes

Instance Method Summary collapse

Instance Method Details

#on_status_change(status) ⇒ Object

Called when game status changes noinspection

Parameters:

  • status (:LAUNCHED, :IN_GAME, :IN_REPLAY, :ENDED, :QUIT, :UNKNOWN)

    game state, i.e. :IN_GAME, :ENDED, :LAUNCHED



10
11
12
# File 'lib/sc2ai/connection/status_listener.rb', line 10

def on_status_change(status)
  Sc2.logger.debug { "#{self.class}.#{__method__} #{status}" }
end