C# Class Bricklayer.Client.IO

Handles disk saving/loading operations
Afficher le fichier Open project: Cyral/Bricklayer

Méthodes publiques

Свойство Type Description
AssemblyVersion string
ContentPacks List
Directories string>.Dictionary
MainDirectory string

Méthodes publiques

Méthode Description
CheckFiles ( ) : void

Checks to make sure the application files are there, if not it will create them

LoadContentPacks ( Game game ) : void

Finds content packs and loads the selected one

LoadSettings ( Game game ) : void

Opens the settings file and loads the values

ReadServers ( ) : List

Reads a list of servers from the json server config file

SaveSettings ( Settings settings ) : void

Saves settings to the settings file

WriteServers ( List servers ) : void

Save servers into a configurable json file

Private Methods

Méthode Description
ApplySettings ( Settings settings, Game game ) : void

Applies loading settings (Handles logic)

CreateDefaultServer ( ) : ServerSaveData
IO ( ) : System
SaveAndApplyDefault ( Game game ) : void

Method Details

CheckFiles() public static méthode

Checks to make sure the application files are there, if not it will create them
public static CheckFiles ( ) : void
Résultat void

LoadContentPacks() public static méthode

Finds content packs and loads the selected one
public static LoadContentPacks ( Game game ) : void
game Game
Résultat void

LoadSettings() public static méthode

Opens the settings file and loads the values
public static LoadSettings ( Game game ) : void
game Game
Résultat void

ReadServers() public static méthode

Reads a list of servers from the json server config file
public static ReadServers ( ) : List
Résultat List

SaveSettings() public static méthode

Saves settings to the settings file
public static SaveSettings ( Settings settings ) : void
settings Settings
Résultat void

WriteServers() public static méthode

Save servers into a configurable json file
public static WriteServers ( List servers ) : void
servers List
Résultat void

Property Details

AssemblyVersion public_oe static_oe property

public static string AssemblyVersion
Résultat string

ContentPacks public_oe static_oe property

public static List ContentPacks
Résultat List

Directories public_oe static_oe property

public static Dictionary Directories
Résultat string>.Dictionary

MainDirectory public_oe static_oe property

public static string MainDirectory
Résultat string