Class: BeltsEngine::Application

Inherits:
Object
  • Object
show all
Includes:
BeltsSupport::Configuration
Defined in:
lib/belts_engine/application.rb

Instance Method Summary collapse

Constructor Details

#initializeApplication



7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/belts_engine/application.rb', line 7

def initialize
  @game = ::Game.new

  config.plugins.each do |plugin_class|
    @game.use plugin_class
  end

  @game.start

  while true
    @game.update
  end
end