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:
23
Content.Server/Parallax/ParallaxSystem.cs
Normal file
23
Content.Server/Parallax/ParallaxSystem.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using Content.Shared.Parallax;
|
||||
using Robust.Shared.GameStates;
|
||||
|
||||
namespace Content.Server.Parallax;
|
||||
|
||||
public sealed class ParallaxSystem : SharedParallaxSystem
|
||||
{
|
||||
public override void Initialize()
|
||||
{
|
||||
base.Initialize();
|
||||
|
||||
SubscribeLocalEvent<ParallaxComponent, ComponentGetState>(OnParallaxGetState);
|
||||
}
|
||||
|
||||
private void OnParallaxGetState(EntityUid uid, ParallaxComponent component, ref ComponentGetState args)
|
||||
{
|
||||
args.State = new ParallaxComponentState
|
||||
{
|
||||
Parallax = component.Parallax
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user