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