Пример #1
0
        private static void LoadContentManifests(Ultraviolet.Content.ContentManager contentManager)
        {
            var contentManifestFiles    = contentManager.GetAssetFilePathsInDirectory("Manifests");
            var contentManifestRegistry = contentManager.Ultraviolet.GetContent().Manifests;

            contentManifestRegistry.Load(contentManifestFiles);
            contentManifestRegistry["Global"]["Fonts"].PopulateAssetLibrary(typeof(GlobalFontId));
        }
Пример #2
0
 public void Initialise(Ultraviolet.Content.ContentManager contentManager)
 {
     _contentManager = contentManager;
     LoadContentManifests(contentManager);
 }