C# Class BF2Statistics.Web.Bf2Stats.Bf2StatsData

This class loads and contains all of the data found in the Web/Bf2Stats/.xml files
Show file Open project: BF2Statistics/ControlCenter

Public Properties

Property Type Description
Armies string>.Dictionary
Maps string>.Dictionary
ModMapIds List>.Dictionary
TheatreMapIds int[]>.Dictionary

Public Methods

Method Description
GetArmyName ( int ArmyId ) : string

Returns the army title based on the given raarmy id

GetMapName ( int MapId ) : string

Returns the map title based on the given map id

Load ( ) : void

Loads the XML files from the "Web/Bf2Stats" folder. These XML files are used for displaying certain information on some of the Bf2Stats pages

Method Details

GetArmyName() public static method

Returns the army title based on the given raarmy id
public static GetArmyName ( int ArmyId ) : string
ArmyId int
return string

GetMapName() public static method

Returns the map title based on the given map id
public static GetMapName ( int MapId ) : string
MapId int
return string

Load() public static method

Loads the XML files from the "Web/Bf2Stats" folder. These XML files are used for displaying certain information on some of the Bf2Stats pages
public static Load ( ) : void
return void

Property Details

Armies public static property

ArmyId => Army Name. Data generated from ArmyData.xml
public static Dictionary Armies
return string>.Dictionary

Maps public static property

MapId => Map Name. Data generated from MapData.xml
public static Dictionary Maps
return string>.Dictionary

ModMapIds public static property

ModName => List of MapIds. Data generated from MapData.xml
public static Dictionary> ModMapIds
return List>.Dictionary

TheatreMapIds public static property

TheaterName => List of MapIds. Data generated from TeaterData.xml
public static Dictionary TheatreMapIds
return int[]>.Dictionary