C# Class Bricklayer.Server.IO

Handles disk saving/loading operations
Show file Open project: Cyral/Bricklayer

Public Properties

Property Type Description
ServerDirectory string

Public Methods

Method Description
GetFileMD5 ( string file ) : string

Gets an MD5 of a given file

LoadMap ( string name ) : Map
LoadMaps ( ) : void
LoadPlugins ( Server server ) : void
LoadSettings ( ) : void

Opens the server settings and loads them into the server

SaveMap ( Bricklayer map ) : void
SaveMaps ( ) : void
SaveSettings ( Settings settings ) : void

Saves server settings to the server config

Private Methods

Method Description
LoadPlugin ( Server server, string file ) : void

Method Details

GetFileMD5() public static method

Gets an MD5 of a given file
public static GetFileMD5 ( string file ) : string
file string
return string

LoadMap() public static method

public static LoadMap ( string name ) : Map
name string
return Bricklayer.Server.World.Map

LoadMaps() public static method

public static LoadMaps ( ) : void
return void

LoadPlugins() public static method

public static LoadPlugins ( Server server ) : void
server Server
return void

LoadSettings() public static method

Opens the server settings and loads them into the server
public static LoadSettings ( ) : void
return void

SaveMap() public static method

public static SaveMap ( Bricklayer map ) : void
map Bricklayer
return void

SaveMaps() public static method

public static SaveMaps ( ) : void
return void

SaveSettings() public static method

Saves server settings to the server config
public static SaveSettings ( Settings settings ) : void
settings Settings
return void

Property Details

ServerDirectory public static property

The current directory the server executable lies in rather than loading from a static folder such as the client, the server will load settings/maps from it's current folder, meaning you can drag and drop the server into any folder to run it
public static string ServerDirectory
return string