/// <summary> /// Throws neatly formatted logs to display all data of the given dictionary type. /// </summary> public static void DebugDictionary(GDEDictionary dictionary) { Dictionary<string, object> selDict = new Dictionary<string, object>(); switch(dictionary) { case GDEDictionary.DataDictionary: selDict = GDEDataManager.DataDictionary; break; case GDEDictionary.ModifiedData: selDict = ConvertModifiedData(); break; case GDEDictionary.Both: selDict = GetAllGDEData(); break; } foreach(var pair in selDict) { UnityEngine.Debug.Log("Key: " + pair.Key); if(pair.Value.IsGenericDictionary()) { foreach(var valPair in pair.Value as Dictionary<string, object>) { UnityEngine.Debug.Log(" SubKey: " + valPair.Key); UnityEngine.Debug.Log(" SubValue: " + valPair.Value); } } else { UnityEngine.Debug.Log("Value: " + pair.Value.ToString()); } } }
public override void Reset() { dataType = GDEDictionary.DataDictionary; }