Per-map parallax support (#9786)
* Per-map parallax support * Comments for future sloth * c * bet * Fix exception * VV support * Fix parallax * mem * weightless sounds * Gravity stuff * placeholder coz im too lazy to stash don't @ me son * decent clouds * sky * Fast parallax * Imagine spelling * Loicense * perish * Fix weightless status Co-authored-by: metalgearsloth <metalgearsloth@gmail.com>
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
using Content.Client.Parallax.Managers;
|
||||
using Content.Client.Parallax;
|
||||
using Robust.Shared.Maths;
|
||||
@@ -6,13 +8,30 @@ namespace Content.IntegrationTests
|
||||
{
|
||||
public sealed class DummyParallaxManager : IParallaxManager
|
||||
{
|
||||
public string ParallaxName { get; set; } = "";
|
||||
public Vector2 ParallaxAnchor { get; set; }
|
||||
public ParallaxLayerPrepared[] ParallaxLayers { get; } = {};
|
||||
|
||||
public void LoadParallax()
|
||||
public bool IsLoaded(string name)
|
||||
{
|
||||
ParallaxName = "default";
|
||||
return true;
|
||||
}
|
||||
|
||||
public ParallaxLayerPrepared[] GetParallaxLayers(string name)
|
||||
{
|
||||
return Array.Empty<ParallaxLayerPrepared>();
|
||||
}
|
||||
|
||||
public void LoadDefaultParallax()
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
public Task LoadParallaxByName(string name)
|
||||
{
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
|
||||
public void UnloadParallax(string name)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user