C# Class Sharpcraft.Library.Configuration.GameSettings

Settings related to the game (Sharpcraft).
Inheritance: Settings
Mostrar archivo Open project: SijmenSchoon/Sharpcraft Class Usage Examples

Public Properties

Property Type Description
Fullscreen bool
QuickServer Sharpcraft.Library.Minecraft.Server

Private Properties

Property Type Description

Public Methods

Method Description
AddServer ( Server server ) : bool

Add a server to the server list.

GameSettings ( string settingsFile, Server quickServer = null ) : System.Collections.Generic

Initializes a new instance of GameSettings.

RemoveServer ( Server server ) : bool

Removes a server from the list by reference.

RemoveServer ( string name ) : bool

Remove a server from the list by name.

Method Details

AddServer() public method

Add a server to the server list.
public AddServer ( Server server ) : bool
server Sharpcraft.Library.Minecraft.Server The server to add.
return bool

GameSettings() public method

Initializes a new instance of GameSettings.
public GameSettings ( string settingsFile, Server quickServer = null ) : System.Collections.Generic
settingsFile string The settings file to use.
quickServer Sharpcraft.Library.Minecraft.Server The quickserver that the user last specified.
return System.Collections.Generic

RemoveServer() public method

Removes a server from the list by reference.
public RemoveServer ( Server server ) : bool
server Sharpcraft.Library.Minecraft.Server to remove.
return bool

RemoveServer() public method

Remove a server from the list by name.
public RemoveServer ( string name ) : bool
name string Name of the server.
return bool

Property Details

Fullscreen public_oe property

Whether or not to run the game in fullscreen mode.
public bool Fullscreen
return bool

QuickServer public_oe property

The "Quickjoin" server.
public Server,Sharpcraft.Library.Minecraft QuickServer
return Sharpcraft.Library.Minecraft.Server