Aurora.DefaultLibraryLoaders.InventoryXMLLoader.LoadLibrary C# (CSharp) Метод

LoadLibrary() публичный Метод

public LoadLibrary ( ILibraryService service, IConfigSource source, IRegistryCore registry ) : void
service ILibraryService
source IConfigSource
registry IRegistryCore
Результат void
        public void LoadLibrary(ILibraryService service, IConfigSource source, IRegistryCore registry)
        {
            m_service = service;
            m_inventoryService = registry.RequestModuleInterface<IInventoryService>();

            IConfig libConfig = source.Configs["InventoryXMLLoader"];
            string pLibrariesLocation = Path.Combine("inventory", "Libraries.xml");
            if (libConfig != null)
            {
                if (libConfig.GetBoolean("PreviouslyLoaded", false))
                    return; //If it is loaded, don't reload
                pLibrariesLocation = libConfig.GetString("DefaultLibrary", pLibrariesLocation);
                LoadLibraries(pLibrariesLocation);
            }
        }