Changes properties to use automatic property initializers
This commit is contained in:
parent
f0a48ad431
commit
06fa31a7bf
623 changed files with 13072 additions and 19304 deletions
|
|
@ -14,55 +14,19 @@ namespace Server.Commands.Generic
|
|||
|
||||
public abstract class BaseCommand
|
||||
{
|
||||
private string[] m_Commands;
|
||||
private AccessLevel m_AccessLevel;
|
||||
private CommandSupport m_Implementors;
|
||||
private ObjectTypes m_ObjectTypes;
|
||||
private bool m_ListOptimized;
|
||||
private string m_Usage;
|
||||
private string m_Description;
|
||||
public bool ListOptimized { get; set; }
|
||||
|
||||
public bool ListOptimized
|
||||
{
|
||||
get => m_ListOptimized;
|
||||
set => m_ListOptimized = value;
|
||||
}
|
||||
public string[] Commands { get; set; }
|
||||
|
||||
public string[] Commands
|
||||
{
|
||||
get => m_Commands;
|
||||
set => m_Commands = value;
|
||||
}
|
||||
public string Usage { get; set; }
|
||||
|
||||
public string Usage
|
||||
{
|
||||
get => m_Usage;
|
||||
set => m_Usage = value;
|
||||
}
|
||||
public string Description { get; set; }
|
||||
|
||||
public string Description
|
||||
{
|
||||
get => m_Description;
|
||||
set => m_Description = value;
|
||||
}
|
||||
public AccessLevel AccessLevel { get; set; }
|
||||
|
||||
public AccessLevel AccessLevel
|
||||
{
|
||||
get => m_AccessLevel;
|
||||
set => m_AccessLevel = value;
|
||||
}
|
||||
public ObjectTypes ObjectTypes { get; set; }
|
||||
|
||||
public ObjectTypes ObjectTypes
|
||||
{
|
||||
get => m_ObjectTypes;
|
||||
set => m_ObjectTypes = value;
|
||||
}
|
||||
|
||||
public CommandSupport Supports
|
||||
{
|
||||
get => m_Implementors;
|
||||
set => m_Implementors = value;
|
||||
}
|
||||
public CommandSupport Supports { get; set; }
|
||||
|
||||
public BaseCommand()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -58,13 +58,11 @@ namespace Server.Commands.Generic
|
|||
Register( new TraceLockdownCommand() );
|
||||
}
|
||||
|
||||
private static List<BaseCommand> m_AllCommands = new List<BaseCommand>();
|
||||
|
||||
public static List<BaseCommand> AllCommands => m_AllCommands;
|
||||
public static List<BaseCommand> AllCommands { get; } = new List<BaseCommand>();
|
||||
|
||||
public static void Register( BaseCommand command )
|
||||
{
|
||||
m_AllCommands.Add( command );
|
||||
AllCommands.Add( command );
|
||||
|
||||
List<BaseCommandImplementor> impls = BaseCommandImplementor.Implementors;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue