lib/demiurge/dsl.rb
def location(name, options = {}, &block)
      state = { "zone" => @name, "home_zone" => @name }.merge(options)
      builder = LocationBuilder.new(name, @engine, "type" => options["type"] || "Location", "state" => state)
      builder.instance_eval(&block)
      @built_item.state["contents"] << name
      nil
    end
# Declare a location in this zone.
Declare a location in this zone.
Declare a location in this zone .
def location(name, options = {}, &block)
      state = { "zone" => @name, "home_zone" => @name }.merge(options)
      builder = LocationBuilder.new(name, @engine, "type" => options["type"] || "Location", "state" => state)
      builder.instance_eval(&block)
      @built_item.state["contents"] << name
      nil
    end
def location ( name , options = { } , & block ) state = { "zone" => @name , "home_zone" => @name } . merge ( options ) builder = LocationBuilder . new ( name , @engine , "type" => options [ "type" ] || "Location" , "state" => state ) builder . instance_eval ( & block ) @built_item . state [ "contents" ] << name nil end
Declare a location in this zone.
Declare a location in this zone .
name
options
block