C# Класс Bricklayer.Server.IO

Handles disk saving/loading operations
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
ServerDirectory string

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
LoadPlugin ( Server server, string file ) : void

Описание методов

GetFileMD5() публичный статический Метод

Gets an MD5 of a given file
public static GetFileMD5 ( string file ) : string
file string
Результат string

LoadMap() публичный статический Метод

public static LoadMap ( string name ) : Map
name string
Результат Bricklayer.Server.World.Map

LoadMaps() публичный статический Метод

public static LoadMaps ( ) : void
Результат void

LoadPlugins() публичный статический Метод

public static LoadPlugins ( Server server ) : void
server Server
Результат void

LoadSettings() публичный статический Метод

Opens the server settings and loads them into the server
public static LoadSettings ( ) : void
Результат void

SaveMap() публичный статический Метод

public static SaveMap ( Bricklayer map ) : void
map Bricklayer
Результат void

SaveMaps() публичный статический Метод

public static SaveMaps ( ) : void
Результат void

SaveSettings() публичный статический Метод

Saves server settings to the server config
public static SaveSettings ( Settings settings ) : void
settings Settings
Результат void

Описание свойств

ServerDirectory публичное статическое свойство

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
Результат string