Table of Contents

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

scope string

The scope namespace.

key string

The key within the scope.

defaultValue int

The value to return if the key does not exist.

Returns

int

The stored value, or defaultValue if not found.