IParallaxManager.cs 732 B

12345678910111213141516171819202122232425262728293031
  1. using System.Numerics;
  2. using System.Threading.Tasks;
  3. using Robust.Shared.Maths;
  4. namespace Content.Client.Parallax.Managers;
  5. public interface IParallaxManager
  6. {
  7. /// <summary>
  8. /// All WorldHomePosition values are offset by this.
  9. /// </summary>
  10. Vector2 ParallaxAnchor { get; set; }
  11. bool IsLoaded(string name);
  12. /// <summary>
  13. /// The layers of the selected parallax.
  14. /// </summary>
  15. ParallaxLayerPrepared[] GetParallaxLayers(string name);
  16. /// <summary>
  17. /// Loads in the default parallax to use.
  18. /// Do not call until prototype manager is available.
  19. /// </summary>
  20. void LoadDefaultParallax();
  21. Task LoadParallaxByName(string name);
  22. void UnloadParallax(string name);
  23. }