C# Class Polybrush.z_Pref

Mostrar archivo Open project: pedro15/UniShaders

Public Methods

Method Description
ClearPrefs ( ) : void
GetBool ( string key, bool fallback = true ) : bool
GetColor ( string key, Color fallback = default(Color) ) : Color
GetFloat ( string key, float fallback = 1f ) : float
GetGradient ( string key ) : Gradient
GetInt ( string key, int fallback ) : int
HasKey ( string key ) : bool
SetBool ( string key, bool value ) : void
SetColor ( string key, Color value ) : void
SetFloat ( string key, float value ) : void
SetGradient ( string key, Gradient gradient ) : void
SetInt ( string key, int value ) : void
VersionCheck ( ) : bool

Method Details

ClearPrefs() public static method

public static ClearPrefs ( ) : void
return void

GetBool() public static method

public static GetBool ( string key, bool fallback = true ) : bool
key string
fallback bool
return bool

GetColor() public static method

public static GetColor ( string key, Color fallback = default(Color) ) : Color
key string
fallback Color
return Color

GetFloat() public static method

public static GetFloat ( string key, float fallback = 1f ) : float
key string
fallback float
return float

GetGradient() public static method

public static GetGradient ( string key ) : Gradient
key string
return Gradient

GetInt() public static method

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

HasKey() public static method

public static HasKey ( string key ) : bool
key string
return bool

SetBool() public static method

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

SetColor() public static method

public static SetColor ( string key, Color value ) : void
key string
value Color
return void

SetFloat() public static method

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

SetGradient() public static method

public static SetGradient ( string key, Gradient gradient ) : void
key string
gradient Gradient
return void

SetInt() public static method

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

VersionCheck() public static method

public static VersionCheck ( ) : bool
return bool