C# 클래스 BF2Statistics.MedalData.MedalDataParser

파일 보기 프로젝트 열기: BF2Statistics/ControlCenter 1 사용 예제들

공개 메소드들

메소드 설명
BuildAwardCache ( MatchCollection MedalsMatches, MatchCollection RanksMatches ) : void

This method builds the award cache with the given data from the medal data file. This method WILL CLEAR the award cache from any existing medals

LoadMedalDataFile ( string FilePath ) : void

This method loads a Medal data python file, and parses it. The medal data is stored in the AwardCache object

ParseMedalData ( string Data, MatchCollection &MedalsMatches, MatchCollection &RanksMatches ) : void

This method takes a medal data string, and parses it. The parsed match collections are passed back out from referenced variables

ParseNodeConditions ( TreeNode Node ) : Condition

Takes a node tree and converts it to a Condition

ReadPythonFile ( string file ) : string

Simple easy way to get the contents of a file, excluding empty lines.

비공개 메소드들

메소드 설명
MedalDataParser ( ) : System

Loads the default medal data into the Award Cache

ParseCondition ( List parts, int &i ) : Condition

Parses a string condition into condition objects

ParseCondition ( string ConditionString ) : Condition

Parses a string condition into condition objects

ParseFunctions ( List &parts ) : bool

Takes each literal token, and determines if its a StatFunction, or ConditionFunction

Tokenize ( TokenType tokenKind, string pattern, int>.KeyValuePair &untokenizedParts ) : IEnumerable

Performs tokenization of a collection of non-tokenized data parts with a specific pattern

Tokenize ( string source ) : IEnumerable

Breaks an input string into recognizable tokens

메소드 상세

BuildAwardCache() 공개 정적인 메소드

This method builds the award cache with the given data from the medal data file. This method WILL CLEAR the award cache from any existing medals
public static BuildAwardCache ( MatchCollection MedalsMatches, MatchCollection RanksMatches ) : void
MedalsMatches System.Text.RegularExpressions.MatchCollection
RanksMatches System.Text.RegularExpressions.MatchCollection
리턴 void

LoadMedalDataFile() 공개 정적인 메소드

This method loads a Medal data python file, and parses it. The medal data is stored in the AwardCache object
public static LoadMedalDataFile ( string FilePath ) : void
FilePath string The full file path to the python file
리턴 void

ParseMedalData() 공개 정적인 메소드

This method takes a medal data string, and parses it. The parsed match collections are passed back out from referenced variables
public static ParseMedalData ( string Data, MatchCollection &MedalsMatches, MatchCollection &RanksMatches ) : void
Data string The contents of the medal data file
MedalsMatches System.Text.RegularExpressions.MatchCollection
RanksMatches System.Text.RegularExpressions.MatchCollection
리턴 void

ParseNodeConditions() 공개 정적인 메소드

Takes a node tree and converts it to a Condition
public static ParseNodeConditions ( TreeNode Node ) : Condition
Node System.Windows.Forms.TreeNode
리턴 Condition

ReadPythonFile() 공개 정적인 메소드

Simple easy way to get the contents of a file, excluding empty lines.
public static ReadPythonFile ( string file ) : string
file string
리턴 string