diff --git a/MonoGame.Framework/Content/ResourceContentManager.cs b/MonoGame.Framework/Content/ResourceContentManager.cs index 37afa9913e7..ab295343d7f 100644 --- a/MonoGame.Framework/Content/ResourceContentManager.cs +++ b/MonoGame.Framework/Content/ResourceContentManager.cs @@ -5,10 +5,22 @@ namespace Microsoft.Xna.Framework.Content { + /// + /// Subclass of , which is specialized to read + /// from .resx resource files rather than directly from individual files on disk. + /// public class ResourceContentManager : ContentManager { private ResourceManager resource; + /// + /// Creates a new instance of . + /// + /// + /// The service provider the ResourceContentManager should use to locate services. + /// + /// The resource manager for the ResourceContentManager to read from. + /// is . public ResourceContentManager(IServiceProvider servicesProvider, ResourceManager resource) : base(servicesProvider) { @@ -19,6 +31,15 @@ public ResourceContentManager(IServiceProvider servicesProvider, ResourceManager this.resource = resource; } + /// + /// Opens a stream for reading the specified resource. + /// Derived classes can replace this to implement pack files or asset compression. + /// + /// The name of the asset being read. + /// + /// Error loading . + /// The resource was not a binary resource, or the resource was not found. + /// protected override System.IO.Stream OpenStream(string assetName) { object obj = this.resource.GetObject(assetName);