C# Class Sharpcraft.Library.Configuration.GameSettings

Settings related to the game (Sharpcraft).
Inheritance: Settings
Afficher le fichier Open project: SijmenSchoon/Sharpcraft Class Usage Examples

Méthodes publiques

Свойство Type Description
Fullscreen bool
QuickServer Sharpcraft.Library.Minecraft.Server

Private Properties

Свойство Type Description

Méthodes publiques

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

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

GameSettings() public méthode

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.
Résultat System.Collections.Generic

RemoveServer() public méthode

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

RemoveServer() public méthode

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

Property Details

Fullscreen public_oe property

Whether or not to run the game in fullscreen mode.
public bool Fullscreen
Résultat bool

QuickServer public_oe property

The "Quickjoin" server.
public Server,Sharpcraft.Library.Minecraft QuickServer
Résultat Sharpcraft.Library.Minecraft.Server