Class OpenLevelManager
The LevelManager keeps track of all available Levels (A.K.A Worlds) in the server.
Inheritance
System.Object
OpenLevelManager
Assembly: OpenAPI.dll
Syntax
public class OpenLevelManager : LevelManager
Constructors
|
Improve this Doc
View Source
OpenLevelManager(OpenApi)
Declaration
public OpenLevelManager(OpenApi api)
Parameters
Properties
|
Improve this Doc
View Source
GetLevels
Returns the levels currently registered with the LevelManager
Declaration
public OpenLevel[] GetLevels { get; }
Property Value
|
Improve this Doc
View Source
HasDefaultLevel
Declaration
public bool HasDefaultLevel { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
LevelCount
Declaration
public int LevelCount { get; }
Property Value
Type |
Description |
System.Int32 |
|
Methods
|
Improve this Doc
View Source
Close()
Declaration
|
Improve this Doc
View Source
GetDefaultLevel()
Declaration
public OpenLevel GetDefaultLevel()
Returns
|
Improve this Doc
View Source
GetDimension(Level, Dimension)
Declaration
public override Level GetDimension(Level level, Dimension dimension)
Parameters
Type |
Name |
Description |
Level |
level |
|
Dimension |
dimension |
|
Returns
|
Improve this Doc
View Source
GetLevel(MiNET.Player, String)
Declaration
public override Level GetLevel(MiNET.Player player, string levelId)
Parameters
Type |
Name |
Description |
MiNET.Player |
player |
|
System.String |
levelId |
|
Returns
|
Improve this Doc
View Source
GetLevel(String, String, ChunkColumn[])
Declaration
public OpenLevel GetLevel(string basepath, string levelId, ChunkColumn[] chunks)
Parameters
Type |
Name |
Description |
System.String |
basepath |
|
System.String |
levelId |
|
ChunkColumn[] |
chunks |
|
Returns
|
Improve this Doc
View Source
LoadLevel(OpenLevel)
Initializes the OpenLevel instance, this could include loading the world from a local folder or generating a new world.
Declaration
public void LoadLevel(OpenLevel openLevel)
Parameters
Type |
Name |
Description |
OpenLevel |
openLevel |
The OpenLevel instance to register and initialize
|
|
Improve this Doc
View Source
LoadLevel(String)
Declaration
public OpenLevel LoadLevel(string levelDirectory)
Parameters
Type |
Name |
Description |
System.String |
levelDirectory |
|
Returns
|
Improve this Doc
View Source
LoadLevel(String, String)
Declaration
public OpenLevel LoadLevel(string levelDirectory, string levelId)
Parameters
Type |
Name |
Description |
System.String |
levelDirectory |
|
System.String |
levelId |
|
Returns
|
Improve this Doc
View Source
SetDefaultLevel(OpenLevel)
Sets the Default OpenLevel players join when connecting to the server.
Declaration
public void SetDefaultLevel(OpenLevel level)
Parameters
|
Improve this Doc
View Source
UnloadLevel(OpenLevel)
Declaration
public void UnloadLevel(OpenLevel openLevel)
Parameters