Module: CarbonMU

Defined in:
lib/errors.rb,
lib/carbonmu.rb,
lib/core/parser.rb,
lib/core/server.rb,
lib/core/command.rb,
lib/ipc/ipc_message.rb,
lib/ipc/read_socket.rb,
lib/ipc/write_socket.rb,
lib/game_objects/exit.rb,
lib/game_objects/room.rb,
lib/game_objects/thing.rb,
lib/core/configuration.rb,
lib/interactions/reboot.rb,
lib/interactions/notify.rb,
lib/game_objects/player.rb,
lib/game_objects/movable.rb,
lib/commands/say_command.rb,
lib/core/command_context.rb,
lib/ipc/carbon_ipc_socket.rb,
lib/commands/ping_command.rb,
lib/edge_router/connection.rb,
lib/game_objects/container.rb,
lib/commands/reboot_command.rb,
lib/edge_router/edge_router.rb,
lib/game_objects/game_object.rb,
lib/commands/unknown_command.rb,
lib/edge_router/telnet_receptor.rb,
lib/edge_router/telnet_connection.rb,
lib/core/server_supervision_group.rb,
lib/edge_router/edge_router_supervision_group.rb

Defined Under Namespace

Modules: Container, Movable, Parser Classes: CarbonIPCSocket, Command, CommandContext, Configuration, Connection, EdgeRouter, EdgeRouterSupervisionGroup, Exit, GameObject, IPCMessage, InvalidObjectError, Notify, ObjectNotFoundError, PingCommand, Player, ReadSocket, Reboot, RebootCommand, Room, SayCommand, Server, ServerSupervisionGroup, TelnetConnection, TelnetReceptor, Thing, UnknownCommand, WriteSocket

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

Returns the value of attribute configuration


12
13
14
# File 'lib/carbonmu.rb', line 12

def configuration
  @configuration
end

.edge_router_receive_portObject

Returns the value of attribute edge_router_receive_port


13
14
15
# File 'lib/carbonmu.rb', line 13

def edge_router_receive_port
  @edge_router_receive_port
end

.serverObject

Returns the value of attribute server


14
15
16
# File 'lib/carbonmu.rb', line 14

def server
  @server
end

Class Method Details

.configure {|self.configuration| ... } ⇒ Object

Yields:


18
19
20
# File 'lib/carbonmu.rb', line 18

def self.configure
  yield self.configuration
end

.startObject


22
23
24
# File 'lib/carbonmu.rb', line 22

def self.start
  EdgeRouterSupervisionGroup.run
end

.start_in_backgroundObject


26
27
28
# File 'lib/carbonmu.rb', line 26

def self.start_in_background
  EdgeRouterSupervisionGroup.run!
end

.start_serverObject


30
31
32
# File 'lib/carbonmu.rb', line 30

def self.start_server
  ServerSupervisionGroup.run
end

.start_server_in_backgroundObject


34
35
36
# File 'lib/carbonmu.rb', line 34

def self.start_server_in_background
  ServerSupervisionGroup.run!
end