C# Class BF2Statistics.MapList

Show file Open project: BF2Statistics/ControlCenter Class Usage Examples

Public Methods

Method Description
AddFromString ( string Line ) : bool

Parses a line in con file format, and adds the map to the entry list if its valid

MapList ( ) : System

Creates a new Maplist Container

MapList ( string FileLines ) : System

Creates a new maplist container with the specified maplist.con lines

SaveToFile ( string FilePath ) : void

Saves the current maplist to a Con file

Method Details

AddFromString() public method

Parses a line in con file format, and adds the map to the entry list if its valid
public AddFromString ( string Line ) : bool
Line string The con file formated string to parse
return bool

MapList() public method

Creates a new Maplist Container
public MapList ( ) : System
return System

MapList() public method

Creates a new maplist container with the specified maplist.con lines
public MapList ( string FileLines ) : System
FileLines string
return System

SaveToFile() public method

Saves the current maplist to a Con file
public SaveToFile ( string FilePath ) : void
FilePath string The full path to the con file. If it does not exist, one will be created
return void