Sha256: a3aa5235c1f9ef287ad05874aae4d05bbe2e4153348f574b86b7f2ff11e9a4dc

Contents?: true

Size: 438 Bytes

Versions: 6

Compression:

Stored size: 438 Bytes

Contents

class MonoTest < GameMachine::Actor::Base

  def post_init(*args)
    @vm = Mono::Vm.instance
  end

  def on_receive(message)
    namespace = 'GameMachine'
    klass = 'TestActor'
    response = @vm.send_message(namespace,klass,message)
    unless response && response.id == message.id
      #thread_id = JRuby.reference(Thread.current).native_thread.id
      puts "Response #{response}"
    end
    sender.tell(message,self)
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
game_machine-1.0.4 spec/mono_test.rb
game_machine-1.0.2 spec/mono_test.rb
game_machine-0.0.11 spec/mono_test.rb
game_machine-0.0.10 spec/mono_test.rb
game_machine-0.0.9 spec/mono_test.rb
game_machine-0.0.8 spec/mono_test.rb