2018-11-26 19:07:46 -05:00
|
|
|
|
using OpenDiablo2.Common.Models;
|
2018-11-22 22:53:05 -05:00
|
|
|
|
|
|
|
|
|
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>
|
2018-11-22 22:53:05 -05:00
|
|
|
|
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>
|
2018-11-22 22:53:05 -05:00
|
|
|
|
ImageSet GetImageSet(string resourcePath);
|
|
|
|
|
MPQFont GetMPQFont(string resourcePath);
|
2018-11-25 01:51:21 -05:00
|
|
|
|
MPQDS1 GetMPQDS1(string resourcePath, LevelPreset level, LevelDetail levelDetail, LevelType levelType);
|
2018-11-24 03:07:41 -05:00
|
|
|
|
MPQDT1 GetMPQDT1(string resourcePath);
|
2018-11-22 22:53:05 -05:00
|
|
|
|
Palette GetPalette(string paletteName);
|
|
|
|
|
}
|
|
|
|
|
}
|