1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-11-08 11:17:19 -05:00
OpenDiablo2/OpenDiablo2.Common/Interfaces/IResourceManager.cs

22 lines
890 B
C#
Raw Normal View History

2018-11-26 19:07:46 -05:00
using OpenDiablo2.Common.Models;
namespace OpenDiablo2.Common.Interfaces
{
2018-11-26 19:07:46 -05:00
/// <summary>
/// A utility class to make it easy to get specific types of resources from the data files in the game.
/// </summary>
public interface IResourceManager
{
2018-11-26 19:07:46 -05:00
/// <summary>
/// Get an <see cref="ImageSet" /> from the game's resources.
/// </summary>
/// <param name="resourcePath">The path to the ImageSet to grab.</param>
/// <returns>The <see cref="ImageSet"/> that was requested. Throw an exception if not found.</returns>
ImageSet GetImageSet(string resourcePath);
MPQFont GetMPQFont(string resourcePath);
MPQDS1 GetMPQDS1(string resourcePath, LevelPreset level, LevelDetail levelDetail, LevelType levelType);
2018-11-24 03:07:41 -05:00
MPQDT1 GetMPQDT1(string resourcePath);
Palette GetPalette(string paletteName);
}
}