Example #1
0
        public static void Register(BaseCommand command)
        {
            m_AllCommands.Add(command);

            ArrayList impls = BaseCommandImplementor.Implementors;

            for (int i = 0; i < impls.Count; ++i)
            {
                BaseCommandImplementor impl = (BaseCommandImplementor)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();
 }