Fixes body expression style.
This commit is contained in:
parent
3f0a72a62f
commit
33f5e77a24
957 changed files with 7424 additions and 15973 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -110,25 +110,22 @@ namespace Server.Accounting
|
|||
|
||||
public IPAddress Address
|
||||
{
|
||||
get{ return m_Address; }
|
||||
set{ m_Address = value; }
|
||||
get => m_Address;
|
||||
set => m_Address = value;
|
||||
}
|
||||
|
||||
public DateTime LastAccessTime
|
||||
{
|
||||
get{ return m_LastAccessTime; }
|
||||
set{ m_LastAccessTime = value; }
|
||||
get => m_LastAccessTime;
|
||||
set => m_LastAccessTime = value;
|
||||
}
|
||||
|
||||
public bool HasExpired
|
||||
{
|
||||
get{ return ( DateTime.UtcNow >= ( m_LastAccessTime + TimeSpan.FromHours( 1.0 ) ) ); }
|
||||
}
|
||||
public bool HasExpired => ( DateTime.UtcNow >= ( m_LastAccessTime + TimeSpan.FromHours( 1.0 ) ) );
|
||||
|
||||
public int Counts
|
||||
{
|
||||
get{ return m_Counts; }
|
||||
set{ m_Counts = value; }
|
||||
get => m_Counts;
|
||||
set => m_Counts = value;
|
||||
}
|
||||
|
||||
public void RefreshAccessTime()
|
||||
|
|
|
|||
|
|
@ -12,27 +12,21 @@ namespace Server.Accounting
|
|||
/// <summary>
|
||||
/// A string representing who added this comment.
|
||||
/// </summary>
|
||||
public string AddedBy
|
||||
{
|
||||
get{ return m_AddedBy; }
|
||||
}
|
||||
public string AddedBy => m_AddedBy;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the body of this comment. Setting this value will reset LastModified.
|
||||
/// </summary>
|
||||
public string Content
|
||||
{
|
||||
get{ return m_Content; }
|
||||
get => m_Content;
|
||||
set{ m_Content = value; m_LastModified = DateTime.UtcNow; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The date and time when this account was last modified -or- the comment creation time, if never modified.
|
||||
/// </summary>
|
||||
public DateTime LastModified
|
||||
{
|
||||
get{ return m_LastModified; }
|
||||
}
|
||||
public DateTime LastModified => m_LastModified;
|
||||
|
||||
/// <summary>
|
||||
/// Constructs a new AccountComment instance.
|
||||
|
|
|
|||
|
|
@ -30,8 +30,8 @@ namespace Server.Misc
|
|||
|
||||
public static AccessLevel LockdownLevel
|
||||
{
|
||||
get{ return m_LockdownLevel; }
|
||||
set{ m_LockdownLevel = value; }
|
||||
get => m_LockdownLevel;
|
||||
set => m_LockdownLevel = value;
|
||||
}
|
||||
|
||||
private static CityInfo[] StartingCities = new CityInfo[]
|
||||
|
|
|
|||
|
|
@ -11,8 +11,8 @@ namespace Server.Accounting
|
|||
/// </summary>
|
||||
public string Name
|
||||
{
|
||||
get{ return m_Name; }
|
||||
set{ m_Name = value; }
|
||||
get => m_Name;
|
||||
set => m_Name = value;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
@ -20,8 +20,8 @@ namespace Server.Accounting
|
|||
/// </summary>
|
||||
public string Value
|
||||
{
|
||||
get{ return m_Value; }
|
||||
set{ m_Value = value; }
|
||||
get => m_Value;
|
||||
set => m_Value = value;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
|||
|
|
@ -184,13 +184,7 @@ namespace Server
|
|||
}
|
||||
}
|
||||
|
||||
public static List<IFirewallEntry> List
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_Blocked;
|
||||
}
|
||||
}
|
||||
public static List<IFirewallEntry> List => m_Blocked;
|
||||
|
||||
public static IFirewallEntry ToFirewallEntry( object entry )
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue