C# Class QFramework.QSetting

ファイルを表示 Open project: liangxiegame/QFramework Class Usage Examples

Public Properties

Property Type Description
DevicePersistentPath string

Public Methods

Method Description
GetBool ( string key, bool defaultVal = false ) : bool
GetFloat ( string key, float defaultVal = 0f ) : float
GetInt ( string key, int defaultVal ) : int
GetString ( string key, string defaultVal = "" ) : string
Load ( ) : void
Save ( ) : void
SetBool ( string key, bool val ) : void
SetFloat ( string key, float val ) : void
SetInt ( string key, int val ) : void
SetString ( string key, string val ) : void

Method Details

GetBool() public static method

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

GetFloat() public static method

public static GetFloat ( string key, float defaultVal = 0f ) : float
key string
defaultVal float
return float

GetInt() public static method

public static GetInt ( string key, int defaultVal ) : int
key string
defaultVal int
return int

GetString() public static method

public static GetString ( string key, string defaultVal = "" ) : string
key string
defaultVal string
return string

Load() public static method

public static Load ( ) : void
return void

Save() public static method

public static Save ( ) : void
return void

SetBool() public static method

public static SetBool ( string key, bool val ) : void
key string
val bool
return void

SetFloat() public static method

public static SetFloat ( string key, float val ) : void
key string
val float
return void

SetInt() public static method

public static SetInt ( string key, int val ) : void
key string
val int
return void

SetString() public static method

public static SetString ( string key, string val ) : void
key string
val string
return void

Property Details

DevicePersistentPath public_oe static_oe property

public static string DevicePersistentPath
return string