-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.rb
executable file
·37 lines (32 loc) · 981 Bytes
/
main.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/usr/bin/env ruby
#$LOAD_PATH.unshift( File.join( File.dirname(__FILE__), 'lib' ) )
$LOAD_PATH.unshift( File.dirname(__FILE__) )
# This file includes everything, and then runs the server.
# Every class that is added should be required here and not elsewhere.
require 'logger'
require "yaml"
require "zlib"
require 'rubygems'
require 'eventmachine'
require 'lib/server'
require 'lib/logging'
require 'lib/multio'
require 'lib/block'
require 'lib/world'
require 'lib/player'
require 'lib/chunk'
require 'lib/protocol'
require 'lib/network'
require 'lib/command'
require 'lib/terrain_generators'
require 'lib/inventory'
require 'config'
require 'lib/config_utils'
# Dynamically Loaded Classes
Dir.glob(File.dirname(__FILE__) + '/lib/protocol/*.rb') {|file| require file}
Dir.glob(File.dirname(__FILE__) + '/lib/protocol/*/*.rb') {|file| require file}
Dir.glob(File.dirname(__FILE__) + '/lib/generator/*.rb') {|file| require file}
EventMachine::run {
s = Server.new
s.start
}