public static void Register(BaseCommand command) { m_AllCommands.Add(command); List <BaseCommandImplementor> impls = BaseCommandImplementor.Implementors; for (int i = 0; i < impls.Count; ++i) { BaseCommandImplementor impl = impls[i]; if ((command.Supports & impl.SupportRequirement) != 0) { impl.Register(command); } } }
public static void Register( BaseCommandImplementor impl ) { m_Implementors.Add( impl ); impl.Register(); }
public static void Register(BaseCommandImplementor impl) { m_Implementors.Add(impl); impl.Register(); }