Beispiel #1
0
        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);
                }
            }
        }
Beispiel #2
0
 public static void Register(BaseCommandImplementor impl)
 {
     m_Implementors.Add(impl);
     impl.Register();
 }