C# 클래스 Nexus.Client.ModManagement.Scripting.XmlScript.FlagCondition

A condition that requires a specified flag to have a specific value.
상속: ICondition
파일 보기 프로젝트 열기: NexusMods/NexusModManager-4.5

공개 메소드들

메소드 설명
FlagCondition ( string p_strFlagName, string p_strValue ) : System

A simple constructor that initializes the object with the given values.

GetIsFulfilled ( ConditionStateManager p_csmStateManager ) : bool

Gets whether or not the condition is fulfilled.

The condition is fulfilled if the specified flag has the specified value.

GetMessage ( ConditionStateManager p_csmStateManager ) : string

Gets a message describing whether or not the condition is fulfilled.

If the condition is fulfilled the message is "Passed." If the condition is not fulfilled the message uses the pattern: Flag '<flag>' is not <value>.

메소드 상세

FlagCondition() 공개 메소드

A simple constructor that initializes the object with the given values.
public FlagCondition ( string p_strFlagName, string p_strValue ) : System
p_strFlagName string
p_strValue string The value the flag that must have.
리턴 System

GetIsFulfilled() 공개 메소드

Gets whether or not the condition is fulfilled.
The condition is fulfilled if the specified flag has the specified value.
public GetIsFulfilled ( ConditionStateManager p_csmStateManager ) : bool
p_csmStateManager ConditionStateManager The manager that tracks the currect install state.
리턴 bool

GetMessage() 공개 메소드

Gets a message describing whether or not the condition is fulfilled.
If the condition is fulfilled the message is "Passed." If the condition is not fulfilled the message uses the pattern: Flag '<flag>' is not <value>.
public GetMessage ( ConditionStateManager p_csmStateManager ) : string
p_csmStateManager ConditionStateManager The manager that tracks the currect install state.
리턴 string