Fixes body expression style.
This commit is contained in:
parent
3f0a72a62f
commit
33f5e77a24
957 changed files with 7424 additions and 15973 deletions
|
|
@ -24,44 +24,44 @@ namespace Server.Commands.Generic
|
|||
|
||||
public bool ListOptimized
|
||||
{
|
||||
get{ return m_ListOptimized; }
|
||||
set{ m_ListOptimized = value; }
|
||||
get => m_ListOptimized;
|
||||
set => m_ListOptimized = value;
|
||||
}
|
||||
|
||||
public string[] Commands
|
||||
{
|
||||
get{ return m_Commands; }
|
||||
set{ m_Commands = value; }
|
||||
get => m_Commands;
|
||||
set => m_Commands = 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 ObjectTypes ObjectTypes
|
||||
{
|
||||
get{ return m_ObjectTypes; }
|
||||
set{ m_ObjectTypes = value; }
|
||||
get => m_ObjectTypes;
|
||||
set => m_ObjectTypes = value;
|
||||
}
|
||||
|
||||
public CommandSupport Supports
|
||||
{
|
||||
get{ return m_Implementors; }
|
||||
set{ m_Implementors = value; }
|
||||
get => m_Implementors;
|
||||
set => m_Implementors = value;
|
||||
}
|
||||
|
||||
public BaseCommand()
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ namespace Server.Commands.Generic
|
|||
|
||||
private static List<BaseCommand> m_AllCommands = new List<BaseCommand>();
|
||||
|
||||
public static List<BaseCommand> AllCommands{ get{ return m_AllCommands; } }
|
||||
public static List<BaseCommand> AllCommands => m_AllCommands;
|
||||
|
||||
public static void Register( BaseCommand command )
|
||||
{
|
||||
|
|
|
|||
|
|
@ -10,10 +10,7 @@ namespace Server.Commands.Generic
|
|||
{
|
||||
private static Dictionary<string, ExtensionInfo> m_Table = new Dictionary<string, ExtensionInfo>( StringComparer.InvariantCultureIgnoreCase );
|
||||
|
||||
public static Dictionary<string, ExtensionInfo> Table
|
||||
{
|
||||
get { return m_Table; }
|
||||
}
|
||||
public static Dictionary<string, ExtensionInfo> Table => m_Table;
|
||||
|
||||
public static void Register( ExtensionInfo ext )
|
||||
{
|
||||
|
|
@ -27,30 +24,15 @@ namespace Server.Commands.Generic
|
|||
|
||||
private ExtensionConstructor m_Constructor;
|
||||
|
||||
public int Order
|
||||
{
|
||||
get { return m_Order; }
|
||||
}
|
||||
public int Order => m_Order;
|
||||
|
||||
public string Name
|
||||
{
|
||||
get { return m_Name; }
|
||||
}
|
||||
public string Name => m_Name;
|
||||
|
||||
public int Size
|
||||
{
|
||||
get { return m_Size; }
|
||||
}
|
||||
public int Size => m_Size;
|
||||
|
||||
public bool IsFixedSize
|
||||
{
|
||||
get { return ( m_Size >= 0 ); }
|
||||
}
|
||||
public bool IsFixedSize => ( m_Size >= 0 );
|
||||
|
||||
public ExtensionConstructor Constructor
|
||||
{
|
||||
get { return m_Constructor; }
|
||||
}
|
||||
public ExtensionConstructor Constructor => m_Constructor;
|
||||
|
||||
public ExtensionInfo( int order, string name, int size, ExtensionConstructor constructor )
|
||||
{
|
||||
|
|
@ -141,25 +123,13 @@ namespace Server.Commands.Generic
|
|||
{
|
||||
public abstract ExtensionInfo Info { get; }
|
||||
|
||||
public string Name
|
||||
{
|
||||
get { return Info.Name; }
|
||||
}
|
||||
public string Name => Info.Name;
|
||||
|
||||
public int Size
|
||||
{
|
||||
get { return Info.Size; }
|
||||
}
|
||||
public int Size => Info.Size;
|
||||
|
||||
public bool IsFixedSize
|
||||
{
|
||||
get { return Info.IsFixedSize; }
|
||||
}
|
||||
public bool IsFixedSize => Info.IsFixedSize;
|
||||
|
||||
public int Order
|
||||
{
|
||||
get { return Info.Order; }
|
||||
}
|
||||
public int Order => Info.Order;
|
||||
|
||||
public virtual void Optimize( Mobile from, Type baseType, ref AssemblyEmitter assembly )
|
||||
{
|
||||
|
|
|
|||
|
|
@ -44,25 +44,13 @@ namespace Server.Commands.Generic
|
|||
private object m_Value;
|
||||
private FieldInfo m_Field;
|
||||
|
||||
public Type Type
|
||||
{
|
||||
get { return m_Type; }
|
||||
}
|
||||
public Type Type => m_Type;
|
||||
|
||||
public object Value
|
||||
{
|
||||
get { return m_Value; }
|
||||
}
|
||||
public object Value => m_Value;
|
||||
|
||||
public FieldInfo Field
|
||||
{
|
||||
get { return m_Field; }
|
||||
}
|
||||
public FieldInfo Field => m_Field;
|
||||
|
||||
public bool HasField
|
||||
{
|
||||
get { return ( m_Field != null ); }
|
||||
}
|
||||
public bool HasField => ( m_Field != null );
|
||||
|
||||
public PropertyValue( Type type, object value )
|
||||
{
|
||||
|
|
|
|||
|
|
@ -12,25 +12,25 @@ namespace Server.Commands.Generic
|
|||
|
||||
public Property Property
|
||||
{
|
||||
get { return m_Property; }
|
||||
set { m_Property = value; }
|
||||
get => m_Property;
|
||||
set => m_Property = value;
|
||||
}
|
||||
|
||||
public bool IsAscending
|
||||
{
|
||||
get { return ( m_Order > 0 ); }
|
||||
set { m_Order = ( value ? +1 : -1 ); }
|
||||
get => ( m_Order > 0 );
|
||||
set => m_Order = ( value ? +1 : -1 );
|
||||
}
|
||||
|
||||
public bool IsDescending
|
||||
{
|
||||
get { return ( m_Order < 0 ); }
|
||||
set { m_Order = ( value ? -1 : +1 ); }
|
||||
get => ( m_Order < 0 );
|
||||
set => m_Order = ( value ? -1 : +1 );
|
||||
}
|
||||
|
||||
public int Sign
|
||||
{
|
||||
get { return Math.Sign( m_Order ); }
|
||||
get => Math.Sign( m_Order );
|
||||
set
|
||||
{
|
||||
m_Order = Math.Sign( value );
|
||||
|
|
|
|||
|
|
@ -13,10 +13,7 @@ namespace Server.Commands.Generic
|
|||
ExtensionInfo.Register( ExtInfo );
|
||||
}
|
||||
|
||||
public override ExtensionInfo Info
|
||||
{
|
||||
get { return ExtInfo; }
|
||||
}
|
||||
public override ExtensionInfo Info => ExtInfo;
|
||||
|
||||
private List<Property> m_Properties;
|
||||
|
||||
|
|
|
|||
|
|
@ -12,17 +12,11 @@ namespace Server.Commands.Generic
|
|||
ExtensionInfo.Register( ExtInfo );
|
||||
}
|
||||
|
||||
public override ExtensionInfo Info
|
||||
{
|
||||
get { return ExtInfo; }
|
||||
}
|
||||
public override ExtensionInfo Info => ExtInfo;
|
||||
|
||||
private int m_Limit;
|
||||
|
||||
public int Limit
|
||||
{
|
||||
get { return m_Limit; }
|
||||
}
|
||||
public int Limit => m_Limit;
|
||||
|
||||
public LimitExtension()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -13,10 +13,7 @@ namespace Server.Commands.Generic
|
|||
ExtensionInfo.Register( ExtInfo );
|
||||
}
|
||||
|
||||
public override ExtensionInfo Info
|
||||
{
|
||||
get { return ExtInfo; }
|
||||
}
|
||||
public override ExtensionInfo Info => ExtInfo;
|
||||
|
||||
private List<OrderInfo> m_Orders;
|
||||
|
||||
|
|
|
|||
|
|
@ -11,17 +11,11 @@ namespace Server.Commands.Generic
|
|||
ExtensionInfo.Register( ExtInfo );
|
||||
}
|
||||
|
||||
public override ExtensionInfo Info
|
||||
{
|
||||
get { return ExtInfo; }
|
||||
}
|
||||
public override ExtensionInfo Info => ExtInfo;
|
||||
|
||||
private ObjectConditional m_Conditional;
|
||||
|
||||
public ObjectConditional Conditional
|
||||
{
|
||||
get { return m_Conditional; }
|
||||
}
|
||||
public ObjectConditional Conditional => m_Conditional;
|
||||
|
||||
public WhereExtension()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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 )
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue