2023-07-08 14:08:32 +10:00
|
|
|
using System.Numerics;
|
2022-07-25 15:10:23 +10:00
|
|
|
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; }
|
|
|
|
|
|
2022-07-25 15:10:23 +10:00
|
|
|
bool IsLoaded(string name);
|
|
|
|
|
|
2022-05-04 17:55:21 +01:00
|
|
|
/// <summary>
|
2022-07-25 15:10:23 +10:00
|
|
|
/// The layers of the selected parallax.
|
2022-05-04 17:55:21 +01:00
|
|
|
/// </summary>
|
2022-07-25 15:10:23 +10:00
|
|
|
ParallaxLayerPrepared[] GetParallaxLayers(string name);
|
2022-05-04 17:55:21 +01:00
|
|
|
|
|
|
|
|
/// <summary>
|
2022-07-25 15:10:23 +10:00
|
|
|
/// Loads in the default parallax to use.
|
2022-05-04 17:55:21 +01:00
|
|
|
/// Do not call until prototype manager is available.
|
|
|
|
|
/// </summary>
|
2022-07-25 15:10:23 +10:00
|
|
|
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
|
|
|
|