using System.Threading;
using System.Threading.Tasks;
using Robust.Client.Graphics;
namespace Content.Client.Parallax.Data
{
[ImplicitDataDefinitionForInheritors]
public partial interface IParallaxTextureSource
{
///
/// Generates or loads the texture.
/// Note that this should be cached, but not necessarily *here*.
///
Task GenerateTexture(CancellationToken cancel = default);
///
/// Called when the parallax texture is no longer necessary, and may be unloaded.
///
void Unload(IDependencyCollection dependencies)
{
}
}
}