Class: CarbonMU::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/core/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.


10
11
12
13
14
# File 'lib/core/configuration.rb', line 10

def initialize
  @game_name = 'CarbonMU'
  @logger = Celluloid.logger.tap { |i| i.progname = @game_name }
  @log_ipc_traffic = true
end

Instance Attribute Details

#game_nameObject

Returns the value of attribute game_name


6
7
8
# File 'lib/core/configuration.rb', line 6

def game_name
  @game_name
end

#log_ipc_trafficObject

Returns the value of attribute log_ipc_traffic


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

def log_ipc_traffic
  @log_ipc_traffic
end

#loggerObject

Returns the value of attribute logger


7
8
9
# File 'lib/core/configuration.rb', line 7

def logger
  @logger
end