예제 #1
0
        public void LoadOpenFx()
        {
            logger.Info("Initializing open framework api");
            OpenFx.Load(new AutumnBoxGuiBaseApiImpl());
            logger.Info("Open framework api system is initialized");
            logger.Info("Loading extensions");
            OpenFx.RefreshExtensionsList();
            ILibsManager libsManager = OpenFx.Lake.Get <ILibsManager>();

            logger.Info($"There are {libsManager.Librarians.Count()} librarians and {libsManager.GetAllExtensions().Count()} wrappers");
            isLoaded = true;
            while (handlers.Any())
            {
                try
                {
                    handlers.Dequeue()();
                }
                catch (Exception e)
                {
                    logger.Warn("", e);
                }
            }
        }
예제 #2
0
 public static void Initialize()
 {
     OpenFx.Load(FakeApi);
     OpenFx.RefreshExtensionsList();
 }