C# Class LeopotamGroup.EditorHelpers.ProjectPrefs

EditorPrefs replacement with keeping data per project.
Afficher le fichier Open project: Leopotam/LeopotamGroupLibraryUnity

Méthodes publiques

Méthode Description
DeleteAll ( ) : void

Delete all keys.

DeleteKey ( string key ) : void

Delete key.

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

Get bool value by key.

GetFloat ( string key, float defaultValue = 0f ) : float

Get float value by key.

GetInt ( string key, int defaultValue ) : int

Get int value by key.

GetString ( string key, string defaultValue = null ) : string

Get string value by key.

HasKey ( string key ) : bool

Is key-store contains specified key.

Reset ( ) : void

Force reload data.

SetBool ( string key, bool data ) : void

Set bool value by key.

SetFloat ( string key, float data ) : void

Set float value by key.

SetInt ( string key, int data ) : void

Set int value by key.

SetString ( string key, string data ) : void

Set string value by key.

Private Methods

Méthode Description
LoadData ( ) : void
SaveData ( ) : void

Method Details

DeleteAll() public static méthode

Delete all keys.
public static DeleteAll ( ) : void
Résultat void

DeleteKey() public static méthode

Delete key.
public static DeleteKey ( string key ) : void
key string Key.
Résultat void

GetBool() public static méthode

Get bool value by key.
public static GetBool ( string key, bool defaultValue = false ) : bool
key string Key.
defaultValue bool Default value.
Résultat bool

GetFloat() public static méthode

Get float value by key.
public static GetFloat ( string key, float defaultValue = 0f ) : float
key string Key.
defaultValue float Default value.
Résultat float

GetInt() public static méthode

Get int value by key.
public static GetInt ( string key, int defaultValue ) : int
key string Key.
defaultValue int Default value.
Résultat int

GetString() public static méthode

Get string value by key.
public static GetString ( string key, string defaultValue = null ) : string
key string Key.
defaultValue string Default value.
Résultat string

HasKey() public static méthode

Is key-store contains specified key.
public static HasKey ( string key ) : bool
key string Key.
Résultat bool

Reset() public static méthode

Force reload data.
public static Reset ( ) : void
Résultat void

SetBool() public static méthode

Set bool value by key.
public static SetBool ( string key, bool data ) : void
key string Key.
data bool Data.
Résultat void

SetFloat() public static méthode

Set float value by key.
public static SetFloat ( string key, float data ) : void
key string Key.
data float Data.
Résultat void

SetInt() public static méthode

Set int value by key.
public static SetInt ( string key, int data ) : void
key string Key.
data int Data.
Résultat void

SetString() public static méthode

Set string value by key.
public static SetString ( string key, string data ) : void
key string Key.
data string Data.
Résultat void