IParallaxTextureSource.cs 502 B

123456789101112131415161718
  1. using System.Threading;
  2. using System.Threading.Tasks;
  3. using Robust.Client.Graphics;
  4. using Robust.Shared.Graphics;
  5. namespace Content.Client.Parallax.Data
  6. {
  7. [ImplicitDataDefinitionForInheritors]
  8. public partial interface IParallaxTextureSource
  9. {
  10. /// <summary>
  11. /// Generates or loads the texture.
  12. /// Note that this should be cached, but not necessarily *here*.
  13. /// </summary>
  14. Task<Texture> GenerateTexture(CancellationToken cancel = default);
  15. }
  16. }