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