2024-01-28 18:37:24 +07:00
|
|
|
|
using Content.Shared._White.Supermatter.Components;
|
|
|
|
|
|
using Content.Shared._White.Supermatter.Systems;
|
2024-01-22 18:32:33 +07:00
|
|
|
|
using Robust.Shared.GameStates;
|
|
|
|
|
|
|
2024-01-28 17:32:55 +07:00
|
|
|
|
namespace Content.Client._White.Supermatter.Systems;
|
2024-01-22 18:32:33 +07:00
|
|
|
|
|
|
|
|
|
|
public sealed class SupermatterSystem : SharedSupermatterSystem
|
|
|
|
|
|
{
|
|
|
|
|
|
public override void Initialize()
|
|
|
|
|
|
{
|
|
|
|
|
|
base.Initialize();
|
|
|
|
|
|
|
|
|
|
|
|
SubscribeLocalEvent<SupermatterComponent, ComponentHandleState>(HandleSupermatterState);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private void HandleSupermatterState(EntityUid uid, SupermatterComponent comp, ref ComponentHandleState args)
|
|
|
|
|
|
{
|
|
|
|
|
|
if (args.Current is not SupermatterComponentState state)
|
|
|
|
|
|
return;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|