Upgrades code style - First batch (#22)
This commit is contained in:
parent
8ee42c8ea2
commit
632e8b4757
1834 changed files with 10245 additions and 10437 deletions
|
|
@ -19,8 +19,8 @@ namespace Server.Commands
|
|||
private static Dictionary<string, CommandInfo> m_HelpInfos = new Dictionary<string, CommandInfo>();
|
||||
private static List<CommandInfo> m_SortedHelpInfo = new List<CommandInfo>(); //No need for SortedList cause it's only sorted once at creation...
|
||||
|
||||
public static Dictionary<string, CommandInfo> HelpInfos{ get { return m_HelpInfos; } }
|
||||
public static List<CommandInfo> SortedHelpInfo { get { return m_SortedHelpInfo; } }
|
||||
public static Dictionary<string, CommandInfo> HelpInfos => m_HelpInfos;
|
||||
public static List<CommandInfo> SortedHelpInfo => m_SortedHelpInfo;
|
||||
|
||||
[CallPriority( 100 )]
|
||||
public static void Initialize()
|
||||
|
|
@ -37,9 +37,7 @@ namespace Server.Commands
|
|||
if( e.Length > 0 )
|
||||
{
|
||||
string arg = e.GetString( 0 ).ToLower();
|
||||
CommandInfo c;
|
||||
|
||||
if( m_HelpInfos.TryGetValue( arg, out c ) )
|
||||
if (m_HelpInfos.TryGetValue( arg, out CommandInfo c ))
|
||||
{
|
||||
Mobile m = e.Mobile;
|
||||
|
||||
|
|
@ -419,4 +417,4 @@ namespace Server.Commands
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue