mirror of
https://github.com/cliffe/BreakEscape.git
synced 2026-02-21 19:28:03 +00:00
- Updated NPC ink loading tests to ensure proper handling of missing story files. - Adjusted lazy loading tests for rooms to enhance clarity and maintainability. - Enhanced unlock system tests by adding inventory checks for keys. - Refined filtered scenario tests to ensure accurate preservation of game state. - Improved game model tests to validate unlock functionality with various inventory scenarios.
30 lines
569 B
Ruby
30 lines
569 B
Ruby
require "break_escape/version"
|
|
require "break_escape/engine"
|
|
|
|
module BreakEscape
|
|
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
|
|
end
|
|
|
|
# Initialize with defaults
|
|
BreakEscape.configure { }
|