autogen parallax state (#15384)
Co-authored-by: deltanedas <@deltanedas:kde.org>
This commit is contained in:
@@ -1,23 +1,5 @@
|
||||
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
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
public sealed class ParallaxSystem : SharedParallaxSystem { }
|
||||
|
||||
Reference in New Issue
Block a user