Fixes body expression style.

This commit is contained in:
Kamron Batman 2018-09-14 08:46:14 -07:00
parent 3f0a72a62f
commit 33f5e77a24
957 changed files with 7424 additions and 15973 deletions

View file

@ -65,8 +65,8 @@ namespace Server.Accounting
/// </summary>
public HardwareInfo HardwareInfo
{
get { return m_HardwareInfo; }
set { m_HardwareInfo = value; }
get => m_HardwareInfo;
set => m_HardwareInfo = value;
}
/// <summary>
@ -74,8 +74,8 @@ namespace Server.Accounting
/// </summary>
public string[] IPRestrictions
{
get { return m_IPRestrictions; }
set { m_IPRestrictions = value; }
get => m_IPRestrictions;
set => m_IPRestrictions = value;
}
/// <summary>
@ -83,8 +83,8 @@ namespace Server.Accounting
/// </summary>
public IPAddress[] LoginIPs
{
get { return m_LoginIPs; }
set { m_LoginIPs = value; }
get => m_LoginIPs;
set => m_LoginIPs = value;
}
/// <summary>
@ -108,8 +108,8 @@ namespace Server.Accounting
/// </summary>
public string Username
{
get { return m_Username; }
set { m_Username = value; }
get => m_Username;
set => m_Username = value;
}
/// <summary>
@ -117,8 +117,8 @@ namespace Server.Accounting
/// </summary>
public string Email
{
get { return m_Email; }
set { m_Email = value; }
get => m_Email;
set => m_Email = value;
}
/// <summary>
@ -126,8 +126,8 @@ namespace Server.Accounting
/// </summary>
public string PlainPassword
{
get { return m_PlainPassword; }
set { m_PlainPassword = value; }
get => m_PlainPassword;
set => m_PlainPassword = value;
}
/// <summary>
@ -135,8 +135,8 @@ namespace Server.Accounting
/// </summary>
public string CryptPassword
{
get { return m_CryptPassword; }
set { m_CryptPassword = value; }
get => m_CryptPassword;
set => m_CryptPassword = value;
}
/// <summary>
@ -144,8 +144,8 @@ namespace Server.Accounting
/// </summary>
public string NewCryptPassword
{
get { return m_NewCryptPassword; }
set { m_NewCryptPassword = value; }
get => m_NewCryptPassword;
set => m_NewCryptPassword = value;
}
/// <summary>
@ -153,8 +153,8 @@ namespace Server.Accounting
/// </summary>
public AccessLevel AccessLevel
{
get { return m_AccessLevel; }
set { m_AccessLevel = value; }
get => m_AccessLevel;
set => m_AccessLevel = value;
}
/// <summary>
@ -162,8 +162,8 @@ namespace Server.Accounting
/// </summary>
public int Flags
{
get { return m_Flags; }
set { m_Flags = value; }
get => m_Flags;
set => m_Flags = value;
}
/// <summary>
@ -193,7 +193,7 @@ namespace Server.Accounting
return true;
}
set { SetFlag( 0, value ); }
set => SetFlag( 0, value );
}
/// <summary>
@ -201,7 +201,7 @@ namespace Server.Accounting
/// </summary>
public bool Young
{
get { return !GetFlag( 1 ); }
get => !GetFlag( 1 );
set
{
SetFlag( 1, !value );
@ -217,18 +217,15 @@ namespace Server.Accounting
/// <summary>
/// The date and time of when this account was created.
/// </summary>
public DateTime Created
{
get { return m_Created; }
}
public DateTime Created => m_Created;
/// <summary>
/// Gets or sets the date and time when this account was last accessed.
/// </summary>
public DateTime LastLogin
{
get { return m_LastLogin; }
set { m_LastLogin = value; }
get => m_LastLogin;
set => m_LastLogin = value;
}
/// <summary>
@ -1127,18 +1124,12 @@ namespace Server.Accounting
/// <summary>
/// Gets the maximum amount of characters allowed to be created on this account. Values other than 1, 5, 6, or 7 are not supported by the client.
/// </summary>
public int Limit
{
get { return ( Core.SA ? 7 : Core.AOS ? 6 : 5 ); }
}
public int Limit => ( Core.SA ? 7 : Core.AOS ? 6 : 5 );
/// <summary>
/// Gets the maximum amount of characters that this account can hold.
/// </summary>
public int Length
{
get { return m_Mobiles.Length; }
}
public int Length => m_Mobiles.Length;
/// <summary>
/// Gets or sets the character at a specified index for this account. Out of bound index values are handled; null returned for get, ignored for set.