mirror of
https://github.com/ACEmulator/ACE
synced 2026-08-17 12:26:06 -04:00
* Switch to System.Text.Json Removed Newtonsoft.Json and DouglasCrockford.JsMin * Update GameConfiguration.cs * Update MasterConfiguration.cs * Update ThreadConfiguration.cs * Update StarterSpell.cs * Update StarterGearFactory.cs * Update Program_Setup.cs * Update LifestonedConverter.cs * Update Program_Setup.cs * Update Program_Setup.cs * Update ACE.Adaptor Shift JSON weenie [de]serialization to System.Text.Json * Update LifestonedConverter.cs * Update StarterGearFactory.cs * Update ACE.Server.csproj * Update ACE.Server.Tests.csproj * Update Program.cs * Update MySqlConfiguration.cs * Update DDDConfiguration.cs * Update ModContainer.cs * Update ModManager.cs * Update ModMetadata.cs * Update ModMetadata.cs
92 lines
3.3 KiB
C#
92 lines
3.3 KiB
C#
using System.Collections.Generic;
|
|
|
|
namespace ACE.Common
|
|
{
|
|
public class GameConfiguration
|
|
{
|
|
public string WorldName { get; set; } = "ACEmulator";
|
|
|
|
public NetworkSettings Network { get; set; } = new NetworkSettings();
|
|
|
|
public AccountDefaults Accounts { get; set; } = new AccountDefaults();
|
|
|
|
public string DatFilesDirectory { get; set; } = "c:\\ACE\\Dats\\";
|
|
|
|
public string ModsDirectory { get; set; }
|
|
|
|
/// <summary>
|
|
/// The amount of seconds to wait before turning off the server. Default value is 60 (for 1 minute).
|
|
/// </summary>
|
|
public uint ShutdownInterval { get; set; } = 60;
|
|
|
|
public bool ServerPerformanceMonitorAutoStart { get; set; } = false;
|
|
|
|
public ThreadConfiguration Threading { get; set; } = new ThreadConfiguration();
|
|
|
|
/// <summary>
|
|
/// The amount of minutes to keep a player object from shard database in memory. Default value is 31 minutes.
|
|
/// </summary>
|
|
public uint ShardPlayerBiotaCacheTime { get; set; } = 31;
|
|
|
|
/// <summary>
|
|
/// The amount of minutes to keep a non player object from shard database in memory. Default value is 11 minutes.
|
|
/// </summary>
|
|
public uint ShardNonPlayerBiotaCacheTime { get; set; } = 11;
|
|
|
|
public bool WorldDatabasePrecaching { get; set; } = false;
|
|
|
|
public bool LandblockPreloading { get; set; } = true;
|
|
|
|
public List<PreloadedLandblocks> PreloadedLandblocks { get; set; } = new List<PreloadedLandblocks>()
|
|
{
|
|
new PreloadedLandblocks()
|
|
{
|
|
Id = "E74EFFFF",
|
|
Description = "Hebian-To (Global Events)",
|
|
Permaload = true,
|
|
IncludeAdjacents = false,
|
|
Enabled = true
|
|
},
|
|
new PreloadedLandblocks()
|
|
{
|
|
Id = "A9B4FFFF",
|
|
Description = "Holtburg",
|
|
Permaload = true,
|
|
IncludeAdjacents = true,
|
|
Enabled = false
|
|
},
|
|
new PreloadedLandblocks()
|
|
{
|
|
Id = "DA55FFFF",
|
|
Description = "Shoushi",
|
|
Permaload = true,
|
|
IncludeAdjacents = true,
|
|
Enabled = false
|
|
},
|
|
new PreloadedLandblocks()
|
|
{
|
|
Id = "7D64FFFF",
|
|
Description = "Yaraq",
|
|
Permaload = true,
|
|
IncludeAdjacents = true,
|
|
Enabled = false
|
|
},
|
|
new PreloadedLandblocks()
|
|
{
|
|
Id = "0007FFFF",
|
|
Description = "Town Network",
|
|
Permaload = true,
|
|
IncludeAdjacents = false,
|
|
Enabled = false
|
|
},
|
|
new PreloadedLandblocks()
|
|
{
|
|
Id = "00000000",
|
|
Description = "Apartment Landblocks",
|
|
Permaload = true,
|
|
IncludeAdjacents = false,
|
|
Enabled = false
|
|
}
|
|
};
|
|
}
|
|
}
|