API_Module_SDKConfiguration.cs 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. 
  2. using SC.XR.Unity.Module_Device;
  3. using System;
  4. using System.Collections;
  5. using System.Collections.Generic;
  6. using UnityEngine;
  7. namespace SC.XR.Unity {
  8. public class API_Module_SDKConfiguration {
  9. public static bool HasKey (string section, string key) {
  10. return Module_SDKConfiguration.getInstance.HasKey(section, key);
  11. }
  12. public static int GetInt(string section, string key, int defaultVal) {
  13. return Module_SDKConfiguration.getInstance.GetInt(section, key, defaultVal);
  14. }
  15. public static bool GetBool(string section, string key, int defaultVal) {
  16. return Module_SDKConfiguration.getInstance.GetBool(section, key, defaultVal);
  17. }
  18. public static string GetString(string section, string key, string defaultVal) {
  19. return Module_SDKConfiguration.getInstance.GetString(section, key, defaultVal);
  20. }
  21. public static float GetFloat(string section, string key, float defaultVal) {
  22. return Module_SDKConfiguration.getInstance.GetFloat(section, key, defaultVal);
  23. }
  24. public static void SetConfiguration(string sec, string key, string val) {
  25. Module_SDKConfiguration.getInstance.SetString(sec, key, val);
  26. }
  27. public static void SaveAllConfigToFile(string sec, string key, string val) {
  28. Module_SDKConfiguration.getInstance.SaveAllConfigToFile();
  29. }
  30. }
  31. }