C# 클래스 BF2Statistics.MedalData.Award

Represents an award found in the medal data file as an object
상속: IAward
파일 보기 프로젝트 열기: BF2Statistics/ControlCenter 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
StrId string
Type int

공개 메소드들

메소드 설명
Award ( string AwardId, string StrId, string Type, Condition Condition ) : System

Class Constructor. Constructs a new award

Exists ( string AwardId ) : bool

Returns whether a specified award ID exists

GetBadgeLevel ( string BadgeId ) : BadgeLevel

Returns the badge level

GetCondition ( ) : Condition

Returns the awards conditions

GetName ( string AwardId ) : string

Returns the full string name of an award

GetType ( string AwardId ) : AwardType

Returns the Award type of an award.

IsSfAward ( string AwardId ) : bool

Indicates whether the award is a special forces award

RestoreDefaultConditions ( ) : void

Restores the condition of this award to the default (vanilla) state

SetCondition ( Condition C ) : void

Sets the Condition, or Condition list to earn the award

ToPython ( ) : string

Converts the medal data, and its conditions to python

ToString ( ) : string

Returns the name of the award

ToTree ( ) : TreeNode

Converts the medal's conditions to a TreeView

UndoConditionChanges ( ) : void

Restores any changes made to the conditions of this award

메소드 상세

Award() 공개 메소드

Class Constructor. Constructs a new award
public Award ( string AwardId, string StrId, string Type, Condition Condition ) : System
AwardId string The award id as a string
StrId string The short name of the award
Type string The award earn type. 0 = Purple heart, 1 = Earned only once per player, 2 = Earnable multiple times
Condition Condition The condition to earn this award
리턴 System

Exists() 공개 정적인 메소드

Returns whether a specified award ID exists
public static Exists ( string AwardId ) : bool
AwardId string The Award ID
리턴 bool

GetBadgeLevel() 공개 정적인 메소드

Returns the badge level
public static GetBadgeLevel ( string BadgeId ) : BadgeLevel
BadgeId string The award ID
리턴 BadgeLevel

GetCondition() 공개 메소드

Returns the awards conditions
public GetCondition ( ) : Condition
리턴 Condition

GetName() 공개 정적인 메소드

Returns the full string name of an award
public static GetName ( string AwardId ) : string
AwardId string The award ID
리턴 string

GetType() 공개 정적인 메소드

Returns the Award type of an award.
public static GetType ( string AwardId ) : AwardType
AwardId string The award ID
리턴 AwardType

IsSfAward() 공개 정적인 메소드

Indicates whether the award is a special forces award
public static IsSfAward ( string AwardId ) : bool
AwardId string
리턴 bool

RestoreDefaultConditions() 공개 메소드

Restores the condition of this award to the default (vanilla) state
public RestoreDefaultConditions ( ) : void
리턴 void

SetCondition() 공개 메소드

Sets the Condition, or Condition list to earn the award
public SetCondition ( Condition C ) : void
C Condition The condition or condition list
리턴 void

ToPython() 공개 메소드

Converts the medal data, and its conditions to python
public ToPython ( ) : string
리턴 string

ToString() 공개 메소드

Returns the name of the award
public ToString ( ) : string
리턴 string

ToTree() 공개 메소드

Converts the medal's conditions to a TreeView
public ToTree ( ) : TreeNode
리턴 System.Windows.Forms.TreeNode

UndoConditionChanges() 공개 메소드

Restores any changes made to the conditions of this award
public UndoConditionChanges ( ) : void
리턴 void

프로퍼티 상세

StrId 보호되어 있는 프로퍼티

The string ID of the award
protected string StrId
리턴 string

Type 보호되어 있는 프로퍼티

The award earn type
protected int Type
리턴 int