C# Class Bricklayer.Server.Server

The main server entry point
Mostra file Open project: Cyral/Bricklayer Class Usage Examples

Public Properties

Property Type Description
Logins LoginMessage>.Dictionary

Public Methods

Method 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 method

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
return Bricklayer.Server.World.Map

FindEmptyID() public static method

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
return byte

LoadPlugins() public method

Load plugins
public LoadPlugins ( ) : void
return void

MapFromID() public static method

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

OnClose() public static method

public static OnClose ( ) : void
return void

PlayerFromRUI() public static method

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?
return Bricklayer.Server.Entities.Player

RegisterPlugin() public method

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
return void

Run() public method

Runs/Starts the server networking
public Run ( ) : void
return 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
return LoginMessage>.Dictionary