Files

32 lines
732 B
C#
Raw Permalink Normal View History

using System.Numerics;
using System.Threading.Tasks;
using Robust.Shared.Maths;
2018-11-30 21:54:30 +01:00
2022-05-04 17:55:21 +01:00
namespace Content.Client.Parallax.Managers;
public interface IParallaxManager
2018-11-30 21:54:30 +01:00
{
2022-05-04 17:55:21 +01:00
/// <summary>
/// All WorldHomePosition values are offset by this.
/// </summary>
Vector2 ParallaxAnchor { get; set; }
bool IsLoaded(string name);
2022-05-04 17:55:21 +01:00
/// <summary>
/// The layers of the selected parallax.
2022-05-04 17:55:21 +01:00
/// </summary>
ParallaxLayerPrepared[] GetParallaxLayers(string name);
2022-05-04 17:55:21 +01:00
/// <summary>
/// Loads in the default parallax to use.
2022-05-04 17:55:21 +01:00
/// Do not call until prototype manager is available.
/// </summary>
void LoadDefaultParallax();
Task LoadParallaxByName(string name);
void UnloadParallax(string name);
2018-11-30 21:54:30 +01:00
}
2022-05-04 17:55:21 +01:00