C# Class Bricklayer.Client.IO

Handles disk saving/loading operations
Exibir arquivo Open project: Cyral/Bricklayer

Public Properties

Property Type Description
AssemblyVersion string
ContentPacks List
Directories string>.Dictionary
MainDirectory string

Public Methods

Method 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

Method 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 method

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

LoadContentPacks() public static method

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

LoadSettings() public static method

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

ReadServers() public static method

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

SaveSettings() public static method

Saves settings to the settings file
public static SaveSettings ( Settings settings ) : void
settings Settings
return void

WriteServers() public static method

Save servers into a configurable json file
public static WriteServers ( List servers ) : void
servers List
return void

Property Details

AssemblyVersion public_oe static_oe property

public static string AssemblyVersion
return string

ContentPacks public_oe static_oe property

public static List ContentPacks
return List

Directories public_oe static_oe property

public static Dictionary Directories
return string>.Dictionary

MainDirectory public_oe static_oe property

public static string MainDirectory
return string