lib/demiurge.rb in demiurge-0.2.0 vs lib/demiurge.rb in demiurge-0.4.0
- old
+ new
@@ -14,10 +14,11 @@
require "demiurge/container"
require "demiurge/zone"
require "demiurge/location"
require "demiurge/agent"
require "demiurge/dsl"
+require "demiurge/tmx"
require "multi_json"
# Demiurge is a state and simulation library which can be used to
# create games and similar applications. Its focus is on rich, deep
@@ -41,10 +42,11 @@
# @return [Integer] The number of ticks that have occurred since the beginning of this Engine's history.
attr_reader :ticks
# @return [Hash{String=>String}] The current execution context for notifications and logging.
+ # @since 0.3.0
attr_reader :execution_context
# This is the constructor for a new Engine object. Most frequently
# this will be called by {Demiurge::DSL} or another external
# source which will also supply item types and initial state.
@@ -359,10 +361,10 @@
#
# @param context [Hash{String=>String}]
# @yield Evaluate the following block with the given context set
# @api private
# @return [void]
- # @since 0.2.0
+ # @since 0.3.0
def push_context(context)
@execution_context.push(context)
yield
ensure
@execution_context.pop