2018-11-30 21:54:30 +01:00
|
|
|
using System;
|
2019-04-15 21:11:38 -06:00
|
|
|
using Robust.Client.Graphics;
|
2022-05-04 17:55:21 +01:00
|
|
|
using Content.Client.Parallax;
|
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>
|
|
|
|
|
/// The current parallax.
|
|
|
|
|
/// Changing this causes a new parallax to be loaded (eventually).
|
|
|
|
|
/// Do not alter until prototype manager is available.
|
|
|
|
|
/// Useful "csi" input for testing new parallaxes:
|
|
|
|
|
/// using Content.Client.Parallax.Managers; IoCManager.Resolve<IParallaxManager>().ParallaxName = "test";
|
|
|
|
|
/// </summary>
|
|
|
|
|
string ParallaxName { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// All WorldHomePosition values are offset by this.
|
|
|
|
|
/// </summary>
|
|
|
|
|
Vector2 ParallaxAnchor { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The layers of the currently loaded parallax.
|
|
|
|
|
/// This will change on a whim without notification.
|
|
|
|
|
/// </summary>
|
|
|
|
|
ParallaxLayerPrepared[] ParallaxLayers { get; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Used to initialize the manager.
|
|
|
|
|
/// Do not call until prototype manager is available.
|
|
|
|
|
/// </summary>
|
|
|
|
|
void LoadParallax();
|
2018-11-30 21:54:30 +01:00
|
|
|
}
|
2022-05-04 17:55:21 +01:00
|
|
|
|