Kill SharedEntityExtensions and all popup extensions (#20909)

Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
This commit is contained in:
Kara
2023-10-15 22:56:09 -07:00
committed by GitHub
parent 00e274ea38
commit 77964d4a6b
20 changed files with 135 additions and 238 deletions

View File

@@ -1,9 +1,13 @@
using Content.Shared.Random;
using Content.Shared.Random.Helpers;
using Robust.Shared.Random;
namespace Content.Server.Coordinates;
public sealed class SpawnRandomOffsetSystem : EntitySystem
{
[Dependency] private readonly RandomHelperSystem _randomHelper = default!;
public override void Initialize()
{
base.Initialize();
@@ -13,8 +17,7 @@ public sealed class SpawnRandomOffsetSystem : EntitySystem
private void OnMapInit(EntityUid uid, SpawnRandomOffsetComponent component, MapInitEvent args)
{
// TODO: Kill this extension with fire, thanks
uid.RandomOffset(component.Offset);
_randomHelper.RandomOffset(uid, component.Offset);
EntityManager.RemoveComponentDeferred(uid, component);
}
}