fix
This commit is contained in:
parent
0c268cb978
commit
cd45f63bd9
@ -9,24 +9,16 @@ namespace Campofinale
|
||||
{
|
||||
public class ConfigFile
|
||||
{
|
||||
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Populate)]
|
||||
public MongoDatabaseSettings mongoDatabase = new();
|
||||
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Populate)]
|
||||
public DispatchServerSettings dispatchServer = new();
|
||||
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Populate)]
|
||||
public GameserverSettings gameServer = new();
|
||||
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Populate)]
|
||||
public ServerOptions serverOptions = new();
|
||||
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Populate)]
|
||||
public LogSettings logOptions = new();
|
||||
}
|
||||
public class ServerOptions
|
||||
{
|
||||
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Populate)]
|
||||
public int defaultSceneNumId = 98;
|
||||
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Populate)]
|
||||
public int maxPlayers = 20;
|
||||
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Include)]
|
||||
public CharactersOptions defaultCharacters = new();
|
||||
public ServerOptions()
|
||||
{
|
||||
@ -34,11 +26,8 @@ namespace Campofinale
|
||||
|
||||
public class CharactersOptions
|
||||
{
|
||||
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Include)]
|
||||
public int defaultLevel = 1;
|
||||
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Include)]
|
||||
public bool giveAllCharacters = true;
|
||||
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Include)]
|
||||
public List<string> characters = new List<string>()
|
||||
{
|
||||
"chr_0002_endminm",
|
||||
@ -54,9 +43,7 @@ namespace Campofinale
|
||||
}
|
||||
public class LogSettings
|
||||
{
|
||||
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Populate)]
|
||||
public bool packets;
|
||||
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Populate)]
|
||||
public bool debugPrint=false;
|
||||
|
||||
public LogSettings()
|
||||
@ -65,12 +52,9 @@ namespace Campofinale
|
||||
}
|
||||
public class GameserverSettings
|
||||
{
|
||||
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Populate)]
|
||||
public string bindAddress = "127.0.0.1";
|
||||
public int bindPort = 30000;
|
||||
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Populate)]
|
||||
public string accessAddress = "127.0.0.1";
|
||||
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Populate)]
|
||||
public int accessPort = 30000;
|
||||
public GameserverSettings()
|
||||
{
|
||||
@ -78,15 +62,10 @@ namespace Campofinale
|
||||
}
|
||||
public class DispatchServerSettings
|
||||
{
|
||||
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Populate)]
|
||||
public string bindAddress = "127.0.0.1";
|
||||
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Populate)]
|
||||
public int bindPort = 5000;
|
||||
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Populate)]
|
||||
public string accessAddress = "127.0.0.1";
|
||||
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Populate)]
|
||||
public int accessPort = 5000;
|
||||
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Populate)]
|
||||
public string emailFormat = "@campofinale.ps";
|
||||
public DispatchServerSettings()
|
||||
{
|
||||
@ -95,9 +74,7 @@ namespace Campofinale
|
||||
}
|
||||
public class MongoDatabaseSettings
|
||||
{
|
||||
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Populate)]
|
||||
public string uri = "mongodb://localhost:27017";
|
||||
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Populate)]
|
||||
public string collection = "Campofinale";
|
||||
public MongoDatabaseSettings()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user