ace/Source/ACE.Common/AccountDefaults.cs
Ty Conner 12e569652f
Switch to System.Text.Json (#4002)
* 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
2023-12-21 14:15:38 -05:00

36 lines
1.3 KiB
C#

namespace ACE.Common
{
public class AccountDefaults
{
/// <summary>
/// whether or not the server uses account level permissions or character level permissions (as AC retail did). for backwards compatibility, this is true
/// by default.
/// </summary>
public bool OverrideCharacterPermissions { get; set; } = true;
/// <summary>
/// Default AccessLevel for new accounts. Used when accesslevel is not specified by user. for backwards compatibility, this is 0 (Player)
/// by default.
/// </summary>
public uint DefaultAccessLevel { get; set; } = 0;
/// <summary>
/// whether or not this server creates new accounts when one does not exist. for backwards compatibility, this is true
/// by default.
/// </summary>
public bool AllowAutoAccountCreation { get; set; } = true;
/// <summary>
/// Default WorkFactor for account passwords.
/// 8 by default.
/// </summary>
public int PasswordHashWorkFactor { get; set; } = 8;
/// <summary>
/// Upgrade or downgrade passwords to match PasswordHashWorkFactor specified in config
/// True by default.
/// </summary>
public bool ForceWorkFactorMigration { get; set; } = true;
}
}