Sha256: 0ea3abc7e92be339ce09a5bb656a1649da39da8689f783b7f5bec092387221c4

Contents?: true

Size: 145 Bytes

Versions: 8

Compression:

Stored size: 145 Bytes

Contents

module Gamefic::ParentRoom
  def room
    p = parent
    while !p.kind_of?(Room) and !p.nil?
      p = p.parent
    end
    p
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
gamefic-sdk-1.5.0 scripts/standard/modules/parent-room.plot.rb
gamefic-sdk-1.4.1 scripts/standard/modules/parent-room.plot.rb
gamefic-sdk-1.4.0 scripts/standard/modules/parent-room.plot.rb
gamefic-sdk-1.3.1 scripts/standard/modules/parent-room.plot.rb
gamefic-sdk-1.3.0 scripts/standard/modules/parent-room.plot.rb
gamefic-sdk-1.2.0 scripts/standard/modules/parent-room.plot.rb
gamefic-sdk-1.1.0 scripts/standard/modules/parent-room.plot.rb
gamefic-sdk-1.0.1 scripts/standard/modules/parent-room.plot.rb