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

The main server entry point
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
Logins LoginMessage>.Dictionary

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

Метод Описание
CreateMap ( string name, string description ) : Bricklayer.Server.World.Map

Creates a new map and adds it to the room list

FindEmptyID ( Bricklayer.Server.World.Map map ) : byte

Finds an empty slot to use as a player's ID

LoadPlugins ( ) : void

Load plugins

MapFromID ( int ID ) : Bricklayer.Server.World.Map

Finds a map from an ID

OnClose ( ) : void
PlayerFromRUI ( long remoteUniqueIdentifier, bool ignoreError = false ) : Bricklayer.Server.Entities.Player

Finds a player from a remote unique identifier

RegisterPlugin ( IPlugin plugin ) : void

Register a plugin by adding it to the plugin list and telling it to start

Run ( ) : void

Runs/Starts the server networking

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

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

Creates a new map and adds it to the room list
public static CreateMap ( string name, string description ) : Bricklayer.Server.World.Map
name string
description string
Результат Bricklayer.Server.World.Map

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

Finds an empty slot to use as a player's ID
public static FindEmptyID ( Bricklayer.Server.World.Map map ) : byte
map Bricklayer.Server.World.Map
Результат byte

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

Load plugins
public LoadPlugins ( ) : void
Результат void

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

Finds a map from an ID
public static MapFromID ( int ID ) : Bricklayer.Server.World.Map
ID int The ID of the map to find
Результат Bricklayer.Server.World.Map

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

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

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

Finds a player from a remote unique identifier
public static PlayerFromRUI ( long remoteUniqueIdentifier, bool ignoreError = false ) : Bricklayer.Server.Entities.Player
remoteUniqueIdentifier long The RMI to find
ignoreError bool If a player is not found, should an error be thrown?
Результат Bricklayer.Server.Entities.Player

RegisterPlugin() публичный Метод

Register a plugin by adding it to the plugin list and telling it to start
public RegisterPlugin ( IPlugin plugin ) : void
plugin IPlugin Plugin to register
Результат void

Run() публичный Метод

Runs/Starts the server networking
public Run ( ) : void
Результат void

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

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

Lookup of remote unique identifiers to login data, used in the lobby when players are not in a room
public static Dictionary Logins
Результат LoginMessage>.Dictionary