Parallax refactors (#7654)
This commit is contained in:
19
Content.Client/Parallax/Data/IParallaxTextureSource.cs
Normal file
19
Content.Client/Parallax/Data/IParallaxTextureSource.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using System.Collections.Generic;
|
||||
using Robust.Shared.Serialization.Manager.Attributes;
|
||||
using Robust.Client.Graphics;
|
||||
|
||||
namespace Content.Client.Parallax.Data
|
||||
{
|
||||
[ImplicitDataDefinitionForInheritors]
|
||||
public interface IParallaxTextureSource
|
||||
{
|
||||
/// <summary>
|
||||
/// Generates or loads the texture.
|
||||
/// Note that this should be cached, but not necessarily *here*.
|
||||
/// </summary>
|
||||
Task<Texture> GenerateTexture(CancellationToken cancel = default);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user