C# Class idTech4.idDict

This is a dictionary class that tracks an arbitrary number of key / value pair combinations. It is used for map entity spawning, GUI state management, and other things.
Keys are compared case-insensitive.
Show file Open project: iainmckay/idtech4.net Class Usage Examples

Public Methods

Method Description
Clear ( ) : void
ContainsKey ( string key ) : bool
GetBool ( string key, bool defaultValue = false ) : bool
GetFloat ( string key, float defaultValue ) : float
GetInteger ( string key, int defaultValue ) : int
GetMatrix ( string key, string defaultString = "" ) : Matrix
GetRectangle ( string key ) : idRectangle
GetRectangle ( string key, idRectangle defaultValue ) : idRectangle
GetString ( string key ) : string
GetString ( string key, string defaultString ) : string
GetVector2 ( string key ) : Vector2
GetVector2 ( string key, Vector2 defaultValue ) : Vector2
GetVector3 ( string key ) : Vector3
GetVector3 ( string key, Vector3 defaultValue ) : Vector3
GetVector4 ( string key ) : Vector4
GetVector4 ( string key, Vector4 defaultValue ) : Vector4
MatchPrefix ( string prefix ) : string>>.IEnumerable
Remove ( string key ) : void
Set ( string key, Vector2 value ) : void
Set ( string key, Vector3 value ) : void
Set ( string key, Vector4 value ) : void
Set ( string key, bool value ) : void
Set ( string key, float value ) : void
Set ( string key, idRectangle value ) : void
Set ( string key, int value ) : void
Set ( string key, string value ) : void
SetDefaults ( idDict dict ) : void

Copy key/value pairs from other another dict not present in this instance.

TransferKeyValues ( idDict source ) : void
idDict ( ) : System

Method Details

Clear() public method

public Clear ( ) : void
return void

ContainsKey() public method

public ContainsKey ( string key ) : bool
key string
return bool

GetBool() public method

public GetBool ( string key, bool defaultValue = false ) : bool
key string
defaultValue bool
return bool

GetFloat() public method

public GetFloat ( string key, float defaultValue ) : float
key string
defaultValue float
return float

GetInteger() public method

public GetInteger ( string key, int defaultValue ) : int
key string
defaultValue int
return int

GetMatrix() public method

public GetMatrix ( string key, string defaultString = "" ) : Matrix
key string
defaultString string
return Matrix

GetRectangle() public method

public GetRectangle ( string key ) : idRectangle
key string
return idRectangle

GetRectangle() public method

public GetRectangle ( string key, idRectangle defaultValue ) : idRectangle
key string
defaultValue idRectangle
return idRectangle

GetString() public method

public GetString ( string key ) : string
key string
return string

GetString() public method

public GetString ( string key, string defaultString ) : string
key string
defaultString string
return string

GetVector2() public method

public GetVector2 ( string key ) : Vector2
key string
return Vector2

GetVector2() public method

public GetVector2 ( string key, Vector2 defaultValue ) : Vector2
key string
defaultValue Vector2
return Vector2

GetVector3() public method

public GetVector3 ( string key ) : Vector3
key string
return Vector3

GetVector3() public method

public GetVector3 ( string key, Vector3 defaultValue ) : Vector3
key string
defaultValue Vector3
return Vector3

GetVector4() public method

public GetVector4 ( string key ) : Vector4
key string
return Vector4

GetVector4() public method

public GetVector4 ( string key, Vector4 defaultValue ) : Vector4
key string
defaultValue Vector4
return Vector4

MatchPrefix() public method

public MatchPrefix ( string prefix ) : string>>.IEnumerable
prefix string
return string>>.IEnumerable

Remove() public method

public Remove ( string key ) : void
key string
return void

Set() public method

public Set ( string key, Vector2 value ) : void
key string
value Vector2
return void

Set() public method

public Set ( string key, Vector3 value ) : void
key string
value Vector3
return void

Set() public method

public Set ( string key, Vector4 value ) : void
key string
value Vector4
return void

Set() public method

public Set ( string key, bool value ) : void
key string
value bool
return void

Set() public method

public Set ( string key, float value ) : void
key string
value float
return void

Set() public method

public Set ( string key, idRectangle value ) : void
key string
value idRectangle
return void

Set() public method

public Set ( string key, int value ) : void
key string
value int
return void

Set() public method

public Set ( string key, string value ) : void
key string
value string
return void

SetDefaults() public method

Copy key/value pairs from other another dict not present in this instance.
public SetDefaults ( idDict dict ) : void
dict idDict
return void

TransferKeyValues() public method

public TransferKeyValues ( idDict source ) : void
source idDict
return void

idDict() public method

public idDict ( ) : System
return System