Method: Area#initialize

Defined in:
lib/Olib/area.rb

#initializeArea

Returns a new instance of Area.



29
30
31
32
33
34
35
36
37
# File 'lib/Olib/area.rb', line 29

def initialize
  @room     = Room.current
  @objects  = [ GameObj.loot, GameObj.room_desc ]
    .flatten
    .compact
    .map { |thing| thing.id }
    .uniq # sometimes objects exist in both loot & room_desc
    .map { |id| Olib::Container.new id }
end