C# 클래스 NutMud.Commands.Attributes.CommandParameterAttribute

상속: System.Attribute
파일 보기 프로젝트 열기: SwiftAusterity/NetMud

공개 메소드들

메소드 설명
CommandParameterAttribute ( CommandUsage usage, Type type, CacheReferenceType cacheTypes, bool optional ) : System

Creates a new parameter attribute with a blank matching pattern

CommandParameterAttribute ( CommandUsage usage, Type type, CacheReferenceType cacheTypes, string matchingPattern, bool optional ) : System

Creates a new parameter attribute

MatchesPattern ( string inputString ) : bool

Does the keywords incoming match the regex pattern (unless it's blank, in which case it always matches)

메소드 상세

CommandParameterAttribute() 공개 메소드

Creates a new parameter attribute with a blank matching pattern
public CommandParameterAttribute ( CommandUsage usage, Type type, CacheReferenceType cacheTypes, bool optional ) : System
usage CommandUsage How the parameter is used in the command
type System.Type The system type of the parameter expected
cacheTypes CacheReferenceType How this parameter can be found (is it data, is it a live entity)
optional bool Is this parameter optional
리턴 System

CommandParameterAttribute() 공개 메소드

Creates a new parameter attribute
public CommandParameterAttribute ( CommandUsage usage, Type type, CacheReferenceType cacheTypes, string matchingPattern, bool optional ) : System
usage CommandUsage How the parameter is used in the command
type System.Type The system type of the parameter expected
cacheTypes CacheReferenceType How this parameter can be found (is it data, is it a live entity)
matchingPattern string Does this pattern keyword follow a regex pattern
optional bool Is this parameter optional
리턴 System

MatchesPattern() 공개 메소드

Does the keywords incoming match the regex pattern (unless it's blank, in which case it always matches)
public MatchesPattern ( string inputString ) : bool
inputString string
리턴 bool