using System.Numerics;
using Robust.Shared.Audio;
using Robust.Shared.Audio.Systems;
+using Robust.Shared.GameStates;
using Robust.Shared.Utility;
namespace Content.Server.Dragon;
{
base.Initialize();
+ SubscribeLocalEvent<DragonRiftComponent, ComponentGetState>(OnGetState);
SubscribeLocalEvent<DragonRiftComponent, ExaminedEvent>(OnExamined);
SubscribeLocalEvent<DragonRiftComponent, AnchorStateChangedEvent>(OnAnchorChange);
SubscribeLocalEvent<DragonRiftComponent, ComponentShutdown>(OnShutdown);
}
+ private void OnGetState(Entity<DragonRiftComponent> ent, ref ComponentGetState args)
+ {
+ args.State = new DragonRiftComponentState
+ {
+ State = ent.Comp.State,
+ };
+ }
+
public override void Update(float frameTime)
{
base.Update(frameTime);