* 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>
24 lines
560 B
C#
24 lines
560 B
C#
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
|
|
};
|
|
}
|
|
|
|
}
|