Module: CarbonMU

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

Overview

TODO TEMP

Defined Under Namespace

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

Constant Summary collapse

VERSION_MAJOR =
0
VERSION_MINOR =
0
VERSION_TINY =
3
VERSION =
"#{VERSION_MAJOR}.#{VERSION_MINOR}.#{VERSION_TINY}"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

Returns the value of attribute configuration.



8
9
10
# File 'lib/carbonmu.rb', line 8

def configuration
  @configuration
end

.edge_router_receive_portObject

Returns the value of attribute edge_router_receive_port.



9
10
11
# File 'lib/carbonmu.rb', line 9

def edge_router_receive_port
  @edge_router_receive_port
end

.serverObject

Returns the value of attribute server.



10
11
12
# File 'lib/carbonmu.rb', line 10

def server
  @server
end

Class Method Details

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

Yields:



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

def self.configure
  yield self.configuration
end

.startObject



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

def self.start
  EdgeRouterSupervisionGroup.run
end

.start_in_backgroundObject



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

def self.start_in_background
  EdgeRouterSupervisionGroup.run!
end

.start_serverObject



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

def self.start_server
  ServerSupervisionGroup.run
end

.start_server_in_backgroundObject



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

def self.start_server_in_background
  ServerSupervisionGroup.run!
end

.t(str, *opts) ⇒ Object



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

def self.t(str, *opts)
  CarbonMU::Internationalization.translate(str, opts)
end