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

Represents an award found in the medal data file as an object
Наследование: IAward
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
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