Files
Delta-v/Content.Shared/_Goobstation/Emoting/SharedAnimatedEmotesSystem.cs
T
hivehum 01a9e61ce9 Animated Emotes from Impstation (#2746)
* when the emotes are animated

* hopefully untouched

* INCORRECT

* can this work.

* flipping out
2025-01-18 23:50:21 +00: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);
}
}