C# 클래스 Bricklayer.Server.Server

The main server entry point
파일 보기 프로젝트 열기: Cyral/Bricklayer 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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