CollabSettingsManager.cs 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using UnityEditor;
  2. namespace Unity.Cloud.Collaborate.Settings
  3. {
  4. /// <summary>
  5. /// This class will act as a manager for the <see cref="Settings"/> singleton.
  6. /// </summary>
  7. internal static class CollabSettingsManager
  8. {
  9. // Project settings will be stored in a JSON file in a directory matching this name.
  10. // const string k_PackageName = "com.unity.collab-proxy";
  11. // static UnityEditor.SettingsManagement.Settings s_Instance;
  12. //
  13. // internal static UnityEditor.SettingsManagement.Settings instance =>
  14. // s_Instance ?? (s_Instance = new UnityEditor.SettingsManagement.Settings(k_PackageName));
  15. // The rest of this file is just forwarding the various setting methods to the instance.
  16. // public static void Save()
  17. // {
  18. // instance.Save();
  19. // }
  20. public static T Get<T>(string key, SettingsScope scope = SettingsScope.Project, T fallback = default)
  21. {
  22. return fallback;
  23. //return instance.Get(key, scope, fallback);
  24. }
  25. // public static void Set<T>(string key, T value, SettingsScope scope = SettingsScope.Project)
  26. // {
  27. // instance.Set(key, value, scope);
  28. // }
  29. //
  30. // public static bool ContainsKey<T>(string key, SettingsScope scope = SettingsScope.Project)
  31. // {
  32. // return instance.ContainsKey<T>(key, scope);
  33. // }
  34. }
  35. }