2025-11-21 15:27:53 +00:00
|
|
|
require "break_escape/version"
|
|
|
|
|
require "break_escape/engine"
|
|
|
|
|
|
|
|
|
|
module BreakEscape
|
2025-11-21 15:27:54 +00:00
|
|
|
class << self
|
|
|
|
|
attr_accessor :configuration
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def self.configure
|
|
|
|
|
self.configuration ||= Configuration.new
|
|
|
|
|
yield(configuration) if block_given?
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def self.standalone_mode?
|
|
|
|
|
configuration&.standalone_mode || false
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
class Configuration
|
|
|
|
|
attr_accessor :standalone_mode, :demo_user_handle
|
|
|
|
|
|
|
|
|
|
def initialize
|
|
|
|
|
@standalone_mode = false
|
|
|
|
|
@demo_user_handle = 'demo_player'
|
|
|
|
|
end
|
|
|
|
|
end
|
2025-11-21 15:27:53 +00:00
|
|
|
end
|
2025-11-21 15:27:54 +00:00
|
|
|
|
|
|
|
|
# Initialize with defaults
|
2025-11-25 16:28:18 +00:00
|
|
|
BreakEscape.configure { }
|