Unofficial CardLife revival project, pronounced like "celery"
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
657B

  1. using System;
  2. namespace CLre_server.API.Config
  3. {
  4. [Serializable]
  5. public struct CLreConfig
  6. {
  7. public bool clre_clients_only;
  8. public bool web_server;
  9. public static CLreConfig Default()
  10. {
  11. return new CLreConfig
  12. {
  13. clre_clients_only = false,
  14. web_server = false,
  15. };
  16. }
  17. public static CLreConfig FromString(string s)
  18. {
  19. return UnityEngine.JsonUtility.FromJson<CLreConfig>(s);
  20. }
  21. public override string ToString()
  22. {
  23. return UnityEngine.JsonUtility.ToJson(this, true);
  24. }
  25. }
  26. }