C# Класс BF2Statistics.MedalData.AwardCache

The Award cache class is responsible for holding all the found awards and ranks from the Medal data file.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
AddAward ( Award A ) : void

Used by the parser to add found awards to the list

AddDefaultAwardCondition ( string Id, Condition C ) : void

Used by the Medal data parser to add the original award conditions

AddRank ( Rank A ) : void

Used by the parser to add found ranks to the list

Clear ( ) : void

Clears all awards. Usually only called when the MedalData file changes.

GetAward ( string Id ) : IAward

This method is used to fetch a particular Award or rank by ID

GetBadges ( ) : IEnumerable

Returns all found badges

GetDefaultAwardCondition ( string Id ) : Condition

Returns the original (vanilla) condition list to earn the specified award

GetMedals ( ) : IEnumerable

Returns all found Medals

GetRanks ( ) : IEnumerable

Returns all found ranks

GetRibbons ( ) : IEnumerable

Returns all found ribbons

Описание методов

AddAward() публичный статический Метод

Used by the parser to add found awards to the list
public static AddAward ( Award A ) : void
A Award The Award Object To Add
Результат void

AddDefaultAwardCondition() публичный статический Метод

Used by the Medal data parser to add the original award conditions
public static AddDefaultAwardCondition ( string Id, Condition C ) : void
Id string The Award ID found in the Medal Data file
C Condition The parsed condition to earn the award
Результат void

AddRank() публичный статический Метод

Used by the parser to add found ranks to the list
public static AddRank ( Rank A ) : void
A Rank The Rank Object To Add
Результат void

Clear() публичный статический Метод

Clears all awards. Usually only called when the MedalData file changes.
public static Clear ( ) : void
Результат void

GetAward() публичный статический Метод

This method is used to fetch a particular Award or rank by ID
public static GetAward ( string Id ) : IAward
Id string The Award ID
Результат IAward

GetBadges() публичный статический Метод

Returns all found badges
public static GetBadges ( ) : IEnumerable
Результат IEnumerable

GetDefaultAwardCondition() публичный статический Метод

Returns the original (vanilla) condition list to earn the specified award
public static GetDefaultAwardCondition ( string Id ) : Condition
Id string The award's ID
Результат Condition

GetMedals() публичный статический Метод

Returns all found Medals
public static GetMedals ( ) : IEnumerable
Результат IEnumerable

GetRanks() публичный статический Метод

Returns all found ranks
public static GetRanks ( ) : IEnumerable
Результат IEnumerable

GetRibbons() публичный статический Метод

Returns all found ribbons
public static GetRibbons ( ) : IEnumerable
Результат IEnumerable