From 0316cb15c757828947768bf9b634327f4f23c2d3 Mon Sep 17 00:00:00 2001 From: Maniekko <157877453+Maniekko@users.noreply.github.com> Date: Fri, 22 Mar 2024 19:12:13 +0300 Subject: [PATCH] Adds XML documenttion to ResourceContentManager --- .../Content/ResourceContentManager.cs | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) 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);