Sha256: 107f90cc7677fc7ee4560adb6f18e125553dc9efc04b26ff8b91c22117008ebd

Contents?: true

Size: 225 Bytes

Versions: 2

Compression:

Stored size: 225 Bytes

Contents

define_behavior :input_stater do
  requires :input_manager

  setup do
    opts.each do |keys, attr_name|
      actor.has_attribute attr_name, false
      input_manager.while_pressed keys, actor, attr_name
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gamebox-0.4.0.rc4 lib/gamebox/behaviors/input_stater.rb
gamebox-0.4.0.rc3 lib/gamebox/behaviors/input_stater.rb