Ejemplo n.º 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));
        }
Ejemplo n.º 2
0
 public void Initialise(Ultraviolet.Content.ContentManager contentManager)
 {
     _contentManager = contentManager;
     LoadContentManifests(contentManager);
 }