6
StarHorizon_Public/Content.Shared/_Goobstation/Emoting/SharedAnimatedEmotesSystem.cs
2026-01-24 12:49:55 +03:00

19 lines
476 B
C#

using Robust.Shared.GameStates;
namespace Content.Shared.Emoting;
public abstract class SharedAnimatedEmotesSystem : EntitySystem
{
public override void Initialize()
{
base.Initialize();
SubscribeLocalEvent<AnimatedEmotesComponent, ComponentGetState>(OnGetState);
}
private void OnGetState(Entity<AnimatedEmotesComponent> ent, ref ComponentGetState args)
{
args.State = new AnimatedEmotesComponentState(ent.Comp.Emote);
}
}