Upgrades code style - First batch (#22)

This commit is contained in:
Kamron Batman 2018-08-14 06:16:50 +08:00 committed by GitHub
parent 8ee42c8ea2
commit 632e8b4757
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
1834 changed files with 10245 additions and 10437 deletions

View file

@ -6,7 +6,7 @@ namespace Server.Ethics
{
private static EthicsPersistance m_Instance;
public static EthicsPersistance Instance { get { return m_Instance; } }
public static EthicsPersistance Instance => m_Instance;
public override string DefaultName
{
@ -63,4 +63,4 @@ namespace Server.Ethics
{
}
}
}
}

View file

@ -56,8 +56,8 @@ namespace Server.Ethics
private DateTime m_Shield;
public Ethic Ethic { get { return m_Ethic; } }
public Mobile Mobile { get { return m_Mobile; } }
public Ethic Ethic => m_Ethic;
public Mobile Mobile => m_Mobile;
[CommandProperty( AccessLevel.GameMaster, AccessLevel.Administrator )]
public int Power { get { return m_Power; } set { m_Power = value; } }

View file

@ -8,7 +8,7 @@ namespace Server.Ethics
{
protected PowerDefinition m_Definition;
public PowerDefinition Definition { get { return m_Definition; } }
public PowerDefinition Definition => m_Definition;
public virtual bool CheckInvoke( Player from )
{
@ -31,4 +31,4 @@ namespace Server.Ethics
from.Power -= m_Definition.Power;
}
}
}
}