C# Class BF2Statistics.BF2Mod

Show file Open project: BF2Statistics/ControlCenter Class Usage Examples

Public Properties

Property Type Description
Levels List

Protected Properties

Property Type Description
LoadedLevels BF2Map>.Dictionary

Public Methods

Method Description
BF2Mod ( string ModsPath, string ModName ) : System

Constructs a new BF2Mod object

LoadMap ( string Name ) : BF2Map

Fetches the BF2 map into an object. If the map has already been loaded into an object previously, that object will be returned instead.

ToString ( ) : string

Returns the Mod's Title

Method Details

BF2Mod() public method

Constructs a new BF2Mod object
public BF2Mod ( string ModsPath, string ModName ) : System
ModsPath string The full path to the Mods folder
ModName string THe mod's folder name
return System

LoadMap() public method

Fetches the BF2 map into an object. If the map has already been loaded into an object previously, that object will be returned instead.
public LoadMap ( string Name ) : BF2Map
Name string The map FOLDER name
return BF2Map

ToString() public method

Returns the Mod's Title
public ToString ( ) : string
return string

Property Details

Levels public property

Containst a list of map folders found in the levels folder
public List Levels
return List

LoadedLevels protected property

Once a Map is loaded into an object, it is stored here to prevent additional loading
protected Dictionary LoadedLevels
return BF2Map>.Dictionary