Sha256: 3e215bbcc8202446060d1bfb3ee5d8a8bc0d4bc23a2fc0c84c9d169d8b9bceaa

Contents?: true

Size: 714 Bytes

Versions: 1

Compression:

Stored size: 714 Bytes

Contents

# @gamefic.script standard/container

script 'standard/openable'
script 'standard/lockable'
#script 'standard/container/entities'
#script 'standard/container/actions'

class Container < Receptacle
  include Openable
  include Lockable
  #include Transparent
end

respond :insert, Use.available, Use.available(Container) do |actor, thing, container|
  if container.open?
    actor.proceed
  else
    actor.tell "#{The container} is closed."
  end
end

respond :leave, Use.parent(Container, :enterable?, :closed?) do |actor, container|
  actor.tell "#{The container} is closed."
end

respond :enter, Use.siblings(Container, :enterable?, :closed?) do |actor, container|
  actor.tell "#{The container} is closed."
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gamefic-sdk-1.7.0 scripts/standard/container.plot.rb