Class: GameMachine::Killswitch

Inherits:
Actor::Base
  • Object
show all
Defined in:
server/lib/game_machine/killswitch.rb

Constant Summary

Constants inherited from Actor::Base

Actor::Base::ON_RECEIVE_HOOKS

Instance Method Summary collapse

Methods inherited from Actor::Base

aspect, aspects, find, find_by_address, find_distributed, find_distributed_local, find_remote, hashring, local_path, logger, model_filter, #onReceive, player_controller, #receive_message, #schedule_message, #schedule_message_once, #sender, set_player_controller

Instance Method Details

#on_receive(message) ⇒ Object


7
8
9
10
11
12
# File 'server/lib/game_machine/killswitch.rb', line 7

def on_receive(message)
  if message.is_a?(MessageLib::Entity) && message.has_poison_pill
    #GameMachine::Application.akka.stop
    System.exit(0)
  end
end

#post_init(*args) ⇒ Object


4
5
# File 'server/lib/game_machine/killswitch.rb', line 4

def post_init(*args)
end