C# 클래스 Pathfinder.Util.DictionaryExtensions

파일 보기 프로젝트 열기: Arkhist/Hacknet-Pathfinder

공개 메소드들

메소드 설명
GetAnyOrThrow ( Dictionary dict, Array keys, string exMessage, Predicate validator = null ) : string
GetBool ( Dictionary dict, key, bool defaultVal = false ) : bool
GetByte ( Dictionary dict, key, byte defaultVal ) : byte
GetColor ( Dictionary dict, key, Color? defaultVal = null ) : Color?
GetComp ( Dictionary dict, key, SearchType searchType = SearchType.Any, string exMessage = null ) : Computer
GetFloat ( Dictionary dict, key, float defaultVal = 0f ) : float
GetInt ( Dictionary dict, key, int defaultVal ) : int
GetOrDefault ( Dictionary dict, key ) : TValue
GetOrThrow ( Dictionary dict, key, string exMessage, Predicate validator = null ) : string
GetOrWarn ( Dictionary dict, key, string warnMessage, Predicate validator = null ) : string
GetString ( Dictionary dict, key, string defaultVal = "" ) : string
GetVector ( Dictionary dict, x, y, Vector2? defaultVal = null ) : Vector2?

메소드 상세

GetAnyOrThrow() 공개 정적인 메소드

public static GetAnyOrThrow ( Dictionary dict, Array keys, string exMessage, Predicate validator = null ) : string
dict Dictionary
keys Array
exMessage string
validator Predicate
리턴 string

GetBool() 공개 정적인 메소드

public static GetBool ( Dictionary dict, key, bool defaultVal = false ) : bool
dict Dictionary
defaultVal bool
리턴 bool

GetByte() 공개 정적인 메소드

public static GetByte ( Dictionary dict, key, byte defaultVal ) : byte
dict Dictionary
defaultVal byte
리턴 byte

GetColor() 공개 정적인 메소드

public static GetColor ( Dictionary dict, key, Color? defaultVal = null ) : Color?
dict Dictionary
defaultVal Color?
리턴 Color?

GetComp() 공개 정적인 메소드

public static GetComp ( Dictionary dict, key, SearchType searchType = SearchType.Any, string exMessage = null ) : Computer
dict Dictionary
searchType SearchType
exMessage string
리턴 Computer

GetFloat() 공개 정적인 메소드

public static GetFloat ( Dictionary dict, key, float defaultVal = 0f ) : float
dict Dictionary
defaultVal float
리턴 float

GetInt() 공개 정적인 메소드

public static GetInt ( Dictionary dict, key, int defaultVal ) : int
dict Dictionary
defaultVal int
리턴 int

GetOrDefault() 공개 정적인 메소드

public static GetOrDefault ( Dictionary dict, key ) : TValue
dict Dictionary
리턴 TValue

GetOrThrow() 공개 정적인 메소드

public static GetOrThrow ( Dictionary dict, key, string exMessage, Predicate validator = null ) : string
dict Dictionary
exMessage string
validator Predicate
리턴 string

GetOrWarn() 공개 정적인 메소드

public static GetOrWarn ( Dictionary dict, key, string warnMessage, Predicate validator = null ) : string
dict Dictionary
warnMessage string
validator Predicate
리턴 string

GetString() 공개 정적인 메소드

public static GetString ( Dictionary dict, key, string defaultVal = "" ) : string
dict Dictionary
defaultVal string
리턴 string

GetVector() 공개 정적인 메소드

public static GetVector ( Dictionary dict, x, y, Vector2? defaultVal = null ) : Vector2?
dict Dictionary
defaultVal Vector2?
리턴 Vector2?