This commit is contained in:
asayre 2006-06-15 10:45:30 +00:00
parent b0208aa906
commit 71923713d4
9 changed files with 401 additions and 411 deletions

View file

@ -66,11 +66,11 @@ namespace Server.Commands.Generic
{
m_AllCommands.Add( command );
ArrayList impls = BaseCommandImplementor.Implementors;
List<BaseCommandImplementor> impls = BaseCommandImplementor.Implementors;
for ( int i = 0; i < impls.Count; ++i )
{
BaseCommandImplementor impl = (BaseCommandImplementor)impls[i];
BaseCommandImplementor impl = impls[i];
if ( (command.Supports & impl.SupportRequirement) != 0 )
impl.Register( command );

View file

@ -2,6 +2,7 @@ using System;
using System.Text;
using System.Collections;
using Server;
using System.Collections.Generic;
namespace Server.Commands.Generic
{
@ -317,15 +318,15 @@ namespace Server.Commands.Generic
impl.Register();
}
private static ArrayList m_Implementors;
private static List<BaseCommandImplementor> m_Implementors;
public static ArrayList Implementors
public static List<BaseCommandImplementor> Implementors
{
get
{
if ( m_Implementors == null )
{
m_Implementors = new ArrayList();
m_Implementors = new List<BaseCommandImplementor>();
RegisterImplementors();
}