Sha256: 966819d9e9365206a53f37f92051df42137ed73dad21dc383a12759907d6f1e3

Contents?: true

Size: 543 Bytes

Versions: 5

Compression:

Stored size: 543 Bytes

Contents

module Gamebox
  # Returns the global configuration object
  def self.configuration
    @configuration ||= Configuration.new
    @configuration
  end

  def self.configure
    yield configuration if block_given?
  end

  def define_behavior(name, &blk)
    Behavior.define name, &blk
  end

  def define_actor(name, &blk)
    Actor.define name, &blk
  end

  def define_actor_view(name, &blk)
    ActorView.define name, &blk
  end

  # module_function :define_behavior, :define_actor, :define_actor_view


end

# EEK... dirty?
include Gamebox

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
gamebox-0.4.0.rc5 lib/gamebox/core/core.rb
gamebox-0.4.0.rc4 lib/gamebox/core/core.rb
gamebox-0.4.0.rc3 lib/gamebox/core/core.rb
gamebox-0.4.0.rc2 lib/gamebox/core/core.rb
gamebox-0.4.0.rc1 lib/gamebox/core/core.rb