C# 클래스 BF2Statistics.MedalData.AwardCache

The Award cache class is responsible for holding all the found awards and ranks from the Medal data file.
파일 보기 프로젝트 열기: BF2Statistics/ControlCenter 1 사용 예제들

공개 메소드들

메소드 설명
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