class Mud::Game::World

Overview

The game world.

The world contains all the game information including areas, rooms, and entities.

It uses a Mud::Net::Server to interact with players over the Telnet protocol.

Persistence is implemented by connecting to an SQLite3 database, which can be used for backups and saving state on game end.

Defined in:

game.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(server : Mud::Net::Server) #

[View source]

Class Method Detail

def self.start(server, &) #

Creates a new world with the given server.


[View source]

Instance Method Detail

def run #

Runs the main event loop for the game.


[View source]
def save #

TODO documentation


[View source]
def server : Mud::Net::Server #

[View source]