/// <summary> /// Returns an int from the savedata, returns the defaultValue when there's none /// </summary> public int GetInt(string key, int defaultValue = 0) { if (!IntStore.ContainsKey(key)) { IntStore.Add(key, defaultValue); } return(IntStore[key]); }
/// <summary> /// Sets an int to the savedata /// </summary> public void SetInt(string key, int i) { if (!IntStore.ContainsKey(key)) { IntStore.Add(key, i); } else { IntStore[key] = i; } }