19 lines
476 B
C#
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);
|
|
}
|
|
}
|