Method GetInt
- Namespace
- Gamelogic.Extensions
- Assembly
- Gamelogic.Extensions.dll
GetInt(string, string, int)
Gets an integer preference.
public static int GetInt(string scope, string key, int defaultValue = 0)
Parameters
scopestringThe scope namespace.
keystringThe key within the scope.
defaultValueintThe value to return if the key does not exist.
Returns
- int
The stored value, or
defaultValueif not found.