C# Class Bricklayer.Server.Server

The main server entry point
Afficher le fichier Open project: Cyral/Bricklayer Class Usage Examples

Méthodes publiques

Свойство Type Description
Logins LoginMessage>.Dictionary

Méthodes publiques

Méthode Description
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

Method Details

CreateMap() public static méthode

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
Résultat Bricklayer.Server.World.Map

FindEmptyID() public static méthode

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
Résultat byte

LoadPlugins() public méthode

Load plugins
public LoadPlugins ( ) : void
Résultat void

MapFromID() public static méthode

Finds a map from an ID
public static MapFromID ( int ID ) : Bricklayer.Server.World.Map
ID int The ID of the map to find
Résultat Bricklayer.Server.World.Map

OnClose() public static méthode

public static OnClose ( ) : void
Résultat void

PlayerFromRUI() public static méthode

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?
Résultat Bricklayer.Server.Entities.Player

RegisterPlugin() public méthode

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
Résultat void

Run() public méthode

Runs/Starts the server networking
public Run ( ) : void
Résultat void

Property Details

Logins public_oe static_oe property

Lookup of remote unique identifiers to login data, used in the lobby when players are not in a room
public static Dictionary Logins
Résultat LoginMessage>.Dictionary