C# Класс Sharpcraft.Library.Configuration.LauncherSettings

Used to store settings for the Sharpcraft launcher.
Наследование: Settings
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
Remember bool
Username string

Открытые методы

Метод Описание
GetPassword ( ) : string

Get plaintext version of the encrypted password.

LauncherSettings ( string settingsFile ) : System

Initialize a new instance of the LauncherSettings class.

SetPassword ( string password ) : void

Set the user's password.

The password will be encrypted using XOR and then converted into a Base64 string.

WriteToFile ( ) : void

Write settings to the settings file.

LauncherSettings overrides Settings.WriteToFile and logs any IO errors instead of crashing.

Описание методов

GetPassword() публичный Метод

Get plaintext version of the encrypted password.
public GetPassword ( ) : string
Результат string

LauncherSettings() публичный Метод

Initialize a new instance of the LauncherSettings class.
public LauncherSettings ( string settingsFile ) : System
settingsFile string The file containing a JSON serialization of this object.
Результат System

SetPassword() публичный Метод

Set the user's password.
The password will be encrypted using XOR and then converted into a Base64 string.
public SetPassword ( string password ) : void
password string Plaintext version of password.
Результат void

WriteToFile() публичный Метод

Write settings to the settings file.
LauncherSettings overrides Settings.WriteToFile and logs any IO errors instead of crashing.
public WriteToFile ( ) : void
Результат void

Описание свойств

Remember публичное свойство

Whether or not to remember the password.
public bool Remember
Результат bool

Username публичное свойство

The username of the most recently logged in user.
public string Username
Результат string