Beispiel #1
0
        private void RegisterAll(BSMLParser parser)
        {
            if (Registered)
            {
                return;
            }

            foreach (BSMLTag tag in InstantiateOfType <BSMLTag>())
            {
                parser.RegisterTag(tag);
            }

            foreach (BSMLMacro macro in InstantiateOfType <BSMLMacro>())
            {
                parser.RegisterMacro(macro);
            }

            foreach (TypeHandler handler in InstantiateOfType <TypeHandler>())
            {
                parser.RegisterTypeHandler(handler);
            }

            RegisterCustomComponents(parser);

            Registered = true;
        }
Beispiel #2
0
        private void RegisterAll(BSMLParser parser)
        {
            if (Registered)
            {
                return;
            }

            foreach (var tag in InstantiateOfType <BSMLTag>())
            {
                parser.RegisterTag(tag);
            }

            foreach (var macro in InstantiateOfType <BSMLMacro>())
            {
                parser.RegisterMacro(macro);
            }

            foreach (var handler in InstantiateOfType <TypeHandler>())
            {
                parser.RegisterTypeHandler(handler);
            }

            RegisterCustomComponents(parser);

#if false
            DocCustoms(parser);
#endif

            _logger.Info("Registered Custom Components");

            Registered = true;
        }