30 lines
No EOL
657 B
C#
30 lines
No EOL
657 B
C#
using System;
|
|
|
|
namespace CLre_server.API.Config
|
|
{
|
|
[Serializable]
|
|
public struct CLreConfig
|
|
{
|
|
public bool clre_clients_only;
|
|
public bool web_server;
|
|
|
|
public static CLreConfig Default()
|
|
{
|
|
return new CLreConfig
|
|
{
|
|
clre_clients_only = false,
|
|
web_server = false,
|
|
};
|
|
}
|
|
|
|
public static CLreConfig FromString(string s)
|
|
{
|
|
return UnityEngine.JsonUtility.FromJson<CLreConfig>(s);
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return UnityEngine.JsonUtility.ToJson(this, true);
|
|
}
|
|
}
|
|
} |