Class: Lich::DragonRealms::Game

Inherits:
GameBase::Game show all
Defined in:
documented/games.rb

Overview

Game class for DragonRealms

Constant Summary

Constants inherited from GameBase::Game

GameBase::Game::MAX_CONSECUTIVE_READ_TIMEOUTS, GameBase::Game::READ_TIMEOUT, GameBase::Game::READ_TIMEOUT_SECONDS, GameBase::Game::SERVER_QUEUE_CAPACITY

Class Method Summary collapse

Methods inherited from GameBase::Game

_gets, _puts, autostarted?, check_stream_desync!, client_write_targets, close, closed?, connection_disruption_log_message, current_ingress_time, display_ruby_warning, enqueue_server_string, finish_client_line, fix_invalid_settings_info, gets, handle_autostart, handle_thread_error, initialize_buffers, intentional_shutdown_close_error?, log_error, open, open_with_timeout, prefix_origin_sentinel, process_downstream_hooks, process_room_information, process_server_string, process_xml_data, puts, read_server_string, recognized_connection_disruption?, record_server_parser_timing, record_server_queue_dequeue, record_server_queue_enqueue, record_server_reader_timing, record_shutdown_reason, remote_eof?, repair_malformed_attributes_and_reparse, reset_server_queue_stats!, rich_stream_rewrite, send_to_client, server_queue_stats, set_game_instance, settings_init_needed?, shutdown_log, shutdown_reason_for_thread_exit, start_cli_scripts, start_main_thread, start_server_processor_thread, start_socket_reader_thread, start_wrap_thread, total_read_timeout_seconds, unwrap_server_queue_item

Class Method Details

.initialize ⇒ void

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

This method returns an undefined value.

Initializes the DragonRealms game handler.

Calls initialize_buffers and sets the game instance type to 'DR'.



2223
2224
2225
2226
# File 'documented/games.rb', line 2223

def initialize
  initialize_buffers
  set_game_instance('DR')
end