Fixes body expression style.
This commit is contained in:
parent
3f0a72a62f
commit
33f5e77a24
957 changed files with 7424 additions and 15973 deletions
|
|
@ -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()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue