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

@ -7,10 +7,7 @@ namespace Server.Commands.Generic
{
private static AreaCommandImplementor m_Instance;
public static AreaCommandImplementor Instance
{
get { return m_Instance; }
}
public static AreaCommandImplementor Instance => m_Instance;
public AreaCommandImplementor()
{

View file

@ -57,44 +57,41 @@ namespace Server.Commands.Generic
public bool SupportsConditionals
{
get{ return m_SupportsConditionals; }
set{ m_SupportsConditionals = value; }
get => m_SupportsConditionals;
set => m_SupportsConditionals = value;
}
public string[] Accessors
{
get{ return m_Accessors; }
set{ m_Accessors = value; }
get => m_Accessors;
set => m_Accessors = value;
}
public string Usage
{
get{ return m_Usage; }
set{ m_Usage = value; }
get => m_Usage;
set => m_Usage = value;
}
public string Description
{
get{ return m_Description; }
set{ m_Description = value; }
get => m_Description;
set => m_Description = value;
}
public AccessLevel AccessLevel
{
get{ return m_AccessLevel; }
set{ m_AccessLevel = value; }
get => m_AccessLevel;
set => m_AccessLevel = value;
}
public CommandSupport SupportRequirement
{
get{ return m_SupportRequirement; }
set{ m_SupportRequirement = value; }
get => m_SupportRequirement;
set => m_SupportRequirement = value;
}
public Dictionary<string, BaseCommand> Commands
{
get{ return m_Commands; }
}
public Dictionary<string, BaseCommand> Commands => m_Commands;
public BaseCommandImplementor()
{

View file

@ -15,27 +15,15 @@ namespace Server.Commands.Generic
private IConditional[] m_Conditionals;
public Type Type
{
get { return m_ObjectType; }
}
public Type Type => m_ObjectType;
public bool IsItem
{
get { return ( m_ObjectType == null || m_ObjectType == typeofItem || m_ObjectType.IsSubclassOf( typeofItem ) ); }
}
public bool IsItem => ( m_ObjectType == null || m_ObjectType == typeofItem || m_ObjectType.IsSubclassOf( typeofItem ) );
public bool IsMobile
{
get { return ( m_ObjectType == null || m_ObjectType == typeofMobile || m_ObjectType.IsSubclassOf( typeofMobile ) ); }
}
public bool IsMobile => ( m_ObjectType == null || m_ObjectType == typeofMobile || m_ObjectType.IsSubclassOf( typeofMobile ) );
public static readonly ObjectConditional Empty = new ObjectConditional( null, null );
public bool HasCompiled
{
get { return ( m_Conditionals != null ); }
}
public bool HasCompiled => ( m_Conditionals != null );
public void Compile( ref AssemblyEmitter emitter )
{

View file

@ -4,10 +4,7 @@ namespace Server.Commands.Generic
{
private static RangeCommandImplementor m_Instance;
public static RangeCommandImplementor Instance
{
get { return m_Instance; }
}
public static RangeCommandImplementor Instance => m_Instance;
public RangeCommandImplementor()
{